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.
- package/.openapi-generator-ignore +1 -2
- package/README.md +2 -2
- package/package.json +25 -26
- package/tools/openapi-generator-config.yaml +10 -0
- package/tools/win/clean.ps1 +21 -0
- package/tools/win/gen.ps1 +8 -0
- package/tools/win/init.ps1 +1 -0
- package/tools/win/replace.py +40 -0
- package/twitter-openapi/.vscode/extensions.json +3 -0
- package/twitter-openapi/.vscode/settings.json +9 -0
- package/twitter-openapi/LICENSE.txt +661 -0
- package/twitter-openapi/README.md +38 -0
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +111 -0
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +134 -0
- package/twitter-openapi/dist/dart/paths/follow.yaml +262 -0
- package/twitter-openapi/dist/dart/paths/other.yaml +96 -0
- package/twitter-openapi/dist/dart/paths/post.yaml +834 -0
- package/twitter-openapi/dist/dart/paths/profile.yaml +152 -0
- package/twitter-openapi/dist/dart/paths/timeline.yaml +380 -0
- package/twitter-openapi/dist/dart/paths/tweet.yaml +134 -0
- package/twitter-openapi/dist/dart/paths/user.yaml +112 -0
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +484 -0
- package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +300 -0
- package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +295 -0
- package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +331 -0
- package/twitter-openapi/dist/dart/response/error.yaml +90 -0
- package/twitter-openapi/dist/dart/schemas/content.yaml +181 -0
- package/twitter-openapi/dist/dart/schemas/general.yaml +13 -0
- package/twitter-openapi/dist/dart/schemas/instruction.yaml +83 -0
- package/twitter-openapi/dist/dart/schemas/timeline.yaml +25 -0
- package/twitter-openapi/dist/dart/schemas/tweet.yaml +251 -0
- package/twitter-openapi/dist/dart/schemas/typename.yaml +19 -0
- package/twitter-openapi/dist/dart/schemas/user.yaml +206 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +135 -0
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +248 -0
- package/twitter-openapi/dist/docs/paths/follow.yaml +486 -0
- package/twitter-openapi/dist/docs/paths/other.yaml +96 -0
- package/twitter-openapi/dist/docs/paths/post.yaml +638 -0
- package/twitter-openapi/dist/docs/paths/profile.yaml +159 -0
- package/twitter-openapi/dist/docs/paths/timeline.yaml +730 -0
- package/twitter-openapi/dist/docs/paths/tweet.yaml +272 -0
- package/twitter-openapi/dist/docs/paths/user.yaml +152 -0
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +1010 -0
- package/twitter-openapi/dist/docs/paths/v1.1-get.yaml +242 -0
- package/twitter-openapi/dist/docs/paths/v1.1-post.yaml +237 -0
- package/twitter-openapi/dist/docs/paths/v2.0-get.yaml +302 -0
- package/twitter-openapi/dist/docs/response/error.yaml +90 -0
- package/twitter-openapi/dist/docs/schemas/content.yaml +181 -0
- package/twitter-openapi/dist/docs/schemas/general.yaml +13 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +83 -0
- package/twitter-openapi/dist/docs/schemas/timeline.yaml +25 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +251 -0
- package/twitter-openapi/dist/docs/schemas/typename.yaml +19 -0
- package/twitter-openapi/dist/docs/schemas/user.yaml +206 -0
- package/twitter-openapi/dist/test/openapi-3.0.yaml +135 -0
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +105 -0
- package/twitter-openapi/dist/test/paths/follow.yaml +204 -0
- package/twitter-openapi/dist/test/paths/other.yaml +96 -0
- package/twitter-openapi/dist/test/paths/post.yaml +485 -0
- package/twitter-openapi/dist/test/paths/profile.yaml +123 -0
- package/twitter-openapi/dist/test/paths/timeline.yaml +293 -0
- package/twitter-openapi/dist/test/paths/tweet.yaml +105 -0
- package/twitter-openapi/dist/test/paths/user.yaml +83 -0
- package/twitter-openapi/dist/test/paths/usertweets.yaml +368 -0
- package/twitter-openapi/dist/test/paths/v1.1-get.yaml +242 -0
- package/twitter-openapi/dist/test/paths/v1.1-post.yaml +277 -0
- package/twitter-openapi/dist/test/paths/v2.0-get.yaml +302 -0
- package/twitter-openapi/dist/test/response/error.yaml +90 -0
- package/twitter-openapi/dist/test/schemas/content.yaml +181 -0
- package/twitter-openapi/dist/test/schemas/general.yaml +13 -0
- package/twitter-openapi/dist/test/schemas/instruction.yaml +83 -0
- package/twitter-openapi/dist/test/schemas/timeline.yaml +25 -0
- package/twitter-openapi/dist/test/schemas/tweet.yaml +251 -0
- package/twitter-openapi/dist/test/schemas/typename.yaml +19 -0
- package/twitter-openapi/dist/test/schemas/user.yaml +206 -0
- package/twitter-openapi/dist/typescript/openapi-3.0.yaml +135 -0
- package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +105 -0
- package/twitter-openapi/dist/typescript/paths/follow.yaml +204 -0
- package/twitter-openapi/dist/typescript/paths/other.yaml +96 -0
- package/twitter-openapi/dist/typescript/paths/post.yaml +660 -0
- package/twitter-openapi/dist/typescript/paths/profile.yaml +123 -0
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +293 -0
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +105 -0
- package/twitter-openapi/dist/typescript/paths/user.yaml +83 -0
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +368 -0
- package/twitter-openapi/dist/typescript/paths/v1.1-get.yaml +242 -0
- package/twitter-openapi/dist/typescript/paths/v1.1-post.yaml +237 -0
- package/twitter-openapi/dist/typescript/paths/v2.0-get.yaml +302 -0
- package/twitter-openapi/dist/typescript/response/error.yaml +90 -0
- package/twitter-openapi/dist/typescript/schemas/content.yaml +181 -0
- package/twitter-openapi/dist/typescript/schemas/general.yaml +13 -0
- package/twitter-openapi/dist/typescript/schemas/instruction.yaml +83 -0
- package/twitter-openapi/dist/typescript/schemas/timeline.yaml +25 -0
- package/twitter-openapi/dist/typescript/schemas/tweet.yaml +251 -0
- package/twitter-openapi/dist/typescript/schemas/typename.yaml +19 -0
- package/twitter-openapi/dist/typescript/schemas/user.yaml +206 -0
- package/twitter-openapi/requirements.txt +0 -0
- package/twitter-openapi/src/config/component/response_header.yaml +32 -0
- package/twitter-openapi/src/config/component/response_header_legacy.yaml +35 -0
- package/twitter-openapi/src/config/component/security_schemes.yaml +67 -0
- package/twitter-openapi/src/config/placeholder.json +535 -0
- package/twitter-openapi/src/openapi/openapi-3.0.yaml +68 -0
- package/twitter-openapi/src/openapi/paths/bookmarks.yaml +42 -0
- package/twitter-openapi/src/openapi/paths/follow.yaml +73 -0
- package/twitter-openapi/src/openapi/paths/other.yaml +101 -0
- package/twitter-openapi/src/openapi/paths/post.yaml +246 -0
- package/twitter-openapi/src/openapi/paths/profile.yaml +81 -0
- package/twitter-openapi/src/openapi/paths/timeline.yaml +98 -0
- package/twitter-openapi/src/openapi/paths/tweet.yaml +35 -0
- package/twitter-openapi/src/openapi/paths/user.yaml +35 -0
- package/twitter-openapi/src/openapi/paths/usertweets.yaml +94 -0
- package/twitter-openapi/src/openapi/paths/v1.1-get.yaml +25 -0
- package/twitter-openapi/src/openapi/paths/v1.1-post.yaml +25 -0
- package/twitter-openapi/src/openapi/paths/v2.0-get.yaml +15 -0
- package/twitter-openapi/src/openapi/response/error.yaml +97 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +190 -0
- package/twitter-openapi/src/openapi/schemas/general.yaml +12 -0
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +90 -0
- package/twitter-openapi/src/openapi/schemas/timeline.yaml +27 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +264 -0
- package/twitter-openapi/src/openapi/schemas/typename.yaml +21 -0
- package/twitter-openapi/src/openapi/schemas/user.yaml +210 -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/twitter-openapi/tools/build.py +79 -0
- package/twitter-openapi/tools/build_config.py +200 -0
- package/twitter-openapi/tools/hooks.py +265 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
components:
|
|
2
|
+
schemas:
|
|
3
|
+
ProfileResponse:
|
|
4
|
+
properties:
|
|
5
|
+
data:
|
|
6
|
+
$ref: '#/components/schemas/ProfileResponseData'
|
|
7
|
+
required:
|
|
8
|
+
- data
|
|
9
|
+
ProfileResponseData:
|
|
10
|
+
properties:
|
|
11
|
+
user_result_by_screen_name:
|
|
12
|
+
$ref: '#/components/schemas/UserResultByScreenName'
|
|
13
|
+
required:
|
|
14
|
+
- user_result_by_screen_name
|
|
15
|
+
UserResultByScreenName:
|
|
16
|
+
properties:
|
|
17
|
+
id:
|
|
18
|
+
pattern: ^[0-9a-zA-Z]+$
|
|
19
|
+
type: string
|
|
20
|
+
result:
|
|
21
|
+
$ref: '#/components/schemas/UserResultByScreenNameResult'
|
|
22
|
+
required:
|
|
23
|
+
- id
|
|
24
|
+
- result
|
|
25
|
+
UserResultByScreenNameLegacy:
|
|
26
|
+
properties:
|
|
27
|
+
blocked_by:
|
|
28
|
+
type: boolean
|
|
29
|
+
blocking:
|
|
30
|
+
type: boolean
|
|
31
|
+
followed_by:
|
|
32
|
+
type: boolean
|
|
33
|
+
following:
|
|
34
|
+
type: boolean
|
|
35
|
+
name:
|
|
36
|
+
type: string
|
|
37
|
+
protected:
|
|
38
|
+
type: boolean
|
|
39
|
+
screen_name:
|
|
40
|
+
type: string
|
|
41
|
+
UserResultByScreenNameResult:
|
|
42
|
+
properties:
|
|
43
|
+
__typename:
|
|
44
|
+
$ref: ./../schemas/typename.yaml#/components/schemas/TypeName
|
|
45
|
+
id:
|
|
46
|
+
pattern: ^[0-9a-zA-Z=]+$
|
|
47
|
+
type: string
|
|
48
|
+
legacy:
|
|
49
|
+
$ref: '#/components/schemas/UserResultByScreenNameLegacy'
|
|
50
|
+
profilemodules:
|
|
51
|
+
type: object
|
|
52
|
+
rest_id:
|
|
53
|
+
pattern: ^[0-9]+$
|
|
54
|
+
type: string
|
|
55
|
+
required:
|
|
56
|
+
- __typename
|
|
57
|
+
- id
|
|
58
|
+
- legacy
|
|
59
|
+
- profilemodules
|
|
60
|
+
- rest_id
|
|
61
|
+
info:
|
|
62
|
+
title: Twitter OpenAPI
|
|
63
|
+
version: 0.0.1
|
|
64
|
+
openapi: 3.0.3
|
|
65
|
+
paths:
|
|
66
|
+
/graphql/9zwVLJ48lmVUk8u_Gh9DmA/ProfileSpotlightsQuery:
|
|
67
|
+
get:
|
|
68
|
+
description: get user by screen name
|
|
69
|
+
operationId: getProfileSpotlightsQuery
|
|
70
|
+
parameters:
|
|
71
|
+
- content:
|
|
72
|
+
application/json:
|
|
73
|
+
required:
|
|
74
|
+
- '9'
|
|
75
|
+
- z
|
|
76
|
+
- w
|
|
77
|
+
- V
|
|
78
|
+
- L
|
|
79
|
+
- J
|
|
80
|
+
- '4'
|
|
81
|
+
- '8'
|
|
82
|
+
- l
|
|
83
|
+
- m
|
|
84
|
+
- V
|
|
85
|
+
- U
|
|
86
|
+
- k
|
|
87
|
+
- '8'
|
|
88
|
+
- u
|
|
89
|
+
- _
|
|
90
|
+
- G
|
|
91
|
+
- h
|
|
92
|
+
- '9'
|
|
93
|
+
- D
|
|
94
|
+
- m
|
|
95
|
+
- A
|
|
96
|
+
schema:
|
|
97
|
+
default: 9zwVLJ48lmVUk8u_Gh9DmA
|
|
98
|
+
example: 9zwVLJ48lmVUk8u_Gh9DmA
|
|
99
|
+
type: string
|
|
100
|
+
in: query
|
|
101
|
+
name: queryId
|
|
102
|
+
required: true
|
|
103
|
+
- content:
|
|
104
|
+
application/json:
|
|
105
|
+
required:
|
|
106
|
+
- screen_name
|
|
107
|
+
schema:
|
|
108
|
+
properties:
|
|
109
|
+
screen_name:
|
|
110
|
+
default: elonmusk
|
|
111
|
+
example: elonmusk
|
|
112
|
+
type: string
|
|
113
|
+
required:
|
|
114
|
+
- screen_name
|
|
115
|
+
type: object
|
|
116
|
+
in: query
|
|
117
|
+
name: variables
|
|
118
|
+
required: true
|
|
119
|
+
- content:
|
|
120
|
+
application/json:
|
|
121
|
+
required: []
|
|
122
|
+
schema:
|
|
123
|
+
properties: {}
|
|
124
|
+
type: object
|
|
125
|
+
in: query
|
|
126
|
+
name: features
|
|
127
|
+
required: true
|
|
128
|
+
responses:
|
|
129
|
+
'200':
|
|
130
|
+
content:
|
|
131
|
+
application/json:
|
|
132
|
+
schema:
|
|
133
|
+
$ref: '#/components/schemas/ProfileResponse'
|
|
134
|
+
description: Successful operation
|
|
135
|
+
headers:
|
|
136
|
+
x-connection-hash:
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
x-rate-limit-limit:
|
|
140
|
+
schema:
|
|
141
|
+
type: integer
|
|
142
|
+
x-rate-limit-remaining:
|
|
143
|
+
schema:
|
|
144
|
+
type: integer
|
|
145
|
+
x-rate-limit-reset:
|
|
146
|
+
schema:
|
|
147
|
+
type: integer
|
|
148
|
+
x-response-time:
|
|
149
|
+
schema:
|
|
150
|
+
type: integer
|
|
151
|
+
x-tfe-preserve-body:
|
|
152
|
+
schema:
|
|
153
|
+
type: boolean
|
|
154
|
+
x-transaction-id:
|
|
155
|
+
schema:
|
|
156
|
+
type: string
|
|
157
|
+
x-twitter-response-tags:
|
|
158
|
+
schema:
|
|
159
|
+
type: string
|