twitter-openapi-typescript-generated 0.0.11 → 0.0.12

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.
Files changed (168) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/LICENSE +31 -31
  3. package/LICENSE.AGPL +660 -660
  4. package/README.md +2 -2
  5. package/dist/apis/DefaultApi.d.ts.map +1 -1
  6. package/dist/apis/DefaultApi.js +86 -18
  7. package/dist/apis/DefaultApi.js.map +1 -1
  8. package/dist/apis/OtherApi.d.ts.map +1 -1
  9. package/dist/apis/OtherApi.js +43 -9
  10. package/dist/apis/OtherApi.js.map +1 -1
  11. package/dist/apis/PostApi.d.ts.map +1 -1
  12. package/dist/apis/PostApi.js +264 -60
  13. package/dist/apis/PostApi.js.map +1 -1
  14. package/dist/apis/TweetApi.d.ts +1 -2
  15. package/dist/apis/TweetApi.d.ts.map +1 -1
  16. package/dist/apis/TweetApi.js +479 -111
  17. package/dist/apis/TweetApi.js.map +1 -1
  18. package/dist/apis/UserApi.d.ts +1 -0
  19. package/dist/apis/UserApi.d.ts.map +1 -1
  20. package/dist/apis/UserApi.js +92 -18
  21. package/dist/apis/UserApi.js.map +1 -1
  22. package/dist/apis/UserListApi.d.ts +0 -1
  23. package/dist/apis/UserListApi.d.ts.map +1 -1
  24. package/dist/apis/UserListApi.js +215 -51
  25. package/dist/apis/UserListApi.js.map +1 -1
  26. package/dist/apis/UsersApi.d.ts.map +1 -1
  27. package/dist/apis/UsersApi.js +43 -9
  28. package/dist/apis/UsersApi.js.map +1 -1
  29. package/dist/apis/V11GetApi.d.ts.map +1 -1
  30. package/dist/apis/V11GetApi.js +86 -18
  31. package/dist/apis/V11GetApi.js.map +1 -1
  32. package/dist/apis/V11PostApi.d.ts.map +1 -1
  33. package/dist/apis/V11PostApi.js +72 -6
  34. package/dist/apis/V11PostApi.js.map +1 -1
  35. package/dist/apis/V20GetApi.d.ts.map +1 -1
  36. package/dist/apis/V20GetApi.js +43 -9
  37. package/dist/apis/V20GetApi.js.map +1 -1
  38. package/dist/models/CoverCta.d.ts +1 -1
  39. package/dist/models/CoverCta.d.ts.map +1 -1
  40. package/dist/models/CoverCta.js +1 -2
  41. package/dist/models/CoverCta.js.map +1 -1
  42. package/dist/models/DeleteRetweet.d.ts +33 -0
  43. package/dist/models/DeleteRetweet.d.ts.map +1 -0
  44. package/dist/models/DeleteRetweet.js +52 -0
  45. package/dist/models/DeleteRetweet.js.map +1 -0
  46. package/dist/models/DeleteRetweetResponseResult.d.ts +33 -0
  47. package/dist/models/DeleteRetweetResponseResult.d.ts.map +1 -0
  48. package/dist/models/DeleteRetweetResponseResult.js +52 -0
  49. package/dist/models/DeleteRetweetResponseResult.js.map +1 -0
  50. package/dist/models/ErrorResponse.d.ts +33 -0
  51. package/dist/models/ErrorResponse.d.ts.map +1 -0
  52. package/dist/models/ErrorResponse.js +52 -0
  53. package/dist/models/ErrorResponse.js.map +1 -0
  54. package/dist/models/Extensions.d.ts +57 -0
  55. package/dist/models/Extensions.d.ts.map +1 -0
  56. package/dist/models/Extensions.js +64 -0
  57. package/dist/models/Extensions.js.map +1 -0
  58. package/dist/models/ListTweetsTimeline.d.ts +1 -1
  59. package/dist/models/ListTweetsTimeline.d.ts.map +1 -1
  60. package/dist/models/ListTweetsTimeline.js +2 -2
  61. package/dist/models/ListTweetsTimeline.js.map +1 -1
  62. package/dist/models/MediaExtended.d.ts +1 -1
  63. package/dist/models/MediaExtended.d.ts.map +1 -1
  64. package/dist/models/MediaExtended.js +1 -2
  65. package/dist/models/MediaExtended.js.map +1 -1
  66. package/dist/models/PostCreateTweetRequestFeatures.d.ts +9 -15
  67. package/dist/models/PostCreateTweetRequestFeatures.d.ts.map +1 -1
  68. package/dist/models/PostCreateTweetRequestFeatures.js +9 -12
  69. package/dist/models/PostCreateTweetRequestFeatures.js.map +1 -1
  70. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts +3 -2
  71. package/dist/models/PostCreateTweetRequestVariablesMedia.d.ts.map +1 -1
  72. package/dist/models/PostCreateTweetRequestVariablesMedia.js +3 -2
  73. package/dist/models/PostCreateTweetRequestVariablesMedia.js.map +1 -1
  74. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts +38 -0
  75. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.d.ts.map +1 -0
  76. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js +54 -0
  77. package/dist/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.js.map +1 -0
  78. package/dist/models/UserResults.d.ts +1 -1
  79. package/dist/models/UserResults.d.ts.map +1 -1
  80. package/dist/models/UserResults.js +2 -2
  81. package/dist/models/UserResults.js.map +1 -1
  82. package/dist/models/index.d.ts +5 -0
  83. package/dist/models/index.d.ts.map +1 -1
  84. package/dist/models/index.js +5 -0
  85. package/dist/models/index.js.map +1 -1
  86. package/package.json +1 -1
  87. package/src/apis/DefaultApi.ts +94 -6
  88. package/src/apis/OtherApi.ts +47 -3
  89. package/src/apis/PostApi.ts +282 -18
  90. package/src/apis/TweetApi.ts +526 -51
  91. package/src/apis/UserApi.ts +103 -6
  92. package/src/apis/UserListApi.ts +235 -24
  93. package/src/apis/UsersApi.ts +47 -3
  94. package/src/apis/V11GetApi.ts +94 -6
  95. package/src/apis/V11PostApi.ts +94 -6
  96. package/src/apis/V20GetApi.ts +47 -3
  97. package/src/models/CoverCta.ts +2 -3
  98. package/src/models/DeleteRetweet.ts +73 -0
  99. package/src/models/DeleteRetweetResponseResult.ts +72 -0
  100. package/src/models/ErrorResponse.ts +73 -0
  101. package/src/models/Extensions.ts +109 -0
  102. package/src/models/ListTweetsTimeline.ts +2 -3
  103. package/src/models/MediaExtended.ts +2 -3
  104. package/src/models/PostCreateTweetRequestFeatures.ts +18 -27
  105. package/src/models/PostCreateTweetRequestVariablesMedia.ts +11 -4
  106. package/src/models/PostCreateTweetRequestVariablesMediaMediaEntitiesInner.ts +75 -0
  107. package/src/models/UserResults.ts +2 -3
  108. package/src/models/index.ts +5 -0
  109. package/tools/openapi-generator-config.yaml +1 -1
  110. package/twitter-openapi/.vscode/launch.json +8 -0
  111. package/twitter-openapi/dist/compatible/openapi-3.0.yaml +5017 -34
  112. package/twitter-openapi/dist/docs/openapi-3.0.yaml +6815 -34
  113. package/twitter-openapi/src/config/component/security_schemes.yaml +148 -0
  114. package/twitter-openapi/src/config/placeholder.json +145 -112
  115. package/twitter-openapi/src/openapi/paths/timeline.yaml +0 -2
  116. package/twitter-openapi/src/openapi/schemas/content.yaml +0 -1
  117. package/twitter-openapi/src/openapi/schemas/general.yaml +2 -2
  118. package/twitter-openapi/src/openapi/schemas/instruction.yaml +0 -1
  119. package/twitter-openapi/src/openapi/schemas/tweet.yaml +1 -1
  120. package/twitter-openapi/src/openapi/schemas/user.yaml +0 -2
  121. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  122. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  123. package/twitter-openapi/tools/build.py +35 -31
  124. package/twitter-openapi/tools/build_config.py +7 -10
  125. package/twitter-openapi/dist/compatible/paths/bookmarks.yaml +0 -107
  126. package/twitter-openapi/dist/compatible/paths/follow.yaml +0 -301
  127. package/twitter-openapi/dist/compatible/paths/other.yaml +0 -99
  128. package/twitter-openapi/dist/compatible/paths/post.yaml +0 -714
  129. package/twitter-openapi/dist/compatible/paths/profile.yaml +0 -126
  130. package/twitter-openapi/dist/compatible/paths/timeline.yaml +0 -416
  131. package/twitter-openapi/dist/compatible/paths/tweet.yaml +0 -397
  132. package/twitter-openapi/dist/compatible/paths/user.yaml +0 -233
  133. package/twitter-openapi/dist/compatible/paths/usertweets.yaml +0 -504
  134. package/twitter-openapi/dist/compatible/paths/v1.1-get.yaml +0 -242
  135. package/twitter-openapi/dist/compatible/paths/v1.1-post.yaml +0 -237
  136. package/twitter-openapi/dist/compatible/paths/v2.0-get.yaml +0 -302
  137. package/twitter-openapi/dist/compatible/resources/parameters.yaml +0 -13
  138. package/twitter-openapi/dist/compatible/response/error.yaml +0 -90
  139. package/twitter-openapi/dist/compatible/schemas/content.yaml +0 -214
  140. package/twitter-openapi/dist/compatible/schemas/error.yaml +0 -94
  141. package/twitter-openapi/dist/compatible/schemas/general.yaml +0 -13
  142. package/twitter-openapi/dist/compatible/schemas/instruction.yaml +0 -286
  143. package/twitter-openapi/dist/compatible/schemas/timeline.yaml +0 -27
  144. package/twitter-openapi/dist/compatible/schemas/tweet.yaml +0 -508
  145. package/twitter-openapi/dist/compatible/schemas/typename.yaml +0 -23
  146. package/twitter-openapi/dist/compatible/schemas/user.yaml +0 -222
  147. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -201
  148. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -587
  149. package/twitter-openapi/dist/docs/paths/other.yaml +0 -99
  150. package/twitter-openapi/dist/docs/paths/post.yaml +0 -692
  151. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -134
  152. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -811
  153. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -797
  154. package/twitter-openapi/dist/docs/paths/user.yaml +0 -338
  155. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -1046
  156. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +0 -242
  157. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +0 -237
  158. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +0 -302
  159. package/twitter-openapi/dist/docs/resources/parameters.yaml +0 -13
  160. package/twitter-openapi/dist/docs/response/error.yaml +0 -90
  161. package/twitter-openapi/dist/docs/schemas/content.yaml +0 -214
  162. package/twitter-openapi/dist/docs/schemas/error.yaml +0 -94
  163. package/twitter-openapi/dist/docs/schemas/general.yaml +0 -13
  164. package/twitter-openapi/dist/docs/schemas/instruction.yaml +0 -286
  165. package/twitter-openapi/dist/docs/schemas/timeline.yaml +0 -27
  166. package/twitter-openapi/dist/docs/schemas/tweet.yaml +0 -508
  167. package/twitter-openapi/dist/docs/schemas/typename.yaml +0 -23
  168. package/twitter-openapi/dist/docs/schemas/user.yaml +0 -222
@@ -1,13 +0,0 @@
1
- components:
2
- schemas:
3
- TwitterTimeFormat:
4
- example: Sat Dec 31 23:59:59 +0000 2023
5
- pattern: ^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)
6
- (0[1-9]|[12][0-9]|3[01]) (0[0-9]|1[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])
7
- ([+-][0-9]{4}) ([0-9]{4})$
8
- type: string
9
- info:
10
- title: Twitter OpenAPI
11
- version: 0.0.1
12
- openapi: 3.0.3
13
- paths: {}
@@ -1,286 +0,0 @@
1
- components:
2
- schemas:
3
- Callback:
4
- properties:
5
- endpoint:
6
- format: uri
7
- type: string
8
- required:
9
- - endpoint
10
- CoverCta:
11
- properties:
12
- Text:
13
- type: string
14
- buttonStyle:
15
- enum:
16
- - Primary
17
- type: string
18
- callbacks:
19
- items:
20
- $ref: '#/components/schemas/Callback'
21
- type: array
22
- clientEventInfo:
23
- $ref: '#/components/schemas/CtaClientEventInfo'
24
- ctaBehavior:
25
- $ref: '#/components/schemas/TimelineCoverBehavior'
26
- required:
27
- - text
28
- - ctaBehavior
29
- - callbacks
30
- - clientEventInfo
31
- - buttonStyle
32
- CtaClientEventInfo:
33
- properties:
34
- action:
35
- enum:
36
- - primary_cta
37
- type: string
38
- required:
39
- - action
40
- InstructionType:
41
- enum:
42
- - TimelineAddEntries
43
- - TimelineAddToModule
44
- - TimelineClearCache
45
- - TimelinePinEntry
46
- - TimelineReplaceEntry
47
- - TimelineShowAlert
48
- - TimelineTerminateTimeline
49
- - TimelineShowCover
50
- type: string
51
- InstructionUnion:
52
- discriminator:
53
- mapping":
54
- TimelineAddEntries: '#/components/schemas/TimelineAddEntries'
55
- TimelineAddToModule: '#/components/schemas/TimelineAddToModule'
56
- TimelineClearCache: '#/components/schemas/TimelineClearCache'
57
- TimelinePinEntry: '#/components/schemas/TimelinePinEntry'
58
- TimelineReplaceEntry: '#/components/schemas/TimelineReplaceEntry'
59
- TimelineShowAlert: '#/components/schemas/TimelineShowAlert'
60
- TimelineShowCover: '#/components/schemas/TimelineShowCover'
61
- TimelineTerminateTimeline: '#/components/schemas/TimelineTerminateTimeline'
62
- propertyName: type
63
- oneOf:
64
- - $ref: '#/components/schemas/TimelineAddEntries'
65
- - $ref: '#/components/schemas/TimelineAddToModule'
66
- - $ref: '#/components/schemas/TimelineClearCache'
67
- - $ref: '#/components/schemas/TimelinePinEntry'
68
- - $ref: '#/components/schemas/TimelineReplaceEntry'
69
- - $ref: '#/components/schemas/TimelineShowAlert'
70
- - $ref: '#/components/schemas/TimelineTerminateTimeline'
71
- - $ref: '#/components/schemas/TimelineShowCover'
72
- Text:
73
- properties:
74
- entities:
75
- items:
76
- $ref: '#/components/schemas/TextEntity'
77
- type: array
78
- text:
79
- type: string
80
- required:
81
- - text
82
- - entities
83
- TextEntity:
84
- properties:
85
- fromIndex:
86
- type: integer
87
- ref:
88
- $ref: '#/components/schemas/TextEntityRef'
89
- toIndex:
90
- type: integer
91
- required:
92
- - fromIndex
93
- - toIndex
94
- - ref
95
- TextEntityRef:
96
- properties:
97
- type:
98
- enum:
99
- - TimelineUrl
100
- type: string
101
- url:
102
- format: uri
103
- type: string
104
- urlType:
105
- enum:
106
- - ExternalUrl
107
- type: string
108
- required:
109
- - type
110
- - url
111
- - urlType
112
- TimelineAddEntries:
113
- properties:
114
- entries:
115
- items:
116
- $ref: '#/components/schemas/TimelineAddEntry'
117
- type: array
118
- type:
119
- $ref: '#/components/schemas/InstructionType'
120
- required:
121
- - type
122
- - entries
123
- TimelineAddEntry:
124
- properties:
125
- content:
126
- $ref: ./content.yaml#/components/schemas/ContentUnion
127
- entryId:
128
- pattern: ^(([a-z]+|[0-9]+|[0-9a-f]+)(-|$))+
129
- type: string
130
- sortIndex:
131
- pattern: '[0-9]+$'
132
- type: string
133
- required:
134
- - content
135
- - entryId
136
- - sortIndex
137
- TimelineAddToModule:
138
- properties:
139
- moduleEntryId:
140
- type: string
141
- moduleItems:
142
- items:
143
- $ref: ./content.yaml#/components/schemas/ModuleItem
144
- type: array
145
- prepend:
146
- type: boolean
147
- type:
148
- $ref: '#/components/schemas/InstructionType'
149
- required:
150
- - type
151
- - moduleItems
152
- - moduleEntryId
153
- TimelineClearCache:
154
- properties:
155
- type:
156
- $ref: '#/components/schemas/InstructionType'
157
- required:
158
- - type
159
- TimelineCoverBehavior:
160
- properties:
161
- type:
162
- enum:
163
- - TimelineCoverBehaviorDismiss
164
- type: string
165
- required:
166
- - type
167
- TimelineHalfCover:
168
- properties:
169
- dismissible:
170
- type: boolean
171
- halfCoverDisplayType:
172
- enum:
173
- - Cover
174
- type: string
175
- impressionCallbacks:
176
- items:
177
- $ref: '#/components/schemas/Callback'
178
- type: array
179
- primaryCoverCta:
180
- $ref: '#/components/schemas/CoverCta'
181
- primaryText:
182
- $ref: '#/components/schemas/Text'
183
- secondaryText:
184
- $ref: '#/components/schemas/Text'
185
- type:
186
- enum:
187
- - TimelineHalfCover
188
- type: string
189
- required:
190
- - type
191
- - halfCoverDisplayType
192
- - primaryText
193
- - primaryCoverCta
194
- - secondaryText
195
- - impressionCallbacks
196
- - dismissible
197
- TimelinePinEntry:
198
- properties:
199
- entry:
200
- $ref: '#/components/schemas/TimelineAddEntry'
201
- type:
202
- $ref: '#/components/schemas/InstructionType'
203
- required:
204
- - type
205
- - entry
206
- TimelineReplaceEntry:
207
- properties:
208
- entry:
209
- $ref: '#/components/schemas/TimelineAddEntry'
210
- entry_id_to_replace:
211
- type: string
212
- type:
213
- $ref: '#/components/schemas/InstructionType'
214
- required:
215
- - type
216
- - entry_id_to_replace
217
- - entry
218
- TimelineShowAlert:
219
- properties:
220
- alertType:
221
- enum:
222
- - NewTweets
223
- type: string
224
- colorConfig:
225
- additionalProperties: true
226
- type: object
227
- displayDurationMs:
228
- type: integer
229
- displayLocation:
230
- enum:
231
- - Top
232
- type: string
233
- iconDisplayInfo:
234
- additionalProperties: true
235
- type: object
236
- richText:
237
- properties:
238
- entities:
239
- items:
240
- additionalProperties: true
241
- type: object
242
- type: array
243
- text:
244
- type: string
245
- type: object
246
- triggerDelayMs:
247
- type: integer
248
- type:
249
- $ref: '#/components/schemas/InstructionType'
250
- usersResults:
251
- items:
252
- $ref: ./user.yaml#/components/schemas/UserResults
253
- type: array
254
- required:
255
- - type
256
- - usersResults
257
- - richText
258
- TimelineShowCover:
259
- properties:
260
- clientEventInfo:
261
- $ref: ./content.yaml#/components/schemas/ClientEventInfo
262
- cover:
263
- $ref: '#/components/schemas/TimelineHalfCover'
264
- type:
265
- $ref: '#/components/schemas/InstructionType'
266
- required:
267
- - type
268
- - clientEventInfo
269
- - cover
270
- TimelineTerminateTimeline:
271
- properties:
272
- direction:
273
- enum:
274
- - Top
275
- - Bottom
276
- type: string
277
- type:
278
- $ref: '#/components/schemas/InstructionType'
279
- required:
280
- - type
281
- - direction
282
- info:
283
- title: Twitter OpenAPI
284
- version: 0.0.1
285
- openapi: 3.0.3
286
- paths: {}
@@ -1,27 +0,0 @@
1
- components:
2
- schemas:
3
- Timeline:
4
- properties:
5
- instructions:
6
- items:
7
- $ref: ./../schemas/instruction.yaml#/components/schemas/InstructionUnion
8
- type: array
9
- metadata:
10
- additionalProperties: true
11
- type: object
12
- responseObjects:
13
- additionalProperties: true
14
- type: object
15
- required:
16
- - instructions
17
- TimelineV2:
18
- properties:
19
- timeline:
20
- $ref: '#/components/schemas/Timeline'
21
- required:
22
- - timeline
23
- info:
24
- title: Twitter OpenAPI
25
- version: 0.0.1
26
- openapi: 3.0.3
27
- paths: {}