twitter-openapi-typescript 0.0.40 → 0.0.41

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/cookies.json CHANGED
@@ -1,7 +1,7 @@
1
1
  [
2
2
  {
3
3
  "domain": ".x.com",
4
- "expirationDate": 1750497984.629347,
4
+ "expirationDate": 1750810580.798816,
5
5
  "hostOnly": false,
6
6
  "httpOnly": false,
7
7
  "name": "_ga",
@@ -10,11 +10,11 @@
10
10
  "secure": false,
11
11
  "session": false,
12
12
  "storeId": "0",
13
- "value": "GA1.2.890323382.1715937715"
13
+ "value": "GA1.2.81531132.1716250581"
14
14
  },
15
15
  {
16
16
  "domain": ".x.com",
17
- "expirationDate": 1762173993.290211,
17
+ "expirationDate": 1762218257.368797,
18
18
  "hostOnly": false,
19
19
  "httpOnly": false,
20
20
  "name": "dnt",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  {
29
29
  "domain": ".x.com",
30
- "expirationDate": 1761310446.474988,
30
+ "expirationDate": 1761959664.536814,
31
31
  "hostOnly": false,
32
32
  "httpOnly": true,
33
33
  "name": "kdt",
@@ -36,98 +36,124 @@
36
36
  "secure": true,
37
37
  "session": false,
38
38
  "storeId": "0",
39
- "value": "99ae0IYCjgooALmXjqzwcxbgvDFLMkDkRmQZ2fHu"
39
+ "value": "X16TgYYmtbCbh3MwTwcVyUTzy38rD7b44JWUE4cH"
40
40
  },
41
41
  {
42
42
  "domain": ".x.com",
43
- "expirationDate": 1762173989.08096,
43
+ "expirationDate": 1734032842.520268,
44
44
  "hostOnly": false,
45
45
  "httpOnly": false,
46
- "name": "personalization_id",
46
+ "name": "tweetdeck_version",
47
47
  "path": "/",
48
48
  "sameSite": "no_restriction",
49
49
  "secure": true,
50
50
  "session": false,
51
51
  "storeId": "0",
52
- "value": "\"v1_JB+2xa2BxO/Mi0sYv7xllw==\""
52
+ "value": "legacy"
53
53
  },
54
54
  {
55
55
  "domain": ".x.com",
56
- "expirationDate": 1762173993.290374,
56
+ "expirationDate": 1759194260.256497,
57
57
  "hostOnly": false,
58
- "httpOnly": true,
59
- "name": "auth_token",
58
+ "httpOnly": false,
59
+ "name": "night_mode",
60
60
  "path": "/",
61
61
  "sameSite": "no_restriction",
62
62
  "secure": true,
63
63
  "session": false,
64
64
  "storeId": "0",
65
- "value": "3ee91a779886f4e21c8dfb66c24badcff104c3bf"
65
+ "value": "2"
66
66
  },
67
67
  {
68
68
  "domain": ".x.com",
69
- "expirationDate": 1762183607.891246,
69
+ "expirationDate": 1727667236.823275,
70
70
  "hostOnly": false,
71
71
  "httpOnly": false,
72
- "name": "guest_id_ads",
72
+ "name": "gt",
73
73
  "path": "/",
74
- "sameSite": "no_restriction",
74
+ "sameSite": "unspecified",
75
75
  "secure": true,
76
76
  "session": false,
77
77
  "storeId": "0",
78
- "value": "v1%3A172761399413143060"
78
+ "value": "1840558162577113182"
79
79
  },
80
80
  {
81
81
  "domain": ".x.com",
82
- "expirationDate": 1762183607.891329,
82
+ "expirationDate": 1762218256.659559,
83
83
  "hostOnly": false,
84
84
  "httpOnly": false,
85
- "name": "guest_id_marketing",
85
+ "name": "personalization_id",
86
86
  "path": "/",
87
87
  "sameSite": "no_restriction",
88
88
  "secure": true,
89
89
  "session": false,
90
90
  "storeId": "0",
91
- "value": "v1%3A172761399413143060"
91
+ "value": "\"v1_3vhSAb/laBI6r0n20rgRXw==\""
92
92
  },
93
93
  {
94
94
  "domain": ".x.com",
95
- "expirationDate": 1762173993.491811,
95
+ "expirationDate": 1762218257.368863,
96
96
  "hostOnly": false,
97
97
  "httpOnly": false,
98
- "name": "guest_id",
98
+ "name": "ads_prefs",
99
99
  "path": "/",
100
100
  "sameSite": "no_restriction",
101
101
  "secure": true,
102
102
  "session": false,
103
103
  "storeId": "0",
104
- "value": "v1%3A172761399413143060"
104
+ "value": "\"HBESAAA=\""
105
105
  },
106
106
  {
107
107
  "domain": ".x.com",
108
- "expirationDate": 1759159611.610052,
108
+ "expirationDate": 1762218260.973985,
109
+ "hostOnly": false,
110
+ "httpOnly": true,
111
+ "name": "auth_multi",
112
+ "path": "/",
113
+ "sameSite": "lax",
114
+ "secure": true,
115
+ "session": false,
116
+ "storeId": "0",
117
+ "value": "\"1788224200639160320:2e7b24e8f70049ec9ec87b90ebc5ddbeb7cc43f3\""
118
+ },
119
+ {
120
+ "domain": ".x.com",
121
+ "expirationDate": 1762218257.368928,
122
+ "hostOnly": false,
123
+ "httpOnly": true,
124
+ "name": "auth_token",
125
+ "path": "/",
126
+ "sameSite": "no_restriction",
127
+ "secure": true,
128
+ "session": false,
129
+ "storeId": "0",
130
+ "value": "1680e0666a6dde1ce80f94db077d79f731ebc4f6"
131
+ },
132
+ {
133
+ "domain": ".x.com",
134
+ "expirationDate": 1762218262.585248,
109
135
  "hostOnly": false,
110
136
  "httpOnly": false,
111
- "name": "twid",
137
+ "name": "guest_id_ads",
112
138
  "path": "/",
113
139
  "sameSite": "no_restriction",
114
140
  "secure": true,
115
141
  "session": false,
116
142
  "storeId": "0",
117
- "value": "u%3D1787148517779406848"
143
+ "value": "v1%3A172765825744106753"
118
144
  },
119
145
  {
120
146
  "domain": ".x.com",
121
- "expirationDate": 1762173993.49184,
147
+ "expirationDate": 1762218262.585344,
122
148
  "hostOnly": false,
123
149
  "httpOnly": false,
124
- "name": "ct0",
150
+ "name": "guest_id_marketing",
125
151
  "path": "/",
126
- "sameSite": "lax",
152
+ "sameSite": "no_restriction",
127
153
  "secure": true,
128
154
  "session": false,
129
155
  "storeId": "0",
130
- "value": "f55972bef6d18a7319f8f8d3950c77ca46db9c408458fed6d5c5fd93d97589e0044bb0ff775bdd1028d37a601712fd592bf77ad222827411df5d07e5ec5f8a5d45de4049a6ef96f6366e8e04fdd25c64"
156
+ "value": "v1%3A172765825744106753"
131
157
  },
132
158
  {
133
159
  "domain": "x.com",
@@ -143,15 +169,41 @@
143
169
  },
144
170
  {
145
171
  "domain": ".x.com",
146
- "expirationDate": 1762183608.597745,
172
+ "expirationDate": 1762218257.606988,
147
173
  "hostOnly": false,
148
- "httpOnly": true,
149
- "name": "auth_multi",
174
+ "httpOnly": false,
175
+ "name": "guest_id",
176
+ "path": "/",
177
+ "sameSite": "no_restriction",
178
+ "secure": true,
179
+ "session": false,
180
+ "storeId": "0",
181
+ "value": "v1%3A172765825744106753"
182
+ },
183
+ {
184
+ "domain": ".x.com",
185
+ "expirationDate": 1759194262.585385,
186
+ "hostOnly": false,
187
+ "httpOnly": false,
188
+ "name": "twid",
189
+ "path": "/",
190
+ "sameSite": "no_restriction",
191
+ "secure": true,
192
+ "session": false,
193
+ "storeId": "0",
194
+ "value": "u%3D1787148517779406848"
195
+ },
196
+ {
197
+ "domain": ".x.com",
198
+ "expirationDate": 1762218257.825925,
199
+ "hostOnly": false,
200
+ "httpOnly": false,
201
+ "name": "ct0",
150
202
  "path": "/",
151
203
  "sameSite": "lax",
152
204
  "secure": true,
153
205
  "session": false,
154
206
  "storeId": "0",
155
- "value": "\"1788224200639160320:519efe3ec487342ea293e30054415d0510823e21\""
207
+ "value": "dab115f3fe1ca49b4c589897cfbf33853187784ae946dd7bd00e3f1d4f3a779dccc5cacd3b27c2d7f7ea607143ae6b1bca2fbe4dde2362524e83750db1669dbf9b131a14ae4d281cc0bccadfd595052d"
156
208
  }
157
209
  ]
@@ -92,7 +92,7 @@ var UserApiUtils = /** @class */ (function () {
92
92
  response = this.request({
93
93
  key: 'UserByScreenName',
94
94
  apiFn: this.api.getUserByScreenNameRaw,
95
- convertFn: function (e) { return e.data.user; },
95
+ convertFn: function (e) { return (0, utils_1.nonNullable)(e.data.user); },
96
96
  param: args,
97
97
  });
98
98
  return [2 /*return*/, response];
@@ -107,7 +107,7 @@ var UserApiUtils = /** @class */ (function () {
107
107
  response = this.request({
108
108
  key: 'UserByRestId',
109
109
  apiFn: this.api.getUserByRestIdRaw,
110
- convertFn: function (e) { return e.data.user; },
110
+ convertFn: function (e) { return (0, utils_1.nonNullable)(e.data.user); },
111
111
  param: args,
112
112
  });
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,EAAE,IAAI;iBACZ,CAAC,CAAC;gBACH,sBAAO,QAAQ,EAAC;;;KACjB;IACK,sCAAe,GAArB,UAAsB,KAA2B;;;;gBACzC,IAAI,cACR,MAAM,EAAE,KAAK,CAAC,MAAM,IACjB,KAAK,CAAC,UAAU,CACpB,CAAC;gBACI,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;oBAC5B,GAAG,EAAE,cAAc;oBACnB,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,kBAAkB;oBAClC,SAAS,EAAE,UAAC,CAAC,IAAK,OAAA,IAAA,mBAAW,EAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAxB,CAAwB;oBAC1C,KAAK,EAAE,IAAI;iBACZ,CAAC,CAAC;gBACH,sBAAO,QAAQ,EAAC;;;KACjB;IACH,mBAAC;AAAD,CAAC,AAvDD,IAuDC;AAvDY,oCAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twitter-openapi-typescript",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "Implementation of Twitter internal API in TypeScript",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -21,7 +21,7 @@
21
21
  "main": "./dist/src/index.js",
22
22
  "typings": "./dist/src/index.d.ts",
23
23
  "dependencies": {
24
- "twitter-openapi-typescript-generated": "^0.0.25"
24
+ "twitter-openapi-typescript-generated": "^0.0.26"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/jest": "*",
@@ -1,5 +1,5 @@
1
1
  import { DefaultFlag, RequestParam, TwitterApiUtilsResponse, UserApiUtilsData, initOverrides } from '@/models';
2
- import { buildHeader, errorCheck, getKwargs, userOrNullConverter } from '@/utils';
2
+ import { buildHeader, errorCheck, getKwargs, nonNullable, userOrNullConverter } from '@/utils';
3
3
  import * as i from 'twitter-openapi-typescript-generated';
4
4
 
5
5
  type getUserByScreenNameParam = {
@@ -51,7 +51,7 @@ export class UserApiUtils {
51
51
  const response = this.request({
52
52
  key: 'UserByScreenName',
53
53
  apiFn: this.api.getUserByScreenNameRaw,
54
- convertFn: (e) => e.data.user,
54
+ convertFn: (e) => nonNullable(e.data.user),
55
55
  param: args,
56
56
  });
57
57
  return response;
@@ -64,7 +64,7 @@ export class UserApiUtils {
64
64
  const response = this.request({
65
65
  key: 'UserByRestId',
66
66
  apiFn: this.api.getUserByRestIdRaw,
67
- convertFn: (e) => e.data.user,
67
+ convertFn: (e) => nonNullable(e.data.user),
68
68
  param: args,
69
69
  });
70
70
  return response;
@@ -9,6 +9,22 @@ test('getUserByScreenName', async () => {
9
9
  expect(response.raw.response.ok).toBe(true);
10
10
  });
11
11
 
12
+ test('getUserByScreenNameNotFound', async () => {
13
+ logger.log('getUserByScreenName');
14
+ const client = await getClient();
15
+ const response = await client.getUserApi().getUserByScreenName({ screenName: 'Wendoleecs' });
16
+ printUser(response.data);
17
+ expect(response.raw.response.ok).toBe(true);
18
+ });
19
+
20
+ test('getUserByScreenNameFreezed', async () => {
21
+ logger.log('getUserByScreenName');
22
+ const client = await getClient();
23
+ const response = await client.getUserApi().getUserByScreenName({ screenName: 'anal' });
24
+ printUser(response.data);
25
+ expect(response.raw.response.ok).toBe(true);
26
+ });
27
+
12
28
  test('getUserByRestId', async () => {
13
29
  logger.log('getUserByRestId');
14
30
  const client = await getClient();
package/dist/a.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=a.d.ts.map
package/dist/a.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":""}
package/dist/a.js DELETED
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- var api_1 = require("./src/api");
40
- (function () { return __awaiter(void 0, void 0, void 0, function () {
41
- var api, client, res;
42
- return __generator(this, function (_a) {
43
- switch (_a.label) {
44
- case 0:
45
- api = new api_1.TwitterOpenApi();
46
- return [4 /*yield*/, api.getGuestClient()];
47
- case 1:
48
- client = _a.sent();
49
- return [4 /*yield*/, client.getDefaultApi().getTweetResultByRestId({ tweetId: "1771078537694601545" })];
50
- case 2:
51
- res = _a.sent();
52
- console.log(res.data);
53
- return [2 /*return*/];
54
- }
55
- });
56
- }); })();
57
- //# sourceMappingURL=a.js.map
package/dist/a.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"a.js","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAuC;AAEvC,CAAC;;;;;gBACS,GAAG,GAAG,IAAI,oBAAc,EAAE,CAAC;gBAClB,qBAAM,GAAG,CAAC,cAAc,EAAE,EAAA;;gBAAnC,MAAM,GAAG,SAA0B;gBAC7B,qBAAM,MAAM,CAAC,aAAa,EAAE,CAAC,sBAAsB,CAAC,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC,EAAA;;gBAA7F,GAAG,GAAG,SAAuF;gBACnG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;;;;KACzB,CAAC,EAAE,CAAA"}