diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index b3c121a..36aff59 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -33,6 +33,8 @@ components: additionalProperties: true # todo tweetInterstitial: $ref: "#/components/schemas/TweetInterstitial" + mediaVisibilityResults: + $ref: "#/components/schemas/MediaVisibilityResults" TweetInterstitial: required: @@ -95,6 +97,26 @@ components: type: string enum: [ExternalUrl] + MediaVisibilityResults: + required: + - "blurred_image_interstitial" + properties: + blurred_image_interstitial: + $ref: "#/components/schemas/MediaVisibilityResultsBlurredImageInterstitial" + + MediaVisibilityResultsBlurredImageInterstitial: + required: + - "opacity" + - "text" + - "title" + properties: + opacity: + type: number + text: + $ref: "#/components/schemas/TweetInterstitialText" + title: + $ref: "#/components/schemas/TweetInterstitialText" + TweetInterstitialRevealText: required: - "rtl" @@ -999,7 +1021,6 @@ components: - "original_info" - "media_key" - "ext_media_availability" - - "media_results" properties: display_url: type: string @@ -1098,7 +1119,6 @@ components: # - "features" - "sizes" - "original_info" - - "media_results" properties: display_url: type: string @@ -1345,7 +1365,6 @@ components: - "preview_text" - "cover_media" - "metadata" - - "lifecycle_state" properties: rest_id: type: string diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index e626c22..95d9c29 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -39,7 +39,6 @@ components: - "super_followed_by" - "super_following" - "profile_image_shape" - - "tipjar_settings" properties: __typename: @@ -95,6 +94,8 @@ components: type: boolean tipjar_settings: $ref: "#/components/schemas/UserTipJarSettings" + legacy_extended_profile: + $ref: "#/components/schemas/UserLegacyExtendedProfile" UserProfessional: required: @@ -214,6 +215,32 @@ components: gofundme_handle: type: string # uri + UserLegacyExtendedProfile: + properties: + birthdate: + $ref: "#/components/schemas/UserLegacyExtendedProfileBirthdate" + + UserLegacyExtendedProfileBirthdate: + required: + - "day" + - "month" + - "year" + - "visibility" + - "year_visibility" + properties: + day: + type: integer + month: + type: integer + year: + type: integer + visibility: + type: string + enum: ["Self", "Public", "MutualFollow", "Followers", "Following"] + year_visibility: + type: string + enum: ["Self", "Public", "MutualFollow", "Followers", "Following"] + UserLegacy: required: - "blocked_by"