From 3a8c8650fa8b6a10580463ecc837b31edeb37fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 13 Feb 2024 09:17:48 +0900 Subject: [PATCH 1/7] update version 7.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- .github/workflows/test-build.yaml | 2 +- .github/workflows/test-python.yaml | 2 +- .vscode/tasks.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml index b78efc7..8415e4e 100644 --- a/.github/workflows/test-build.yaml +++ b/.github/workflows/test-build.yaml @@ -39,7 +39,7 @@ jobs: - name: Get Openapi Generator run: | - wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.2.0/openapi-generator-cli-7.2.0.jar -O openapi-generator-cli.jar --no-verbose + wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.3.0/openapi-generator-cli-7.3.0.jar -O openapi-generator-cli.jar --no-verbose if: steps.openapi-generator-cache.outputs.cache-hit != 'true' # Python Setup diff --git a/.github/workflows/test-python.yaml b/.github/workflows/test-python.yaml index 2d4cafa..0573b0a 100644 --- a/.github/workflows/test-python.yaml +++ b/.github/workflows/test-python.yaml @@ -40,7 +40,7 @@ jobs: - name: Get Openapi Generator run: | - wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.2.0/openapi-generator-cli-7.2.0.jar -O openapi-generator-cli.jar --no-verbose + wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.3.0/openapi-generator-cli-7.3.0.jar -O openapi-generator-cli.jar --no-verbose if: steps.openapi-generator-cache.outputs.cache-hit != 'true' # Python Setup diff --git a/.vscode/tasks.json b/.vscode/tasks.json index bd2305e..cfbff8d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -34,14 +34,14 @@ "command": [ "python3 -m venv .venv;", ".venv/bin/python3 -m pip install -r requirements.txt;", - "wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.2.0/openapi-generator-cli-7.2.0.jar -O openapi-generator-cli.jar;" + "wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.3.0/openapi-generator-cli-7.3.0.jar -O openapi-generator-cli.jar;" ] }, "windows": { "command": [ "python -m venv .venv;", ".venv/Scripts/python -m pip install -r requirements.txt;", - "Invoke-WebRequest https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.2.0/openapi-generator-cli-7.2.0.jar -OutFile openapi-generator-cli.jar;" + "Invoke-WebRequest https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.3.0/openapi-generator-cli-7.3.0.jar -OutFile openapi-generator-cli.jar;" ] } } From 428137d97817b58c285674d4a743f9250ddbf73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 13 Feb 2024 12:05:44 +0900 Subject: [PATCH 2/7] fix enum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 2 ++ dist/docs/openapi-3.0.yaml | 2 ++ src/openapi/schemas/content.yaml | 19 ++++++++++++------- src/openapi/schemas/tweet.yaml | 4 +++- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 9464dd5..245e7b4 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -1511,6 +1511,7 @@ components: - Like - Location - Sparkle + - Conversation type: string landingUrl: $ref: '#/components/schemas/SocialContextLandingUrl' @@ -2273,6 +2274,7 @@ components: type: string state: enum: + - Enabled - EnabledWithCount type: string required: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 1e10464..8d3291c 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -1511,6 +1511,7 @@ components: - Like - Location - Sparkle + - Conversation type: string landingUrl: $ref: '#/components/schemas/SocialContextLandingUrl' @@ -2273,6 +2274,7 @@ components: type: string state: enum: + - Enabled - EnabledWithCount type: string required: diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index 3d1ed99..e8ad90c 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -59,7 +59,7 @@ components: entryType: $ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor displayType: - $ref: "#/components/schemas/DisplayType" + $ref: "#/components/schemas/DisplayType" items: type: array items: @@ -240,14 +240,13 @@ components: mapping": # deprecated TimelineGeneralContext: "#/components/schemas/TimelineGeneralContext" TimelineTopicContext: "#/components/schemas/TimelineTopicContext" - + SocialContextUnionType: type: string - enum: + enum: - TimelineGeneralContext - TimelineTopicContext - TimelineGeneralContext: type: object properties: @@ -255,7 +254,13 @@ components: $ref: "#/components/schemas/SocialContextUnionType" contextType: type: string # enum - enum: ["Follow", "Pin", "Like", "Location", "Sparkle"] + enum: + - "Follow" + - "Pin" + - "Like" + - "Location" + - "Sparkle" + - "Conversation" text: type: string landingUrl: @@ -271,7 +276,7 @@ components: functionalityType: type: string enum: ["Basic"] - + TopicContext: type: object properties: @@ -290,7 +295,7 @@ components: type: boolean not_interested: type: boolean - + SocialContextLandingUrl: type: object properties: diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 3f89e0c..95b45fa 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -231,7 +231,9 @@ components: pattern: "^[0-9]+$" state: type: string - enum: [EnabledWithCount] + enum: + - Enabled + - EnabledWithCount NoteTweet: required: From e9162dc2fc9f55fcf36a71e2463f2c9dc2875584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 13 Feb 2024 12:12:14 +0900 Subject: [PATCH 3/7] add feedbackInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 2 ++ dist/docs/openapi-3.0.yaml | 2 ++ src/openapi/schemas/content.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 245e7b4..d495660 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -1075,6 +1075,8 @@ components: properties: clientEventInfo: $ref: '#/components/schemas/ClientEventInfo' + feedbackInfo: + $ref: '#/components/schemas/FeedbackInfo' itemContent: $ref: '#/components/schemas/ItemContentUnion' required: diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index 8d3291c..a90e81f 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -1075,6 +1075,8 @@ components: properties: clientEventInfo: $ref: '#/components/schemas/ClientEventInfo' + feedbackInfo: + $ref: '#/components/schemas/FeedbackInfo' itemContent: $ref: '#/components/schemas/ItemContentUnion' required: diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index e8ad90c..066acc5 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -139,6 +139,8 @@ components: $ref: "#/components/schemas/ClientEventInfo" itemContent: $ref: "#/components/schemas/ItemContentUnion" + feedbackInfo: + $ref: "#/components/schemas/FeedbackInfo" FeedbackInfo: required: From d33b37b20072eec4b060ab2faa0bb4cc4dd6ea4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Tue, 13 Feb 2024 15:44:20 +0900 Subject: [PATCH 4/7] add SensitiveMediaWarning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 35 +++++++++++++++------------ dist/docs/openapi-3.0.yaml | 35 +++++++++++++++------------ src/openapi/schemas/tweet.yaml | 41 ++++++++++++++++---------------- 3 files changed, 61 insertions(+), 50 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index d495660..efb86ff 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -885,6 +885,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -949,6 +951,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -1203,19 +1207,9 @@ components: QuotedRefResult: properties: result: - $ref: '#/components/schemas/QuotedRefResultData' + $ref: '#/components/schemas/TweetUnion' required: - result - QuotedRefResultData: - properties: - __typename: - $ref: '#/components/schemas/TypeName' - rest_id: - pattern: ^[0-9]+$ - type: string - required: - - __typename - - rest_id QuotedStatusPermalink: properties: display: @@ -1277,6 +1271,21 @@ components: type: string required: - id_str + SensitiveMediaWarning: + properties: + adult_content: + default: false + type: boolean + graphic_violence: + default: false + type: boolean + other: + default: false + type: boolean + required: + - adult_content + - graphic_violence + - other Session: properties: SsoInitTokens: @@ -1859,9 +1868,6 @@ components: $ref: '#/components/schemas/TweetView' required: - rest_id - - edit_control - - is_translatable - - views TweetCard: properties: legacy: @@ -2295,7 +2301,6 @@ components: required: - __typename - tweet - - limitedActionResults TwitterTimeFormat: example: Sat Dec 31 23:59:59 +0000 2023 pattern: '^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index a90e81f..fc4720a 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -885,6 +885,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -949,6 +951,8 @@ components: type: string original_info: $ref: '#/components/schemas/MediaOriginalInfo' + sensitive_media_warning: + $ref: '#/components/schemas/SensitiveMediaWarning' sizes: $ref: '#/components/schemas/MediaSizes' source_status_id_str: @@ -1203,19 +1207,9 @@ components: QuotedRefResult: properties: result: - $ref: '#/components/schemas/QuotedRefResultData' + $ref: '#/components/schemas/TweetUnion' required: - result - QuotedRefResultData: - properties: - __typename: - $ref: '#/components/schemas/TypeName' - rest_id: - pattern: ^[0-9]+$ - type: string - required: - - __typename - - rest_id QuotedStatusPermalink: properties: display: @@ -1277,6 +1271,21 @@ components: type: string required: - id_str + SensitiveMediaWarning: + properties: + adult_content: + default: false + type: boolean + graphic_violence: + default: false + type: boolean + other: + default: false + type: boolean + required: + - adult_content + - graphic_violence + - other Session: properties: SsoInitTokens: @@ -1859,9 +1868,6 @@ components: $ref: '#/components/schemas/TweetView' required: - rest_id - - edit_control - - is_translatable - - views TweetCard: properties: legacy: @@ -2295,7 +2301,6 @@ components: required: - __typename - tweet - - limitedActionResults TwitterTimeFormat: example: Sat Dec 31 23:59:59 +0000 2023 pattern: '^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 95b45fa..6e5f219 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -23,7 +23,6 @@ components: required: - "__typename" - "tweet" - - "limitedActionResults" properties: __typename: $ref: "./typename.yaml#/components/schemas/TypeName" # TweetWithVisibilityResults @@ -120,13 +119,6 @@ components: Tweet: required: - "rest_id" - # If the tweet has been edited, this property does not exist. - # - "core" - - "edit_control" - - "is_translatable" - # - "source" - # - "legacy" - - "views" properties: __typename: $ref: "./typename.yaml#/components/schemas/TypeName" # null | Tweet @@ -347,18 +339,7 @@ components: - "result" properties: result: - $ref: "#/components/schemas/QuotedRefResultData" - - QuotedRefResultData: - required: - - "__typename" - - "rest_id" - properties: - __typename: - $ref: "./typename.yaml#/components/schemas/TypeName" # Tweet - rest_id: - type: string - pattern: "^[0-9]+$" + $ref: "#/components/schemas/TweetUnion" SuperFollowsReplyUserResult: required: @@ -1061,6 +1042,8 @@ components: pattern: "^[0-9]+$" ext_alt_text: type: string + sensitive_media_warning: + $ref: "#/components/schemas/SensitiveMediaWarning" TweetLegacyScopes: required: @@ -1155,6 +1138,8 @@ components: pattern: "^[0-9]+$" ext_alt_text: type: string + sensitive_media_warning: + $ref: "#/components/schemas/SensitiveMediaWarning" MediaOriginalInfo: required: @@ -1265,6 +1250,22 @@ components: type: string enum: [Available, Unavailable] + SensitiveMediaWarning: + required: + - "adult_content" + - "graphic_violence" + - "other" + properties: + adult_content: + type: boolean + default: false + graphic_violence: + type: boolean + default: false + other: + type: boolean + default: false + MediaSizes: required: - "large" From 03a1fecde6c4eda80d8ad2caf7948982de38f559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 14 Feb 2024 11:11:56 +0900 Subject: [PATCH 5/7] add test case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- test/python/test_serialize.py | 41 ++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/test/python/test_serialize.py b/test/python/test_serialize.py index 5c538b0..dc080d0 100644 --- a/test/python/test_serialize.py +++ b/test/python/test_serialize.py @@ -294,27 +294,38 @@ if __name__ == "__main__": error_dump(e) error_count += 1 - try: - logger.info("Try: Self UserTweets Test") - kwargs = get_kwargs("UserTweets", {"userId": "1180389371481976833"}) - res = pt.TweetApi(api_client).get_user_tweets_with_http_info(**kwargs) - data = res.data.to_dict() + ids = [ + "1180389371481976833", + "900282258736545792", + "1212617657003859968", + "2455740283", + "2326837940", + ] + for id in ids: + try: + logger.info("Try: Self UserTweets Test") + kwargs = get_kwargs("UserTweets", {"userId": id}) + res = pt.TweetApi(api_client).get_user_tweets_with_http_info(**kwargs) + data = res.data.to_dict() - rate = match_rate( - data, - json.loads(res.raw_data), - res.data, - ) - logger.info(f"Match rate: {rate}") + rate = match_rate( + data, + json.loads(res.raw_data), + res.data, + ) + logger.info(f"Match rate: {rate}") - except Exception as e: - error_dump(e) - error_count += 1 + except Exception as e: + error_dump(e) + error_count += 1 ids = [ "1720975693524377759", "1721006592303251551", - "1606661809075019776", + "1739194269477331076", + "1697450269259522256", + "1697450278742884799", + "1749500209061663043", ] for id in ids: try: From c48a188669b6e68d3f3bec2fca5bdef06bd63bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 14 Feb 2024 11:12:15 +0900 Subject: [PATCH 6/7] update schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- src/openapi/schemas/content.yaml | 3 ++- src/openapi/schemas/tweet.yaml | 20 +++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index 066acc5..48f18ab 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -263,6 +263,7 @@ components: - "Location" - "Sparkle" - "Conversation" + - "List" text: type: string landingUrl: @@ -303,7 +304,7 @@ components: properties: urlType: type: string # enum - enum: ["DeepLink", "UrtEndpoint"] + enum: ["DeepLink", "UrtEndpoint", "ExternalUrl"] url: type: string # twitter://user?id=900282258736545792 format: uri diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 6e5f219..c33bca2 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -335,8 +335,6 @@ components: type: integer QuotedRefResult: - required: - - "result" properties: result: $ref: "#/components/schemas/TweetUnion" @@ -392,7 +390,6 @@ components: - "description" - "question" - "search_tags" - - "primary_community_topic" - "actions" - "admin_results" - "creator_results" @@ -646,21 +643,21 @@ components: ref: $ref: "#/components/schemas/BirdwatchEntityRef" - BirdwatchEntityRef: + BirdwatchEntityRef: # Union required: - "type" - - "url" - - "urlType" properties: type: type: string - enum: [TimelineUrl] + enum: [TimelineUrl, TimelineRichTextHashtag] url: type: string format: uri urlType: type: string enum: [ExternalUrl] + text: + type: string BirdwatchPivotNote: required: @@ -912,6 +909,7 @@ components: - "community_tweet_non_member_public_community" - "non_compliant" - "dynamic_product_ad" + - "stale_tweet" place: additionalProperties: true # todo @@ -1219,13 +1217,13 @@ components: $ref: "#/components/schemas/AdditionalMediaInfoCallToActions" AdditionalMediaInfoCallToActions: - required: - - "visit_site" properties: visit_site: - $ref: "#/components/schemas/AdditionalMediaInfoCallToActionsVisitSite" + $ref: "#/components/schemas/AdditionalMediaInfoCallToActionsUrl" + watch_now: + $ref: "#/components/schemas/AdditionalMediaInfoCallToActionsUrl" - AdditionalMediaInfoCallToActionsVisitSite: + AdditionalMediaInfoCallToActionsUrl: required: - "url" properties: From 1393042faff7e5c8dc12f43ed0b518b8b4ce2097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 14 Feb 2024 11:12:27 +0900 Subject: [PATCH 7/7] 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 | 19 ++++++++++--------- dist/docs/openapi-3.0.yaml | 19 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index efb86ff..2418ac0 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -19,10 +19,10 @@ components: AdditionalMediaInfoCallToActions: properties: visit_site: - $ref: '#/components/schemas/AdditionalMediaInfoCallToActionsVisitSite' - required: - - visit_site - AdditionalMediaInfoCallToActionsVisitSite: + $ref: '#/components/schemas/AdditionalMediaInfoCallToActionsUrl' + watch_now: + $ref: '#/components/schemas/AdditionalMediaInfoCallToActionsUrl' + AdditionalMediaInfoCallToActionsUrl: properties: url: format: uri @@ -55,9 +55,12 @@ components: - ref BirdwatchEntityRef: properties: + text: + type: string type: enum: - TimelineUrl + - TimelineRichTextHashtag type: string url: format: uri @@ -68,8 +71,6 @@ components: type: string required: - type - - url - - urlType BirdwatchPivot: properties: callToAction: @@ -286,7 +287,6 @@ components: - description - question - search_tags - - primary_community_topic - actions - admin_results - creator_results @@ -1208,8 +1208,6 @@ components: properties: result: $ref: '#/components/schemas/TweetUnion' - required: - - result QuotedStatusPermalink: properties: display: @@ -1347,6 +1345,7 @@ components: enum: - DeepLink - UrtEndpoint + - ExternalUrl type: string urtEndpointOptions: $ref: '#/components/schemas/UrtEndpointOptions' @@ -1523,6 +1522,7 @@ components: - Location - Sparkle - Conversation + - List type: string landingUrl: $ref: '#/components/schemas/SocialContextLandingUrl' @@ -2162,6 +2162,7 @@ components: - community_tweet_non_member_public_community - non_compliant - dynamic_product_ad + - stale_tweet type: string place: additionalProperties: true diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index fc4720a..42705b5 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -19,10 +19,10 @@ components: AdditionalMediaInfoCallToActions: properties: visit_site: - $ref: '#/components/schemas/AdditionalMediaInfoCallToActionsVisitSite' - required: - - visit_site - AdditionalMediaInfoCallToActionsVisitSite: + $ref: '#/components/schemas/AdditionalMediaInfoCallToActionsUrl' + watch_now: + $ref: '#/components/schemas/AdditionalMediaInfoCallToActionsUrl' + AdditionalMediaInfoCallToActionsUrl: properties: url: format: uri @@ -55,9 +55,12 @@ components: - ref BirdwatchEntityRef: properties: + text: + type: string type: enum: - TimelineUrl + - TimelineRichTextHashtag type: string url: format: uri @@ -68,8 +71,6 @@ components: type: string required: - type - - url - - urlType BirdwatchPivot: properties: callToAction: @@ -286,7 +287,6 @@ components: - description - question - search_tags - - primary_community_topic - actions - admin_results - creator_results @@ -1208,8 +1208,6 @@ components: properties: result: $ref: '#/components/schemas/TweetUnion' - required: - - result QuotedStatusPermalink: properties: display: @@ -1347,6 +1345,7 @@ components: enum: - DeepLink - UrtEndpoint + - ExternalUrl type: string urtEndpointOptions: $ref: '#/components/schemas/UrtEndpointOptions' @@ -1523,6 +1522,7 @@ components: - Location - Sparkle - Conversation + - List type: string landingUrl: $ref: '#/components/schemas/SocialContextLandingUrl' @@ -2162,6 +2162,7 @@ components: - community_tweet_non_member_public_community - non_compliant - dynamic_product_ad + - stale_tweet type: string place: additionalProperties: true