From 8917dcf30dbf1399d1e3a3de12d7d8d7764a7932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Fri, 1 Sep 2023 15:17:46 +0900 Subject: [PATCH] build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/schemas/content.yaml | 1 + dist/compatible/schemas/tweet.yaml | 28 ++++++++++++++++++++++++++++ dist/docs/schemas/content.yaml | 1 + dist/docs/schemas/tweet.yaml | 28 ++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+) diff --git a/dist/compatible/schemas/content.yaml b/dist/compatible/schemas/content.yaml index da479f4..ccadf95 100644 --- a/dist/compatible/schemas/content.yaml +++ b/dist/compatible/schemas/content.yaml @@ -191,6 +191,7 @@ components: enum: - User - UserDetailed + - SubscribableUser type: string user_results: $ref: ./user.yaml#/components/schemas/UserResults diff --git a/dist/compatible/schemas/tweet.yaml b/dist/compatible/schemas/tweet.yaml index 5fe8e20..c115145 100644 --- a/dist/compatible/schemas/tweet.yaml +++ b/dist/compatible/schemas/tweet.yaml @@ -260,6 +260,8 @@ components: rest_id: pattern: ^[0-9]+$ type: string + source: + type: string unmention_data: additionalProperties: true type: object @@ -270,6 +272,7 @@ components: - core - edit_control - is_translatable + - source - legacy - views TweetCard: @@ -314,6 +317,26 @@ components: required: - type TweetEditControl: + properties: + edit_control_initial: + $ref: '#/components/schemas/TweetEditControlInitial' + edit_tweet_ids: + items: + pattern: ^[0-9]+$ + type: string + type: array + editable_until_msecs: + pattern: ^[0-9]+$ + type: string + edits_remaining: + pattern: ^[0-9]+$ + type: string + initial_tweet_id: + pattern: ^[0-9]+$ + type: string + is_edit_eligible: + type: boolean + TweetEditControlInitial: properties: edit_tweet_ids: items: @@ -328,6 +351,11 @@ components: type: string is_edit_eligible: type: boolean + required: + - edit_tweet_ids + - editable_until_msecs + - is_edit_eligible + - edits_remaining TweetEditPrespective: properties: favorited: diff --git a/dist/docs/schemas/content.yaml b/dist/docs/schemas/content.yaml index da479f4..ccadf95 100644 --- a/dist/docs/schemas/content.yaml +++ b/dist/docs/schemas/content.yaml @@ -191,6 +191,7 @@ components: enum: - User - UserDetailed + - SubscribableUser type: string user_results: $ref: ./user.yaml#/components/schemas/UserResults diff --git a/dist/docs/schemas/tweet.yaml b/dist/docs/schemas/tweet.yaml index 5fe8e20..c115145 100644 --- a/dist/docs/schemas/tweet.yaml +++ b/dist/docs/schemas/tweet.yaml @@ -260,6 +260,8 @@ components: rest_id: pattern: ^[0-9]+$ type: string + source: + type: string unmention_data: additionalProperties: true type: object @@ -270,6 +272,7 @@ components: - core - edit_control - is_translatable + - source - legacy - views TweetCard: @@ -314,6 +317,26 @@ components: required: - type TweetEditControl: + properties: + edit_control_initial: + $ref: '#/components/schemas/TweetEditControlInitial' + edit_tweet_ids: + items: + pattern: ^[0-9]+$ + type: string + type: array + editable_until_msecs: + pattern: ^[0-9]+$ + type: string + edits_remaining: + pattern: ^[0-9]+$ + type: string + initial_tweet_id: + pattern: ^[0-9]+$ + type: string + is_edit_eligible: + type: boolean + TweetEditControlInitial: properties: edit_tweet_ids: items: @@ -328,6 +351,11 @@ components: type: string is_edit_eligible: type: boolean + required: + - edit_tweet_ids + - editable_until_msecs + - is_edit_eligible + - edits_remaining TweetEditPrespective: properties: favorited: