twitter-openapi-typescript-generated 0.0.6 → 0.0.8
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 +18 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +0 -1
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +0 -6
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +17 -12
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +90 -55
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +27 -2
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +166 -6
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +41 -3
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +255 -12
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/models/ContentItemType.d.ts +2 -0
- package/dist/models/ContentItemType.d.ts.map +1 -1
- package/dist/models/ContentItemType.js +3 -1
- package/dist/models/ContentItemType.js.map +1 -1
- package/dist/models/InstructionType.d.ts +3 -0
- package/dist/models/InstructionType.d.ts.map +1 -1
- package/dist/models/InstructionType.js +3 -0
- package/dist/models/InstructionType.js.map +1 -1
- package/dist/models/InstructionUnion.d.ts +9 -0
- package/dist/models/InstructionUnion.d.ts.map +1 -1
- package/dist/models/InstructionUnion.js +15 -0
- package/dist/models/InstructionUnion.js.map +1 -1
- package/dist/models/ItemContentUnion.d.ts +6 -0
- package/dist/models/ItemContentUnion.d.ts.map +1 -1
- package/dist/models/ItemContentUnion.js +10 -0
- package/dist/models/ItemContentUnion.js.map +1 -1
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts +33 -0
- package/dist/models/ListLatestTweetsTimelineResponse.d.ts.map +1 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js +52 -0
- package/dist/models/ListLatestTweetsTimelineResponse.js.map +1 -0
- package/dist/models/SearchByRawQuery.d.ts +33 -0
- package/dist/models/SearchByRawQuery.d.ts.map +1 -0
- package/dist/models/SearchByRawQuery.js +52 -0
- package/dist/models/SearchByRawQuery.js.map +1 -0
- package/dist/models/SearchTimeline.d.ts +33 -0
- package/dist/models/SearchTimeline.d.ts.map +1 -0
- package/dist/models/SearchTimeline.js +52 -0
- package/dist/models/SearchTimeline.js.map +1 -0
- package/dist/models/SearchTimelineData.d.ts +33 -0
- package/dist/models/SearchTimelineData.d.ts.map +1 -0
- package/dist/models/SearchTimelineData.js +52 -0
- package/dist/models/SearchTimelineData.js.map +1 -0
- package/dist/models/SearchTimelineResponse.d.ts +33 -0
- package/dist/models/SearchTimelineResponse.d.ts.map +1 -0
- package/dist/models/SearchTimelineResponse.js +52 -0
- package/dist/models/SearchTimelineResponse.js.map +1 -0
- package/dist/models/TimelineAddToModule.d.ts +52 -0
- package/dist/models/TimelineAddToModule.d.ts.map +1 -0
- package/dist/models/TimelineAddToModule.js +62 -0
- package/dist/models/TimelineAddToModule.js.map +1 -0
- package/dist/models/TimelineMessagePrompt.d.ts +33 -0
- package/dist/models/TimelineMessagePrompt.d.ts.map +1 -0
- package/dist/models/TimelineMessagePrompt.js +52 -0
- package/dist/models/TimelineMessagePrompt.js.map +1 -0
- package/dist/models/TimelinePrompt.d.ts +33 -0
- package/dist/models/TimelinePrompt.d.ts.map +1 -0
- package/dist/models/TimelinePrompt.js +52 -0
- package/dist/models/TimelinePrompt.js.map +1 -0
- package/dist/models/TimelineReplaceEntry.d.ts +46 -0
- package/dist/models/TimelineReplaceEntry.d.ts.map +1 -0
- package/dist/models/TimelineReplaceEntry.js +59 -0
- package/dist/models/TimelineReplaceEntry.js.map +1 -0
- package/dist/models/TimelineShowAlert.d.ts +97 -0
- package/dist/models/TimelineShowAlert.d.ts.map +1 -0
- package/dist/models/TimelineShowAlert.js +85 -0
- package/dist/models/TimelineShowAlert.js.map +1 -0
- package/dist/models/TimelineShowAlertRichText.d.ts +38 -0
- package/dist/models/TimelineShowAlertRichText.d.ts.map +1 -0
- package/dist/models/TimelineShowAlertRichText.js +53 -0
- package/dist/models/TimelineShowAlertRichText.js.map +1 -0
- package/dist/models/TweetFavoritersResponse.d.ts +33 -0
- package/dist/models/TweetFavoritersResponse.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponse.js +52 -0
- package/dist/models/TweetFavoritersResponse.js.map +1 -0
- package/dist/models/TweetFavoritersResponseData.d.ts +33 -0
- package/dist/models/TweetFavoritersResponseData.d.ts.map +1 -0
- package/dist/models/TweetFavoritersResponseData.js +52 -0
- package/dist/models/TweetFavoritersResponseData.js.map +1 -0
- package/dist/models/TweetLegacy.d.ts +7 -0
- package/dist/models/TweetLegacy.d.ts.map +1 -1
- package/dist/models/TweetLegacy.js +3 -0
- package/dist/models/TweetLegacy.js.map +1 -1
- package/dist/models/TweetLegacySelfThread.d.ts +32 -0
- package/dist/models/TweetLegacySelfThread.d.ts.map +1 -0
- package/dist/models/TweetLegacySelfThread.js +51 -0
- package/dist/models/TweetLegacySelfThread.js.map +1 -0
- package/dist/models/TweetRetweetersResponse.d.ts +33 -0
- package/dist/models/TweetRetweetersResponse.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponse.js +52 -0
- package/dist/models/TweetRetweetersResponse.js.map +1 -0
- package/dist/models/TweetRetweetersResponseData.d.ts +33 -0
- package/dist/models/TweetRetweetersResponseData.d.ts.map +1 -0
- package/dist/models/TweetRetweetersResponseData.js +52 -0
- package/dist/models/TweetRetweetersResponseData.js.map +1 -0
- package/dist/models/UsersResponse.d.ts +33 -0
- package/dist/models/UsersResponse.d.ts.map +1 -0
- package/dist/models/UsersResponse.js +52 -0
- package/dist/models/UsersResponse.js.map +1 -0
- package/dist/models/UsersResponseData.d.ts +33 -0
- package/dist/models/UsersResponseData.d.ts.map +1 -0
- package/dist/models/UsersResponseData.js +52 -0
- package/dist/models/UsersResponseData.js.map +1 -0
- package/dist/models/index.d.ts +18 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +18 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +3 -2
- package/src/apis/DefaultApi.ts +0 -9
- package/src/apis/TweetApi.ts +102 -87
- package/src/apis/UserApi.ts +171 -9
- package/src/apis/UserListApi.ts +267 -18
- package/src/models/ContentItemType.ts +3 -1
- package/src/models/InstructionType.ts +3 -0
- package/src/models/InstructionUnion.ts +34 -1
- package/src/models/ItemContentUnion.ts +23 -1
- package/src/models/{ListTweetsTimelineResponse.ts → ListLatestTweetsTimelineResponse.ts} +9 -9
- package/src/models/SearchByRawQuery.ts +73 -0
- package/src/models/SearchTimeline.ts +73 -0
- package/src/models/SearchTimelineData.ts +73 -0
- package/src/models/SearchTimelineResponse.ts +73 -0
- package/src/models/TimelineAddToModule.ts +105 -0
- package/src/models/TimelineMessagePrompt.ts +72 -0
- package/src/models/TimelinePrompt.ts +72 -0
- package/src/models/TimelineReplaceEntry.ts +97 -0
- package/src/models/TimelineShowAlert.ts +169 -0
- package/src/models/TimelineShowAlertRichText.ts +73 -0
- package/src/models/TweetFavoritersResponse.ts +73 -0
- package/src/models/TweetFavoritersResponseData.ts +73 -0
- package/src/models/TweetLegacy.ts +14 -0
- package/src/models/TweetLegacySelfThread.ts +66 -0
- package/src/models/TweetRetweetersResponse.ts +73 -0
- package/src/models/TweetRetweetersResponseData.ts +73 -0
- package/src/models/UsersResponse.ts +73 -0
- package/src/models/UsersResponseData.ts +73 -0
- package/src/models/index.ts +18 -1
- package/tools/openapi-generator-config.yaml +2 -2
- package/tools/win/replace.py +1 -1
- package/twitter-openapi/dist/{test → compatible}/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/{typescript → compatible}/paths/bookmarks.yaml +0 -7
- package/twitter-openapi/dist/{dart → compatible}/paths/follow.yaml +82 -63
- package/twitter-openapi/dist/{test → compatible}/paths/profile.yaml +0 -7
- package/twitter-openapi/dist/{dart → compatible}/paths/timeline.yaml +118 -111
- package/twitter-openapi/dist/compatible/paths/tweet.yaml +297 -0
- package/twitter-openapi/dist/compatible/paths/user.yaml +227 -0
- package/twitter-openapi/dist/{test → compatible}/paths/usertweets.yaml +0 -28
- package/twitter-openapi/dist/{typescript → compatible}/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/compatible/schemas/instruction.yaml +160 -0
- package/twitter-openapi/dist/{dart → compatible}/schemas/tweet.yaml +8 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +12 -0
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +0 -56
- package/twitter-openapi/dist/docs/paths/follow.yaml +193 -112
- package/twitter-openapi/dist/docs/paths/profile.yaml +0 -35
- package/twitter-openapi/dist/docs/paths/timeline.yaml +225 -173
- package/twitter-openapi/dist/docs/paths/tweet.yaml +382 -61
- package/twitter-openapi/dist/docs/paths/user.yaml +214 -41
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +0 -238
- package/twitter-openapi/dist/docs/schemas/content.yaml +14 -0
- package/twitter-openapi/dist/docs/schemas/instruction.yaml +77 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +8 -0
- package/twitter-openapi/src/config/placeholder.json +155 -0
- package/twitter-openapi/src/openapi/paths/follow.yaml +14 -0
- package/twitter-openapi/src/openapi/paths/timeline.yaml +44 -2
- package/twitter-openapi/src/openapi/paths/tweet.yaml +56 -0
- package/twitter-openapi/src/openapi/paths/user.yaml +44 -0
- package/twitter-openapi/src/openapi/schemas/content.yaml +23 -1
- package/twitter-openapi/src/openapi/schemas/instruction.yaml +78 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +8 -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_config.py +67 -190
- package/twitter-openapi/tools/hooks.py +28 -7
- package/dist/models/ListTweetsTimelineResponse.d.ts +0 -33
- package/dist/models/ListTweetsTimelineResponse.d.ts.map +0 -1
- package/dist/models/ListTweetsTimelineResponse.js +0 -52
- package/dist/models/ListTweetsTimelineResponse.js.map +0 -1
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +0 -117
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +0 -141
- package/twitter-openapi/dist/dart/paths/post.yaml +0 -876
- package/twitter-openapi/dist/dart/paths/profile.yaml +0 -159
- package/twitter-openapi/dist/dart/paths/tweet.yaml +0 -141
- package/twitter-openapi/dist/dart/paths/user.yaml +0 -119
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +0 -512
- package/twitter-openapi/dist/dart/paths/v1.1-get.yaml +0 -300
- package/twitter-openapi/dist/dart/paths/v1.1-post.yaml +0 -295
- package/twitter-openapi/dist/dart/paths/v2.0-get.yaml +0 -331
- package/twitter-openapi/dist/dart/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/dart/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +0 -112
- package/twitter-openapi/dist/test/paths/follow.yaml +0 -218
- package/twitter-openapi/dist/test/paths/other.yaml +0 -96
- package/twitter-openapi/dist/test/paths/post.yaml +0 -527
- package/twitter-openapi/dist/test/paths/timeline.yaml +0 -314
- package/twitter-openapi/dist/test/paths/tweet.yaml +0 -112
- package/twitter-openapi/dist/test/paths/user.yaml +0 -90
- package/twitter-openapi/dist/test/paths/v1.1-get.yaml +0 -242
- package/twitter-openapi/dist/test/paths/v1.1-post.yaml +0 -277
- package/twitter-openapi/dist/test/paths/v2.0-get.yaml +0 -302
- package/twitter-openapi/dist/test/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/test/response/error.yaml +0 -90
- package/twitter-openapi/dist/test/schemas/content.yaml +0 -181
- package/twitter-openapi/dist/test/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/test/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/test/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/test/schemas/tweet.yaml +0 -308
- package/twitter-openapi/dist/test/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/test/schemas/user.yaml +0 -206
- package/twitter-openapi/dist/typescript/openapi-3.0.yaml +0 -141
- package/twitter-openapi/dist/typescript/paths/follow.yaml +0 -218
- package/twitter-openapi/dist/typescript/paths/other.yaml +0 -96
- package/twitter-openapi/dist/typescript/paths/profile.yaml +0 -130
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +0 -314
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +0 -112
- package/twitter-openapi/dist/typescript/paths/user.yaml +0 -90
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +0 -396
- package/twitter-openapi/dist/typescript/resources/parameters.yaml +0 -13
- package/twitter-openapi/dist/typescript/response/error.yaml +0 -90
- package/twitter-openapi/dist/typescript/schemas/general.yaml +0 -13
- package/twitter-openapi/dist/typescript/schemas/instruction.yaml +0 -83
- package/twitter-openapi/dist/typescript/schemas/timeline.yaml +0 -25
- package/twitter-openapi/dist/typescript/schemas/tweet.yaml +0 -308
- package/twitter-openapi/dist/typescript/schemas/typename.yaml +0 -19
- package/twitter-openapi/dist/typescript/schemas/user.yaml +0 -206
- /package/twitter-openapi/dist/{dart → compatible}/paths/other.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/post.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-get.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v1.1-post.yaml +0 -0
- /package/twitter-openapi/dist/{typescript → compatible}/paths/v2.0-get.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/resources/parameters.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/response/error.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/general.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/timeline.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/typename.yaml +0 -0
- /package/twitter-openapi/dist/{dart → compatible}/schemas/user.yaml +0 -0
package/dist/models/index.d.ts
CHANGED
|
@@ -33,10 +33,10 @@ export * from './InstructionType';
|
|
|
33
33
|
export * from './InstructionUnion';
|
|
34
34
|
export * from './ItemContentUnion';
|
|
35
35
|
export * from './ItemResult';
|
|
36
|
+
export * from './ListLatestTweetsTimelineResponse';
|
|
36
37
|
export * from './ListTweetsTimeline';
|
|
37
38
|
export * from './ListTweetsTimelineData';
|
|
38
39
|
export * from './ListTweetsTimelineList';
|
|
39
|
-
export * from './ListTweetsTimelineResponse';
|
|
40
40
|
export * from './Media';
|
|
41
41
|
export * from './MediaOriginalInfo';
|
|
42
42
|
export * from './ModuleEntry';
|
|
@@ -58,14 +58,24 @@ export * from './ProfileResponse';
|
|
|
58
58
|
export * from './ProfileResponseData';
|
|
59
59
|
export * from './Retweet';
|
|
60
60
|
export * from './RetweetLegacy';
|
|
61
|
+
export * from './SearchByRawQuery';
|
|
62
|
+
export * from './SearchTimeline';
|
|
63
|
+
export * from './SearchTimelineData';
|
|
64
|
+
export * from './SearchTimelineResponse';
|
|
61
65
|
export * from './Session';
|
|
62
66
|
export * from './SocialContext';
|
|
63
67
|
export * from './Timeline';
|
|
64
68
|
export * from './TimelineAddEntries';
|
|
65
69
|
export * from './TimelineAddEntry';
|
|
70
|
+
export * from './TimelineAddToModule';
|
|
66
71
|
export * from './TimelineClearCache';
|
|
72
|
+
export * from './TimelineMessagePrompt';
|
|
67
73
|
export * from './TimelinePinEntry';
|
|
74
|
+
export * from './TimelinePrompt';
|
|
75
|
+
export * from './TimelineReplaceEntry';
|
|
68
76
|
export * from './TimelineResponse';
|
|
77
|
+
export * from './TimelineShowAlert';
|
|
78
|
+
export * from './TimelineShowAlertRichText';
|
|
69
79
|
export * from './TimelineTerminateTimeline';
|
|
70
80
|
export * from './TimelineTimelineCursor';
|
|
71
81
|
export * from './TimelineTimelineItem';
|
|
@@ -82,7 +92,12 @@ export * from './TweetDetailResponse';
|
|
|
82
92
|
export * from './TweetDetailResponseData';
|
|
83
93
|
export * from './TweetEditControl';
|
|
84
94
|
export * from './TweetEditPrespective';
|
|
95
|
+
export * from './TweetFavoritersResponse';
|
|
96
|
+
export * from './TweetFavoritersResponseData';
|
|
85
97
|
export * from './TweetLegacy';
|
|
98
|
+
export * from './TweetLegacySelfThread';
|
|
99
|
+
export * from './TweetRetweetersResponse';
|
|
100
|
+
export * from './TweetRetweetersResponseData';
|
|
86
101
|
export * from './TweetTombstone';
|
|
87
102
|
export * from './TweetUnion';
|
|
88
103
|
export * from './TweetViews';
|
|
@@ -105,4 +120,6 @@ export * from './UserTweetsData';
|
|
|
105
120
|
export * from './UserTweetsResponse';
|
|
106
121
|
export * from './UserTweetsResult';
|
|
107
122
|
export * from './UserTweetsUser';
|
|
123
|
+
export * from './UsersResponse';
|
|
124
|
+
export * from './UsersResponseData';
|
|
108
125
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B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C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
package/dist/models/index.js
CHANGED
|
@@ -51,10 +51,10 @@ __exportStar(require("./InstructionType"), exports);
|
|
|
51
51
|
__exportStar(require("./InstructionUnion"), exports);
|
|
52
52
|
__exportStar(require("./ItemContentUnion"), exports);
|
|
53
53
|
__exportStar(require("./ItemResult"), exports);
|
|
54
|
+
__exportStar(require("./ListLatestTweetsTimelineResponse"), exports);
|
|
54
55
|
__exportStar(require("./ListTweetsTimeline"), exports);
|
|
55
56
|
__exportStar(require("./ListTweetsTimelineData"), exports);
|
|
56
57
|
__exportStar(require("./ListTweetsTimelineList"), exports);
|
|
57
|
-
__exportStar(require("./ListTweetsTimelineResponse"), exports);
|
|
58
58
|
__exportStar(require("./Media"), exports);
|
|
59
59
|
__exportStar(require("./MediaOriginalInfo"), exports);
|
|
60
60
|
__exportStar(require("./ModuleEntry"), exports);
|
|
@@ -76,14 +76,24 @@ __exportStar(require("./ProfileResponse"), exports);
|
|
|
76
76
|
__exportStar(require("./ProfileResponseData"), exports);
|
|
77
77
|
__exportStar(require("./Retweet"), exports);
|
|
78
78
|
__exportStar(require("./RetweetLegacy"), exports);
|
|
79
|
+
__exportStar(require("./SearchByRawQuery"), exports);
|
|
80
|
+
__exportStar(require("./SearchTimeline"), exports);
|
|
81
|
+
__exportStar(require("./SearchTimelineData"), exports);
|
|
82
|
+
__exportStar(require("./SearchTimelineResponse"), exports);
|
|
79
83
|
__exportStar(require("./Session"), exports);
|
|
80
84
|
__exportStar(require("./SocialContext"), exports);
|
|
81
85
|
__exportStar(require("./Timeline"), exports);
|
|
82
86
|
__exportStar(require("./TimelineAddEntries"), exports);
|
|
83
87
|
__exportStar(require("./TimelineAddEntry"), exports);
|
|
88
|
+
__exportStar(require("./TimelineAddToModule"), exports);
|
|
84
89
|
__exportStar(require("./TimelineClearCache"), exports);
|
|
90
|
+
__exportStar(require("./TimelineMessagePrompt"), exports);
|
|
85
91
|
__exportStar(require("./TimelinePinEntry"), exports);
|
|
92
|
+
__exportStar(require("./TimelinePrompt"), exports);
|
|
93
|
+
__exportStar(require("./TimelineReplaceEntry"), exports);
|
|
86
94
|
__exportStar(require("./TimelineResponse"), exports);
|
|
95
|
+
__exportStar(require("./TimelineShowAlert"), exports);
|
|
96
|
+
__exportStar(require("./TimelineShowAlertRichText"), exports);
|
|
87
97
|
__exportStar(require("./TimelineTerminateTimeline"), exports);
|
|
88
98
|
__exportStar(require("./TimelineTimelineCursor"), exports);
|
|
89
99
|
__exportStar(require("./TimelineTimelineItem"), exports);
|
|
@@ -100,7 +110,12 @@ __exportStar(require("./TweetDetailResponse"), exports);
|
|
|
100
110
|
__exportStar(require("./TweetDetailResponseData"), exports);
|
|
101
111
|
__exportStar(require("./TweetEditControl"), exports);
|
|
102
112
|
__exportStar(require("./TweetEditPrespective"), exports);
|
|
113
|
+
__exportStar(require("./TweetFavoritersResponse"), exports);
|
|
114
|
+
__exportStar(require("./TweetFavoritersResponseData"), exports);
|
|
103
115
|
__exportStar(require("./TweetLegacy"), exports);
|
|
116
|
+
__exportStar(require("./TweetLegacySelfThread"), exports);
|
|
117
|
+
__exportStar(require("./TweetRetweetersResponse"), exports);
|
|
118
|
+
__exportStar(require("./TweetRetweetersResponseData"), exports);
|
|
104
119
|
__exportStar(require("./TweetTombstone"), exports);
|
|
105
120
|
__exportStar(require("./TweetUnion"), exports);
|
|
106
121
|
__exportStar(require("./TweetViews"), exports);
|
|
@@ -123,4 +138,6 @@ __exportStar(require("./UserTweetsData"), exports);
|
|
|
123
138
|
__exportStar(require("./UserTweetsResponse"), exports);
|
|
124
139
|
__exportStar(require("./UserTweetsResult"), exports);
|
|
125
140
|
__exportStar(require("./UserTweetsUser"), exports);
|
|
141
|
+
__exportStar(require("./UsersResponse"), exports);
|
|
142
|
+
__exportStar(require("./UsersResponseData"), exports);
|
|
126
143
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,gDAA8B;AAC9B,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,8DAA4C;AAC5C,mDAAiC;AACjC,uDAAqC;AACrC,yDAAuC;AACvC,uDAAqC;AACrC,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,2DAAyC;AACzC,2DAAyC;AACzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,sDAAoC;AACpC,0DAAwC;AACxC,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,iDAA+B;AAC/B,kDAAgC;AAChC,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,gDAA8B;AAC9B,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,0DAAwC;AACxC,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C;AAC1C,8DAA4C;AAC5C,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,8DAA4C;AAC5C,mDAAiC;AACjC,uDAAqC;AACrC,yDAAuC;AACvC,uDAAqC;AACrC,mD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iDAA+B;AAC/B,qDAAmC;AACnC,2DAAyC;AACzC,iEAA+C;AAC/C,iEAA+C;AAC/C,mDAAiC;AACjC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twitter-openapi-typescript-generated",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "OpenAPI client for twitter-openapi-typescript-generated",
|
|
5
5
|
"author": "fa0311",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"keywords": [
|
|
21
21
|
"twitter",
|
|
22
22
|
"api",
|
|
23
|
-
"typescript"
|
|
23
|
+
"typescript",
|
|
24
|
+
"scraper"
|
|
24
25
|
]
|
|
25
26
|
}
|
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
|
|
25
25
|
export interface GetProfileSpotlightsQueryRequest {
|
|
26
26
|
pathQueryId: string;
|
|
27
|
-
queryId: string;
|
|
28
27
|
variables: string;
|
|
29
28
|
features: string;
|
|
30
29
|
}
|
|
@@ -42,10 +41,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
42
41
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getProfileSpotlightsQuery.');
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
46
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getProfileSpotlightsQuery.');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
44
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
50
45
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getProfileSpotlightsQuery.');
|
|
51
46
|
}
|
|
@@ -56,10 +51,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
56
51
|
|
|
57
52
|
const queryParameters: any = {};
|
|
58
53
|
|
|
59
|
-
if (requestParameters.queryId !== undefined) {
|
|
60
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
54
|
if (requestParameters.variables !== undefined) {
|
|
64
55
|
queryParameters['variables'] = requestParameters.variables;
|
|
65
56
|
}
|
package/src/apis/TweetApi.ts
CHANGED
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
BookmarksResponse,
|
|
19
|
-
|
|
19
|
+
ListLatestTweetsTimelineResponse,
|
|
20
|
+
SearchTimelineResponse,
|
|
20
21
|
TimelineResponse,
|
|
21
22
|
TweetDetailResponse,
|
|
22
23
|
UserTweetsResponse,
|
|
@@ -24,8 +25,10 @@ import type {
|
|
|
24
25
|
import {
|
|
25
26
|
BookmarksResponseFromJSON,
|
|
26
27
|
BookmarksResponseToJSON,
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
ListLatestTweetsTimelineResponseFromJSON,
|
|
29
|
+
ListLatestTweetsTimelineResponseToJSON,
|
|
30
|
+
SearchTimelineResponseFromJSON,
|
|
31
|
+
SearchTimelineResponseToJSON,
|
|
29
32
|
TimelineResponseFromJSON,
|
|
30
33
|
TimelineResponseToJSON,
|
|
31
34
|
TweetDetailResponseFromJSON,
|
|
@@ -36,63 +39,61 @@ import {
|
|
|
36
39
|
|
|
37
40
|
export interface GetBookmarksRequest {
|
|
38
41
|
pathQueryId: string;
|
|
39
|
-
queryId: string;
|
|
40
42
|
variables: string;
|
|
41
43
|
features: string;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export interface GetHomeLatestTimelineRequest {
|
|
45
47
|
pathQueryId: string;
|
|
46
|
-
queryId: string;
|
|
47
48
|
variables: string;
|
|
48
49
|
features: string;
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
export interface GetHomeTimelineRequest {
|
|
52
53
|
pathQueryId: string;
|
|
53
|
-
queryId: string;
|
|
54
54
|
variables: string;
|
|
55
55
|
features: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export interface GetLikesRequest {
|
|
59
59
|
pathQueryId: string;
|
|
60
|
-
queryId: string;
|
|
61
60
|
variables: string;
|
|
62
61
|
features: string;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
export interface GetListLatestTweetsTimelineRequest {
|
|
66
65
|
pathQueryId: string;
|
|
67
|
-
queryId: string;
|
|
68
66
|
variables: string;
|
|
69
67
|
features: string;
|
|
70
68
|
}
|
|
71
69
|
|
|
70
|
+
export interface GetSearchTimelineRequest {
|
|
71
|
+
pathQueryId: string;
|
|
72
|
+
variables: string;
|
|
73
|
+
features: string;
|
|
74
|
+
fieldToggles: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
export interface GetTweetDetailRequest {
|
|
73
78
|
pathQueryId: string;
|
|
74
|
-
queryId: string;
|
|
75
79
|
variables: string;
|
|
76
80
|
features: string;
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
export interface GetUserMediaRequest {
|
|
80
84
|
pathQueryId: string;
|
|
81
|
-
queryId: string;
|
|
82
85
|
variables: string;
|
|
83
86
|
features: string;
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
export interface GetUserTweetsRequest {
|
|
87
90
|
pathQueryId: string;
|
|
88
|
-
queryId: string;
|
|
89
91
|
variables: string;
|
|
90
92
|
features: string;
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
export interface GetUserTweetsAndRepliesRequest {
|
|
94
96
|
pathQueryId: string;
|
|
95
|
-
queryId: string;
|
|
96
97
|
variables: string;
|
|
97
98
|
features: string;
|
|
98
99
|
}
|
|
@@ -110,10 +111,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
110
111
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getBookmarks.');
|
|
111
112
|
}
|
|
112
113
|
|
|
113
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
114
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getBookmarks.');
|
|
115
|
-
}
|
|
116
|
-
|
|
117
114
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
118
115
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getBookmarks.');
|
|
119
116
|
}
|
|
@@ -124,10 +121,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
124
121
|
|
|
125
122
|
const queryParameters: any = {};
|
|
126
123
|
|
|
127
|
-
if (requestParameters.queryId !== undefined) {
|
|
128
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
124
|
if (requestParameters.variables !== undefined) {
|
|
132
125
|
queryParameters['variables'] = requestParameters.variables;
|
|
133
126
|
}
|
|
@@ -196,10 +189,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
196
189
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeLatestTimeline.');
|
|
197
190
|
}
|
|
198
191
|
|
|
199
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
200
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getHomeLatestTimeline.');
|
|
201
|
-
}
|
|
202
|
-
|
|
203
192
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
204
193
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getHomeLatestTimeline.');
|
|
205
194
|
}
|
|
@@ -210,10 +199,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
210
199
|
|
|
211
200
|
const queryParameters: any = {};
|
|
212
201
|
|
|
213
|
-
if (requestParameters.queryId !== undefined) {
|
|
214
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
202
|
if (requestParameters.variables !== undefined) {
|
|
218
203
|
queryParameters['variables'] = requestParameters.variables;
|
|
219
204
|
}
|
|
@@ -282,10 +267,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
282
267
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeTimeline.');
|
|
283
268
|
}
|
|
284
269
|
|
|
285
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
286
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getHomeTimeline.');
|
|
287
|
-
}
|
|
288
|
-
|
|
289
270
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
290
271
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getHomeTimeline.');
|
|
291
272
|
}
|
|
@@ -296,10 +277,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
296
277
|
|
|
297
278
|
const queryParameters: any = {};
|
|
298
279
|
|
|
299
|
-
if (requestParameters.queryId !== undefined) {
|
|
300
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
280
|
if (requestParameters.variables !== undefined) {
|
|
304
281
|
queryParameters['variables'] = requestParameters.variables;
|
|
305
282
|
}
|
|
@@ -368,10 +345,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
368
345
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getLikes.');
|
|
369
346
|
}
|
|
370
347
|
|
|
371
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
372
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getLikes.');
|
|
373
|
-
}
|
|
374
|
-
|
|
375
348
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
376
349
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getLikes.');
|
|
377
350
|
}
|
|
@@ -382,10 +355,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
382
355
|
|
|
383
356
|
const queryParameters: any = {};
|
|
384
357
|
|
|
385
|
-
if (requestParameters.queryId !== undefined) {
|
|
386
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
358
|
if (requestParameters.variables !== undefined) {
|
|
390
359
|
queryParameters['variables'] = requestParameters.variables;
|
|
391
360
|
}
|
|
@@ -449,15 +418,11 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
449
418
|
/**
|
|
450
419
|
* get tweet list of timeline
|
|
451
420
|
*/
|
|
452
|
-
async getListLatestTweetsTimelineRaw(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
421
|
+
async getListLatestTweetsTimelineRaw(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListLatestTweetsTimelineResponse>> {
|
|
453
422
|
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
454
423
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getListLatestTweetsTimeline.');
|
|
455
424
|
}
|
|
456
425
|
|
|
457
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
458
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getListLatestTweetsTimeline.');
|
|
459
|
-
}
|
|
460
|
-
|
|
461
426
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
462
427
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getListLatestTweetsTimeline.');
|
|
463
428
|
}
|
|
@@ -468,10 +433,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
468
433
|
|
|
469
434
|
const queryParameters: any = {};
|
|
470
435
|
|
|
471
|
-
if (requestParameters.queryId !== undefined) {
|
|
472
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
436
|
if (requestParameters.variables !== undefined) {
|
|
476
437
|
queryParameters['variables'] = requestParameters.variables;
|
|
477
438
|
}
|
|
@@ -521,17 +482,103 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
521
482
|
query: queryParameters,
|
|
522
483
|
}, initOverrides);
|
|
523
484
|
|
|
524
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
485
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ListLatestTweetsTimelineResponseFromJSON(jsonValue));
|
|
525
486
|
}
|
|
526
487
|
|
|
527
488
|
/**
|
|
528
489
|
* get tweet list of timeline
|
|
529
490
|
*/
|
|
530
|
-
async getListLatestTweetsTimeline(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
491
|
+
async getListLatestTweetsTimeline(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListLatestTweetsTimelineResponse> {
|
|
531
492
|
const response = await this.getListLatestTweetsTimelineRaw(requestParameters, initOverrides);
|
|
532
493
|
return await response.value();
|
|
533
494
|
}
|
|
534
495
|
|
|
496
|
+
/**
|
|
497
|
+
* search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
498
|
+
*/
|
|
499
|
+
async getSearchTimelineRaw(requestParameters: GetSearchTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchTimelineResponse>> {
|
|
500
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
501
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getSearchTimeline.');
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
505
|
+
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getSearchTimeline.');
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
if (requestParameters.features === null || requestParameters.features === undefined) {
|
|
509
|
+
throw new runtime.RequiredError('features','Required parameter requestParameters.features was null or undefined when calling getSearchTimeline.');
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if (requestParameters.fieldToggles === null || requestParameters.fieldToggles === undefined) {
|
|
513
|
+
throw new runtime.RequiredError('fieldToggles','Required parameter requestParameters.fieldToggles was null or undefined when calling getSearchTimeline.');
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
const queryParameters: any = {};
|
|
517
|
+
|
|
518
|
+
if (requestParameters.variables !== undefined) {
|
|
519
|
+
queryParameters['variables'] = requestParameters.variables;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
if (requestParameters.features !== undefined) {
|
|
523
|
+
queryParameters['features'] = requestParameters.features;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
if (requestParameters.fieldToggles !== undefined) {
|
|
527
|
+
queryParameters['fieldToggles'] = requestParameters.fieldToggles;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
531
|
+
|
|
532
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
533
|
+
headerParameters["x-twitter-client-language"] = this.configuration.apiKey("x-twitter-client-language"); // ClientLanguage authentication
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
537
|
+
headerParameters["x-twitter-active-user"] = this.configuration.apiKey("x-twitter-active-user"); // ActiveUser authentication
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
541
|
+
headerParameters["user-agent"] = this.configuration.apiKey("user-agent"); // UserAgent authentication
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
545
|
+
headerParameters["x-twitter-auth-type"] = this.configuration.apiKey("x-twitter-auth-type"); // AuthType authentication
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
549
|
+
headerParameters["x-csrf-token"] = this.configuration.apiKey("x-csrf-token"); // CsrfToken authentication
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
553
|
+
headerParameters["x-guest-token"] = this.configuration.apiKey("x-guest-token"); // GuestToken authentication
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
557
|
+
const token = this.configuration.accessToken;
|
|
558
|
+
const tokenString = await token("BearerAuth", []);
|
|
559
|
+
|
|
560
|
+
if (tokenString) {
|
|
561
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
const response = await this.request({
|
|
565
|
+
path: `/graphql/{pathQueryId}/SearchTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
566
|
+
method: 'GET',
|
|
567
|
+
headers: headerParameters,
|
|
568
|
+
query: queryParameters,
|
|
569
|
+
}, initOverrides);
|
|
570
|
+
|
|
571
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SearchTimelineResponseFromJSON(jsonValue));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
576
|
+
*/
|
|
577
|
+
async getSearchTimeline(requestParameters: GetSearchTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchTimelineResponse> {
|
|
578
|
+
const response = await this.getSearchTimelineRaw(requestParameters, initOverrides);
|
|
579
|
+
return await response.value();
|
|
580
|
+
}
|
|
581
|
+
|
|
535
582
|
/**
|
|
536
583
|
* get TweetDetail
|
|
537
584
|
*/
|
|
@@ -540,10 +587,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
540
587
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getTweetDetail.');
|
|
541
588
|
}
|
|
542
589
|
|
|
543
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
544
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getTweetDetail.');
|
|
545
|
-
}
|
|
546
|
-
|
|
547
590
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
548
591
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getTweetDetail.');
|
|
549
592
|
}
|
|
@@ -554,10 +597,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
554
597
|
|
|
555
598
|
const queryParameters: any = {};
|
|
556
599
|
|
|
557
|
-
if (requestParameters.queryId !== undefined) {
|
|
558
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
600
|
if (requestParameters.variables !== undefined) {
|
|
562
601
|
queryParameters['variables'] = requestParameters.variables;
|
|
563
602
|
}
|
|
@@ -626,10 +665,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
626
665
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserMedia.');
|
|
627
666
|
}
|
|
628
667
|
|
|
629
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
630
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserMedia.');
|
|
631
|
-
}
|
|
632
|
-
|
|
633
668
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
634
669
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUserMedia.');
|
|
635
670
|
}
|
|
@@ -640,10 +675,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
640
675
|
|
|
641
676
|
const queryParameters: any = {};
|
|
642
677
|
|
|
643
|
-
if (requestParameters.queryId !== undefined) {
|
|
644
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
678
|
if (requestParameters.variables !== undefined) {
|
|
648
679
|
queryParameters['variables'] = requestParameters.variables;
|
|
649
680
|
}
|
|
@@ -712,10 +743,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
712
743
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweets.');
|
|
713
744
|
}
|
|
714
745
|
|
|
715
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
716
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserTweets.');
|
|
717
|
-
}
|
|
718
|
-
|
|
719
746
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
720
747
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUserTweets.');
|
|
721
748
|
}
|
|
@@ -726,10 +753,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
726
753
|
|
|
727
754
|
const queryParameters: any = {};
|
|
728
755
|
|
|
729
|
-
if (requestParameters.queryId !== undefined) {
|
|
730
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
756
|
if (requestParameters.variables !== undefined) {
|
|
734
757
|
queryParameters['variables'] = requestParameters.variables;
|
|
735
758
|
}
|
|
@@ -798,10 +821,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
798
821
|
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweetsAndReplies.');
|
|
799
822
|
}
|
|
800
823
|
|
|
801
|
-
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
802
|
-
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserTweetsAndReplies.');
|
|
803
|
-
}
|
|
804
|
-
|
|
805
824
|
if (requestParameters.variables === null || requestParameters.variables === undefined) {
|
|
806
825
|
throw new runtime.RequiredError('variables','Required parameter requestParameters.variables was null or undefined when calling getUserTweetsAndReplies.');
|
|
807
826
|
}
|
|
@@ -812,10 +831,6 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
812
831
|
|
|
813
832
|
const queryParameters: any = {};
|
|
814
833
|
|
|
815
|
-
if (requestParameters.queryId !== undefined) {
|
|
816
|
-
queryParameters['queryId'] = requestParameters.queryId;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
834
|
if (requestParameters.variables !== undefined) {
|
|
820
835
|
queryParameters['variables'] = requestParameters.variables;
|
|
821
836
|
}
|