diff --git a/src/openapi/schemas/content.yaml b/src/openapi/schemas/content.yaml index 913339f..95508a9 100644 --- a/src/openapi/schemas/content.yaml +++ b/src/openapi/schemas/content.yaml @@ -185,7 +185,7 @@ components: $ref: "#/components/schemas/SocialContext" userDisplayType: type: string - enum: [User, UserDetailed] + enum: [User, UserDetailed, SubscribableUser] user_results: $ref: "./user.yaml#/components/schemas/UserResults" diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index e6ef176..3a1254d 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -40,8 +40,8 @@ components: - "rest_id" - "core" - "edit_control" - # - "edit_prespective" - "is_translatable" + - "source" - "legacy" - "views" @@ -65,6 +65,8 @@ components: is_translatable: type: boolean default: false + source: + type: string # html (Twitter for Android) legacy: $ref: "#/components/schemas/TweetLegacy" views: @@ -87,6 +89,32 @@ components: edits_remaining: type: string pattern: "^[0-9]+$" + initial_tweet_id: + type: string + pattern: "^[0-9]+$" + edit_control_initial: + $ref: "#/components/schemas/TweetEditControlInitial" + + TweetEditControlInitial: + required: + - "edit_tweet_ids" + - "editable_until_msecs" + - "is_edit_eligible" + - "edits_remaining" + properties: + edit_tweet_ids: + type: array + items: + type: string + pattern: "^[0-9]+$" + editable_until_msecs: + type: string + pattern: "^[0-9]+$" + is_edit_eligible: + type: boolean + edits_remaining: + type: string + pattern: "^[0-9]+$" TweetEditPrespective: properties: