twitter-openapi-typescript-generated 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +27 -4
- package/LICENSE +31 -0
- package/{LICENSE.txt → LICENSE.AGPL} +661 -661
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +14 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +83 -0
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/models/AdditionalMediaInfo.d.ts +32 -0
- package/dist/models/AdditionalMediaInfo.d.ts.map +1 -0
- package/dist/models/AdditionalMediaInfo.js +51 -0
- package/dist/models/AdditionalMediaInfo.js.map +1 -0
- package/dist/models/Callback.d.ts +32 -0
- package/dist/models/Callback.d.ts.map +1 -0
- package/dist/models/Callback.js +51 -0
- package/dist/models/Callback.js.map +1 -0
- package/dist/models/ClientEventInfo.d.ts +46 -0
- package/dist/models/ClientEventInfo.d.ts.map +1 -0
- package/dist/models/ClientEventInfo.js +55 -0
- package/dist/models/ClientEventInfo.js.map +1 -0
- package/dist/models/CoverCta.d.ts +66 -0
- package/dist/models/CoverCta.d.ts.map +1 -0
- package/dist/models/CoverCta.js +72 -0
- package/dist/models/CoverCta.js.map +1 -0
- package/dist/models/CtaClientEventInfo.d.ts +39 -0
- package/dist/models/CtaClientEventInfo.d.ts.map +1 -0
- package/dist/models/CtaClientEventInfo.js +57 -0
- package/dist/models/CtaClientEventInfo.js.map +1 -0
- package/dist/models/ExtMediaAvailability.d.ts +39 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -0
- package/dist/models/ExtMediaAvailability.js +57 -0
- package/dist/models/ExtMediaAvailability.js.map +1 -0
- package/dist/models/ExtendedEntities.d.ts +3 -3
- package/dist/models/ExtendedEntities.d.ts.map +1 -1
- package/dist/models/ExtendedEntities.js +3 -3
- package/dist/models/ExtendedEntities.js.map +1 -1
- package/dist/models/GetTweetResultByRestId200Response.d.ts +23 -0
- package/dist/models/GetTweetResultByRestId200Response.d.ts.map +1 -0
- package/dist/models/GetTweetResultByRestId200Response.js +57 -0
- package/dist/models/GetTweetResultByRestId200Response.js.map +1 -0
- package/dist/models/InstructionType.d.ts +1 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +2 -1
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +3 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +5 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemResult.d.ts +1 -1
- package/dist/models/ItemResult.d.ts.map +1 -1
- package/dist/models/ItemResult.js +1 -2
- package/dist/models/ItemResult.js.map +1 -1
- package/dist/models/Media.d.ts +15 -15
- package/dist/models/Media.d.ts.map +1 -1
- package/dist/models/Media.js +14 -7
- package/dist/models/Media.js.map +1 -1
- package/dist/models/MediaExtended.d.ts +131 -0
- package/dist/models/MediaExtended.d.ts.map +1 -0
- package/dist/models/MediaExtended.js +104 -0
- package/dist/models/MediaExtended.js.map +1 -0
- package/dist/models/MediaOriginalInfo.d.ts +5 -6
- package/dist/models/MediaOriginalInfo.d.ts.map +1 -1
- package/dist/models/MediaOriginalInfo.js +7 -4
- package/dist/models/MediaOriginalInfo.js.map +1 -1
- package/dist/models/MediaOriginalInfoFocusRect.d.ts +50 -0
- package/dist/models/MediaOriginalInfoFocusRect.d.ts.map +1 -0
- package/dist/models/MediaOriginalInfoFocusRect.js +60 -0
- package/dist/models/MediaOriginalInfoFocusRect.js.map +1 -0
- package/dist/models/MediaSize.d.ts +52 -0
- package/dist/models/MediaSize.d.ts.map +1 -0
- package/dist/models/MediaSize.js +64 -0
- package/dist/models/MediaSize.js.map +1 -0
- package/dist/models/MediaSizes.d.ts +51 -0
- package/dist/models/MediaSizes.d.ts.map +1 -0
- package/dist/models/MediaSizes.js +61 -0
- package/dist/models/MediaSizes.js.map +1 -0
- package/dist/models/MediaStats.d.ts +32 -0
- package/dist/models/MediaStats.d.ts.map +1 -0
- package/dist/models/MediaStats.js +51 -0
- package/dist/models/MediaStats.js.map +1 -0
- package/dist/models/MediaVideoInfo.d.ts +45 -0
- package/dist/models/MediaVideoInfo.d.ts.map +1 -0
- package/dist/models/MediaVideoInfo.js +58 -0
- package/dist/models/MediaVideoInfo.js.map +1 -0
- package/dist/models/MediaVideoInfoVariant.d.ts +44 -0
- package/dist/models/MediaVideoInfoVariant.d.ts.map +1 -0
- package/dist/models/MediaVideoInfoVariant.js +57 -0
- package/dist/models/MediaVideoInfoVariant.js.map +1 -0
- package/dist/models/ModuleEntry.d.ts +3 -4
- package/dist/models/ModuleEntry.d.ts.map +1 -1
- package/dist/models/ModuleEntry.js +3 -2
- package/dist/models/ModuleEntry.js.map +1 -1
- package/dist/models/SelfThread.d.ts +32 -0
- package/dist/models/SelfThread.d.ts.map +1 -0
- package/dist/models/SelfThread.js +51 -0
- package/dist/models/SelfThread.js.map +1 -0
- package/dist/models/Session.d.ts +8 -1
- package/dist/models/Session.d.ts.map +1 -1
- package/dist/models/Session.js +7 -1
- package/dist/models/Session.js.map +1 -1
- package/dist/models/Text.d.ts +39 -0
- package/dist/models/Text.d.ts.map +1 -0
- package/dist/models/Text.js +55 -0
- package/dist/models/Text.js.map +1 -0
- package/dist/models/TextEntity.d.ts +45 -0
- package/dist/models/TextEntity.d.ts.map +1 -0
- package/dist/models/TextEntity.js +58 -0
- package/dist/models/TextEntity.js.map +1 -0
- package/dist/models/TextEntityRef.d.ts +58 -0
- package/dist/models/TextEntityRef.d.ts.map +1 -0
- package/dist/models/TextEntityRef.js +69 -0
- package/dist/models/TextEntityRef.js.map +1 -0
- package/dist/models/TimelineCoverBehavior.d.ts +39 -0
- package/dist/models/TimelineCoverBehavior.d.ts.map +1 -0
- package/dist/models/TimelineCoverBehavior.js +57 -0
- package/dist/models/TimelineCoverBehavior.js.map +1 -0
- package/dist/models/TimelineHalfCover.d.ts +85 -0
- package/dist/models/TimelineHalfCover.d.ts.map +1 -0
- package/dist/models/TimelineHalfCover.js +84 -0
- package/dist/models/TimelineHalfCover.js.map +1 -0
- package/dist/models/TimelineShowCover.d.ts +47 -0
- package/dist/models/TimelineShowCover.d.ts.map +1 -0
- package/dist/models/TimelineShowCover.js +60 -0
- package/dist/models/TimelineShowCover.js.map +1 -0
- package/dist/models/TimelineTimelineItem.d.ts +3 -4
- package/dist/models/TimelineTimelineItem.d.ts.map +1 -1
- package/dist/models/TimelineTimelineItem.js +3 -2
- package/dist/models/TimelineTimelineItem.js.map +1 -1
- package/dist/models/TimelineTimelineModule.d.ts +9 -1
- package/dist/models/TimelineTimelineModule.d.ts.map +1 -1
- package/dist/models/TimelineTimelineModule.js +8 -1
- package/dist/models/TimelineTimelineModule.js.map +1 -1
- package/dist/models/TimelineUser.d.ts +10 -1
- package/dist/models/TimelineUser.d.ts.map +1 -1
- package/dist/models/TimelineUser.js +9 -1
- package/dist/models/TimelineUser.js.map +1 -1
- package/dist/models/Tweet.d.ts +11 -5
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +7 -7
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCardLegacy.d.ts +3 -3
- package/dist/models/TweetCardLegacy.d.ts.map +1 -1
- package/dist/models/TweetCardLegacy.js +3 -3
- package/dist/models/TweetCardLegacy.js.map +1 -1
- package/dist/models/TweetCardLegacyBindingValue.d.ts +39 -0
- package/dist/models/TweetCardLegacyBindingValue.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValue.js +55 -0
- package/dist/models/TweetCardLegacyBindingValue.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValueData.d.ts.map +1 -0
- package/dist/models/{TweetCardLegacyBindingValuesInnerValue.js → TweetCardLegacyBindingValueData.js} +12 -12
- package/dist/models/TweetCardLegacyBindingValueData.js.map +1 -0
- package/dist/models/TweetEditControl.d.ts +13 -0
- package/dist/models/TweetEditControl.d.ts.map +1 -1
- package/dist/models/TweetEditControl.js +5 -0
- package/dist/models/TweetEditControl.js.map +1 -1
- package/dist/models/TweetEditControlInitial.d.ts +50 -0
- package/dist/models/TweetEditControlInitial.d.ts.map +1 -0
- package/dist/models/TweetEditControlInitial.js +60 -0
- package/dist/models/TweetEditControlInitial.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +3 -3
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -3
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetResultByRestIdData.d.ts +33 -0
- package/dist/models/TweetResultByRestIdData.d.ts.map +1 -0
- package/dist/models/TweetResultByRestIdData.js +52 -0
- package/dist/models/TweetResultByRestIdData.js.map +1 -0
- package/dist/models/TweetResultByRestIdResponse.d.ts +33 -0
- package/dist/models/TweetResultByRestIdResponse.d.ts.map +1 -0
- package/dist/models/TweetResultByRestIdResponse.js +52 -0
- package/dist/models/TweetResultByRestIdResponse.js.map +1 -0
- package/dist/models/TweetView.d.ts +45 -0
- package/dist/models/TweetView.d.ts.map +1 -0
- package/dist/models/{TweetViews.js → TweetView.js} +20 -13
- package/dist/models/TweetView.js.map +1 -0
- package/dist/models/TypeName.d.ts +1 -0
- package/dist/models/TypeName.d.ts.map +1 -1
- package/dist/models/TypeName.js +1 -0
- package/dist/models/TypeName.js.map +1 -1
- package/dist/models/index.d.ts +27 -4
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +27 -4
- package/dist/models/index.js.map +1 -1
- package/package.json +2 -2
- package/src/apis/DefaultApi.ts +87 -0
- package/src/models/AdditionalMediaInfo.ts +66 -0
- package/src/models/Callback.ts +66 -0
- package/src/models/ClientEventInfo.ts +81 -0
- package/src/models/CoverCta.ts +130 -0
- package/src/models/CtaClientEventInfo.ts +76 -0
- package/src/models/ExtMediaAvailability.ts +75 -0
- package/src/models/ExtendedEntities.ts +9 -9
- package/src/models/GetTweetResultByRestId200Response.ts +65 -0
- package/src/models/InstructionType.ts +2 -1
- package/src/models/InstructionUnion.ts +12 -1
- package/src/models/ItemResult.ts +2 -3
- package/src/models/Media.ts +27 -17
- package/src/models/MediaExtended.ts +237 -0
- package/src/models/MediaOriginalInfo.ts +17 -8
- package/src/models/MediaOriginalInfoFocusRect.ts +93 -0
- package/src/models/MediaSize.ts +95 -0
- package/src/models/MediaSizes.ts +100 -0
- package/src/models/MediaStats.ts +66 -0
- package/src/models/MediaVideoInfo.ts +90 -0
- package/src/models/MediaVideoInfoVariant.ts +83 -0
- package/src/models/ModuleEntry.ts +10 -4
- package/src/models/{TweetLegacySelfThread.ts → SelfThread.ts} +9 -9
- package/src/models/Session.ts +11 -1
- package/src/models/Text.ts +82 -0
- package/src/models/TextEntity.ts +91 -0
- package/src/models/TextEntityRef.ts +102 -0
- package/src/models/TimelineCoverBehavior.ts +76 -0
- package/src/models/TimelineHalfCover.ts +157 -0
- package/src/models/TimelineShowCover.ts +103 -0
- package/src/models/TimelineTimelineItem.ts +10 -4
- package/src/models/TimelineTimelineModule.ts +12 -1
- package/src/models/TimelineUser.ts +13 -1
- package/src/models/Tweet.ts +21 -15
- package/src/models/TweetCardLegacy.ts +9 -9
- package/src/models/TweetCardLegacyBindingValue.ts +82 -0
- package/src/models/{TweetCardLegacyBindingValuesInnerValue.ts → TweetCardLegacyBindingValueData.ts} +12 -12
- package/src/models/TweetEditControl.ts +23 -0
- package/src/models/TweetEditControlInitial.ts +93 -0
- package/src/models/TweetLegacy.ts +9 -9
- package/src/models/TweetResultByRestIdData.ts +73 -0
- package/src/models/TweetResultByRestIdResponse.ts +73 -0
- package/src/models/{TweetViews.ts → TweetView.ts} +23 -12
- package/src/models/TypeName.ts +1 -0
- package/src/models/index.ts +27 -4
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/.vscode/tasks.json +3 -0
- package/twitter-openapi/LICENSE +31 -0
- package/twitter-openapi/{LICENSE.txt → LICENSE.AGPL} +3 -3
- package/twitter-openapi/README.md +4 -1
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +4 -2
- package/twitter-openapi/dist/compatible/paths/other.yaml +2 -0
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +94 -0
- package/twitter-openapi/dist/compatible/schemas/content.yaml +19 -6
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +130 -0
- package/twitter-openapi/dist/compatible/schemas/tweet.yaml +279 -94
- package/twitter-openapi/dist/compatible/schemas/typename.yaml +1 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +4 -2
- package/twitter-openapi/dist/docs/paths/other.yaml +2 -0
- package/twitter-openapi/dist/docs/paths/tweet.yaml +191 -0
- package/twitter-openapi/dist/docs/schemas/content.yaml +19 -6
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +130 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +279 -94
- package/twitter-openapi/dist/docs/schemas/typename.yaml +1 -0
- package/twitter-openapi/src/config/placeholder.json +34 -2
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +2 -2
- package/twitter-openapi/src/openapi/paths/other.yaml +2 -1
- package/twitter-openapi/src/openapi/paths/tweet.yaml +30 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +20 -7
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +134 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +306 -107
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/test/python/replace.py +23 -0
- package/twitter-openapi/test/python/test_serialize.py +191 -91
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +0 -39
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInner.js +0 -55
- package/dist/models/TweetCardLegacyBindingValuesInner.js.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +0 -50
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +0 -1
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +0 -1
- package/dist/models/TweetLegacySelfThread.d.ts +0 -32
- package/dist/models/TweetLegacySelfThread.d.ts.map +0 -1
- package/dist/models/TweetLegacySelfThread.js +0 -51
- package/dist/models/TweetLegacySelfThread.js.map +0 -1
- package/dist/models/TweetViews.d.ts +0 -38
- package/dist/models/TweetViews.d.ts.map +0 -1
- package/dist/models/TweetViews.js.map +0 -1
- package/src/models/TweetCardLegacyBindingValuesInner.ts +0 -82
|
@@ -121,7 +121,9 @@
|
|
|
121
121
|
"UsersByRestIds": {
|
|
122
122
|
"queryId": "GD4q8bBE2i6cqWw2iT74Gg",
|
|
123
123
|
"variables": {
|
|
124
|
-
"userIds": [
|
|
124
|
+
"userIds": [
|
|
125
|
+
"44196397"
|
|
126
|
+
]
|
|
125
127
|
},
|
|
126
128
|
"features": {
|
|
127
129
|
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
@@ -365,6 +367,36 @@
|
|
|
365
367
|
"responsive_web_enhance_cards_enabled": false
|
|
366
368
|
}
|
|
367
369
|
},
|
|
370
|
+
"TweetResultByRestId": {
|
|
371
|
+
"queryId": "0hWvDhmW8YQ-S_ib3azIrw",
|
|
372
|
+
"variables": {
|
|
373
|
+
"tweetId": "1691730070669517096",
|
|
374
|
+
"withCommunity": false,
|
|
375
|
+
"includePromotedContent": false,
|
|
376
|
+
"withVoice": false
|
|
377
|
+
},
|
|
378
|
+
"features": {
|
|
379
|
+
"creator_subscriptions_tweet_preview_api_enabled": true,
|
|
380
|
+
"tweetypie_unmention_optimization_enabled": true,
|
|
381
|
+
"responsive_web_edit_tweet_api_enabled": true,
|
|
382
|
+
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
383
|
+
"view_counts_everywhere_api_enabled": true,
|
|
384
|
+
"longform_notetweets_consumption_enabled": true,
|
|
385
|
+
"responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
386
|
+
"tweet_awards_web_tipping_enabled": false,
|
|
387
|
+
"freedom_of_speech_not_reach_fetch_enabled": true,
|
|
388
|
+
"standardized_nudges_misinfo": true,
|
|
389
|
+
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
|
|
390
|
+
"longform_notetweets_rich_text_read_enabled": true,
|
|
391
|
+
"longform_notetweets_inline_media_enabled": true,
|
|
392
|
+
"responsive_web_graphql_exclude_directive_enabled": true,
|
|
393
|
+
"verified_phone_label_enabled": false,
|
|
394
|
+
"responsive_web_media_download_video_enabled": false,
|
|
395
|
+
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
|
|
396
|
+
"responsive_web_graphql_timeline_navigation_enabled": true,
|
|
397
|
+
"responsive_web_enhance_cards_enabled": false
|
|
398
|
+
}
|
|
399
|
+
},
|
|
368
400
|
"SearchTimeline": {
|
|
369
401
|
"queryId": "L1VfBERtzc3VkBBT0YAYHA",
|
|
370
402
|
"variables": {
|
|
@@ -722,4 +754,4 @@
|
|
|
722
754
|
"include_ext_edit_control": true,
|
|
723
755
|
"ext": "mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe"
|
|
724
756
|
}
|
|
725
|
-
}
|
|
757
|
+
}
|
|
@@ -7,8 +7,8 @@ info:
|
|
|
7
7
|
contact:
|
|
8
8
|
email: yuki@yuki0311.com
|
|
9
9
|
license:
|
|
10
|
-
name:
|
|
11
|
-
url: https://
|
|
10
|
+
name: custom license or AGPL-3.0-or-later
|
|
11
|
+
url: https://github.com/fa0311/twitter-openapi#license
|
|
12
12
|
version: 0.0.1
|
|
13
13
|
servers:
|
|
14
14
|
- url: https://twitter.com/i/api
|
|
@@ -20,6 +20,22 @@ paths:
|
|
|
20
20
|
tags:
|
|
21
21
|
- "tweet"
|
|
22
22
|
|
|
23
|
+
/graphql/{pathQueryId}/TweetResultByRestId:
|
|
24
|
+
get:
|
|
25
|
+
operationId: getTweetResultByRestId
|
|
26
|
+
description: get TweetResultByRestId
|
|
27
|
+
responses:
|
|
28
|
+
"200":
|
|
29
|
+
description: Successful operation
|
|
30
|
+
content:
|
|
31
|
+
application/json:
|
|
32
|
+
schema:
|
|
33
|
+
oneOf:
|
|
34
|
+
- $ref: "#/components/schemas/TweetResultByRestIdResponse"
|
|
35
|
+
- $ref: "./../schemas/error.yaml#/components/schemas/Errors"
|
|
36
|
+
# tags:
|
|
37
|
+
# - "tweet"
|
|
38
|
+
|
|
23
39
|
/graphql/{pathQueryId}/Favoriters:
|
|
24
40
|
get:
|
|
25
41
|
operationId: getFavoriters
|
|
@@ -68,6 +84,20 @@ components:
|
|
|
68
84
|
threaded_conversation_with_injections_v2:
|
|
69
85
|
$ref: "./../schemas/timeline.yaml#/components/schemas/Timeline"
|
|
70
86
|
|
|
87
|
+
TweetResultByRestIdResponse:
|
|
88
|
+
required:
|
|
89
|
+
- "data"
|
|
90
|
+
properties:
|
|
91
|
+
data:
|
|
92
|
+
$ref: "#/components/schemas/TweetResultByRestIdData"
|
|
93
|
+
|
|
94
|
+
TweetResultByRestIdData:
|
|
95
|
+
required:
|
|
96
|
+
- "tweetResult"
|
|
97
|
+
properties:
|
|
98
|
+
tweetResult:
|
|
99
|
+
$ref: "./../schemas/content.yaml#/components/schemas/ItemResult"
|
|
100
|
+
|
|
71
101
|
TweetFavoritersResponse:
|
|
72
102
|
required:
|
|
73
103
|
- "data"
|
|
@@ -40,8 +40,7 @@ components:
|
|
|
40
40
|
itemContent:
|
|
41
41
|
$ref: "#/components/schemas/ItemContentUnion"
|
|
42
42
|
clientEventInfo:
|
|
43
|
-
|
|
44
|
-
additionalProperties: true # todo
|
|
43
|
+
$ref: "#/components/schemas/ClientEventInfo"
|
|
45
44
|
feedbackInfo:
|
|
46
45
|
type: object
|
|
47
46
|
additionalProperties: true # todo
|
|
@@ -60,7 +59,8 @@ components:
|
|
|
60
59
|
entryType:
|
|
61
60
|
$ref: "#/components/schemas/ContentEntryType" # TimelineTimelineCursor
|
|
62
61
|
displayType:
|
|
63
|
-
type: string
|
|
62
|
+
type: string
|
|
63
|
+
enum: [Vertical, VerticalConversation]
|
|
64
64
|
items:
|
|
65
65
|
type: array
|
|
66
66
|
items:
|
|
@@ -112,8 +112,7 @@ components:
|
|
|
112
112
|
- "itemContent"
|
|
113
113
|
properties:
|
|
114
114
|
clientEventInfo:
|
|
115
|
-
|
|
116
|
-
additionalProperties: true # todo
|
|
115
|
+
$ref: "#/components/schemas/ClientEventInfo"
|
|
117
116
|
itemContent:
|
|
118
117
|
$ref: "#/components/schemas/ItemContentUnion"
|
|
119
118
|
|
|
@@ -183,13 +182,13 @@ components:
|
|
|
183
182
|
SocialContext:
|
|
184
183
|
$ref: "#/components/schemas/SocialContext"
|
|
185
184
|
userDisplayType:
|
|
186
|
-
type: string
|
|
185
|
+
type: string
|
|
186
|
+
enum: [User, UserDetailed, SubscribableUser]
|
|
187
187
|
user_results:
|
|
188
188
|
$ref: "./user.yaml#/components/schemas/UserResults"
|
|
189
189
|
|
|
190
190
|
ItemResult:
|
|
191
191
|
required:
|
|
192
|
-
- "result"
|
|
193
192
|
properties:
|
|
194
193
|
__typename:
|
|
195
194
|
$ref: "./typename.yaml#/components/schemas/TypeName" # null | TimelineTweet
|
|
@@ -217,3 +216,17 @@ components:
|
|
|
217
216
|
__typename:
|
|
218
217
|
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineMessagePrompt
|
|
219
218
|
additionalProperties: true # todo
|
|
219
|
+
|
|
220
|
+
ClientEventInfo:
|
|
221
|
+
properties:
|
|
222
|
+
component:
|
|
223
|
+
# enum half_cover
|
|
224
|
+
type: string
|
|
225
|
+
element:
|
|
226
|
+
type: string
|
|
227
|
+
# august-2023-privacy-prompt-candidate
|
|
228
|
+
# pattern: "(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+"
|
|
229
|
+
# pattern: "^(january|february|march|april|may|june|july|august|september|october|november|december)-[0-9]{4}-([a-z]-)+[a-z]+$"
|
|
230
|
+
details:
|
|
231
|
+
type: object
|
|
232
|
+
additionalProperties: true # todo
|
|
@@ -15,6 +15,8 @@ components:
|
|
|
15
15
|
- $ref: "#/components/schemas/TimelineReplaceEntry"
|
|
16
16
|
- $ref: "#/components/schemas/TimelineShowAlert"
|
|
17
17
|
- $ref: "#/components/schemas/TimelineTerminateTimeline"
|
|
18
|
+
- $ref: "#/components/schemas/TimelineShowCover"
|
|
19
|
+
|
|
18
20
|
discriminator:
|
|
19
21
|
propertyName: type
|
|
20
22
|
mapping": # deprecated
|
|
@@ -25,6 +27,7 @@ components:
|
|
|
25
27
|
TimelineReplaceEntry: "#/components/schemas/TimelineReplaceEntry"
|
|
26
28
|
TimelineShowAlert: "#/components/schemas/TimelineShowAlert"
|
|
27
29
|
TimelineTerminateTimeline: "#/components/schemas/TimelineTerminateTimeline"
|
|
30
|
+
TimelineShowCover: "#/components/schemas/TimelineShowCover"
|
|
28
31
|
|
|
29
32
|
InstructionType:
|
|
30
33
|
type: string
|
|
@@ -37,6 +40,7 @@ components:
|
|
|
37
40
|
TimelineReplaceEntry,
|
|
38
41
|
TimelineShowAlert,
|
|
39
42
|
TimelineTerminateTimeline,
|
|
43
|
+
TimelineShowCover,
|
|
40
44
|
]
|
|
41
45
|
|
|
42
46
|
TimelineAddEntries:
|
|
@@ -162,3 +166,133 @@ components:
|
|
|
162
166
|
sortIndex:
|
|
163
167
|
type: string
|
|
164
168
|
pattern: "[0-9]+$"
|
|
169
|
+
|
|
170
|
+
TimelineShowCover:
|
|
171
|
+
required:
|
|
172
|
+
- type
|
|
173
|
+
- clientEventInfo
|
|
174
|
+
- cover
|
|
175
|
+
properties:
|
|
176
|
+
type:
|
|
177
|
+
$ref: "#/components/schemas/InstructionType" # TimelineShowCover
|
|
178
|
+
clientEventInfo:
|
|
179
|
+
$ref: "./content.yaml#/components/schemas/ClientEventInfo"
|
|
180
|
+
cover:
|
|
181
|
+
$ref: "#/components/schemas/TimelineHalfCover"
|
|
182
|
+
|
|
183
|
+
TimelineHalfCover:
|
|
184
|
+
required:
|
|
185
|
+
- type
|
|
186
|
+
- halfCoverDisplayType
|
|
187
|
+
- primaryText
|
|
188
|
+
- primaryCoverCta
|
|
189
|
+
- secondaryText
|
|
190
|
+
- impressionCallbacks
|
|
191
|
+
- dismissible
|
|
192
|
+
properties:
|
|
193
|
+
type:
|
|
194
|
+
type: string
|
|
195
|
+
enum: [TimelineHalfCover]
|
|
196
|
+
halfCoverDisplayType:
|
|
197
|
+
type: string
|
|
198
|
+
enum: [Cover]
|
|
199
|
+
primaryText:
|
|
200
|
+
$ref: "#/components/schemas/Text"
|
|
201
|
+
secondaryText:
|
|
202
|
+
$ref: "#/components/schemas/Text"
|
|
203
|
+
primaryCoverCta:
|
|
204
|
+
$ref: "#/components/schemas/CoverCta"
|
|
205
|
+
impressionCallbacks:
|
|
206
|
+
type: array
|
|
207
|
+
items:
|
|
208
|
+
$ref: "#/components/schemas/Callback"
|
|
209
|
+
dismissible:
|
|
210
|
+
type: boolean
|
|
211
|
+
|
|
212
|
+
Text:
|
|
213
|
+
required:
|
|
214
|
+
- text
|
|
215
|
+
- entities
|
|
216
|
+
properties:
|
|
217
|
+
text:
|
|
218
|
+
type: string
|
|
219
|
+
entities:
|
|
220
|
+
type: array
|
|
221
|
+
items:
|
|
222
|
+
$ref: "#/components/schemas/TextEntity"
|
|
223
|
+
|
|
224
|
+
TextEntity:
|
|
225
|
+
required:
|
|
226
|
+
- fromIndex
|
|
227
|
+
- toIndex
|
|
228
|
+
- ref
|
|
229
|
+
properties:
|
|
230
|
+
fromIndex:
|
|
231
|
+
type: integer
|
|
232
|
+
toIndex:
|
|
233
|
+
type: integer
|
|
234
|
+
ref:
|
|
235
|
+
$ref: "#/components/schemas/TextEntityRef"
|
|
236
|
+
|
|
237
|
+
TextEntityRef:
|
|
238
|
+
required:
|
|
239
|
+
- type
|
|
240
|
+
- url
|
|
241
|
+
- urlType
|
|
242
|
+
properties:
|
|
243
|
+
type:
|
|
244
|
+
type: string
|
|
245
|
+
enum: [TimelineUrl]
|
|
246
|
+
url:
|
|
247
|
+
type: string
|
|
248
|
+
format: uri
|
|
249
|
+
urlType:
|
|
250
|
+
type: string
|
|
251
|
+
enum: [ExternalUrl]
|
|
252
|
+
|
|
253
|
+
CoverCta:
|
|
254
|
+
required:
|
|
255
|
+
- text
|
|
256
|
+
- ctaBehavior
|
|
257
|
+
- callbacks
|
|
258
|
+
- clientEventInfo
|
|
259
|
+
- buttonStyle
|
|
260
|
+
properties:
|
|
261
|
+
Text:
|
|
262
|
+
type: string
|
|
263
|
+
ctaBehavior:
|
|
264
|
+
$ref: "#/components/schemas/TimelineCoverBehavior"
|
|
265
|
+
callbacks:
|
|
266
|
+
type: array
|
|
267
|
+
items:
|
|
268
|
+
$ref: "#/components/schemas/Callback"
|
|
269
|
+
clientEventInfo:
|
|
270
|
+
$ref: "#/components/schemas/CtaClientEventInfo"
|
|
271
|
+
buttonStyle:
|
|
272
|
+
type: string
|
|
273
|
+
enum: ["Primary"]
|
|
274
|
+
|
|
275
|
+
TimelineCoverBehavior:
|
|
276
|
+
required:
|
|
277
|
+
- type
|
|
278
|
+
properties:
|
|
279
|
+
type:
|
|
280
|
+
type: string
|
|
281
|
+
enum: [TimelineCoverBehaviorDismiss]
|
|
282
|
+
|
|
283
|
+
Callback:
|
|
284
|
+
required:
|
|
285
|
+
- endpoint
|
|
286
|
+
properties:
|
|
287
|
+
endpoint:
|
|
288
|
+
type: string
|
|
289
|
+
format: uri
|
|
290
|
+
# pattern: '^/1\.1/[a-z]+/[a-z]+\.json\?[a-z_]+=[a-z0-9-]+(&[a-z_]+=[a-z0-9-]+)+?$' #/1.1/onboarding/fatigue.json?{params}
|
|
291
|
+
|
|
292
|
+
CtaClientEventInfo:
|
|
293
|
+
required:
|
|
294
|
+
- action
|
|
295
|
+
properties:
|
|
296
|
+
action:
|
|
297
|
+
type: string
|
|
298
|
+
enum: [primary_cta]
|