twitter-openapi-typescript-generated 0.0.12 → 0.0.13
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 +13 -0
- package/README.md +2 -2
- package/dist/models/BirdwatchEntity.d.ts +45 -0
- package/dist/models/BirdwatchEntity.d.ts.map +1 -0
- package/dist/models/BirdwatchEntity.js +58 -0
- package/dist/models/BirdwatchEntity.js.map +1 -0
- package/dist/models/BirdwatchEntityRef.d.ts +58 -0
- package/dist/models/BirdwatchEntityRef.d.ts.map +1 -0
- package/dist/models/BirdwatchEntityRef.js +69 -0
- package/dist/models/BirdwatchEntityRef.js.map +1 -0
- package/dist/models/BirdwatchPivot.d.ts +91 -0
- package/dist/models/BirdwatchPivot.d.ts.map +1 -0
- package/dist/models/BirdwatchPivot.js +87 -0
- package/dist/models/BirdwatchPivot.js.map +1 -0
- package/dist/models/BirdwatchPivotFooter.d.ts +39 -0
- package/dist/models/BirdwatchPivotFooter.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotFooter.js +55 -0
- package/dist/models/BirdwatchPivotFooter.js.map +1 -0
- package/dist/models/BirdwatchPivotNote.d.ts +32 -0
- package/dist/models/BirdwatchPivotNote.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotNote.js +51 -0
- package/dist/models/BirdwatchPivotNote.js.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts +39 -0
- package/dist/models/BirdwatchPivotSubtitle.d.ts.map +1 -0
- package/dist/models/BirdwatchPivotSubtitle.js +55 -0
- package/dist/models/BirdwatchPivotSubtitle.js.map +1 -0
- package/dist/models/ContentItemType.d.ts +1 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +2 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/ExtMediaAvailability.d.ts +7 -0
- package/dist/models/ExtMediaAvailability.d.ts.map +1 -1
- package/dist/models/ExtMediaAvailability.js +4 -1
- package/dist/models/ExtMediaAvailability.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +3 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +5 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/NoteTweet.d.ts +39 -0
- package/dist/models/NoteTweet.d.ts.map +1 -0
- package/dist/models/NoteTweet.js +55 -0
- package/dist/models/NoteTweet.js.map +1 -0
- package/dist/models/NoteTweetResult.d.ts +33 -0
- package/dist/models/NoteTweetResult.d.ts.map +1 -0
- package/dist/models/NoteTweetResult.js +52 -0
- package/dist/models/NoteTweetResult.js.map +1 -0
- package/dist/models/NoteTweetResultData.d.ts +59 -0
- package/dist/models/NoteTweetResultData.d.ts.map +1 -0
- package/dist/models/NoteTweetResultData.js +65 -0
- package/dist/models/NoteTweetResultData.js.map +1 -0
- package/dist/models/NoteTweetResultMedia.d.ts +32 -0
- package/dist/models/NoteTweetResultMedia.d.ts.map +1 -0
- package/dist/models/NoteTweetResultMedia.js +51 -0
- package/dist/models/NoteTweetResultMedia.js.map +1 -0
- package/dist/models/NoteTweetResultRichText.d.ts +33 -0
- package/dist/models/NoteTweetResultRichText.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichText.js +52 -0
- package/dist/models/NoteTweetResultRichText.js.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts +52 -0
- package/dist/models/NoteTweetResultRichTextTag.d.ts.map +1 -0
- package/dist/models/NoteTweetResultRichTextTag.js +64 -0
- package/dist/models/NoteTweetResultRichTextTag.js.map +1 -0
- package/dist/models/TimelineCommunity.d.ts +34 -0
- package/dist/models/TimelineCommunity.d.ts.map +1 -0
- package/dist/models/TimelineCommunity.js +59 -0
- package/dist/models/TimelineCommunity.js.map +1 -0
- package/dist/models/Tweet.d.ts +20 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +8 -0
- package/dist/models/Tweet.js.map +1 -1
- 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 +13 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +13 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +2 -3
- package/src/models/BirdwatchEntity.ts +91 -0
- package/src/models/BirdwatchEntityRef.ts +102 -0
- package/src/models/BirdwatchPivot.ts +165 -0
- package/src/models/BirdwatchPivotFooter.ts +82 -0
- package/src/models/BirdwatchPivotNote.ts +66 -0
- package/src/models/BirdwatchPivotSubtitle.ts +82 -0
- package/src/models/ContentItemType.ts +2 -1
- package/src/models/ExtMediaAvailability.ts +10 -1
- package/src/models/ItemContentUnion.ts +12 -1
- package/src/models/NoteTweet.ts +82 -0
- package/src/models/NoteTweetResult.ts +73 -0
- package/src/models/NoteTweetResultData.ts +119 -0
- package/src/models/NoteTweetResultMedia.ts +66 -0
- package/src/models/NoteTweetResultRichText.ts +73 -0
- package/src/models/NoteTweetResultRichTextTag.ts +95 -0
- package/src/models/TimelineCommunity.ts +75 -0
- package/src/models/Tweet.ts +36 -0
- package/src/models/TypeName.ts +1 -0
- package/src/models/index.ts +13 -0
- package/tools/openapi-generator-config.yaml +1 -1
- package/twitter-openapi/README.md +2 -0
- package/twitter-openapi/dist/compatible/openapi-3.0.yaml +172 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +172 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +9 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +168 -1
- package/twitter-openapi/src/openapi/schemas/typename.yaml +1 -0
- package/twitter-openapi/test/python/test_serialize.py +24 -0
- package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
- package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
package/src/models/Tweet.ts
CHANGED
|
@@ -13,12 +13,24 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { BirdwatchPivot } from './BirdwatchPivot';
|
|
17
|
+
import {
|
|
18
|
+
BirdwatchPivotFromJSON,
|
|
19
|
+
BirdwatchPivotFromJSONTyped,
|
|
20
|
+
BirdwatchPivotToJSON,
|
|
21
|
+
} from './BirdwatchPivot';
|
|
16
22
|
import type { ItemResult } from './ItemResult';
|
|
17
23
|
import {
|
|
18
24
|
ItemResultFromJSON,
|
|
19
25
|
ItemResultFromJSONTyped,
|
|
20
26
|
ItemResultToJSON,
|
|
21
27
|
} from './ItemResult';
|
|
28
|
+
import type { NoteTweet } from './NoteTweet';
|
|
29
|
+
import {
|
|
30
|
+
NoteTweetFromJSON,
|
|
31
|
+
NoteTweetFromJSONTyped,
|
|
32
|
+
NoteTweetToJSON,
|
|
33
|
+
} from './NoteTweet';
|
|
22
34
|
import type { TweetCard } from './TweetCard';
|
|
23
35
|
import {
|
|
24
36
|
TweetCardFromJSON,
|
|
@@ -74,6 +86,12 @@ export interface Tweet {
|
|
|
74
86
|
* @memberof Tweet
|
|
75
87
|
*/
|
|
76
88
|
typename?: TypeName;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {BirdwatchPivot}
|
|
92
|
+
* @memberof Tweet
|
|
93
|
+
*/
|
|
94
|
+
birdwatchPivot?: BirdwatchPivot;
|
|
77
95
|
/**
|
|
78
96
|
*
|
|
79
97
|
* @type {TweetCard}
|
|
@@ -110,6 +128,18 @@ export interface Tweet {
|
|
|
110
128
|
* @memberof Tweet
|
|
111
129
|
*/
|
|
112
130
|
legacy?: TweetLegacy;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {NoteTweet}
|
|
134
|
+
* @memberof Tweet
|
|
135
|
+
*/
|
|
136
|
+
noteTweet?: NoteTweet;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {object}
|
|
140
|
+
* @memberof Tweet
|
|
141
|
+
*/
|
|
142
|
+
quickPromoteEligibility?: object;
|
|
113
143
|
/**
|
|
114
144
|
*
|
|
115
145
|
* @type {ItemResult}
|
|
@@ -166,12 +196,15 @@ export function TweetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Twe
|
|
|
166
196
|
return {
|
|
167
197
|
|
|
168
198
|
'typename': !exists(json, '__typename') ? undefined : TypeNameFromJSON(json['__typename']),
|
|
199
|
+
'birdwatchPivot': !exists(json, 'birdwatch_pivot') ? undefined : BirdwatchPivotFromJSON(json['birdwatch_pivot']),
|
|
169
200
|
'card': !exists(json, 'card') ? undefined : TweetCardFromJSON(json['card']),
|
|
170
201
|
'core': !exists(json, 'core') ? undefined : UserResultCoreFromJSON(json['core']),
|
|
171
202
|
'editControl': TweetEditControlFromJSON(json['edit_control']),
|
|
172
203
|
'editPrespective': !exists(json, 'edit_prespective') ? undefined : TweetEditPrespectiveFromJSON(json['edit_prespective']),
|
|
173
204
|
'isTranslatable': json['is_translatable'],
|
|
174
205
|
'legacy': !exists(json, 'legacy') ? undefined : TweetLegacyFromJSON(json['legacy']),
|
|
206
|
+
'noteTweet': !exists(json, 'note_tweet') ? undefined : NoteTweetFromJSON(json['note_tweet']),
|
|
207
|
+
'quickPromoteEligibility': !exists(json, 'quick_promote_eligibility') ? undefined : json['quick_promote_eligibility'],
|
|
175
208
|
'quotedStatusResult': !exists(json, 'quoted_status_result') ? undefined : ItemResultFromJSON(json['quoted_status_result']),
|
|
176
209
|
'restId': json['rest_id'],
|
|
177
210
|
'source': !exists(json, 'source') ? undefined : json['source'],
|
|
@@ -190,12 +223,15 @@ export function TweetToJSON(value?: Tweet | null): any {
|
|
|
190
223
|
return {
|
|
191
224
|
|
|
192
225
|
'__typename': TypeNameToJSON(value.typename),
|
|
226
|
+
'birdwatch_pivot': BirdwatchPivotToJSON(value.birdwatchPivot),
|
|
193
227
|
'card': TweetCardToJSON(value.card),
|
|
194
228
|
'core': UserResultCoreToJSON(value.core),
|
|
195
229
|
'edit_control': TweetEditControlToJSON(value.editControl),
|
|
196
230
|
'edit_prespective': TweetEditPrespectiveToJSON(value.editPrespective),
|
|
197
231
|
'is_translatable': value.isTranslatable,
|
|
198
232
|
'legacy': TweetLegacyToJSON(value.legacy),
|
|
233
|
+
'note_tweet': NoteTweetToJSON(value.noteTweet),
|
|
234
|
+
'quick_promote_eligibility': value.quickPromoteEligibility,
|
|
199
235
|
'quoted_status_result': ItemResultToJSON(value.quotedStatusResult),
|
|
200
236
|
'rest_id': value.restId,
|
|
201
237
|
'source': value.source,
|
package/src/models/TypeName.ts
CHANGED
|
@@ -27,6 +27,7 @@ export const TypeName = {
|
|
|
27
27
|
TweetTombstone: 'TweetTombstone',
|
|
28
28
|
TimelinePrompt: 'TimelinePrompt',
|
|
29
29
|
TimelineMessagePrompt: 'TimelineMessagePrompt',
|
|
30
|
+
TimelineCommunity: 'TimelineCommunity',
|
|
30
31
|
TweetUnavailable: 'TweetUnavailable',
|
|
31
32
|
Tweet: 'Tweet',
|
|
32
33
|
User: 'User',
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AdditionalMediaInfo';
|
|
4
|
+
export * from './BirdwatchEntity';
|
|
5
|
+
export * from './BirdwatchEntityRef';
|
|
6
|
+
export * from './BirdwatchPivot';
|
|
7
|
+
export * from './BirdwatchPivotFooter';
|
|
8
|
+
export * from './BirdwatchPivotNote';
|
|
9
|
+
export * from './BirdwatchPivotSubtitle';
|
|
4
10
|
export * from './BookmarksResponse';
|
|
5
11
|
export * from './BookmarksResponseData';
|
|
6
12
|
export * from './BookmarksTimeline';
|
|
@@ -79,6 +85,12 @@ export * from './MediaVideoInfoVariant';
|
|
|
79
85
|
export * from './ModelError';
|
|
80
86
|
export * from './ModuleEntry';
|
|
81
87
|
export * from './ModuleItem';
|
|
88
|
+
export * from './NoteTweet';
|
|
89
|
+
export * from './NoteTweetResult';
|
|
90
|
+
export * from './NoteTweetResultData';
|
|
91
|
+
export * from './NoteTweetResultMedia';
|
|
92
|
+
export * from './NoteTweetResultRichText';
|
|
93
|
+
export * from './NoteTweetResultRichTextTag';
|
|
82
94
|
export * from './OneFactorLoginEligibility';
|
|
83
95
|
export * from './Other200Response';
|
|
84
96
|
export * from './OtherResponse';
|
|
@@ -119,6 +131,7 @@ export * from './TimelineAddEntries';
|
|
|
119
131
|
export * from './TimelineAddEntry';
|
|
120
132
|
export * from './TimelineAddToModule';
|
|
121
133
|
export * from './TimelineClearCache';
|
|
134
|
+
export * from './TimelineCommunity';
|
|
122
135
|
export * from './TimelineCoverBehavior';
|
|
123
136
|
export * from './TimelineHalfCover';
|
|
124
137
|
export * from './TimelineMessagePrompt';
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Twitter OpenAPI(Swagger) specification
|
|
4
4
|
|
|
5
|
+
[issues](https://github.com/fa0311/twitter-openapi/issues) / [discussions](https://github.com/fa0311/twitter-openapi/discussions)
|
|
6
|
+
|
|
5
7
|
- [Python](https://github.com/fa0311/twitter_openapi_python)
|
|
6
8
|
- [Dart](https://github.com/fa0311/twitter_openapi_dart)
|
|
7
9
|
- [TypeScript](https://github.com/fa0311/twitter-openapi-typescript)
|
|
@@ -6,6 +6,95 @@ components:
|
|
|
6
6
|
type: boolean
|
|
7
7
|
required:
|
|
8
8
|
- monetizable
|
|
9
|
+
BirdwatchEntity:
|
|
10
|
+
properties:
|
|
11
|
+
fromIndex:
|
|
12
|
+
type: integer
|
|
13
|
+
ref:
|
|
14
|
+
$ref: '#/components/schemas/BirdwatchEntityRef'
|
|
15
|
+
toIndex:
|
|
16
|
+
type: integer
|
|
17
|
+
required:
|
|
18
|
+
- fromIndex
|
|
19
|
+
- toIndex
|
|
20
|
+
- ref
|
|
21
|
+
BirdwatchEntityRef:
|
|
22
|
+
properties:
|
|
23
|
+
type:
|
|
24
|
+
enum:
|
|
25
|
+
- TimelineUrl
|
|
26
|
+
type: string
|
|
27
|
+
url:
|
|
28
|
+
format: uri
|
|
29
|
+
type: string
|
|
30
|
+
urlType:
|
|
31
|
+
enum:
|
|
32
|
+
- ExternalUrl
|
|
33
|
+
type: string
|
|
34
|
+
required:
|
|
35
|
+
- type
|
|
36
|
+
- url
|
|
37
|
+
- urlType
|
|
38
|
+
BirdwatchPivot:
|
|
39
|
+
properties:
|
|
40
|
+
destinationUrl:
|
|
41
|
+
format: uri
|
|
42
|
+
type: string
|
|
43
|
+
footer:
|
|
44
|
+
$ref: '#/components/schemas/BirdwatchPivotFooter'
|
|
45
|
+
iconType:
|
|
46
|
+
enum:
|
|
47
|
+
- BirdwatchV1Icon
|
|
48
|
+
type: string
|
|
49
|
+
note:
|
|
50
|
+
$ref: '#/components/schemas/BirdwatchPivotNote'
|
|
51
|
+
shorttitle:
|
|
52
|
+
type: string
|
|
53
|
+
subtitle:
|
|
54
|
+
$ref: '#/components/schemas/BirdwatchPivotSubtitle'
|
|
55
|
+
title:
|
|
56
|
+
type: string
|
|
57
|
+
visualStyle:
|
|
58
|
+
enum:
|
|
59
|
+
- Default
|
|
60
|
+
type: string
|
|
61
|
+
required:
|
|
62
|
+
- destinationUrl
|
|
63
|
+
- footer
|
|
64
|
+
- note
|
|
65
|
+
- subtitle
|
|
66
|
+
- title
|
|
67
|
+
- shorttitle
|
|
68
|
+
- iconType
|
|
69
|
+
BirdwatchPivotFooter:
|
|
70
|
+
properties:
|
|
71
|
+
entities:
|
|
72
|
+
items:
|
|
73
|
+
$ref: '#/components/schemas/BirdwatchEntity'
|
|
74
|
+
type: array
|
|
75
|
+
text:
|
|
76
|
+
type: string
|
|
77
|
+
required:
|
|
78
|
+
- text
|
|
79
|
+
- entities
|
|
80
|
+
BirdwatchPivotNote:
|
|
81
|
+
properties:
|
|
82
|
+
rest_id:
|
|
83
|
+
pattern: ^[0-9]+$
|
|
84
|
+
type: string
|
|
85
|
+
required:
|
|
86
|
+
- rest_id
|
|
87
|
+
BirdwatchPivotSubtitle:
|
|
88
|
+
properties:
|
|
89
|
+
entities:
|
|
90
|
+
items:
|
|
91
|
+
$ref: '#/components/schemas/BirdwatchEntity'
|
|
92
|
+
type: array
|
|
93
|
+
text:
|
|
94
|
+
type: string
|
|
95
|
+
required:
|
|
96
|
+
- text
|
|
97
|
+
- entities
|
|
9
98
|
BookmarksResponse:
|
|
10
99
|
properties:
|
|
11
100
|
data:
|
|
@@ -60,6 +149,7 @@ components:
|
|
|
60
149
|
- TimelineUser
|
|
61
150
|
- TimelinePrompt
|
|
62
151
|
- TimelineMessagePrompt
|
|
152
|
+
- TimelineCommunity
|
|
63
153
|
type: string
|
|
64
154
|
ContentUnion:
|
|
65
155
|
discriminator:
|
|
@@ -427,6 +517,7 @@ components:
|
|
|
427
517
|
ItemContentUnion:
|
|
428
518
|
discriminator:
|
|
429
519
|
mapping":
|
|
520
|
+
TimelineCommunity: '#/components/schemas/TimelineCommunity'
|
|
430
521
|
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
|
431
522
|
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
|
432
523
|
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
|
@@ -439,6 +530,7 @@ components:
|
|
|
439
530
|
- $ref: '#/components/schemas/TimelineUser'
|
|
440
531
|
- $ref: '#/components/schemas/TimelinePrompt'
|
|
441
532
|
- $ref: '#/components/schemas/TimelineMessagePrompt'
|
|
533
|
+
- $ref: '#/components/schemas/TimelineCommunity'
|
|
442
534
|
ItemResult:
|
|
443
535
|
properties:
|
|
444
536
|
__typename:
|
|
@@ -679,6 +771,71 @@ components:
|
|
|
679
771
|
required:
|
|
680
772
|
- entryId
|
|
681
773
|
- item
|
|
774
|
+
NoteTweet:
|
|
775
|
+
properties:
|
|
776
|
+
is_expandable:
|
|
777
|
+
type: boolean
|
|
778
|
+
note_tweet_results:
|
|
779
|
+
$ref: '#/components/schemas/NoteTweetResult'
|
|
780
|
+
required:
|
|
781
|
+
- is_expandable
|
|
782
|
+
- note_tweet_results
|
|
783
|
+
NoteTweetResult:
|
|
784
|
+
properties:
|
|
785
|
+
result:
|
|
786
|
+
$ref: '#/components/schemas/NoteTweetResultData'
|
|
787
|
+
required:
|
|
788
|
+
- result
|
|
789
|
+
NoteTweetResultData:
|
|
790
|
+
properties:
|
|
791
|
+
entity_set:
|
|
792
|
+
$ref: '#/components/schemas/Entities'
|
|
793
|
+
id:
|
|
794
|
+
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
|
|
795
|
+
type: string
|
|
796
|
+
media:
|
|
797
|
+
$ref: '#/components/schemas/NoteTweetResultMedia'
|
|
798
|
+
richtext:
|
|
799
|
+
$ref: '#/components/schemas/NoteTweetResultRichText'
|
|
800
|
+
text:
|
|
801
|
+
type: string
|
|
802
|
+
required:
|
|
803
|
+
- entity_set
|
|
804
|
+
- id
|
|
805
|
+
- text
|
|
806
|
+
NoteTweetResultMedia:
|
|
807
|
+
properties:
|
|
808
|
+
inline_media:
|
|
809
|
+
items:
|
|
810
|
+
type: object
|
|
811
|
+
type: array
|
|
812
|
+
required:
|
|
813
|
+
- inline_media
|
|
814
|
+
NoteTweetResultRichText:
|
|
815
|
+
properties:
|
|
816
|
+
richtext_tags:
|
|
817
|
+
items:
|
|
818
|
+
$ref: '#/components/schemas/NoteTweetResultRichTextTag'
|
|
819
|
+
type: array
|
|
820
|
+
required:
|
|
821
|
+
- richtext_tags
|
|
822
|
+
NoteTweetResultRichTextTag:
|
|
823
|
+
properties:
|
|
824
|
+
from_index:
|
|
825
|
+
type: integer
|
|
826
|
+
richtext_types:
|
|
827
|
+
items:
|
|
828
|
+
enum:
|
|
829
|
+
- Bold
|
|
830
|
+
- Italic
|
|
831
|
+
type: string
|
|
832
|
+
type: array
|
|
833
|
+
to_index:
|
|
834
|
+
type: integer
|
|
835
|
+
required:
|
|
836
|
+
- from_index
|
|
837
|
+
- to_index
|
|
838
|
+
- richtext_types
|
|
682
839
|
OneFactorLoginEligibility:
|
|
683
840
|
properties:
|
|
684
841
|
fetchStatus:
|
|
@@ -914,6 +1071,11 @@ components:
|
|
|
914
1071
|
$ref: '#/components/schemas/InstructionType'
|
|
915
1072
|
required:
|
|
916
1073
|
- type
|
|
1074
|
+
TimelineCommunity:
|
|
1075
|
+
additionalProperties: true
|
|
1076
|
+
properties:
|
|
1077
|
+
__typename:
|
|
1078
|
+
$ref: '#/components/schemas/TypeName'
|
|
917
1079
|
TimelineCoverBehavior:
|
|
918
1080
|
properties:
|
|
919
1081
|
type:
|
|
@@ -1176,6 +1338,8 @@ components:
|
|
|
1176
1338
|
properties:
|
|
1177
1339
|
__typename:
|
|
1178
1340
|
$ref: '#/components/schemas/TypeName'
|
|
1341
|
+
birdwatch_pivot:
|
|
1342
|
+
$ref: '#/components/schemas/BirdwatchPivot'
|
|
1179
1343
|
card:
|
|
1180
1344
|
$ref: '#/components/schemas/TweetCard'
|
|
1181
1345
|
core:
|
|
@@ -1189,6 +1353,10 @@ components:
|
|
|
1189
1353
|
type: boolean
|
|
1190
1354
|
legacy:
|
|
1191
1355
|
$ref: '#/components/schemas/TweetLegacy'
|
|
1356
|
+
note_tweet:
|
|
1357
|
+
$ref: '#/components/schemas/NoteTweet'
|
|
1358
|
+
quick_promote_eligibility:
|
|
1359
|
+
type: object
|
|
1192
1360
|
quoted_status_result:
|
|
1193
1361
|
$ref: '#/components/schemas/ItemResult'
|
|
1194
1362
|
rest_id:
|
|
@@ -1465,6 +1633,7 @@ components:
|
|
|
1465
1633
|
- TweetTombstone
|
|
1466
1634
|
- TimelinePrompt
|
|
1467
1635
|
- TimelineMessagePrompt
|
|
1636
|
+
- TimelineCommunity
|
|
1468
1637
|
- TweetUnavailable
|
|
1469
1638
|
- Tweet
|
|
1470
1639
|
- User
|
|
@@ -1860,9 +2029,12 @@ components:
|
|
|
1860
2029
|
- users
|
|
1861
2030
|
extMediaAvailability:
|
|
1862
2031
|
properties:
|
|
2032
|
+
reason:
|
|
2033
|
+
type: string
|
|
1863
2034
|
status:
|
|
1864
2035
|
enum:
|
|
1865
2036
|
- Available
|
|
2037
|
+
- Unavailable
|
|
1866
2038
|
type: string
|
|
1867
2039
|
mediaStats:
|
|
1868
2040
|
properties:
|
|
@@ -6,6 +6,95 @@ components:
|
|
|
6
6
|
type: boolean
|
|
7
7
|
required:
|
|
8
8
|
- monetizable
|
|
9
|
+
BirdwatchEntity:
|
|
10
|
+
properties:
|
|
11
|
+
fromIndex:
|
|
12
|
+
type: integer
|
|
13
|
+
ref:
|
|
14
|
+
$ref: '#/components/schemas/BirdwatchEntityRef'
|
|
15
|
+
toIndex:
|
|
16
|
+
type: integer
|
|
17
|
+
required:
|
|
18
|
+
- fromIndex
|
|
19
|
+
- toIndex
|
|
20
|
+
- ref
|
|
21
|
+
BirdwatchEntityRef:
|
|
22
|
+
properties:
|
|
23
|
+
type:
|
|
24
|
+
enum:
|
|
25
|
+
- TimelineUrl
|
|
26
|
+
type: string
|
|
27
|
+
url:
|
|
28
|
+
format: uri
|
|
29
|
+
type: string
|
|
30
|
+
urlType:
|
|
31
|
+
enum:
|
|
32
|
+
- ExternalUrl
|
|
33
|
+
type: string
|
|
34
|
+
required:
|
|
35
|
+
- type
|
|
36
|
+
- url
|
|
37
|
+
- urlType
|
|
38
|
+
BirdwatchPivot:
|
|
39
|
+
properties:
|
|
40
|
+
destinationUrl:
|
|
41
|
+
format: uri
|
|
42
|
+
type: string
|
|
43
|
+
footer:
|
|
44
|
+
$ref: '#/components/schemas/BirdwatchPivotFooter'
|
|
45
|
+
iconType:
|
|
46
|
+
enum:
|
|
47
|
+
- BirdwatchV1Icon
|
|
48
|
+
type: string
|
|
49
|
+
note:
|
|
50
|
+
$ref: '#/components/schemas/BirdwatchPivotNote'
|
|
51
|
+
shorttitle:
|
|
52
|
+
type: string
|
|
53
|
+
subtitle:
|
|
54
|
+
$ref: '#/components/schemas/BirdwatchPivotSubtitle'
|
|
55
|
+
title:
|
|
56
|
+
type: string
|
|
57
|
+
visualStyle:
|
|
58
|
+
enum:
|
|
59
|
+
- Default
|
|
60
|
+
type: string
|
|
61
|
+
required:
|
|
62
|
+
- destinationUrl
|
|
63
|
+
- footer
|
|
64
|
+
- note
|
|
65
|
+
- subtitle
|
|
66
|
+
- title
|
|
67
|
+
- shorttitle
|
|
68
|
+
- iconType
|
|
69
|
+
BirdwatchPivotFooter:
|
|
70
|
+
properties:
|
|
71
|
+
entities:
|
|
72
|
+
items:
|
|
73
|
+
$ref: '#/components/schemas/BirdwatchEntity'
|
|
74
|
+
type: array
|
|
75
|
+
text:
|
|
76
|
+
type: string
|
|
77
|
+
required:
|
|
78
|
+
- text
|
|
79
|
+
- entities
|
|
80
|
+
BirdwatchPivotNote:
|
|
81
|
+
properties:
|
|
82
|
+
rest_id:
|
|
83
|
+
pattern: ^[0-9]+$
|
|
84
|
+
type: string
|
|
85
|
+
required:
|
|
86
|
+
- rest_id
|
|
87
|
+
BirdwatchPivotSubtitle:
|
|
88
|
+
properties:
|
|
89
|
+
entities:
|
|
90
|
+
items:
|
|
91
|
+
$ref: '#/components/schemas/BirdwatchEntity'
|
|
92
|
+
type: array
|
|
93
|
+
text:
|
|
94
|
+
type: string
|
|
95
|
+
required:
|
|
96
|
+
- text
|
|
97
|
+
- entities
|
|
9
98
|
BookmarksResponse:
|
|
10
99
|
properties:
|
|
11
100
|
data:
|
|
@@ -60,6 +149,7 @@ components:
|
|
|
60
149
|
- TimelineUser
|
|
61
150
|
- TimelinePrompt
|
|
62
151
|
- TimelineMessagePrompt
|
|
152
|
+
- TimelineCommunity
|
|
63
153
|
type: string
|
|
64
154
|
ContentUnion:
|
|
65
155
|
discriminator:
|
|
@@ -427,6 +517,7 @@ components:
|
|
|
427
517
|
ItemContentUnion:
|
|
428
518
|
discriminator:
|
|
429
519
|
mapping":
|
|
520
|
+
TimelineCommunity: '#/components/schemas/TimelineCommunity'
|
|
430
521
|
TimelineMessagePrompt: '#/components/schemas/TimelineMessagePrompt'
|
|
431
522
|
TimelinePrompt: '#/components/schemas/TimelinePrompt'
|
|
432
523
|
TimelineTimelineCursor: '#/components/schemas/TimelineTimelineCursor'
|
|
@@ -439,6 +530,7 @@ components:
|
|
|
439
530
|
- $ref: '#/components/schemas/TimelineUser'
|
|
440
531
|
- $ref: '#/components/schemas/TimelinePrompt'
|
|
441
532
|
- $ref: '#/components/schemas/TimelineMessagePrompt'
|
|
533
|
+
- $ref: '#/components/schemas/TimelineCommunity'
|
|
442
534
|
ItemResult:
|
|
443
535
|
properties:
|
|
444
536
|
__typename:
|
|
@@ -679,6 +771,71 @@ components:
|
|
|
679
771
|
required:
|
|
680
772
|
- entryId
|
|
681
773
|
- item
|
|
774
|
+
NoteTweet:
|
|
775
|
+
properties:
|
|
776
|
+
is_expandable:
|
|
777
|
+
type: boolean
|
|
778
|
+
note_tweet_results:
|
|
779
|
+
$ref: '#/components/schemas/NoteTweetResult'
|
|
780
|
+
required:
|
|
781
|
+
- is_expandable
|
|
782
|
+
- note_tweet_results
|
|
783
|
+
NoteTweetResult:
|
|
784
|
+
properties:
|
|
785
|
+
result:
|
|
786
|
+
$ref: '#/components/schemas/NoteTweetResultData'
|
|
787
|
+
required:
|
|
788
|
+
- result
|
|
789
|
+
NoteTweetResultData:
|
|
790
|
+
properties:
|
|
791
|
+
entity_set:
|
|
792
|
+
$ref: '#/components/schemas/Entities'
|
|
793
|
+
id:
|
|
794
|
+
pattern: ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$
|
|
795
|
+
type: string
|
|
796
|
+
media:
|
|
797
|
+
$ref: '#/components/schemas/NoteTweetResultMedia'
|
|
798
|
+
richtext:
|
|
799
|
+
$ref: '#/components/schemas/NoteTweetResultRichText'
|
|
800
|
+
text:
|
|
801
|
+
type: string
|
|
802
|
+
required:
|
|
803
|
+
- entity_set
|
|
804
|
+
- id
|
|
805
|
+
- text
|
|
806
|
+
NoteTweetResultMedia:
|
|
807
|
+
properties:
|
|
808
|
+
inline_media:
|
|
809
|
+
items:
|
|
810
|
+
type: object
|
|
811
|
+
type: array
|
|
812
|
+
required:
|
|
813
|
+
- inline_media
|
|
814
|
+
NoteTweetResultRichText:
|
|
815
|
+
properties:
|
|
816
|
+
richtext_tags:
|
|
817
|
+
items:
|
|
818
|
+
$ref: '#/components/schemas/NoteTweetResultRichTextTag'
|
|
819
|
+
type: array
|
|
820
|
+
required:
|
|
821
|
+
- richtext_tags
|
|
822
|
+
NoteTweetResultRichTextTag:
|
|
823
|
+
properties:
|
|
824
|
+
from_index:
|
|
825
|
+
type: integer
|
|
826
|
+
richtext_types:
|
|
827
|
+
items:
|
|
828
|
+
enum:
|
|
829
|
+
- Bold
|
|
830
|
+
- Italic
|
|
831
|
+
type: string
|
|
832
|
+
type: array
|
|
833
|
+
to_index:
|
|
834
|
+
type: integer
|
|
835
|
+
required:
|
|
836
|
+
- from_index
|
|
837
|
+
- to_index
|
|
838
|
+
- richtext_types
|
|
682
839
|
OneFactorLoginEligibility:
|
|
683
840
|
properties:
|
|
684
841
|
fetchStatus:
|
|
@@ -914,6 +1071,11 @@ components:
|
|
|
914
1071
|
$ref: '#/components/schemas/InstructionType'
|
|
915
1072
|
required:
|
|
916
1073
|
- type
|
|
1074
|
+
TimelineCommunity:
|
|
1075
|
+
additionalProperties: true
|
|
1076
|
+
properties:
|
|
1077
|
+
__typename:
|
|
1078
|
+
$ref: '#/components/schemas/TypeName'
|
|
917
1079
|
TimelineCoverBehavior:
|
|
918
1080
|
properties:
|
|
919
1081
|
type:
|
|
@@ -1176,6 +1338,8 @@ components:
|
|
|
1176
1338
|
properties:
|
|
1177
1339
|
__typename:
|
|
1178
1340
|
$ref: '#/components/schemas/TypeName'
|
|
1341
|
+
birdwatch_pivot:
|
|
1342
|
+
$ref: '#/components/schemas/BirdwatchPivot'
|
|
1179
1343
|
card:
|
|
1180
1344
|
$ref: '#/components/schemas/TweetCard'
|
|
1181
1345
|
core:
|
|
@@ -1189,6 +1353,10 @@ components:
|
|
|
1189
1353
|
type: boolean
|
|
1190
1354
|
legacy:
|
|
1191
1355
|
$ref: '#/components/schemas/TweetLegacy'
|
|
1356
|
+
note_tweet:
|
|
1357
|
+
$ref: '#/components/schemas/NoteTweet'
|
|
1358
|
+
quick_promote_eligibility:
|
|
1359
|
+
type: object
|
|
1192
1360
|
quoted_status_result:
|
|
1193
1361
|
$ref: '#/components/schemas/ItemResult'
|
|
1194
1362
|
rest_id:
|
|
@@ -1465,6 +1633,7 @@ components:
|
|
|
1465
1633
|
- TweetTombstone
|
|
1466
1634
|
- TimelinePrompt
|
|
1467
1635
|
- TimelineMessagePrompt
|
|
1636
|
+
- TimelineCommunity
|
|
1468
1637
|
- TweetUnavailable
|
|
1469
1638
|
- Tweet
|
|
1470
1639
|
- User
|
|
@@ -1860,9 +2029,12 @@ components:
|
|
|
1860
2029
|
- users
|
|
1861
2030
|
extMediaAvailability:
|
|
1862
2031
|
properties:
|
|
2032
|
+
reason:
|
|
2033
|
+
type: string
|
|
1863
2034
|
status:
|
|
1864
2035
|
enum:
|
|
1865
2036
|
- Available
|
|
2037
|
+
- Unavailable
|
|
1866
2038
|
type: string
|
|
1867
2039
|
mediaStats:
|
|
1868
2040
|
properties:
|
|
@@ -125,6 +125,7 @@ components:
|
|
|
125
125
|
- $ref: "#/components/schemas/TimelineUser"
|
|
126
126
|
- $ref: "#/components/schemas/TimelinePrompt"
|
|
127
127
|
- $ref: "#/components/schemas/TimelineMessagePrompt"
|
|
128
|
+
- $ref: "#/components/schemas/TimelineCommunity"
|
|
128
129
|
|
|
129
130
|
discriminator:
|
|
130
131
|
propertyName: __typename
|
|
@@ -134,6 +135,7 @@ components:
|
|
|
134
135
|
TimelineUser: "#/components/schemas/TimelineUser"
|
|
135
136
|
TimelinePrompt: "#/components/schemas/TimelinePrompt"
|
|
136
137
|
TimelineMessagePrompt: "#/components/schemas/TimelineMessagePrompt"
|
|
138
|
+
TimelineCommunity: "#/components/schemas/TimelineCommunity"
|
|
137
139
|
|
|
138
140
|
ContentItemType:
|
|
139
141
|
type: string
|
|
@@ -144,6 +146,7 @@ components:
|
|
|
144
146
|
TimelineUser,
|
|
145
147
|
TimelinePrompt,
|
|
146
148
|
TimelineMessagePrompt,
|
|
149
|
+
TimelineCommunity,
|
|
147
150
|
]
|
|
148
151
|
|
|
149
152
|
TimelineTweet:
|
|
@@ -216,6 +219,12 @@ components:
|
|
|
216
219
|
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineMessagePrompt
|
|
217
220
|
additionalProperties: true # todo
|
|
218
221
|
|
|
222
|
+
TimelineCommunity:
|
|
223
|
+
properties:
|
|
224
|
+
__typename:
|
|
225
|
+
$ref: "./typename.yaml#/components/schemas/TypeName" # TimelineCommunity
|
|
226
|
+
additionalProperties: true # todo
|
|
227
|
+
|
|
219
228
|
ClientEventInfo:
|
|
220
229
|
properties:
|
|
221
230
|
component:
|