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: