From 2146afb4642e590131e089b676ff71cea5ea273a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Thu, 28 Mar 2024 18:03:38 +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 | 102 ++++++++++++++++++ .../compatible_discriminator/openapi-3.0.yaml | 102 ++++++++++++++++++ dist/docs/openapi-3.0.yaml | 102 ++++++++++++++++++ 3 files changed, 306 insertions(+) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index f19868e..09ac0d7 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -29,6 +29,100 @@ components: type: string required: - url + Article: + properties: + article_results: + $ref: '#/components/schemas/ArticleResults' + required: + - article_results + ArticleCoverMedia: + properties: + id: + type: string + media_id: + pattern: ^[0-9]+$ + type: string + media_info: + $ref: '#/components/schemas/ArticleCoverMediaInfo' + media_key: + type: string + required: + - id + - media_key + - media_id + - media_info + ArticleCoverMediaColorInfo: + properties: + palette: + items: + $ref: '#/components/schemas/ArticleCoverMediaColorInfoPalette' + type: array + required: + - palette + ArticleCoverMediaColorInfoPalette: + properties: + percentage: + type: number + rgb: + $ref: '#/components/schemas/ArticleCoverMediaColorInfoPaletteRGB' + required: + - percentage + - rgb + ArticleCoverMediaColorInfoPaletteRGB: + properties: + blue: + type: integer + green: + type: integer + red: + type: integer + required: + - blue + - green + - red + ArticleCoverMediaInfo: + properties: + __typename: + $ref: '#/components/schemas/TypeName' + color_info: + $ref: '#/components/schemas/ArticleCoverMediaColorInfo' + original_img_height: + type: integer + original_img_url: + format: uri + type: string + original_img_width: + type: integer + required: + - original_img_height + - original_img_width + - original_img_url + - color_info + ArticleResult: + properties: + cover_media: + $ref: '#/components/schemas/ArticleCoverMedia' + id: + type: string + preview_text: + type: string + rest_id: + pattern: ^[0-9]+$ + type: string + title: + type: string + required: + - rest_id + - id + - title + - preview_text + - cover_media + ArticleResults: + properties: + result: + $ref: '#/components/schemas/ArticleResult' + required: + - result AuthorCommunityRelationship: properties: community_results: @@ -1763,6 +1857,11 @@ components: socialContext: $ref: '#/components/schemas/SocialContextUnion' tweetDisplayType: + enum: + - Tweet + - SelfThread + - MediaGrid + - CondensedTweet type: string tweet_results: $ref: '#/components/schemas/ItemResult' @@ -1842,6 +1941,8 @@ components: properties: __typename: $ref: '#/components/schemas/TypeName' + article: + $ref: '#/components/schemas/Article' author_community_relationship: $ref: '#/components/schemas/AuthorCommunityRelationship' birdwatch_pivot: @@ -2352,6 +2453,7 @@ components: - CommunityTweetPinActionUnavailable - CommunityInvitesUnavailable - CommunityJoinRequestsUnavailable + - ApiImage type: string UnfavoriteTweet: properties: diff --git a/dist/compatible_discriminator/openapi-3.0.yaml b/dist/compatible_discriminator/openapi-3.0.yaml index fd12dea..6b9148b 100644 --- a/dist/compatible_discriminator/openapi-3.0.yaml +++ b/dist/compatible_discriminator/openapi-3.0.yaml @@ -29,6 +29,100 @@ components: type: string required: - url + Article: + properties: + article_results: + $ref: '#/components/schemas/ArticleResults' + required: + - article_results + ArticleCoverMedia: + properties: + id: + type: string + media_id: + pattern: ^[0-9]+$ + type: string + media_info: + $ref: '#/components/schemas/ArticleCoverMediaInfo' + media_key: + type: string + required: + - id + - media_key + - media_id + - media_info + ArticleCoverMediaColorInfo: + properties: + palette: + items: + $ref: '#/components/schemas/ArticleCoverMediaColorInfoPalette' + type: array + required: + - palette + ArticleCoverMediaColorInfoPalette: + properties: + percentage: + type: number + rgb: + $ref: '#/components/schemas/ArticleCoverMediaColorInfoPaletteRGB' + required: + - percentage + - rgb + ArticleCoverMediaColorInfoPaletteRGB: + properties: + blue: + type: integer + green: + type: integer + red: + type: integer + required: + - blue + - green + - red + ArticleCoverMediaInfo: + properties: + __typename: + $ref: '#/components/schemas/TypeName' + color_info: + $ref: '#/components/schemas/ArticleCoverMediaColorInfo' + original_img_height: + type: integer + original_img_url: + format: uri + type: string + original_img_width: + type: integer + required: + - original_img_height + - original_img_width + - original_img_url + - color_info + ArticleResult: + properties: + cover_media: + $ref: '#/components/schemas/ArticleCoverMedia' + id: + type: string + preview_text: + type: string + rest_id: + pattern: ^[0-9]+$ + type: string + title: + type: string + required: + - rest_id + - id + - title + - preview_text + - cover_media + ArticleResults: + properties: + result: + $ref: '#/components/schemas/ArticleResult' + required: + - result AuthorCommunityRelationship: properties: community_results: @@ -1763,6 +1857,11 @@ components: socialContext: $ref: '#/components/schemas/SocialContextUnion' tweetDisplayType: + enum: + - Tweet + - SelfThread + - MediaGrid + - CondensedTweet type: string tweet_results: $ref: '#/components/schemas/ItemResult' @@ -1842,6 +1941,8 @@ components: properties: __typename: $ref: '#/components/schemas/TypeName' + article: + $ref: '#/components/schemas/Article' author_community_relationship: $ref: '#/components/schemas/AuthorCommunityRelationship' birdwatch_pivot: @@ -2352,6 +2453,7 @@ components: - CommunityTweetPinActionUnavailable - CommunityInvitesUnavailable - CommunityJoinRequestsUnavailable + - ApiImage type: string UnfavoriteTweet: properties: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 532c39a..adcf344 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -29,6 +29,100 @@ components: type: string required: - url + Article: + properties: + article_results: + $ref: '#/components/schemas/ArticleResults' + required: + - article_results + ArticleCoverMedia: + properties: + id: + type: string + media_id: + pattern: ^[0-9]+$ + type: string + media_info: + $ref: '#/components/schemas/ArticleCoverMediaInfo' + media_key: + type: string + required: + - id + - media_key + - media_id + - media_info + ArticleCoverMediaColorInfo: + properties: + palette: + items: + $ref: '#/components/schemas/ArticleCoverMediaColorInfoPalette' + type: array + required: + - palette + ArticleCoverMediaColorInfoPalette: + properties: + percentage: + type: number + rgb: + $ref: '#/components/schemas/ArticleCoverMediaColorInfoPaletteRGB' + required: + - percentage + - rgb + ArticleCoverMediaColorInfoPaletteRGB: + properties: + blue: + type: integer + green: + type: integer + red: + type: integer + required: + - blue + - green + - red + ArticleCoverMediaInfo: + properties: + __typename: + $ref: '#/components/schemas/TypeName' + color_info: + $ref: '#/components/schemas/ArticleCoverMediaColorInfo' + original_img_height: + type: integer + original_img_url: + format: uri + type: string + original_img_width: + type: integer + required: + - original_img_height + - original_img_width + - original_img_url + - color_info + ArticleResult: + properties: + cover_media: + $ref: '#/components/schemas/ArticleCoverMedia' + id: + type: string + preview_text: + type: string + rest_id: + pattern: ^[0-9]+$ + type: string + title: + type: string + required: + - rest_id + - id + - title + - preview_text + - cover_media + ArticleResults: + properties: + result: + $ref: '#/components/schemas/ArticleResult' + required: + - result AuthorCommunityRelationship: properties: community_results: @@ -1763,6 +1857,11 @@ components: socialContext: $ref: '#/components/schemas/SocialContextUnion' tweetDisplayType: + enum: + - Tweet + - SelfThread + - MediaGrid + - CondensedTweet type: string tweet_results: $ref: '#/components/schemas/ItemResult' @@ -1842,6 +1941,8 @@ components: properties: __typename: $ref: '#/components/schemas/TypeName' + article: + $ref: '#/components/schemas/Article' author_community_relationship: $ref: '#/components/schemas/AuthorCommunityRelationship' birdwatch_pivot: @@ -2352,6 +2453,7 @@ components: - CommunityTweetPinActionUnavailable - CommunityInvitesUnavailable - CommunityJoinRequestsUnavailable + - ApiImage type: string UnfavoriteTweet: properties: