twitter-openapi-typescript 0.0.34 → 0.0.35

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 ADDED
@@ -0,0 +1,476 @@
1
+ [
2
+ {
3
+ "domain": ".google.com",
4
+ "expirationDate": 1730989729.258904,
5
+ "hostOnly": false,
6
+ "httpOnly": true,
7
+ "name": "SNID",
8
+ "path": "/verify",
9
+ "sameSite": "lax",
10
+ "secure": true,
11
+ "session": false,
12
+ "storeId": "0",
13
+ "value": "AKzhCTYyIMYe7SbobB_LljR4gHI-KwuIOih2Xg3KM-V0OPWSrGvZI27NPJlCYhnWSeElXjY12a0IbUJRS6yb8ztATWQTzPi3F4o"
14
+ },
15
+ {
16
+ "domain": ".t.co",
17
+ "expirationDate": 1749717719.285658,
18
+ "hostOnly": false,
19
+ "httpOnly": false,
20
+ "name": "muc_ads",
21
+ "path": "/",
22
+ "sameSite": "no_restriction",
23
+ "secure": true,
24
+ "session": false,
25
+ "storeId": "0",
26
+ "value": "57dbafb7-cbdb-450d-b7e7-ef2f921e85d4"
27
+ },
28
+ {
29
+ "domain": ".twitter.com",
30
+ "expirationDate": 1749740881.722929,
31
+ "hostOnly": false,
32
+ "httpOnly": false,
33
+ "name": "_ga",
34
+ "path": "/",
35
+ "sameSite": "unspecified",
36
+ "secure": false,
37
+ "session": false,
38
+ "storeId": "0",
39
+ "value": "GA1.2.1888940076.1715157719"
40
+ },
41
+ {
42
+ "domain": ".twitter.com",
43
+ "expirationDate": 1715267281,
44
+ "hostOnly": false,
45
+ "httpOnly": false,
46
+ "name": "_gid",
47
+ "path": "/",
48
+ "sameSite": "unspecified",
49
+ "secure": false,
50
+ "session": false,
51
+ "storeId": "0",
52
+ "value": "GA1.2.841993924.1715157719"
53
+ },
54
+ {
55
+ "domain": ".twitter.com",
56
+ "expirationDate": 1749740874.292342,
57
+ "hostOnly": false,
58
+ "httpOnly": true,
59
+ "name": "kdt",
60
+ "path": "/",
61
+ "sameSite": "unspecified",
62
+ "secure": true,
63
+ "session": false,
64
+ "storeId": "0",
65
+ "value": "HQjxS82XjlGh9mbbxhVJFGfIQfgo0FZIRFpiSyHF"
66
+ },
67
+ {
68
+ "domain": ".doubleclick.net",
69
+ "expirationDate": 1749717741.057308,
70
+ "hostOnly": false,
71
+ "httpOnly": true,
72
+ "name": "IDE",
73
+ "path": "/",
74
+ "sameSite": "no_restriction",
75
+ "secure": true,
76
+ "session": false,
77
+ "storeId": "0",
78
+ "value": "AHWqTUnJtDNNT-s3IJWz3J8OcQVpEWmRj96dbGlDKGgtWWMQ6WP1siaabdKy2_uOJnc"
79
+ },
80
+ {
81
+ "domain": ".proxsee.pscp.tv",
82
+ "expirationDate": 1716367546.646592,
83
+ "hostOnly": false,
84
+ "httpOnly": false,
85
+ "name": "user_id",
86
+ "path": "/",
87
+ "sameSite": "no_restriction",
88
+ "secure": true,
89
+ "session": false,
90
+ "storeId": "0",
91
+ "value": "Zk2wumVjNDM5MTBlLTNjNDQtNDRjNC01MTQzLTc4MzM5OTdiOTMwMlnsBtFtOLfGy02YawTKD_Sl3JYNM6hCNgUmcxESOQ91"
92
+ },
93
+ {
94
+ "domain": ".google.com",
95
+ "expirationDate": 1730720735.760436,
96
+ "hostOnly": false,
97
+ "httpOnly": true,
98
+ "name": "AEC",
99
+ "path": "/",
100
+ "sameSite": "lax",
101
+ "secure": true,
102
+ "session": false,
103
+ "storeId": "0",
104
+ "value": "AQTF6HzXYhwWOXbgORPML1mL_gv6wGW7yzV300Omog5SKvXNzSZXkoYDrA"
105
+ },
106
+ {
107
+ "domain": ".chromewebstore.google.com",
108
+ "expirationDate": 1749728739.487012,
109
+ "hostOnly": false,
110
+ "httpOnly": false,
111
+ "name": "_ga",
112
+ "path": "/",
113
+ "sameSite": "unspecified",
114
+ "secure": false,
115
+ "session": false,
116
+ "storeId": "0",
117
+ "value": "GA1.1.105733270.1715168739"
118
+ },
119
+ {
120
+ "domain": "chromewebstore.google.com",
121
+ "expirationDate": 1717760739,
122
+ "hostOnly": true,
123
+ "httpOnly": false,
124
+ "name": "OTZ",
125
+ "path": "/",
126
+ "sameSite": "unspecified",
127
+ "secure": true,
128
+ "session": false,
129
+ "storeId": "0",
130
+ "value": "7547746_20_20__20_"
131
+ },
132
+ {
133
+ "domain": ".chromewebstore.google.com",
134
+ "expirationDate": 1749728742.694508,
135
+ "hostOnly": false,
136
+ "httpOnly": false,
137
+ "name": "_ga_KHZNC1Q6K0",
138
+ "path": "/",
139
+ "sameSite": "unspecified",
140
+ "secure": false,
141
+ "session": false,
142
+ "storeId": "0",
143
+ "value": "GS1.1.1715168739.1.0.1715168742.0.0.0"
144
+ },
145
+ {
146
+ "domain": "accounts.google.com",
147
+ "expirationDate": 1749728744.797473,
148
+ "hostOnly": true,
149
+ "httpOnly": true,
150
+ "name": "__Host-GAPS",
151
+ "path": "/",
152
+ "sameSite": "unspecified",
153
+ "secure": true,
154
+ "session": false,
155
+ "storeId": "0",
156
+ "value": "1:_kfyStmFghYA9E4BEKuFXyjD3zchiw:kawa_k6xUMmo7rnc"
157
+ },
158
+ {
159
+ "domain": "accounts.google.com",
160
+ "expirationDate": 1717760746,
161
+ "hostOnly": true,
162
+ "httpOnly": false,
163
+ "name": "OTZ",
164
+ "path": "/",
165
+ "sameSite": "unspecified",
166
+ "secure": true,
167
+ "session": false,
168
+ "storeId": "0",
169
+ "value": "7547746_20_20__20_"
170
+ },
171
+ {
172
+ "domain": ".twitter.com",
173
+ "expirationDate": 1749740880.325536,
174
+ "hostOnly": false,
175
+ "httpOnly": false,
176
+ "name": "dnt",
177
+ "path": "/",
178
+ "sameSite": "no_restriction",
179
+ "secure": true,
180
+ "session": false,
181
+ "storeId": "0",
182
+ "value": "1"
183
+ },
184
+ {
185
+ "domain": ".twitter.com",
186
+ "expirationDate": 1715188388.606841,
187
+ "hostOnly": false,
188
+ "httpOnly": false,
189
+ "name": "gt",
190
+ "path": "/",
191
+ "sameSite": "unspecified",
192
+ "secure": true,
193
+ "session": false,
194
+ "storeId": "0",
195
+ "value": "1788218082475082129"
196
+ },
197
+ {
198
+ "domain": ".arkoselabs.com",
199
+ "hostOnly": false,
200
+ "httpOnly": true,
201
+ "name": "_cfuvid",
202
+ "path": "/",
203
+ "sameSite": "no_restriction",
204
+ "secure": true,
205
+ "session": true,
206
+ "storeId": "0",
207
+ "value": "sa1u2OEMX_vq48reMXmy3ZpAhImp1V47zo3kfHYx2u4-1715179412267-0.0.1.1-604800000"
208
+ },
209
+ {
210
+ "domain": "twitter.com",
211
+ "hostOnly": true,
212
+ "httpOnly": false,
213
+ "name": "lang",
214
+ "path": "/",
215
+ "sameSite": "unspecified",
216
+ "secure": false,
217
+ "session": true,
218
+ "storeId": "0",
219
+ "value": "en"
220
+ },
221
+ {
222
+ "domain": ".google.com",
223
+ "expirationDate": 1717772336.393113,
224
+ "hostOnly": false,
225
+ "httpOnly": false,
226
+ "name": "1P_JAR",
227
+ "path": "/",
228
+ "sameSite": "no_restriction",
229
+ "secure": true,
230
+ "session": false,
231
+ "storeId": "0",
232
+ "value": "2024-05-08-14"
233
+ },
234
+ {
235
+ "domain": "github.com",
236
+ "hostOnly": true,
237
+ "httpOnly": true,
238
+ "name": "_gh_sess",
239
+ "path": "/",
240
+ "sameSite": "lax",
241
+ "secure": true,
242
+ "session": true,
243
+ "storeId": "0",
244
+ "value": "RvbyRH2ZkCKkTqoEuovwu3aQzq7H2FLbvEHB5KuZIASQ9wlFnIcV5q3TbVXZ3eUTDCL%2B2bsXu%2BMbb6ykHX36cBu%2Blk92vcDgxs8Jgwl67ZwZgv82b1Y%2BJYAXHU0g10eziwWFAoeK4IN27MyuZrGwSaspJSzCkXwv2UXl%2Fx8kYPhz56A4rGcroXCyKMKgz3h%2BoBGDBmHHcgqOp1sqh%2Bzn7NI%2Bcm8fXL9jpagDl7qj1v6req8fsF27kngO6ad14w7fXlBhPx3nQdYGi1UVpXmdkA%3D%3D--zYGIVtNEp1EaZJLG--rNGvMkHreT%2Fml43wpOZ4Lg%3D%3D"
245
+ },
246
+ {
247
+ "domain": ".github.com",
248
+ "expirationDate": 1746715800.140105,
249
+ "hostOnly": false,
250
+ "httpOnly": false,
251
+ "name": "_octo",
252
+ "path": "/",
253
+ "sameSite": "lax",
254
+ "secure": true,
255
+ "session": false,
256
+ "storeId": "0",
257
+ "value": "GH1.1.270146096.1715179800"
258
+ },
259
+ {
260
+ "domain": ".github.com",
261
+ "expirationDate": 1746715800.140129,
262
+ "hostOnly": false,
263
+ "httpOnly": true,
264
+ "name": "logged_in",
265
+ "path": "/",
266
+ "sameSite": "lax",
267
+ "secure": true,
268
+ "session": false,
269
+ "storeId": "0",
270
+ "value": "no"
271
+ },
272
+ {
273
+ "domain": ".github.com",
274
+ "hostOnly": false,
275
+ "httpOnly": false,
276
+ "name": "preferred_color_mode",
277
+ "path": "/",
278
+ "sameSite": "lax",
279
+ "secure": true,
280
+ "session": true,
281
+ "storeId": "0",
282
+ "value": "light"
283
+ },
284
+ {
285
+ "domain": ".github.com",
286
+ "hostOnly": false,
287
+ "httpOnly": false,
288
+ "name": "tz",
289
+ "path": "/",
290
+ "sameSite": "lax",
291
+ "secure": true,
292
+ "session": true,
293
+ "storeId": "0",
294
+ "value": "Asia%2FTokyo"
295
+ },
296
+ {
297
+ "domain": ".google.com",
298
+ "expirationDate": 1730991097.991571,
299
+ "hostOnly": false,
300
+ "httpOnly": true,
301
+ "name": "NID",
302
+ "path": "/",
303
+ "sameSite": "no_restriction",
304
+ "secure": true,
305
+ "session": false,
306
+ "storeId": "0",
307
+ "value": "514=wlqOMEBJfcOEe_Gi5vEp3VtvuDXBNpXxqIA9ubXaw-jUVPVzJwfhWVKii9EEP6PxujoMtl9XLabDHfAAB1rna47igcW6jUCrAKT3L1Mv60PjCMzJx0cwXqvbtHeV_3_5vtXiLERTVTl8Nw06JGcStlCi6fwecrRve9T8K5QHsL4WzTLTRW2JX1NfhKVd-4-xdmy60_BGSA"
308
+ },
309
+ {
310
+ "domain": "api.twitter.com",
311
+ "hostOnly": true,
312
+ "httpOnly": false,
313
+ "name": "lang",
314
+ "path": "/",
315
+ "sameSite": "unspecified",
316
+ "secure": false,
317
+ "session": true,
318
+ "storeId": "0",
319
+ "value": "en"
320
+ },
321
+ {
322
+ "domain": ".twitter.com",
323
+ "expirationDate": 1730948351.955283,
324
+ "hostOnly": false,
325
+ "httpOnly": false,
326
+ "name": "tweetdeck_version",
327
+ "path": "/",
328
+ "sameSite": "no_restriction",
329
+ "secure": true,
330
+ "session": false,
331
+ "storeId": "0",
332
+ "value": "legacy"
333
+ },
334
+ {
335
+ "domain": "pro.twitter.com",
336
+ "hostOnly": true,
337
+ "httpOnly": false,
338
+ "name": "lang",
339
+ "path": "/",
340
+ "sameSite": "unspecified",
341
+ "secure": false,
342
+ "session": true,
343
+ "storeId": "0",
344
+ "value": "en"
345
+ },
346
+ {
347
+ "domain": "www.google.com",
348
+ "expirationDate": 1715180936,
349
+ "hostOnly": true,
350
+ "httpOnly": false,
351
+ "name": "DV",
352
+ "path": "/",
353
+ "sameSite": "unspecified",
354
+ "secure": false,
355
+ "session": false,
356
+ "storeId": "0",
357
+ "value": "4yeQIqAzwgEeMMNiN6YW-gYkVm-L9Rg"
358
+ },
359
+ {
360
+ "domain": ".twitter.com",
361
+ "expirationDate": 1749740880.325569,
362
+ "hostOnly": false,
363
+ "httpOnly": false,
364
+ "name": "ads_prefs",
365
+ "path": "/",
366
+ "sameSite": "no_restriction",
367
+ "secure": true,
368
+ "session": false,
369
+ "storeId": "0",
370
+ "value": "\"HBESAAA=\""
371
+ },
372
+ {
373
+ "domain": ".twitter.com",
374
+ "expirationDate": 1749740881.852635,
375
+ "hostOnly": false,
376
+ "httpOnly": true,
377
+ "name": "auth_multi",
378
+ "path": "/",
379
+ "sameSite": "lax",
380
+ "secure": true,
381
+ "session": false,
382
+ "storeId": "0",
383
+ "value": "\"1788218252742823936:bbc205f6bd8b3bfd1cc849b866ea19d0f701f458\""
384
+ },
385
+ {
386
+ "domain": ".twitter.com",
387
+ "expirationDate": 1749740880.32569,
388
+ "hostOnly": false,
389
+ "httpOnly": true,
390
+ "name": "auth_token",
391
+ "path": "/",
392
+ "sameSite": "no_restriction",
393
+ "secure": true,
394
+ "session": false,
395
+ "storeId": "0",
396
+ "value": "567887642cac128d436f1669838eff8634ed636c"
397
+ },
398
+ {
399
+ "domain": ".twitter.com",
400
+ "expirationDate": 1749740880.533348,
401
+ "hostOnly": false,
402
+ "httpOnly": false,
403
+ "name": "guest_id_ads",
404
+ "path": "/",
405
+ "sameSite": "no_restriction",
406
+ "secure": true,
407
+ "session": false,
408
+ "storeId": "0",
409
+ "value": "v1%3A171518088096909817"
410
+ },
411
+ {
412
+ "domain": ".twitter.com",
413
+ "expirationDate": 1749740880.533414,
414
+ "hostOnly": false,
415
+ "httpOnly": false,
416
+ "name": "guest_id_marketing",
417
+ "path": "/",
418
+ "sameSite": "no_restriction",
419
+ "secure": true,
420
+ "session": false,
421
+ "storeId": "0",
422
+ "value": "v1%3A171518088096909817"
423
+ },
424
+ {
425
+ "domain": ".twitter.com",
426
+ "expirationDate": 1749740880.533452,
427
+ "hostOnly": false,
428
+ "httpOnly": false,
429
+ "name": "personalization_id",
430
+ "path": "/",
431
+ "sameSite": "no_restriction",
432
+ "secure": true,
433
+ "session": false,
434
+ "storeId": "0",
435
+ "value": "\"v1_ispLgIrF3rIBtScCPEXUiQ==\""
436
+ },
437
+ {
438
+ "domain": ".twitter.com",
439
+ "expirationDate": 1749740880.533465,
440
+ "hostOnly": false,
441
+ "httpOnly": false,
442
+ "name": "guest_id",
443
+ "path": "/",
444
+ "sameSite": "no_restriction",
445
+ "secure": true,
446
+ "session": false,
447
+ "storeId": "0",
448
+ "value": "v1%3A171518088096909817"
449
+ },
450
+ {
451
+ "domain": ".twitter.com",
452
+ "expirationDate": 1746716881.146142,
453
+ "hostOnly": false,
454
+ "httpOnly": false,
455
+ "name": "twid",
456
+ "path": "/",
457
+ "sameSite": "no_restriction",
458
+ "secure": true,
459
+ "session": false,
460
+ "storeId": "0",
461
+ "value": "u%3D1788224200639160320"
462
+ },
463
+ {
464
+ "domain": ".twitter.com",
465
+ "expirationDate": 1749740880.533493,
466
+ "hostOnly": false,
467
+ "httpOnly": false,
468
+ "name": "ct0",
469
+ "path": "/",
470
+ "sameSite": "lax",
471
+ "secure": true,
472
+ "session": false,
473
+ "storeId": "0",
474
+ "value": "939d1bf1a7a33aaed8e1b6353f83d86432dd22c670cbfee39f2321272fd2944b5fddb9f71ea396e2866870cbc6f4c4a54a759afb3ef3798a3ac5033e65eb64e631e8193ab48cdcc07069978c3b407eea"
475
+ }
476
+ ]
package/dist/a.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=a.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"a.d.ts","sourceRoot":"","sources":["../a.ts"],"names":[],"mappings":""}
package/dist/a.js ADDED
@@ -0,0 +1,57 @@
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 ADDED
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twitter-openapi-typescript",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
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.22"
24
+ "twitter-openapi-typescript-generated": "^0.0.23"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/jest": "*",