twitter-openapi-typescript-generated 0.0.6 → 0.0.7

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 (118) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/dist/apis/DefaultApi.d.ts +0 -1
  4. package/dist/apis/DefaultApi.d.ts.map +1 -1
  5. package/dist/apis/DefaultApi.js +0 -6
  6. package/dist/apis/DefaultApi.js.map +1 -1
  7. package/dist/apis/TweetApi.d.ts +0 -9
  8. package/dist/apis/TweetApi.d.ts.map +1 -1
  9. package/dist/apis/TweetApi.js +0 -54
  10. package/dist/apis/TweetApi.js.map +1 -1
  11. package/dist/apis/UserApi.d.ts +0 -1
  12. package/dist/apis/UserApi.d.ts.map +1 -1
  13. package/dist/apis/UserApi.js +0 -6
  14. package/dist/apis/UserApi.js.map +1 -1
  15. package/dist/apis/UserListApi.d.ts +0 -2
  16. package/dist/apis/UserListApi.d.ts.map +1 -1
  17. package/dist/apis/UserListApi.js +0 -12
  18. package/dist/apis/UserListApi.js.map +1 -1
  19. package/dist/models/TweetLegacy.d.ts +7 -0
  20. package/dist/models/TweetLegacy.d.ts.map +1 -1
  21. package/dist/models/TweetLegacy.js +3 -0
  22. package/dist/models/TweetLegacy.js.map +1 -1
  23. package/dist/models/TweetLegacySelfThread.d.ts +32 -0
  24. package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
  25. package/dist/models/TweetLegacySelfThread.js +51 -0
  26. package/dist/models/TweetLegacySelfThread.js.map +1 -0
  27. package/dist/models/index.d.ts +1 -0
  28. package/dist/models/index.d.ts.map +1 -1
  29. package/dist/models/index.js +1 -0
  30. package/dist/models/index.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/apis/DefaultApi.ts +0 -9
  33. package/src/apis/TweetApi.ts +0 -81
  34. package/src/apis/UserApi.ts +0 -9
  35. package/src/apis/UserListApi.ts +0 -18
  36. package/src/models/TweetLegacy.ts +14 -0
  37. package/src/models/TweetLegacySelfThread.ts +66 -0
  38. package/src/models/index.ts +1 -0
  39. package/tools/openapi-generator-config.yaml +2 -2
  40. package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
  41. package/twitter-openapi/dist/{test → compatible}/paths/follow.yaml +0 -14
  42. package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
  43. package/twitter-openapi/dist/{test → compatible}/paths/timeline.yaml +0 -21
  44. package/twitter-openapi/dist/{test → compatible}/paths/tweet.yaml +0 -7
  45. package/twitter-openapi/dist/{test → compatible}/paths/user.yaml +0 -7
  46. package/twitter-openapi/dist/{typescript → compatible}/paths/usertweets.yaml +0 -28
  47. package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
  48. package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
  49. package/twitter-openapi/dist/docs/paths/follow.yaml +0 -112
  50. package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
  51. package/twitter-openapi/dist/docs/paths/timeline.yaml +0 -170
  52. package/twitter-openapi/dist/docs/paths/tweet.yaml +0 -61
  53. package/twitter-openapi/dist/docs/paths/user.yaml +0 -41
  54. package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
  55. package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -0
  56. package/twitter-openapi/src/openapi/schemas/tweet.yaml +8 -0
  57. package/twitter-openapi/tools/__pycache__/build_config.cpython-310.pyc +0 -0
  58. package/twitter-openapi/tools/__pycache__/hooks.cpython-310.pyc +0 -0
  59. package/twitter-openapi/tools/build_config.py +67 -190
  60. package/twitter-openapi/tools/hooks.py +28 -7
  61. package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
  62. package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
  63. package/twitter-openapi/dist/dart/paths/follow.yaml +0 -276
  64. package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
  65. package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
  66. package/twitter-openapi/dist/dart/paths/timeline.yaml +0 -401
  67. package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
  68. package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
  69. package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
  70. package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
  71. package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
  72. package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
  73. package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
  74. package/twitter-openapi/dist/test/paths/other.yaml +0 -96
  75. package/twitter-openapi/dist/test/paths/post.yaml +0 -527
  76. package/twitter-openapi/dist/test/paths/usertweets.yaml +0 -396
  77. package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
  78. package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
  79. package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
  80. package/twitter-openapi/dist/test/resources/parameters.yaml +0 -13
  81. package/twitter-openapi/dist/test/response/error.yaml +0 -90
  82. package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
  83. package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
  84. package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
  85. package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
  86. package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -308
  87. package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
  88. package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
  89. package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
  90. package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -218
  91. package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
  92. package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
  93. package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
  94. package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
  95. package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
  96. package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
  97. package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
  98. package/twitter-openapi/dist/typescript/schemas/content.yaml +0 -181
  99. package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
  100. package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
  101. package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
  102. package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -308
  103. package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
  104. package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
  105. /package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +0 -0
  106. /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
  107. /package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +0 -0
  108. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
  109. /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
  110. /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
  111. /package/twitter-openapi/dist/{dart → compatible}/resources/parameters.yaml +0 -0
  112. /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
  113. /package/twitter-openapi/dist/{dart → compatible}/schemas/content.yaml +0 -0
  114. /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
  115. /package/twitter-openapi/dist/{dart → compatible}/schemas/instruction.yaml +0 -0
  116. /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
  117. /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
  118. /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
@@ -1,141 +0,0 @@
1
- components:
2
- schemas:
3
- TweetDetailResponse:
4
- properties:
5
- data:
6
- $ref: '#/components/schemas/TweetDetailResponseData'
7
- required:
8
- - data
9
- TweetDetailResponseData:
10
- properties:
11
- threaded_conversation_with_injections_v2:
12
- $ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
13
- required:
14
- - threaded_conversation_with_injections_v2
15
- info:
16
- title: Twitter OpenAPI
17
- version: 0.0.1
18
- openapi: 3.0.3
19
- paths:
20
- /graphql/{pathQueryId}/TweetDetail:
21
- get:
22
- description: get TweetDetail
23
- operationId: getTweetDetail
24
- parameters:
25
- - in: header
26
- name: user-agent
27
- required: true
28
- schema:
29
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
30
- like Gecko) Chrome/112.0.0.0 Safari/537.36
31
- description: UserAgent, some APIs may be rejected if changed.
32
- type: string
33
- - in: header
34
- name: authorization
35
- required: true
36
- schema:
37
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
38
- description: It is a constant value and does not need to be changed.
39
- type: string
40
- - in: header
41
- name: x-twitter-active-user
42
- required: true
43
- schema:
44
- default: 'yes'
45
- description: Unknown what this value means.
46
- type: string
47
- - in: header
48
- name: x-twitter-client-language
49
- required: true
50
- schema:
51
- default: en
52
- description: language code.
53
- type: string
54
- - in: path
55
- name: pathQueryId
56
- required: true
57
- schema:
58
- default: wNNG8DBB8EaXw1lq4vFWGA
59
- example: wNNG8DBB8EaXw1lq4vFWGA
60
- type: string
61
- - in: query
62
- name: queryId
63
- required: true
64
- schema:
65
- default: '"wNNG8DBB8EaXw1lq4vFWGA"'
66
- example: '"wNNG8DBB8EaXw1lq4vFWGA"'
67
- type: string
68
- - in: query
69
- name: variables
70
- required: true
71
- schema:
72
- default: '{"focalTweetId": "1349129669258448897", "with_rux_injections":
73
- false, "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields":
74
- true, "withBirdwatchNotes": true, "withVoice": true, "withV2Timeline":
75
- true}'
76
- example: '{"focalTweetId": "1349129669258448897", "with_rux_injections":
77
- false, "includePromotedContent": true, "withCommunity": true, "withQuickPromoteEligibilityTweetFields":
78
- true, "withBirdwatchNotes": true, "withVoice": true, "withV2Timeline":
79
- true}'
80
- type: string
81
- - in: query
82
- name: features
83
- required: true
84
- schema:
85
- default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
86
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
87
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
88
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
89
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
90
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
91
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
92
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
93
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
94
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
95
- false}'
96
- example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
97
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
98
- true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
99
- false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
100
- true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
101
- true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
102
- true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
103
- false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
104
- false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
105
- false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
106
- false}'
107
- type: string
108
- responses:
109
- '200':
110
- content:
111
- application/json:
112
- schema:
113
- $ref: '#/components/schemas/TweetDetailResponse'
114
- description: Successful operation
115
- headers:
116
- x-connection-hash:
117
- schema:
118
- type: string
119
- x-rate-limit-limit:
120
- schema:
121
- type: integer
122
- x-rate-limit-remaining:
123
- schema:
124
- type: integer
125
- x-rate-limit-reset:
126
- schema:
127
- type: integer
128
- x-response-time:
129
- schema:
130
- type: integer
131
- x-tfe-preserve-body:
132
- schema:
133
- type: boolean
134
- x-transaction-id:
135
- schema:
136
- type: string
137
- x-twitter-response-tags:
138
- schema:
139
- type: string
140
- tags:
141
- - tweet
@@ -1,119 +0,0 @@
1
- components:
2
- schemas:
3
- UserResponse:
4
- properties:
5
- data:
6
- $ref: '#/components/schemas/UserResponseData'
7
- required:
8
- - data
9
- UserResponseData:
10
- properties:
11
- user:
12
- $ref: ./../schemas/user.yaml#/components/schemas/UserResults
13
- required:
14
- - user
15
- info:
16
- title: Twitter OpenAPI
17
- version: 0.0.1
18
- openapi: 3.0.3
19
- paths:
20
- /graphql/{pathQueryId}/UserByScreenName:
21
- get:
22
- description: get user by screen name
23
- operationId: getUserByScreenName
24
- parameters:
25
- - in: header
26
- name: user-agent
27
- required: true
28
- schema:
29
- default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
30
- like Gecko) Chrome/112.0.0.0 Safari/537.36
31
- description: UserAgent, some APIs may be rejected if changed.
32
- type: string
33
- - in: header
34
- name: authorization
35
- required: true
36
- schema:
37
- default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
38
- description: It is a constant value and does not need to be changed.
39
- type: string
40
- - in: header
41
- name: x-twitter-active-user
42
- required: true
43
- schema:
44
- default: 'yes'
45
- description: Unknown what this value means.
46
- type: string
47
- - in: header
48
- name: x-twitter-client-language
49
- required: true
50
- schema:
51
- default: en
52
- description: language code.
53
- type: string
54
- - in: path
55
- name: pathQueryId
56
- required: true
57
- schema:
58
- default: sLVLhk0bGj3MVFEKTdax1w
59
- example: sLVLhk0bGj3MVFEKTdax1w
60
- type: string
61
- - in: query
62
- name: queryId
63
- required: true
64
- schema:
65
- default: '"sLVLhk0bGj3MVFEKTdax1w"'
66
- example: '"sLVLhk0bGj3MVFEKTdax1w"'
67
- type: string
68
- - in: query
69
- name: variables
70
- required: true
71
- schema:
72
- default: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
73
- example: '{"screen_name": "elonmusk", "withSafetyModeUserFields": true}'
74
- type: string
75
- - in: query
76
- name: features
77
- required: true
78
- schema:
79
- default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
80
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
81
- false, "responsive_web_graphql_timeline_navigation_enabled": true}'
82
- example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
83
- true, "verified_phone_label_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
84
- false, "responsive_web_graphql_timeline_navigation_enabled": true}'
85
- type: string
86
- responses:
87
- '200':
88
- content:
89
- application/json:
90
- schema:
91
- $ref: '#/components/schemas/UserResponse'
92
- description: Successful operation
93
- headers:
94
- x-connection-hash:
95
- schema:
96
- type: string
97
- x-rate-limit-limit:
98
- schema:
99
- type: integer
100
- x-rate-limit-remaining:
101
- schema:
102
- type: integer
103
- x-rate-limit-reset:
104
- schema:
105
- type: integer
106
- x-response-time:
107
- schema:
108
- type: integer
109
- x-tfe-preserve-body:
110
- schema:
111
- type: boolean
112
- x-transaction-id:
113
- schema:
114
- type: string
115
- x-twitter-response-tags:
116
- schema:
117
- type: string
118
- tags:
119
- - user