twitter-openapi-typescript-generated 0.0.1 → 0.0.2

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 (127) hide show
  1. package/.openapi-generator-ignore +1 -2
  2. package/README.md +2 -2
  3. package/package.json +25 -26
  4. package/tools/openapi-generator-config.yaml +10 -0
  5. package/tools/win/clean.ps1 +21 -0
  6. package/tools/win/gen.ps1 +8 -0
  7. package/tools/win/init.ps1 +1 -0
  8. package/tools/win/replace.py +40 -0
  9. package/twitter-openapi/.vscode/extensions.json +3 -0
  10. package/twitter-openapi/.vscode/settings.json +9 -0
  11. package/twitter-openapi/LICENSE.txt +661 -0
  12. package/twitter-openapi/README.md +38 -0
  13. package/twitter-openapi/dist/dart/openapi-3.0.yaml +111 -0
  14. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +134 -0
  15. package/twitter-openapi/dist/dart/paths/follow.yaml +262 -0
  16. package/twitter-openapi/dist/dart/paths/other.yaml +96 -0
  17. package/twitter-openapi/dist/dart/paths/post.yaml +834 -0
  18. package/twitter-openapi/dist/dart/paths/profile.yaml +152 -0
  19. package/twitter-openapi/dist/dart/paths/timeline.yaml +380 -0
  20. package/twitter-openapi/dist/dart/paths/tweet.yaml +134 -0
  21. package/twitter-openapi/dist/dart/paths/user.yaml +112 -0
  22. package/twitter-openapi/dist/dart/paths/usertweets.yaml +484 -0
  23. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +300 -0
  24. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +295 -0
  25. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +331 -0
  26. package/twitter-openapi/dist/dart/response/error.yaml +90 -0
  27. package/twitter-openapi/dist/dart/schemas/content.yaml +181 -0
  28. package/twitter-openapi/dist/dart/schemas/general.yaml +13 -0
  29. package/twitter-openapi/dist/dart/schemas/instruction.yaml +83 -0
  30. package/twitter-openapi/dist/dart/schemas/timeline.yaml +25 -0
  31. package/twitter-openapi/dist/dart/schemas/tweet.yaml +251 -0
  32. package/twitter-openapi/dist/dart/schemas/typename.yaml +19 -0
  33. package/twitter-openapi/dist/dart/schemas/user.yaml +206 -0
  34. package/twitter-openapi/dist/docs/openapi-3.0.yaml +135 -0
  35. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +248 -0
  36. package/twitter-openapi/dist/docs/paths/follow.yaml +486 -0
  37. package/twitter-openapi/dist/docs/paths/other.yaml +96 -0
  38. package/twitter-openapi/dist/docs/paths/post.yaml +638 -0
  39. package/twitter-openapi/dist/docs/paths/profile.yaml +159 -0
  40. package/twitter-openapi/dist/docs/paths/timeline.yaml +730 -0
  41. package/twitter-openapi/dist/docs/paths/tweet.yaml +272 -0
  42. package/twitter-openapi/dist/docs/paths/user.yaml +152 -0
  43. package/twitter-openapi/dist/docs/paths/usertweets.yaml +1010 -0
  44. package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +242 -0
  45. package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +237 -0
  46. package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +302 -0
  47. package/twitter-openapi/dist/docs/response/error.yaml +90 -0
  48. package/twitter-openapi/dist/docs/schemas/content.yaml +181 -0
  49. package/twitter-openapi/dist/docs/schemas/general.yaml +13 -0
  50. package/twitter-openapi/dist/docs/schemas/instruction.yaml +83 -0
  51. package/twitter-openapi/dist/docs/schemas/timeline.yaml +25 -0
  52. package/twitter-openapi/dist/docs/schemas/tweet.yaml +251 -0
  53. package/twitter-openapi/dist/docs/schemas/typename.yaml +19 -0
  54. package/twitter-openapi/dist/docs/schemas/user.yaml +206 -0
  55. package/twitter-openapi/dist/test/openapi-3.0.yaml +135 -0
  56. package/twitter-openapi/dist/test/paths/bookmarks.yaml +105 -0
  57. package/twitter-openapi/dist/test/paths/follow.yaml +204 -0
  58. package/twitter-openapi/dist/test/paths/other.yaml +96 -0
  59. package/twitter-openapi/dist/test/paths/post.yaml +485 -0
  60. package/twitter-openapi/dist/test/paths/profile.yaml +123 -0
  61. package/twitter-openapi/dist/test/paths/timeline.yaml +293 -0
  62. package/twitter-openapi/dist/test/paths/tweet.yaml +105 -0
  63. package/twitter-openapi/dist/test/paths/user.yaml +83 -0
  64. package/twitter-openapi/dist/test/paths/usertweets.yaml +368 -0
  65. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +242 -0
  66. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +277 -0
  67. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +302 -0
  68. package/twitter-openapi/dist/test/response/error.yaml +90 -0
  69. package/twitter-openapi/dist/test/schemas/content.yaml +181 -0
  70. package/twitter-openapi/dist/test/schemas/general.yaml +13 -0
  71. package/twitter-openapi/dist/test/schemas/instruction.yaml +83 -0
  72. package/twitter-openapi/dist/test/schemas/timeline.yaml +25 -0
  73. package/twitter-openapi/dist/test/schemas/tweet.yaml +251 -0
  74. package/twitter-openapi/dist/test/schemas/typename.yaml +19 -0
  75. package/twitter-openapi/dist/test/schemas/user.yaml +206 -0
  76. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +135 -0
  77. package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +105 -0
  78. package/twitter-openapi/dist/typescript/paths/follow.yaml +204 -0
  79. package/twitter-openapi/dist/typescript/paths/other.yaml +96 -0
  80. package/twitter-openapi/dist/typescript/paths/post.yaml +660 -0
  81. package/twitter-openapi/dist/typescript/paths/profile.yaml +123 -0
  82. package/twitter-openapi/dist/typescript/paths/timeline.yaml +293 -0
  83. package/twitter-openapi/dist/typescript/paths/tweet.yaml +105 -0
  84. package/twitter-openapi/dist/typescript/paths/user.yaml +83 -0
  85. package/twitter-openapi/dist/typescript/paths/usertweets.yaml +368 -0
  86. package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +242 -0
  87. package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +237 -0
  88. package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +302 -0
  89. package/twitter-openapi/dist/typescript/response/error.yaml +90 -0
  90. package/twitter-openapi/dist/typescript/schemas/content.yaml +181 -0
  91. package/twitter-openapi/dist/typescript/schemas/general.yaml +13 -0
  92. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +83 -0
  93. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +25 -0
  94. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +251 -0
  95. package/twitter-openapi/dist/typescript/schemas/typename.yaml +19 -0
  96. package/twitter-openapi/dist/typescript/schemas/user.yaml +206 -0
  97. package/twitter-openapi/requirements.txt +0 -0
  98. package/twitter-openapi/src/config/component/response_header.yaml +32 -0
  99. package/twitter-openapi/src/config/component/response_header_legacy.yaml +35 -0
  100. package/twitter-openapi/src/config/component/security_schemes.yaml +67 -0
  101. package/twitter-openapi/src/config/placeholder.json +535 -0
  102. package/twitter-openapi/src/openapi/openapi-3.0.yaml +68 -0
  103. package/twitter-openapi/src/openapi/paths/bookmarks.yaml +42 -0
  104. package/twitter-openapi/src/openapi/paths/follow.yaml +73 -0
  105. package/twitter-openapi/src/openapi/paths/other.yaml +101 -0
  106. package/twitter-openapi/src/openapi/paths/post.yaml +246 -0
  107. package/twitter-openapi/src/openapi/paths/profile.yaml +81 -0
  108. package/twitter-openapi/src/openapi/paths/timeline.yaml +98 -0
  109. package/twitter-openapi/src/openapi/paths/tweet.yaml +35 -0
  110. package/twitter-openapi/src/openapi/paths/user.yaml +35 -0
  111. package/twitter-openapi/src/openapi/paths/usertweets.yaml +94 -0
  112. package/twitter-openapi/src/openapi/paths/v1.1-get.yaml +25 -0
  113. package/twitter-openapi/src/openapi/paths/v1.1-post.yaml +25 -0
  114. package/twitter-openapi/src/openapi/paths/v2.0-get.yaml +15 -0
  115. package/twitter-openapi/src/openapi/response/error.yaml +97 -0
  116. package/twitter-openapi/src/openapi/schemas/content.yaml +190 -0
  117. package/twitter-openapi/src/openapi/schemas/general.yaml +12 -0
  118. package/twitter-openapi/src/openapi/schemas/instruction.yaml +90 -0
  119. package/twitter-openapi/src/openapi/schemas/timeline.yaml +27 -0
  120. package/twitter-openapi/src/openapi/schemas/tweet.yaml +264 -0
  121. package/twitter-openapi/src/openapi/schemas/typename.yaml +21 -0
  122. package/twitter-openapi/src/openapi/schemas/user.yaml +210 -0
  123. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  124. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  125. package/twitter-openapi/tools/build.py +79 -0
  126. package/twitter-openapi/tools/build_config.py +200 -0
  127. package/twitter-openapi/tools/hooks.py +265 -0
@@ -0,0 +1,206 @@
1
+ components:
2
+ schemas:
3
+ User:
4
+ properties:
5
+ __typename:
6
+ $ref: ./typename.yaml#/components/schemas/TypeName
7
+ affiliates_highlighted_label:
8
+ type: object
9
+ business_account:
10
+ type: object
11
+ has_graduated_access:
12
+ type: boolean
13
+ has_nft_avatar:
14
+ default: false
15
+ type: boolean
16
+ id:
17
+ pattern: ^[a-z\-]+[0-9]+$
18
+ type: string
19
+ is_blue_verified:
20
+ default: false
21
+ type: boolean
22
+ legacy:
23
+ $ref: '#/components/schemas/UserLegacy'
24
+ rest_id:
25
+ pattern: ^[0-9]+$
26
+ type: string
27
+ super_follow_eligible:
28
+ default: false
29
+ type: boolean
30
+ super_followed_by:
31
+ default: false
32
+ type: boolean
33
+ super_following:
34
+ default: false
35
+ type: boolean
36
+ required:
37
+ - __typename
38
+ - affiliates_highlighted_label
39
+ - id
40
+ - is_blue_verified
41
+ - legacy
42
+ - rest_id
43
+ - super_follow_eligible
44
+ - super_followed_by
45
+ - super_following
46
+ UserLegacy:
47
+ properties:
48
+ blocked_by:
49
+ default: false
50
+ type: boolean
51
+ blocking:
52
+ default: false
53
+ type: boolean
54
+ can_dm:
55
+ default: false
56
+ type: boolean
57
+ can_media_tag:
58
+ default: false
59
+ type: boolean
60
+ created_at:
61
+ $ref: ./general.yaml#/components/schemas/TwitterTimeFormat
62
+ default_profile:
63
+ default: false
64
+ type: boolean
65
+ default_profile_image:
66
+ default: false
67
+ type: boolean
68
+ description:
69
+ type: string
70
+ entities:
71
+ type: object
72
+ fast_followers_count:
73
+ type: integer
74
+ favourites_count:
75
+ default: 0
76
+ type: integer
77
+ follow_request_sent:
78
+ default: false
79
+ type: boolean
80
+ followed_by:
81
+ default: false
82
+ type: boolean
83
+ followers_count:
84
+ default: 0
85
+ type: integer
86
+ following:
87
+ default: false
88
+ type: boolean
89
+ friends_count:
90
+ default: 0
91
+ type: integer
92
+ has_custom_timelines:
93
+ default: false
94
+ type: boolean
95
+ is_translator:
96
+ default: false
97
+ type: boolean
98
+ listed_count:
99
+ default: 0
100
+ type: integer
101
+ location:
102
+ type: string
103
+ media_count:
104
+ default: 0
105
+ type: integer
106
+ muting:
107
+ default: false
108
+ type: boolean
109
+ name:
110
+ type: string
111
+ normal_followers_count:
112
+ default: 0
113
+ type: integer
114
+ notifications:
115
+ default: false
116
+ type: boolean
117
+ pinned_tweet_ids_str:
118
+ items:
119
+ type: string
120
+ type: array
121
+ possibly_sensitive:
122
+ default: false
123
+ type: boolean
124
+ profile_banner_extensions:
125
+ type: object
126
+ profile_banner_url:
127
+ format: uri
128
+ type: string
129
+ profile_image_extensions:
130
+ type: object
131
+ profile_image_url_https:
132
+ format: uri
133
+ type: string
134
+ profile_interstitial_type:
135
+ type: string
136
+ protected:
137
+ default: false
138
+ type: boolean
139
+ screen_name:
140
+ type: string
141
+ statuses_count:
142
+ default: 0
143
+ type: integer
144
+ translator_type:
145
+ type: string
146
+ url:
147
+ type: string
148
+ verified:
149
+ type: boolean
150
+ want_retweets:
151
+ default: false
152
+ type: boolean
153
+ required:
154
+ - blocked_by
155
+ - blocking
156
+ - can_dm
157
+ - can_media_tag
158
+ - created_at
159
+ - default_profile
160
+ - default_profile_image
161
+ - description
162
+ - entities
163
+ - fast_followers_count
164
+ - favourites_count
165
+ - follow_request_sent
166
+ - followed_by
167
+ - followers_count
168
+ - following
169
+ - friends_count
170
+ - has_custom_timelines
171
+ - is_translator
172
+ - listed_count
173
+ - location
174
+ - media_count
175
+ - muting
176
+ - name
177
+ - normal_followers_count
178
+ - notifications
179
+ - pinned_tweet_ids_str
180
+ - possibly_sensitive
181
+ - profile_image_url_https
182
+ - profile_interstitial_type
183
+ - protected
184
+ - screen_name
185
+ - status
186
+ - statuses_count
187
+ - translator_type
188
+ - verified
189
+ - want_retweets
190
+ UserResultCore:
191
+ properties:
192
+ user_results:
193
+ $ref: '#/components/schemas/UserResults'
194
+ required:
195
+ - user_results
196
+ UserResults:
197
+ properties:
198
+ result:
199
+ $ref: '#/components/schemas/User'
200
+ required:
201
+ - result
202
+ info:
203
+ title: Twitter OpenAPI
204
+ version: 0.0.1
205
+ openapi: 3.0.3
206
+ paths: {}
Binary file
@@ -0,0 +1,32 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+ paths: {}
6
+
7
+ components:
8
+ headers:
9
+ x-connection-hash:
10
+ schema:
11
+ type: string
12
+ x-rate-limit-limit:
13
+ schema:
14
+ type: integer
15
+ x-rate-limit-remaining:
16
+ schema:
17
+ type: integer
18
+ x-rate-limit-reset:
19
+ schema:
20
+ type: integer
21
+ x-response-time:
22
+ schema:
23
+ type: integer
24
+ x-tfe-preserve-body:
25
+ schema:
26
+ type: boolean
27
+ x-transaction-id:
28
+ schema:
29
+ type: string
30
+ x-twitter-response-tags:
31
+ schema:
32
+ type: string
@@ -0,0 +1,35 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+ paths: {}
6
+
7
+ components:
8
+ headers:
9
+ status:
10
+ schema:
11
+ type: string
12
+ x-access-level:
13
+ schema:
14
+ type: string
15
+ x-client-event-enabled:
16
+ schema:
17
+ type: boolean
18
+ x-connection-hash:
19
+ schema:
20
+ type: string
21
+ x-content-type-options:
22
+ schema:
23
+ type: string
24
+ x-response-time:
25
+ schema:
26
+ type: integer
27
+ x-transaction:
28
+ schema:
29
+ type: string
30
+ x-transaction-id:
31
+ schema:
32
+ type: string
33
+ x-twitter-response-tags:
34
+ schema:
35
+ type: string
@@ -0,0 +1,67 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Twitter OpenAPI
4
+ version: 0.0.1
5
+ paths:
6
+ /parameters:
7
+ get:
8
+ parameters:
9
+ - name: user-agent
10
+ in: header
11
+ required: true
12
+ schema:
13
+ type: string
14
+ default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
15
+ description: "UserAgent, some APIs may be rejected if changed."
16
+ - name: authorization
17
+ in: header
18
+ required: true
19
+ schema:
20
+ type: string
21
+ default: "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
22
+ description: "It is a constant value and does not need to be changed."
23
+ - name: x-twitter-active-user
24
+ in: header
25
+ required: true
26
+ schema:
27
+ type: string
28
+ default: "yes"
29
+ description: "Unknown what this value means."
30
+ - name: x-twitter-client-language
31
+ in: header
32
+ required: true
33
+ schema:
34
+ type: string
35
+ default: "en"
36
+ description: "language code."
37
+ responses:
38
+ "200":
39
+ description: ""
40
+
41
+ components:
42
+ securitySchemes:
43
+ UserAgent:
44
+ description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"
45
+ in: header
46
+ name: user-agent
47
+ type: apiKey
48
+ BearerAuth:
49
+ description: AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
50
+ scheme: bearer
51
+ type: http
52
+ ActiveUser:
53
+ description: "yes"
54
+ in: header
55
+ name: x-twitter-active-user
56
+ type: apiKey
57
+ ClientLanguage:
58
+ description: en
59
+ in: header
60
+ name: x-twitter-client-language
61
+ type: apiKey
62
+
63
+ security:
64
+ - UserAgent: []
65
+ - BearerAuth: []
66
+ - ActiveUser: []
67
+ - ClientLanguage: []