twitter-openapi-typescript-generated 0.0.5 → 0.0.6
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 +6 -1
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +1 -0
- package/dist/apis/DefaultApi.d.ts.map +1 -1
- package/dist/apis/DefaultApi.js +4 -1
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/apis/PostApi.d.ts +6 -0
- package/dist/apis/PostApi.d.ts.map +1 -1
- package/dist/apis/PostApi.js +24 -6
- package/dist/apis/PostApi.js.map +1 -1
- package/dist/apis/TweetApi.d.ts +9 -0
- package/dist/apis/TweetApi.d.ts.map +1 -1
- package/dist/apis/TweetApi.js +36 -9
- package/dist/apis/TweetApi.js.map +1 -1
- package/dist/apis/UserApi.d.ts +1 -0
- package/dist/apis/UserApi.d.ts.map +1 -1
- package/dist/apis/UserApi.js +4 -1
- package/dist/apis/UserApi.js.map +1 -1
- package/dist/apis/UserListApi.d.ts +2 -0
- package/dist/apis/UserListApi.d.ts.map +1 -1
- package/dist/apis/UserListApi.js +8 -2
- package/dist/apis/UserListApi.js.map +1 -1
- package/dist/models/Entities.d.ts +3 -2
- package/dist/models/Entities.d.ts.map +1 -1
- package/dist/models/Entities.js +3 -2
- package/dist/models/Entities.js.map +1 -1
- package/dist/models/PostCreateRetweetRequest.d.ts +3 -3
- package/dist/models/PostCreateRetweetRequest.d.ts.map +1 -1
- package/dist/models/PostCreateRetweetRequest.js +3 -3
- package/dist/models/PostCreateRetweetRequest.js.map +1 -1
- package/dist/models/PostCreateRetweetRequestVariables.d.ts +38 -0
- package/dist/models/PostCreateRetweetRequestVariables.d.ts.map +1 -0
- package/dist/models/PostCreateRetweetRequestVariables.js +54 -0
- package/dist/models/PostCreateRetweetRequestVariables.js.map +1 -0
- package/dist/models/PostDeleteTweetRequest.d.ts +3 -3
- package/dist/models/PostDeleteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostDeleteTweetRequest.js +3 -3
- package/dist/models/PostDeleteTweetRequest.js.map +1 -1
- package/dist/models/PostFavoriteTweetRequest.d.ts +3 -3
- package/dist/models/PostFavoriteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostFavoriteTweetRequest.js +3 -3
- package/dist/models/PostFavoriteTweetRequest.js.map +1 -1
- package/dist/models/PostUnfavoriteTweetRequest.d.ts +3 -3
- package/dist/models/PostUnfavoriteTweetRequest.d.ts.map +1 -1
- package/dist/models/PostUnfavoriteTweetRequest.js +3 -3
- package/dist/models/PostUnfavoriteTweetRequest.js.map +1 -1
- package/dist/models/Tweet.d.ts +7 -0
- package/dist/models/Tweet.d.ts.map +1 -1
- package/dist/models/Tweet.js +3 -0
- package/dist/models/Tweet.js.map +1 -1
- package/dist/models/TweetCard.d.ts +39 -0
- package/dist/models/TweetCard.d.ts.map +1 -0
- package/dist/models/TweetCard.js +54 -0
- package/dist/models/TweetCard.js.map +1 -0
- package/dist/models/TweetCardLegacy.d.ts +45 -0
- package/dist/models/TweetCardLegacy.d.ts.map +1 -0
- package/dist/models/TweetCardLegacy.js +58 -0
- package/dist/models/TweetCardLegacy.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts +39 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.js +55 -0
- package/dist/models/TweetCardLegacyBindingValuesInner.js.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts +50 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.d.ts.map +1 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js +58 -0
- package/dist/models/TweetCardLegacyBindingValuesInnerValue.js.map +1 -0
- package/dist/models/Url.d.ts +50 -0
- package/dist/models/Url.d.ts.map +1 -0
- package/dist/models/Url.js +60 -0
- package/dist/models/Url.js.map +1 -0
- package/dist/models/index.d.ts +6 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +6 -1
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +6 -1
- package/src/apis/PostApi.ts +36 -6
- package/src/apis/TweetApi.ts +54 -9
- package/src/apis/UserApi.ts +6 -1
- package/src/apis/UserListApi.ts +12 -2
- package/src/models/Entities.ts +10 -4
- package/src/models/PostCreateRetweetRequest.ts +9 -9
- package/src/models/{PostDeleteTweetRequestVariables.ts → PostCreateRetweetRequestVariables.ts} +10 -10
- package/src/models/PostDeleteTweetRequest.ts +9 -9
- package/src/models/PostFavoriteTweetRequest.ts +9 -9
- package/src/models/PostUnfavoriteTweetRequest.ts +9 -9
- package/src/models/Tweet.ts +14 -0
- package/src/models/TweetCard.ts +80 -0
- package/src/models/TweetCardLegacy.ts +91 -0
- package/src/models/TweetCardLegacyBindingValuesInner.ts +82 -0
- package/src/models/TweetCardLegacyBindingValuesInnerValue.ts +90 -0
- package/src/models/Url.ts +93 -0
- package/src/models/index.ts +6 -1
- package/tools/openapi-generator-config.yaml +1 -1
- package/tools/win/replace.py +20 -20
- package/twitter-openapi/README.md +4 -6
- package/twitter-openapi/dist/dart/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/dart/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/follow.yaml +24 -10
- package/twitter-openapi/dist/dart/paths/post.yaml +157 -115
- package/twitter-openapi/dist/dart/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/timeline.yaml +38 -17
- package/twitter-openapi/dist/dart/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/user.yaml +8 -1
- package/twitter-openapi/dist/dart/paths/usertweets.yaml +54 -26
- package/twitter-openapi/dist/dart/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/dart/schemas/tweet.yaml +57 -0
- package/twitter-openapi/dist/docs/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/docs/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/follow.yaml +60 -46
- package/twitter-openapi/dist/docs/paths/post.yaml +124 -82
- package/twitter-openapi/dist/docs/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/timeline.yaml +92 -71
- package/twitter-openapi/dist/docs/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/user.yaml +8 -1
- package/twitter-openapi/dist/docs/paths/usertweets.yaml +122 -94
- package/twitter-openapi/dist/docs/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/docs/schemas/tweet.yaml +57 -0
- package/twitter-openapi/dist/test/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/test/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/test/paths/follow.yaml +24 -10
- package/twitter-openapi/dist/test/paths/post.yaml +108 -66
- package/twitter-openapi/dist/test/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/test/paths/timeline.yaml +38 -17
- package/twitter-openapi/dist/test/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/test/paths/user.yaml +8 -1
- package/twitter-openapi/dist/test/paths/usertweets.yaml +54 -26
- package/twitter-openapi/dist/test/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/test/schemas/tweet.yaml +57 -0
- package/twitter-openapi/dist/typescript/openapi-3.0.yaml +38 -38
- package/twitter-openapi/dist/typescript/paths/bookmarks.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/follow.yaml +24 -10
- package/twitter-openapi/dist/typescript/paths/post.yaml +135 -93
- package/twitter-openapi/dist/typescript/paths/profile.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/timeline.yaml +38 -17
- package/twitter-openapi/dist/typescript/paths/tweet.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/user.yaml +8 -1
- package/twitter-openapi/dist/typescript/paths/usertweets.yaml +54 -26
- package/twitter-openapi/dist/typescript/resources/parameters.yaml +13 -0
- package/twitter-openapi/dist/typescript/schemas/tweet.yaml +57 -0
- package/twitter-openapi/src/openapi/paths/bookmarks.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/follow.yaml +2 -2
- package/twitter-openapi/src/openapi/paths/post.yaml +6 -6
- package/twitter-openapi/src/openapi/paths/profile.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/timeline.yaml +3 -3
- package/twitter-openapi/src/openapi/paths/tweet.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/user.yaml +1 -1
- package/twitter-openapi/src/openapi/paths/usertweets.yaml +4 -4
- package/twitter-openapi/src/openapi/resources/parameters.yaml +15 -0
- package/twitter-openapi/src/openapi/schemas/tweet.yaml +58 -1
- 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 +12 -12
- package/twitter-openapi/tools/hooks.py +30 -6
- package/dist/models/PostDeleteTweetRequestVariables.d.ts +0 -38
- package/dist/models/PostDeleteTweetRequestVariables.d.ts.map +0 -1
- package/dist/models/PostDeleteTweetRequestVariables.js +0 -54
- package/dist/models/PostDeleteTweetRequestVariables.js.map +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Twitter OpenAPI
|
|
3
|
+
* Twitter OpenAPI(Swagger) specification
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1
|
|
6
|
+
* Contact: yuki@yuki0311.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Url
|
|
16
|
+
*/
|
|
17
|
+
export interface Url {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Url
|
|
22
|
+
*/
|
|
23
|
+
displayUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Url
|
|
28
|
+
*/
|
|
29
|
+
expandedUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<number>}
|
|
33
|
+
* @memberof Url
|
|
34
|
+
*/
|
|
35
|
+
indices: Array<number>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Url
|
|
40
|
+
*/
|
|
41
|
+
url: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Url interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUrl(value: object): boolean;
|
|
47
|
+
export declare function UrlFromJSON(json: any): Url;
|
|
48
|
+
export declare function UrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): Url;
|
|
49
|
+
export declare function UrlToJSON(value?: Url | null): any;
|
|
50
|
+
//# sourceMappingURL=Url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Url.d.ts","sourceRoot":"","sources":["../../src/models/Url.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAQpD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE1C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,GAAG,CAW7E;AAED,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,GAAG,CAcjD"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Twitter OpenAPI
|
|
6
|
+
* Twitter OpenAPI(Swagger) specification
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
* Contact: yuki@yuki0311.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UrlToJSON = exports.UrlFromJSONTyped = exports.UrlFromJSON = exports.instanceOfUrl = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the Url interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUrl(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "displayUrl" in value;
|
|
23
|
+
isInstance = isInstance && "expandedUrl" in value;
|
|
24
|
+
isInstance = isInstance && "indices" in value;
|
|
25
|
+
isInstance = isInstance && "url" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfUrl = instanceOfUrl;
|
|
29
|
+
function UrlFromJSON(json) {
|
|
30
|
+
return UrlFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.UrlFromJSON = UrlFromJSON;
|
|
33
|
+
function UrlFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'displayUrl': json['display_url'],
|
|
39
|
+
'expandedUrl': json['expanded_url'],
|
|
40
|
+
'indices': json['indices'],
|
|
41
|
+
'url': json['url'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.UrlFromJSONTyped = UrlFromJSONTyped;
|
|
45
|
+
function UrlToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'display_url': value.displayUrl,
|
|
54
|
+
'expanded_url': value.expandedUrl,
|
|
55
|
+
'indices': value.indices,
|
|
56
|
+
'url': value.url,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.UrlToJSON = UrlToJSON;
|
|
60
|
+
//# sourceMappingURL=Url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Url.js","sourceRoot":"","sources":["../../src/models/Url.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAmCH;;GAEG;AACH,SAAgB,aAAa,CAAC,KAAa;IACvC,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,UAAU,GAAG,UAAU,IAAI,YAAY,IAAI,KAAK,CAAC;IACjD,UAAU,GAAG,UAAU,IAAI,aAAa,IAAI,KAAK,CAAC;IAClD,UAAU,GAAG,UAAU,IAAI,SAAS,IAAI,KAAK,CAAC;IAC9C,UAAU,GAAG,UAAU,IAAI,KAAK,IAAI,KAAK,CAAC;IAE1C,OAAO,UAAU,CAAC;AACtB,CAAC;AARD,sCAQC;AAED,SAAgB,WAAW,CAAC,IAAS;IACjC,OAAO,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzC,CAAC;AAFD,kCAEC;AAED,SAAgB,gBAAgB,CAAC,IAAS,EAAE,mBAA4B;IACpE,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE;QACzC,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC;QACjC,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC;QACnC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;KACrB,CAAC;AACN,CAAC;AAXD,4CAWC;AAED,SAAgB,SAAS,CAAC,KAAkB;IACxC,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,KAAK,KAAK,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,cAAc,EAAE,KAAK,CAAC,WAAW;QACjC,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,KAAK,EAAE,KAAK,CAAC,GAAG;KACnB,CAAC;AACN,CAAC;AAdD,8BAcC"}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './ModuleItem';
|
|
|
44
44
|
export * from './OneFactorLoginEligibility';
|
|
45
45
|
export * from './OtherResponse';
|
|
46
46
|
export * from './PostCreateRetweetRequest';
|
|
47
|
+
export * from './PostCreateRetweetRequestVariables';
|
|
47
48
|
export * from './PostCreateTweetRequest';
|
|
48
49
|
export * from './PostCreateTweetRequestFeatures';
|
|
49
50
|
export * from './PostCreateTweetRequestVariables';
|
|
@@ -51,7 +52,6 @@ export * from './PostCreateTweetRequestVariablesMedia';
|
|
|
51
52
|
export * from './PostDeleteRetweetRequest';
|
|
52
53
|
export * from './PostDeleteRetweetRequestVariables';
|
|
53
54
|
export * from './PostDeleteTweetRequest';
|
|
54
|
-
export * from './PostDeleteTweetRequestVariables';
|
|
55
55
|
export * from './PostFavoriteTweetRequest';
|
|
56
56
|
export * from './PostUnfavoriteTweetRequest';
|
|
57
57
|
export * from './ProfileResponse';
|
|
@@ -74,6 +74,10 @@ export * from './TimelineTweet';
|
|
|
74
74
|
export * from './TimelineUser';
|
|
75
75
|
export * from './TimelineV2';
|
|
76
76
|
export * from './Tweet';
|
|
77
|
+
export * from './TweetCard';
|
|
78
|
+
export * from './TweetCardLegacy';
|
|
79
|
+
export * from './TweetCardLegacyBindingValuesInner';
|
|
80
|
+
export * from './TweetCardLegacyBindingValuesInnerValue';
|
|
77
81
|
export * from './TweetDetailResponse';
|
|
78
82
|
export * from './TweetDetailResponseData';
|
|
79
83
|
export * from './TweetEditControl';
|
|
@@ -86,6 +90,7 @@ export * from './TweetWithVisibilityResults';
|
|
|
86
90
|
export * from './TypeName';
|
|
87
91
|
export * from './UnfavoriteTweet';
|
|
88
92
|
export * from './UnfavoriteTweetResponseData';
|
|
93
|
+
export * from './Url';
|
|
89
94
|
export * from './User';
|
|
90
95
|
export * from './UserFeatures';
|
|
91
96
|
export * from './UserLegacy';
|
|
@@ -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,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAA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CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
package/dist/models/index.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./ModuleItem"), exports);
|
|
|
62
62
|
__exportStar(require("./OneFactorLoginEligibility"), exports);
|
|
63
63
|
__exportStar(require("./OtherResponse"), exports);
|
|
64
64
|
__exportStar(require("./PostCreateRetweetRequest"), exports);
|
|
65
|
+
__exportStar(require("./PostCreateRetweetRequestVariables"), exports);
|
|
65
66
|
__exportStar(require("./PostCreateTweetRequest"), exports);
|
|
66
67
|
__exportStar(require("./PostCreateTweetRequestFeatures"), exports);
|
|
67
68
|
__exportStar(require("./PostCreateTweetRequestVariables"), exports);
|
|
@@ -69,7 +70,6 @@ __exportStar(require("./PostCreateTweetRequestVariablesMedia"), exports);
|
|
|
69
70
|
__exportStar(require("./PostDeleteRetweetRequest"), exports);
|
|
70
71
|
__exportStar(require("./PostDeleteRetweetRequestVariables"), exports);
|
|
71
72
|
__exportStar(require("./PostDeleteTweetRequest"), exports);
|
|
72
|
-
__exportStar(require("./PostDeleteTweetRequestVariables"), exports);
|
|
73
73
|
__exportStar(require("./PostFavoriteTweetRequest"), exports);
|
|
74
74
|
__exportStar(require("./PostUnfavoriteTweetRequest"), exports);
|
|
75
75
|
__exportStar(require("./ProfileResponse"), exports);
|
|
@@ -92,6 +92,10 @@ __exportStar(require("./TimelineTweet"), exports);
|
|
|
92
92
|
__exportStar(require("./TimelineUser"), exports);
|
|
93
93
|
__exportStar(require("./TimelineV2"), exports);
|
|
94
94
|
__exportStar(require("./Tweet"), exports);
|
|
95
|
+
__exportStar(require("./TweetCard"), exports);
|
|
96
|
+
__exportStar(require("./TweetCardLegacy"), exports);
|
|
97
|
+
__exportStar(require("./TweetCardLegacyBindingValuesInner"), exports);
|
|
98
|
+
__exportStar(require("./TweetCardLegacyBindingValuesInnerValue"), exports);
|
|
95
99
|
__exportStar(require("./TweetDetailResponse"), exports);
|
|
96
100
|
__exportStar(require("./TweetDetailResponseData"), exports);
|
|
97
101
|
__exportStar(require("./TweetEditControl"), exports);
|
|
@@ -104,6 +108,7 @@ __exportStar(require("./TweetWithVisibilityResults"), exports);
|
|
|
104
108
|
__exportStar(require("./TypeName"), exports);
|
|
105
109
|
__exportStar(require("./UnfavoriteTweet"), exports);
|
|
106
110
|
__exportStar(require("./UnfavoriteTweetResponseData"), exports);
|
|
111
|
+
__exportStar(require("./Url"), exports);
|
|
107
112
|
__exportStar(require("./User"), exports);
|
|
108
113
|
__exportStar(require("./UserFeatures"), exports);
|
|
109
114
|
__exportStar(require("./UserLegacy"), exports);
|
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,+DAA6C;AAC7C,0CAAwB;AACxB,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,8DAA4C;AAC5C,kDAAgC;AAChC,6DAA2C;AAC3C,2DAAyC;AACzC,mEAAiD;AACjD,oEAAkD;AAClD,yEAAuD;AACvD,6DAA2C;AAC3C,sEAAoD;AACpD,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,mDAAiC;AACjC,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,+CAA6B;AAC7B,uDAAqC;AACrC,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C;AAC7C,0CAAwB;AACxB,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,8DAA4C;AAC5C,kDAAgC;AAChC,6DAA2C;AAC3C,sEAAoD;AACpD,2DAAyC;AACzC,mEAAiD;AACjD,oEAAkD;AAClD,yEAAuD;AACvD,6DAA2C;AAC3C,sEAAoD;AACpD,2DAAyC;AACzC,6DAA2C;AAC3C,+DAA6C;AAC7C,oDAAkC;AAClC,wDAAsC;AACtC,4CAA0B;AAC1B,kDAAgC;AAChC,4CAA0B;AAC1B,kDAAgC;AAChC,6CAA2B;AAC3B,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,8DAA4C;AAC5C,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,0CAAwB;AACxB,8CAA4B;AAC5B,oDAAkC;AAClC,sEAAoD;AACpD,2EAAyD;AACzD,wDAAsC;AACtC,4DAA0C;AAC1C,qDAAmC;AACnC,yDAAuC;AACvC,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,6CAA2B;AAC3B,oDAAkC;AAClC,gEAA8C;AAC9C,wCAAsB;AACtB,yCAAuB;AACvB,iDAA+B;AAC/B,+CAA6B;AAC7B,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"}
|
package/package.json
CHANGED
package/src/apis/DefaultApi.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
} from '../models';
|
|
24
24
|
|
|
25
25
|
export interface GetProfileSpotlightsQueryRequest {
|
|
26
|
+
pathQueryId: string;
|
|
26
27
|
queryId: string;
|
|
27
28
|
variables: string;
|
|
28
29
|
features: string;
|
|
@@ -37,6 +38,10 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
37
38
|
* get user by screen name
|
|
38
39
|
*/
|
|
39
40
|
async getProfileSpotlightsQueryRaw(requestParameters: GetProfileSpotlightsQueryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProfileResponse>> {
|
|
41
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
42
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getProfileSpotlightsQuery.');
|
|
43
|
+
}
|
|
44
|
+
|
|
40
45
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
41
46
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getProfileSpotlightsQuery.');
|
|
42
47
|
}
|
|
@@ -98,7 +103,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
const response = await this.request({
|
|
101
|
-
path: `/graphql/
|
|
106
|
+
path: `/graphql/{pathQueryId}/ProfileSpotlightsQuery`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
102
107
|
method: 'GET',
|
|
103
108
|
headers: headerParameters,
|
|
104
109
|
query: queryParameters,
|
package/src/apis/PostApi.ts
CHANGED
|
@@ -56,26 +56,32 @@ import {
|
|
|
56
56
|
} from '../models';
|
|
57
57
|
|
|
58
58
|
export interface PostCreateRetweetOperationRequest {
|
|
59
|
+
pathQueryId: string;
|
|
59
60
|
postCreateRetweetRequest: PostCreateRetweetRequest;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
export interface PostCreateTweetOperationRequest {
|
|
64
|
+
pathQueryId: string;
|
|
63
65
|
postCreateTweetRequest: PostCreateTweetRequest;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
export interface PostDeleteRetweetOperationRequest {
|
|
69
|
+
pathQueryId: string;
|
|
67
70
|
postDeleteRetweetRequest: PostDeleteRetweetRequest;
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
export interface PostDeleteTweetOperationRequest {
|
|
74
|
+
pathQueryId: string;
|
|
71
75
|
postDeleteTweetRequest: PostDeleteTweetRequest;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
export interface PostFavoriteTweetOperationRequest {
|
|
79
|
+
pathQueryId: string;
|
|
75
80
|
postFavoriteTweetRequest: PostFavoriteTweetRequest;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
export interface PostUnfavoriteTweetOperationRequest {
|
|
84
|
+
pathQueryId: string;
|
|
79
85
|
postUnfavoriteTweetRequest: PostUnfavoriteTweetRequest;
|
|
80
86
|
}
|
|
81
87
|
|
|
@@ -88,6 +94,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
88
94
|
* create Retweet
|
|
89
95
|
*/
|
|
90
96
|
async postCreateRetweetRaw(requestParameters: PostCreateRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateRetweetResponse>> {
|
|
97
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
98
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateRetweet.');
|
|
99
|
+
}
|
|
100
|
+
|
|
91
101
|
if (requestParameters.postCreateRetweetRequest === null || requestParameters.postCreateRetweetRequest === undefined) {
|
|
92
102
|
throw new runtime.RequiredError('postCreateRetweetRequest','Required parameter requestParameters.postCreateRetweetRequest was null or undefined when calling postCreateRetweet.');
|
|
93
103
|
}
|
|
@@ -131,7 +141,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
131
141
|
}
|
|
132
142
|
}
|
|
133
143
|
const response = await this.request({
|
|
134
|
-
path: `/graphql/
|
|
144
|
+
path: `/graphql/{pathQueryId}/CreateRetweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
135
145
|
method: 'POST',
|
|
136
146
|
headers: headerParameters,
|
|
137
147
|
query: queryParameters,
|
|
@@ -153,6 +163,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
153
163
|
* create Tweet
|
|
154
164
|
*/
|
|
155
165
|
async postCreateTweetRaw(requestParameters: PostCreateTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateTweetResponse>> {
|
|
166
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
167
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postCreateTweet.');
|
|
168
|
+
}
|
|
169
|
+
|
|
156
170
|
if (requestParameters.postCreateTweetRequest === null || requestParameters.postCreateTweetRequest === undefined) {
|
|
157
171
|
throw new runtime.RequiredError('postCreateTweetRequest','Required parameter requestParameters.postCreateTweetRequest was null or undefined when calling postCreateTweet.');
|
|
158
172
|
}
|
|
@@ -196,7 +210,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
196
210
|
}
|
|
197
211
|
}
|
|
198
212
|
const response = await this.request({
|
|
199
|
-
path: `/graphql/
|
|
213
|
+
path: `/graphql/{pathQueryId}/CreateTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
200
214
|
method: 'POST',
|
|
201
215
|
headers: headerParameters,
|
|
202
216
|
query: queryParameters,
|
|
@@ -218,6 +232,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
218
232
|
* delete Retweet
|
|
219
233
|
*/
|
|
220
234
|
async postDeleteRetweetRaw(requestParameters: PostDeleteRetweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteRetweetResponse>> {
|
|
235
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
236
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteRetweet.');
|
|
237
|
+
}
|
|
238
|
+
|
|
221
239
|
if (requestParameters.postDeleteRetweetRequest === null || requestParameters.postDeleteRetweetRequest === undefined) {
|
|
222
240
|
throw new runtime.RequiredError('postDeleteRetweetRequest','Required parameter requestParameters.postDeleteRetweetRequest was null or undefined when calling postDeleteRetweet.');
|
|
223
241
|
}
|
|
@@ -261,7 +279,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
261
279
|
}
|
|
262
280
|
}
|
|
263
281
|
const response = await this.request({
|
|
264
|
-
path: `/graphql/
|
|
282
|
+
path: `/graphql/{pathQueryId}/DeleteRetweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
265
283
|
method: 'POST',
|
|
266
284
|
headers: headerParameters,
|
|
267
285
|
query: queryParameters,
|
|
@@ -283,6 +301,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
283
301
|
* delete Retweet
|
|
284
302
|
*/
|
|
285
303
|
async postDeleteTweetRaw(requestParameters: PostDeleteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteTweetResponse>> {
|
|
304
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
305
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postDeleteTweet.');
|
|
306
|
+
}
|
|
307
|
+
|
|
286
308
|
if (requestParameters.postDeleteTweetRequest === null || requestParameters.postDeleteTweetRequest === undefined) {
|
|
287
309
|
throw new runtime.RequiredError('postDeleteTweetRequest','Required parameter requestParameters.postDeleteTweetRequest was null or undefined when calling postDeleteTweet.');
|
|
288
310
|
}
|
|
@@ -326,7 +348,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
326
348
|
}
|
|
327
349
|
}
|
|
328
350
|
const response = await this.request({
|
|
329
|
-
path: `/graphql/
|
|
351
|
+
path: `/graphql/{pathQueryId}/DeleteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
330
352
|
method: 'POST',
|
|
331
353
|
headers: headerParameters,
|
|
332
354
|
query: queryParameters,
|
|
@@ -348,6 +370,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
348
370
|
* favorite Tweet
|
|
349
371
|
*/
|
|
350
372
|
async postFavoriteTweetRaw(requestParameters: PostFavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FavoriteTweetResponseData>> {
|
|
373
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
374
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postFavoriteTweet.');
|
|
375
|
+
}
|
|
376
|
+
|
|
351
377
|
if (requestParameters.postFavoriteTweetRequest === null || requestParameters.postFavoriteTweetRequest === undefined) {
|
|
352
378
|
throw new runtime.RequiredError('postFavoriteTweetRequest','Required parameter requestParameters.postFavoriteTweetRequest was null or undefined when calling postFavoriteTweet.');
|
|
353
379
|
}
|
|
@@ -391,7 +417,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
391
417
|
}
|
|
392
418
|
}
|
|
393
419
|
const response = await this.request({
|
|
394
|
-
path: `/graphql/
|
|
420
|
+
path: `/graphql/{pathQueryId}/FavoriteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
395
421
|
method: 'POST',
|
|
396
422
|
headers: headerParameters,
|
|
397
423
|
query: queryParameters,
|
|
@@ -413,6 +439,10 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
413
439
|
* unfavorite Tweet
|
|
414
440
|
*/
|
|
415
441
|
async postUnfavoriteTweetRaw(requestParameters: PostUnfavoriteTweetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UnfavoriteTweetResponseData>> {
|
|
442
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
443
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling postUnfavoriteTweet.');
|
|
444
|
+
}
|
|
445
|
+
|
|
416
446
|
if (requestParameters.postUnfavoriteTweetRequest === null || requestParameters.postUnfavoriteTweetRequest === undefined) {
|
|
417
447
|
throw new runtime.RequiredError('postUnfavoriteTweetRequest','Required parameter requestParameters.postUnfavoriteTweetRequest was null or undefined when calling postUnfavoriteTweet.');
|
|
418
448
|
}
|
|
@@ -456,7 +486,7 @@ export class PostApi extends runtime.BaseAPI {
|
|
|
456
486
|
}
|
|
457
487
|
}
|
|
458
488
|
const response = await this.request({
|
|
459
|
-
path: `/graphql/
|
|
489
|
+
path: `/graphql/{pathQueryId}/UnfavoriteTweet`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
460
490
|
method: 'POST',
|
|
461
491
|
headers: headerParameters,
|
|
462
492
|
query: queryParameters,
|
package/src/apis/TweetApi.ts
CHANGED
|
@@ -35,54 +35,63 @@ import {
|
|
|
35
35
|
} from '../models';
|
|
36
36
|
|
|
37
37
|
export interface GetBookmarksRequest {
|
|
38
|
+
pathQueryId: string;
|
|
38
39
|
queryId: string;
|
|
39
40
|
variables: string;
|
|
40
41
|
features: string;
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
export interface GetHomeLatestTimelineRequest {
|
|
45
|
+
pathQueryId: string;
|
|
44
46
|
queryId: string;
|
|
45
47
|
variables: string;
|
|
46
48
|
features: string;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
export interface GetHomeTimelineRequest {
|
|
52
|
+
pathQueryId: string;
|
|
50
53
|
queryId: string;
|
|
51
54
|
variables: string;
|
|
52
55
|
features: string;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
export interface GetLikesRequest {
|
|
59
|
+
pathQueryId: string;
|
|
56
60
|
queryId: string;
|
|
57
61
|
variables: string;
|
|
58
62
|
features: string;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
export interface GetListLatestTweetsTimelineRequest {
|
|
66
|
+
pathQueryId: string;
|
|
62
67
|
queryId: string;
|
|
63
68
|
variables: string;
|
|
64
69
|
features: string;
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
export interface GetTweetDetailRequest {
|
|
73
|
+
pathQueryId: string;
|
|
68
74
|
queryId: string;
|
|
69
75
|
variables: string;
|
|
70
76
|
features: string;
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export interface GetUserMediaRequest {
|
|
80
|
+
pathQueryId: string;
|
|
74
81
|
queryId: string;
|
|
75
82
|
variables: string;
|
|
76
83
|
features: string;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export interface GetUserTweetsRequest {
|
|
87
|
+
pathQueryId: string;
|
|
80
88
|
queryId: string;
|
|
81
89
|
variables: string;
|
|
82
90
|
features: string;
|
|
83
91
|
}
|
|
84
92
|
|
|
85
93
|
export interface GetUserTweetsAndRepliesRequest {
|
|
94
|
+
pathQueryId: string;
|
|
86
95
|
queryId: string;
|
|
87
96
|
variables: string;
|
|
88
97
|
features: string;
|
|
@@ -97,6 +106,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
97
106
|
* get bookmarks
|
|
98
107
|
*/
|
|
99
108
|
async getBookmarksRaw(requestParameters: GetBookmarksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BookmarksResponse>> {
|
|
109
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
110
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getBookmarks.');
|
|
111
|
+
}
|
|
112
|
+
|
|
100
113
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
101
114
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getBookmarks.');
|
|
102
115
|
}
|
|
@@ -158,7 +171,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
158
171
|
}
|
|
159
172
|
}
|
|
160
173
|
const response = await this.request({
|
|
161
|
-
path: `/graphql/
|
|
174
|
+
path: `/graphql/{pathQueryId}/Bookmarks`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
162
175
|
method: 'GET',
|
|
163
176
|
headers: headerParameters,
|
|
164
177
|
query: queryParameters,
|
|
@@ -179,6 +192,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
179
192
|
* get tweet list of timeline
|
|
180
193
|
*/
|
|
181
194
|
async getHomeLatestTimelineRaw(requestParameters: GetHomeLatestTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimelineResponse>> {
|
|
195
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
196
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeLatestTimeline.');
|
|
197
|
+
}
|
|
198
|
+
|
|
182
199
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
183
200
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getHomeLatestTimeline.');
|
|
184
201
|
}
|
|
@@ -240,7 +257,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
240
257
|
}
|
|
241
258
|
}
|
|
242
259
|
const response = await this.request({
|
|
243
|
-
path: `/graphql/
|
|
260
|
+
path: `/graphql/{pathQueryId}/HomeLatestTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
244
261
|
method: 'GET',
|
|
245
262
|
headers: headerParameters,
|
|
246
263
|
query: queryParameters,
|
|
@@ -261,6 +278,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
261
278
|
* get tweet list of timeline
|
|
262
279
|
*/
|
|
263
280
|
async getHomeTimelineRaw(requestParameters: GetHomeTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimelineResponse>> {
|
|
281
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
282
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getHomeTimeline.');
|
|
283
|
+
}
|
|
284
|
+
|
|
264
285
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
265
286
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getHomeTimeline.');
|
|
266
287
|
}
|
|
@@ -322,7 +343,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
322
343
|
}
|
|
323
344
|
}
|
|
324
345
|
const response = await this.request({
|
|
325
|
-
path: `/graphql/
|
|
346
|
+
path: `/graphql/{pathQueryId}/HomeTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
326
347
|
method: 'GET',
|
|
327
348
|
headers: headerParameters,
|
|
328
349
|
query: queryParameters,
|
|
@@ -343,6 +364,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
343
364
|
* get user likes tweets
|
|
344
365
|
*/
|
|
345
366
|
async getLikesRaw(requestParameters: GetLikesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
367
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
368
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getLikes.');
|
|
369
|
+
}
|
|
370
|
+
|
|
346
371
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
347
372
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getLikes.');
|
|
348
373
|
}
|
|
@@ -404,7 +429,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
404
429
|
}
|
|
405
430
|
}
|
|
406
431
|
const response = await this.request({
|
|
407
|
-
path: `/graphql/
|
|
432
|
+
path: `/graphql/{pathQueryId}/Likes`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
408
433
|
method: 'GET',
|
|
409
434
|
headers: headerParameters,
|
|
410
435
|
query: queryParameters,
|
|
@@ -425,6 +450,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
425
450
|
* get tweet list of timeline
|
|
426
451
|
*/
|
|
427
452
|
async getListLatestTweetsTimelineRaw(requestParameters: GetListLatestTweetsTimelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListTweetsTimelineResponse>> {
|
|
453
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
454
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getListLatestTweetsTimeline.');
|
|
455
|
+
}
|
|
456
|
+
|
|
428
457
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
429
458
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getListLatestTweetsTimeline.');
|
|
430
459
|
}
|
|
@@ -486,7 +515,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
486
515
|
}
|
|
487
516
|
}
|
|
488
517
|
const response = await this.request({
|
|
489
|
-
path: `/graphql/
|
|
518
|
+
path: `/graphql/{pathQueryId}/ListLatestTweetsTimeline`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
490
519
|
method: 'GET',
|
|
491
520
|
headers: headerParameters,
|
|
492
521
|
query: queryParameters,
|
|
@@ -507,6 +536,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
507
536
|
* get TweetDetail
|
|
508
537
|
*/
|
|
509
538
|
async getTweetDetailRaw(requestParameters: GetTweetDetailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TweetDetailResponse>> {
|
|
539
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
540
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getTweetDetail.');
|
|
541
|
+
}
|
|
542
|
+
|
|
510
543
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
511
544
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getTweetDetail.');
|
|
512
545
|
}
|
|
@@ -568,7 +601,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
568
601
|
}
|
|
569
602
|
}
|
|
570
603
|
const response = await this.request({
|
|
571
|
-
path: `/graphql/
|
|
604
|
+
path: `/graphql/{pathQueryId}/TweetDetail`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
572
605
|
method: 'GET',
|
|
573
606
|
headers: headerParameters,
|
|
574
607
|
query: queryParameters,
|
|
@@ -589,6 +622,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
589
622
|
* get user media tweets
|
|
590
623
|
*/
|
|
591
624
|
async getUserMediaRaw(requestParameters: GetUserMediaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
625
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
626
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserMedia.');
|
|
627
|
+
}
|
|
628
|
+
|
|
592
629
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
593
630
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserMedia.');
|
|
594
631
|
}
|
|
@@ -650,7 +687,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
650
687
|
}
|
|
651
688
|
}
|
|
652
689
|
const response = await this.request({
|
|
653
|
-
path: `/graphql/
|
|
690
|
+
path: `/graphql/{pathQueryId}/UserMedia`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
654
691
|
method: 'GET',
|
|
655
692
|
headers: headerParameters,
|
|
656
693
|
query: queryParameters,
|
|
@@ -671,6 +708,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
671
708
|
* get user tweets
|
|
672
709
|
*/
|
|
673
710
|
async getUserTweetsRaw(requestParameters: GetUserTweetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
711
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
712
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweets.');
|
|
713
|
+
}
|
|
714
|
+
|
|
674
715
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
675
716
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserTweets.');
|
|
676
717
|
}
|
|
@@ -732,7 +773,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
732
773
|
}
|
|
733
774
|
}
|
|
734
775
|
const response = await this.request({
|
|
735
|
-
path: `/graphql/
|
|
776
|
+
path: `/graphql/{pathQueryId}/UserTweets`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
736
777
|
method: 'GET',
|
|
737
778
|
headers: headerParameters,
|
|
738
779
|
query: queryParameters,
|
|
@@ -753,6 +794,10 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
753
794
|
* get user replies tweets
|
|
754
795
|
*/
|
|
755
796
|
async getUserTweetsAndRepliesRaw(requestParameters: GetUserTweetsAndRepliesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserTweetsResponse>> {
|
|
797
|
+
if (requestParameters.pathQueryId === null || requestParameters.pathQueryId === undefined) {
|
|
798
|
+
throw new runtime.RequiredError('pathQueryId','Required parameter requestParameters.pathQueryId was null or undefined when calling getUserTweetsAndReplies.');
|
|
799
|
+
}
|
|
800
|
+
|
|
756
801
|
if (requestParameters.queryId === null || requestParameters.queryId === undefined) {
|
|
757
802
|
throw new runtime.RequiredError('queryId','Required parameter requestParameters.queryId was null or undefined when calling getUserTweetsAndReplies.');
|
|
758
803
|
}
|
|
@@ -814,7 +859,7 @@ export class TweetApi extends runtime.BaseAPI {
|
|
|
814
859
|
}
|
|
815
860
|
}
|
|
816
861
|
const response = await this.request({
|
|
817
|
-
path: `/graphql/
|
|
862
|
+
path: `/graphql/{pathQueryId}/UserTweetsAndReplies`.replace(`{${"pathQueryId"}}`, encodeURIComponent(String(requestParameters.pathQueryId))),
|
|
818
863
|
method: 'GET',
|
|
819
864
|
headers: headerParameters,
|
|
820
865
|
query: queryParameters,
|