From a7ac4ea34cf4d9361290c333075e776848c25433 Mon Sep 17 00:00:00 2001 From: chriskd Date: Tue, 12 Nov 2024 17:28:52 -0500 Subject: [PATCH 1/5] Remove 'override_verified_year' from required properties in user schema - 'override_verified_year' is not always present in UserVerificationInfoReason --- src/openapi/schemas/user.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openapi/schemas/user.yaml b/src/openapi/schemas/user.yaml index f249210..5358734 100644 --- a/src/openapi/schemas/user.yaml +++ b/src/openapi/schemas/user.yaml @@ -146,7 +146,6 @@ components: required: - "description" - "verified_since_msec" - - "override_verified_year" properties: description: $ref: "#/components/schemas/UserVerificationInfoReasonDescription" From 20658f5989533819d6d3d3e88319e6b42b356503 Mon Sep 17 00:00:00 2001 From: chriskd Date: Tue, 12 Nov 2024 17:39:17 -0500 Subject: [PATCH 2/5] Update BirdwatchPivot required properties in tweet.yaml Removing 'footer', 'note', 'subtitle', and 'shorttitle' from the BirdwatchPivot required properties - these fields are not present when a tweet has proposed notes, but no consensus on a winner --- src/openapi/schemas/tweet.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 266677d..9a4d865 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -649,11 +649,7 @@ components: BirdwatchPivot: required: - "destinationUrl" - - "footer" - - "note" - - "subtitle" - "title" - - "shorttitle" - "iconType" properties: destinationUrl: From a6c2dc9c3d462cf075753d01eb5a8abe54693e3f Mon Sep 17 00:00:00 2001 From: chriskd Date: Tue, 12 Nov 2024 17:49:52 -0500 Subject: [PATCH 3/5] Add 'Tentative' to BirdwatchPivot visualStyle enum This visual style is set when a CallToAction is active for the BirdwatchPivot --- src/openapi/schemas/tweet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 9a4d865..534a468 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -667,7 +667,7 @@ components: type: string visualStyle: type: string - enum: [Default] + enum: [Default, Tentative] iconType: type: string enum: [BirdwatchV1Icon] From 583ccacb5e608d39a9876b394a302fe94c69d365 Mon Sep 17 00:00:00 2001 From: chriskd Date: Tue, 12 Nov 2024 17:57:29 -0500 Subject: [PATCH 4/5] Update typename.yaml, CommunityData 'join_policy' and 'invites_policy' to support additional values --- src/openapi/schemas/tweet.yaml | 4 ++-- src/openapi/schemas/typename.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index 534a468..b232d80 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -488,10 +488,10 @@ components: $ref: "#/components/schemas/CommunityJoinRequestsResult" join_policy: type: string - enum: [Open] + enum: [Open, RestrictedJoinRequestsRequireModeratorApproval] invites_policy: type: string - enum: [MemberInvitesAllowed] + enum: [MemberInvitesAllowed, ModeratorInvitesAllowed] is_pinned: type: boolean members_facepile_results: diff --git a/src/openapi/schemas/typename.yaml b/src/openapi/schemas/typename.yaml index 1b34fc3..0384bdc 100644 --- a/src/openapi/schemas/typename.yaml +++ b/src/openapi/schemas/typename.yaml @@ -27,6 +27,7 @@ components: Community, CommunityDeleteActionUnavailable, CommunityJoinAction, + CommunityJoinActionUnavailable, CommunityLeaveActionUnavailable, CommunityTweetPinActionUnavailable, CommunityTweetUnpinActionUnavailable, From 42a5a20d67e8f7001aa8c1c6544d234226f817a5 Mon Sep 17 00:00:00 2001 From: chriskd Date: Tue, 12 Nov 2024 19:12:25 -0500 Subject: [PATCH 5/5] Add 'Admin' to AuthorCommunityRelationship 'role' enum --- src/openapi/schemas/tweet.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openapi/schemas/tweet.yaml b/src/openapi/schemas/tweet.yaml index b232d80..9d8d3f6 100644 --- a/src/openapi/schemas/tweet.yaml +++ b/src/openapi/schemas/tweet.yaml @@ -426,7 +426,7 @@ components: $ref: "#/components/schemas/Community" role: type: string - enum: [Member, Moderator] + enum: [Member, Moderator, Admin] user_results: $ref: "user.yaml#/components/schemas/UserResults" @@ -964,6 +964,7 @@ components: - "stale_tweet" - "community_tweet_non_member_public_community" - "community_tweet_non_member_closed_community" + - "blocked_viewer" place: additionalProperties: true # todo