From 29e05d162f600933fdbf633e992d2d0a249c9413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Mon, 10 Jul 2023 10:01:07 +0900 Subject: [PATCH] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 4 + dist/compatible/paths/user.yaml | 144 +++++++++++++++++++++ dist/docs/openapi-3.0.yaml | 4 + dist/docs/paths/user.yaml | 214 +++++++++++++++++++++++++++++++ 4 files changed, 366 insertions(+) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 953726e..3eb54b3 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -106,6 +106,8 @@ paths: $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail /graphql/{pathQueryId}/UnfavoriteTweet: $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet + /graphql/{pathQueryId}/UserByRestId: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId /graphql/{pathQueryId}/UserByScreenName: $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName /graphql/{pathQueryId}/UserMedia: @@ -114,6 +116,8 @@ paths: $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets /graphql/{pathQueryId}/UserTweetsAndReplies: $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies + /graphql/{pathQueryId}/UsersByRestIds: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds /other: $ref: ./paths/other.yaml#/paths/~1other security: diff --git a/dist/compatible/paths/user.yaml b/dist/compatible/paths/user.yaml index b7e361d..e9b5952 100644 --- a/dist/compatible/paths/user.yaml +++ b/dist/compatible/paths/user.yaml @@ -12,11 +12,91 @@ components: $ref: ./../schemas/user.yaml#/components/schemas/UserResults required: - user + UsersResponse: + properties: + data: + $ref: '#/components/schemas/UsersResponseData' + required: + - data + UsersResponseData: + properties: + users: + items: + $ref: ./../schemas/user.yaml#/components/schemas/UserResults + type: array + required: + - users info: title: Twitter OpenAPI version: 0.0.1 openapi: 3.0.3 paths: + /graphql/{pathQueryId}/UserByRestId: + get: + description: get user by rest id + operationId: getUserByRestId + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: Lxg1V9AiIzzXEiP2c8dRnw + example: Lxg1V9AiIzzXEiP2c8dRnw + type: string + - in: query + name: variables + required: true + schema: + default: '{"userId": "44196397", "withSafetyModeUserFields": true}' + example: '{"userId": "44196397", "withSafetyModeUserFields": true}' + type: string + - in: query + name: features + required: true + schema: + default: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled": + true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "responsive_web_graphql_timeline_navigation_enabled": true}' + example: '{"hidden_profile_likes_enabled": false, "responsive_web_graphql_exclude_directive_enabled": + true, "verified_phone_label_enabled": false, "highlights_tweets_tab_ui_enabled": + true, "creator_subscriptions_tweet_preview_api_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "responsive_web_graphql_timeline_navigation_enabled": true}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user /graphql/{pathQueryId}/UserByScreenName: get: description: get user by screen name @@ -81,3 +161,67 @@ paths: type: string tags: - user + /graphql/{pathQueryId}/UsersByRestIds: + get: + description: get users by rest ids + operationId: getUsersByRestIds + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: GD4q8bBE2i6cqWw2iT74Gg + example: GD4q8bBE2i6cqWw2iT74Gg + type: string + - in: query + name: variables + required: true + schema: + default: '{"userIds": ["44196397"]}' + example: '{"userIds": ["44196397"]}' + type: string + - in: query + name: features + required: true + schema: + default: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": + false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "responsive_web_graphql_timeline_navigation_enabled": true}' + example: '{"responsive_web_graphql_exclude_directive_enabled": true, "verified_phone_label_enabled": + false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": + false, "responsive_web_graphql_timeline_navigation_enabled": true}' + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UsersResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 953726e..3eb54b3 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -106,6 +106,8 @@ paths: $ref: ./paths/tweet.yaml#/paths/~1graphql~1{pathQueryId}~1TweetDetail /graphql/{pathQueryId}/UnfavoriteTweet: $ref: ./paths/post.yaml#/paths/~1graphql~1{pathQueryId}~1UnfavoriteTweet + /graphql/{pathQueryId}/UserByRestId: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByRestId /graphql/{pathQueryId}/UserByScreenName: $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UserByScreenName /graphql/{pathQueryId}/UserMedia: @@ -114,6 +116,8 @@ paths: $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweets /graphql/{pathQueryId}/UserTweetsAndReplies: $ref: ./paths/usertweets.yaml#/paths/~1graphql~1{pathQueryId}~1UserTweetsAndReplies + /graphql/{pathQueryId}/UsersByRestIds: + $ref: ./paths/user.yaml#/paths/~1graphql~1{pathQueryId}~1UsersByRestIds /other: $ref: ./paths/other.yaml#/paths/~1other security: diff --git a/dist/docs/paths/user.yaml b/dist/docs/paths/user.yaml index d0e30db..86ddeb2 100644 --- a/dist/docs/paths/user.yaml +++ b/dist/docs/paths/user.yaml @@ -12,11 +12,134 @@ components: $ref: ./../schemas/user.yaml#/components/schemas/UserResults required: - user + UsersResponse: + properties: + data: + $ref: '#/components/schemas/UsersResponseData' + required: + - data + UsersResponseData: + properties: + users: + items: + $ref: ./../schemas/user.yaml#/components/schemas/UserResults + type: array + required: + - users info: title: Twitter OpenAPI version: 0.0.1 openapi: 3.0.3 paths: + /graphql/{pathQueryId}/UserByRestId: + get: + description: get user by rest id + operationId: getUserByRestId + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: Lxg1V9AiIzzXEiP2c8dRnw + example: Lxg1V9AiIzzXEiP2c8dRnw + type: string + - content: + application/json: + schema: + properties: + userId: + default: '44196397' + example: '44196397' + type: string + withSafetyModeUserFields: + default: true + example: true + type: boolean + required: + - userId + - withSafetyModeUserFields + type: object + in: query + name: variables + required: true + - content: + application/json: + schema: + properties: + creator_subscriptions_tweet_preview_api_enabled: + default: true + example: true + type: boolean + hidden_profile_likes_enabled: + default: false + example: false + type: boolean + highlights_tweets_tab_ui_enabled: + default: true + example: true + type: boolean + responsive_web_graphql_exclude_directive_enabled: + default: true + example: true + type: boolean + responsive_web_graphql_skip_user_profile_image_extensions_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_timeline_navigation_enabled: + default: true + example: true + type: boolean + verified_phone_label_enabled: + default: false + example: false + type: boolean + required: + - hidden_profile_likes_enabled + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - highlights_tweets_tab_ui_enabled + - creator_subscriptions_tweet_preview_api_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - responsive_web_graphql_timeline_navigation_enabled + type: object + in: query + name: features + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user /graphql/{pathQueryId}/UserByScreenName: get: description: get user by screen name @@ -116,3 +239,94 @@ paths: type: string tags: - user + /graphql/{pathQueryId}/UsersByRestIds: + get: + description: get users by rest ids + operationId: getUsersByRestIds + parameters: + - in: path + name: pathQueryId + required: true + schema: + default: GD4q8bBE2i6cqWw2iT74Gg + example: GD4q8bBE2i6cqWw2iT74Gg + type: string + - content: + application/json: + schema: + properties: + userIds: + items: + default: '44196397' + example: '44196397' + type: string + type: array + required: + - userIds + type: object + in: query + name: variables + required: true + - content: + application/json: + schema: + properties: + responsive_web_graphql_exclude_directive_enabled: + default: true + example: true + type: boolean + responsive_web_graphql_skip_user_profile_image_extensions_enabled: + default: false + example: false + type: boolean + responsive_web_graphql_timeline_navigation_enabled: + default: true + example: true + type: boolean + verified_phone_label_enabled: + default: false + example: false + type: boolean + required: + - responsive_web_graphql_exclude_directive_enabled + - verified_phone_label_enabled + - responsive_web_graphql_skip_user_profile_image_extensions_enabled + - responsive_web_graphql_timeline_navigation_enabled + type: object + in: query + name: features + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UsersResponse' + description: Successful operation + headers: + x-connection-hash: + schema: + type: string + x-rate-limit-limit: + schema: + type: integer + x-rate-limit-remaining: + schema: + type: integer + x-rate-limit-reset: + schema: + type: integer + x-response-time: + schema: + type: integer + x-tfe-preserve-body: + schema: + type: boolean + x-transaction-id: + schema: + type: string + x-twitter-response-tags: + schema: + type: string + tags: + - user