ensembledata 0.1.0 → 0.1.1

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/types/client.d.ts CHANGED
@@ -2,13 +2,13 @@ export class EDClient {
2
2
  /**
3
3
  * @param {{
4
4
  * token: string;
5
- * timeoutSecs?: number;
5
+ * timeout?: number;
6
6
  * maxNetworkRetries?: number;
7
7
  * }} options
8
8
  */
9
- constructor({ token, timeoutSecs, maxNetworkRetries }: {
9
+ constructor({ token, timeout, maxNetworkRetries }: {
10
10
  token: string;
11
- timeoutSecs?: number;
11
+ timeout?: number;
12
12
  maxNetworkRetries?: number;
13
13
  });
14
14
  /** @readonly */
@@ -26,9 +26,12 @@ export class EDClient {
26
26
  /**
27
27
  * @param {string} path
28
28
  * @param {Record<string, string>} params
29
+ * @param {{ timeout?: number }} options
29
30
  * @returns {Promise<EDResponse>}
30
31
  */
31
- request(path: string, params: Record<string, string>): Promise<EDResponse>;
32
+ request(path: string, params: Record<string, string>, options?: {
33
+ timeout?: number;
34
+ }): Promise<EDResponse>;
32
35
  #private;
33
36
  }
34
37
  export type EDResponse = import("./requester").EDResponse;
@@ -40,25 +43,25 @@ declare class CustomerEndpoints {
40
43
  });
41
44
  /**
42
45
  * @param {{ date: string }} params
43
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
46
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
44
47
  * @returns {Promise<EDResponse>}
45
48
  */
46
49
  getUsage({ date }: {
47
50
  date: string;
48
51
  }, options?: {
49
52
  extraParams?: Record<string, any>;
50
- timeoutSecs?: number;
53
+ timeout?: number;
51
54
  }): Promise<EDResponse>;
52
55
  /**
53
56
  * @param {{ days: number }} params
54
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
57
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
55
58
  * @returns {Promise<EDResponse>}
56
59
  */
57
60
  getUsageHistory({ days }: {
58
61
  days: number;
59
62
  }, options?: {
60
63
  extraParams?: Record<string, any>;
61
- timeoutSecs?: number;
64
+ timeout?: number;
62
65
  }): Promise<EDResponse>;
63
66
  #private;
64
67
  }
@@ -69,7 +72,7 @@ declare class TiktokEndpoints {
69
72
  });
70
73
  /**
71
74
  * @param {{ hashtag: string; cursor?: number }} params
72
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
75
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
73
76
  * @returns {Promise<EDResponse>}
74
77
  */
75
78
  hashtagSearch({ hashtag, cursor }: {
@@ -77,7 +80,7 @@ declare class TiktokEndpoints {
77
80
  cursor?: number;
78
81
  }, options?: {
79
82
  extraParams?: Record<string, any>;
80
- timeoutSecs?: number;
83
+ timeout?: number;
81
84
  }): Promise<EDResponse>;
82
85
  /**
83
86
  * @param {{
@@ -86,7 +89,7 @@ declare class TiktokEndpoints {
86
89
  * remapOutput?: boolean;
87
90
  * maxCursor?: number;
88
91
  * }} params
89
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
92
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
90
93
  * @returns {Promise<EDResponse>}
91
94
  */
92
95
  fullHashtagSearch({ hashtag, days, remapOutput, maxCursor }: {
@@ -96,7 +99,7 @@ declare class TiktokEndpoints {
96
99
  maxCursor?: number;
97
100
  }, options?: {
98
101
  extraParams?: Record<string, any>;
99
- timeoutSecs?: number;
102
+ timeout?: number;
100
103
  }): Promise<EDResponse>;
101
104
  /**
102
105
  * @param {{
@@ -108,7 +111,7 @@ declare class TiktokEndpoints {
108
111
  * matchExactly?: boolean;
109
112
  * getAuthorStats?: boolean;
110
113
  * }} params
111
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
114
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
112
115
  * @returns {Promise<EDResponse>}
113
116
  */
114
117
  keywordSearch({ keyword, cursor, period, sorting, country, matchExactly, getAuthorStats, }: {
@@ -121,7 +124,7 @@ declare class TiktokEndpoints {
121
124
  getAuthorStats?: boolean;
122
125
  }, options?: {
123
126
  extraParams?: Record<string, any>;
124
- timeoutSecs?: number;
127
+ timeout?: number;
125
128
  }): Promise<EDResponse>;
126
129
  /**
127
130
  * @param {{
@@ -131,7 +134,7 @@ declare class TiktokEndpoints {
131
134
  * country?: string;
132
135
  * matchExactly?: boolean;
133
136
  * }} params
134
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
137
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
135
138
  * @returns {Promise<EDResponse>}
136
139
  */
137
140
  fullKeywordSearch({ keyword, period, sorting, country, matchExactly, }: {
@@ -142,7 +145,7 @@ declare class TiktokEndpoints {
142
145
  matchExactly?: boolean;
143
146
  }, options?: {
144
147
  extraParams?: Record<string, any>;
145
- timeoutSecs?: number;
148
+ timeout?: number;
146
149
  }): Promise<EDResponse>;
147
150
  /**
148
151
  * @param {{
@@ -152,7 +155,7 @@ declare class TiktokEndpoints {
152
155
  * oldestCreatetime?: number;
153
156
  * alternativeMethod?: boolean;
154
157
  * }} params
155
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
158
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
156
159
  * @returns {Promise<EDResponse>}
157
160
  */
158
161
  userPostsFromUsername({ username, depth, cursor, oldestCreatetime, alternativeMethod, }: {
@@ -163,7 +166,7 @@ declare class TiktokEndpoints {
163
166
  alternativeMethod?: boolean;
164
167
  }, options?: {
165
168
  extraParams?: Record<string, any>;
166
- timeoutSecs?: number;
169
+ timeout?: number;
167
170
  }): Promise<EDResponse>;
168
171
  /**
169
172
  * @param {{
@@ -173,7 +176,7 @@ declare class TiktokEndpoints {
173
176
  * oldestCreatetime?: number;
174
177
  * alternativeMethod?: boolean;
175
178
  * }} params
176
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
179
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
177
180
  * @returns {Promise<EDResponse>}
178
181
  */
179
182
  userPostsFromSecuid({ secUid, depth, cursor, oldestCreatetime, alternativeMethod, }: {
@@ -184,22 +187,22 @@ declare class TiktokEndpoints {
184
187
  alternativeMethod?: boolean;
185
188
  }, options?: {
186
189
  extraParams?: Record<string, any>;
187
- timeoutSecs?: number;
190
+ timeout?: number;
188
191
  }): Promise<EDResponse>;
189
192
  /**
190
193
  * @param {{ username: string }} params
191
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
194
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
192
195
  * @returns {Promise<EDResponse>}
193
196
  */
194
197
  userInfoFromUsername({ username }: {
195
198
  username: string;
196
199
  }, options?: {
197
200
  extraParams?: Record<string, any>;
198
- timeoutSecs?: number;
201
+ timeout?: number;
199
202
  }): Promise<EDResponse>;
200
203
  /**
201
204
  * @param {{ secUid: string; alternativeMethod?: boolean }} params
202
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
205
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
203
206
  * @returns {Promise<EDResponse>}
204
207
  */
205
208
  userInfoFromSecuid({ secUid, alternativeMethod }: {
@@ -207,11 +210,11 @@ declare class TiktokEndpoints {
207
210
  alternativeMethod?: boolean;
208
211
  }, options?: {
209
212
  extraParams?: Record<string, any>;
210
- timeoutSecs?: number;
213
+ timeout?: number;
211
214
  }): Promise<EDResponse>;
212
215
  /**
213
216
  * @param {{ keyword: string; cursor?: number }} params
214
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
217
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
215
218
  * @returns {Promise<EDResponse>}
216
219
  */
217
220
  userSearch({ keyword, cursor }: {
@@ -219,33 +222,33 @@ declare class TiktokEndpoints {
219
222
  cursor?: number;
220
223
  }, options?: {
221
224
  extraParams?: Record<string, any>;
222
- timeoutSecs?: number;
225
+ timeout?: number;
223
226
  }): Promise<EDResponse>;
224
227
  /**
225
228
  * @param {{ url: string }} params
226
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
229
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
227
230
  * @returns {Promise<EDResponse>}
228
231
  */
229
232
  postInfo({ url }: {
230
233
  url: string;
231
234
  }, options?: {
232
235
  extraParams?: Record<string, any>;
233
- timeoutSecs?: number;
236
+ timeout?: number;
234
237
  }): Promise<EDResponse>;
235
238
  /**
236
239
  * @param {{ awemeIds: string[] }} params
237
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
240
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
238
241
  * @returns {Promise<EDResponse>}
239
242
  */
240
243
  multiPostInfo({ awemeIds }: {
241
244
  awemeIds: string[];
242
245
  }, options?: {
243
246
  extraParams?: Record<string, any>;
244
- timeoutSecs?: number;
247
+ timeout?: number;
245
248
  }): Promise<EDResponse>;
246
249
  /**
247
250
  * @param {{ awemeId: string; cursor?: number }} params
248
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
251
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
249
252
  * @returns {Promise<EDResponse>}
250
253
  */
251
254
  postComments({ awemeId, cursor }: {
@@ -253,11 +256,11 @@ declare class TiktokEndpoints {
253
256
  cursor?: number;
254
257
  }, options?: {
255
258
  extraParams?: Record<string, any>;
256
- timeoutSecs?: number;
259
+ timeout?: number;
257
260
  }): Promise<EDResponse>;
258
261
  /**
259
262
  * @param {{ awemeId: string; commentId: string; cursor?: number }} params
260
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
263
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
261
264
  * @returns {Promise<EDResponse>}
262
265
  */
263
266
  postCommentReplies({ awemeId, commentId, cursor }: {
@@ -266,7 +269,7 @@ declare class TiktokEndpoints {
266
269
  cursor?: number;
267
270
  }, options?: {
268
271
  extraParams?: Record<string, any>;
269
- timeoutSecs?: number;
272
+ timeout?: number;
270
273
  }): Promise<EDResponse>;
271
274
  /**
272
275
  * @param {{
@@ -275,7 +278,7 @@ declare class TiktokEndpoints {
275
278
  * sorting?: "0" | "1" | "2" | "3" | "4";
276
279
  * filterBy?: "0" | "1" | "2";
277
280
  * }} params
278
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
281
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
279
282
  * @returns {Promise<EDResponse>}
280
283
  */
281
284
  musicSearch({ keyword, cursor, sorting, filterBy, }: {
@@ -285,11 +288,11 @@ declare class TiktokEndpoints {
285
288
  filterBy?: "0" | "1" | "2";
286
289
  }, options?: {
287
290
  extraParams?: Record<string, any>;
288
- timeoutSecs?: number;
291
+ timeout?: number;
289
292
  }): Promise<EDResponse>;
290
293
  /**
291
294
  * @param {{ musicId: string; cursor?: number }} params
292
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
295
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
293
296
  * @returns {Promise<EDResponse>}
294
297
  */
295
298
  musicPosts({ musicId, cursor }: {
@@ -297,22 +300,22 @@ declare class TiktokEndpoints {
297
300
  cursor?: number;
298
301
  }, options?: {
299
302
  extraParams?: Record<string, any>;
300
- timeoutSecs?: number;
303
+ timeout?: number;
301
304
  }): Promise<EDResponse>;
302
305
  /**
303
306
  * @param {{ musicId: string }} params
304
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
307
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
305
308
  * @returns {Promise<EDResponse>}
306
309
  */
307
310
  musicDetails({ musicId }: {
308
311
  musicId: string;
309
312
  }, options?: {
310
313
  extraParams?: Record<string, any>;
311
- timeoutSecs?: number;
314
+ timeout?: number;
312
315
  }): Promise<EDResponse>;
313
316
  /**
314
317
  * @param {{ id: string; secUid: string; cursor?: number }} params
315
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
318
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
316
319
  * @returns {Promise<EDResponse>}
317
320
  */
318
321
  userFollowers({ id, secUid, cursor }: {
@@ -321,7 +324,7 @@ declare class TiktokEndpoints {
321
324
  cursor?: number;
322
325
  }, options?: {
323
326
  extraParams?: Record<string, any>;
324
- timeoutSecs?: number;
327
+ timeout?: number;
325
328
  }): Promise<EDResponse>;
326
329
  /**
327
330
  * @param {{
@@ -330,7 +333,7 @@ declare class TiktokEndpoints {
330
333
  * cursor?: number;
331
334
  * pageToken?: string;
332
335
  * }} params
333
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
336
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
334
337
  * @returns {Promise<EDResponse>}
335
338
  */
336
339
  userFollowings({ id, secUid, cursor, pageToken }: {
@@ -340,11 +343,11 @@ declare class TiktokEndpoints {
340
343
  pageToken?: string;
341
344
  }, options?: {
342
345
  extraParams?: Record<string, any>;
343
- timeoutSecs?: number;
346
+ timeout?: number;
344
347
  }): Promise<EDResponse>;
345
348
  /**
346
349
  * @param {{ secUid: string; cursor?: number }} params
347
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
350
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
348
351
  * @returns {Promise<EDResponse>}
349
352
  */
350
353
  userLikedPosts({ secUid, cursor }: {
@@ -352,7 +355,7 @@ declare class TiktokEndpoints {
352
355
  cursor?: number;
353
356
  }, options?: {
354
357
  extraParams?: Record<string, any>;
355
- timeoutSecs?: number;
358
+ timeout?: number;
356
359
  }): Promise<EDResponse>;
357
360
  #private;
358
361
  }
@@ -370,7 +373,7 @@ declare class YoutubeEndpoints {
370
373
  * sorting?: "relevance" | "time" | "views" | "rating";
371
374
  * getAdditionalInfo?: boolean;
372
375
  * }} params
373
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
376
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
374
377
  * @returns {Promise<EDResponse>}
375
378
  */
376
379
  keywordSearch({ keyword, depth, cursor, period, sorting, getAdditionalInfo, }: {
@@ -382,22 +385,22 @@ declare class YoutubeEndpoints {
382
385
  getAdditionalInfo?: boolean;
383
386
  }, options?: {
384
387
  extraParams?: Record<string, any>;
385
- timeoutSecs?: number;
388
+ timeout?: number;
386
389
  }): Promise<EDResponse>;
387
390
  /**
388
391
  * @param {{ keyword: string }} params
389
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
392
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
390
393
  * @returns {Promise<EDResponse>}
391
394
  */
392
395
  featuredCategoriesSearch({ keyword }: {
393
396
  keyword: string;
394
397
  }, options?: {
395
398
  extraParams?: Record<string, any>;
396
- timeoutSecs?: number;
399
+ timeout?: number;
397
400
  }): Promise<EDResponse>;
398
401
  /**
399
402
  * @param {{ hashtag: string; depth: number; onlyShorts?: boolean }} params
400
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
403
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
401
404
  * @returns {Promise<EDResponse>}
402
405
  */
403
406
  hashtagSearch({ hashtag, depth, onlyShorts }: {
@@ -406,11 +409,11 @@ declare class YoutubeEndpoints {
406
409
  onlyShorts?: boolean;
407
410
  }, options?: {
408
411
  extraParams?: Record<string, any>;
409
- timeoutSecs?: number;
412
+ timeout?: number;
410
413
  }): Promise<EDResponse>;
411
414
  /**
412
415
  * @param {{ channelId: string; fromUrl?: boolean }} params
413
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
416
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
414
417
  * @returns {Promise<EDResponse>}
415
418
  */
416
419
  channelDetailedInfo({ channelId, fromUrl }: {
@@ -418,11 +421,11 @@ declare class YoutubeEndpoints {
418
421
  fromUrl?: boolean;
419
422
  }, options?: {
420
423
  extraParams?: Record<string, any>;
421
- timeoutSecs?: number;
424
+ timeout?: number;
422
425
  }): Promise<EDResponse>;
423
426
  /**
424
427
  * @param {{ channelId: string; depth: number }} params
425
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
428
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
426
429
  * @returns {Promise<EDResponse>}
427
430
  */
428
431
  channelVideos({ channelId, depth }: {
@@ -430,11 +433,11 @@ declare class YoutubeEndpoints {
430
433
  depth: number;
431
434
  }, options?: {
432
435
  extraParams?: Record<string, any>;
433
- timeoutSecs?: number;
436
+ timeout?: number;
434
437
  }): Promise<EDResponse>;
435
438
  /**
436
439
  * @param {{ channelId: string; depth: number }} params
437
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
440
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
438
441
  * @returns {Promise<EDResponse>}
439
442
  */
440
443
  channelShorts({ channelId, depth }: {
@@ -442,7 +445,7 @@ declare class YoutubeEndpoints {
442
445
  depth: number;
443
446
  }, options?: {
444
447
  extraParams?: Record<string, any>;
445
- timeoutSecs?: number;
448
+ timeout?: number;
446
449
  }): Promise<EDResponse>;
447
450
  /**
448
451
  * @param {{
@@ -450,7 +453,7 @@ declare class YoutubeEndpoints {
450
453
  * alternativeMethod?: boolean;
451
454
  * getSubscribersCount?: boolean;
452
455
  * }} params
453
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
456
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
454
457
  * @returns {Promise<EDResponse>}
455
458
  */
456
459
  videoDetails({ id, alternativeMethod, getSubscribersCount }: {
@@ -459,44 +462,44 @@ declare class YoutubeEndpoints {
459
462
  getSubscribersCount?: boolean;
460
463
  }, options?: {
461
464
  extraParams?: Record<string, any>;
462
- timeoutSecs?: number;
465
+ timeout?: number;
463
466
  }): Promise<EDResponse>;
464
467
  /**
465
468
  * @param {{ channelId: string }} params
466
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
469
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
467
470
  * @returns {Promise<EDResponse>}
468
471
  */
469
472
  channelSubscribers({ channelId }: {
470
473
  channelId: string;
471
474
  }, options?: {
472
475
  extraParams?: Record<string, any>;
473
- timeoutSecs?: number;
476
+ timeout?: number;
474
477
  }): Promise<EDResponse>;
475
478
  /**
476
479
  * @param {{ username: string }} params
477
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
480
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
478
481
  * @returns {Promise<EDResponse>}
479
482
  */
480
483
  channelUsernameToId({ username }: {
481
484
  username: string;
482
485
  }, options?: {
483
486
  extraParams?: Record<string, any>;
484
- timeoutSecs?: number;
487
+ timeout?: number;
485
488
  }): Promise<EDResponse>;
486
489
  /**
487
490
  * @param {{ channelId: string }} params
488
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
491
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
489
492
  * @returns {Promise<EDResponse>}
490
493
  */
491
494
  channelIdToUsername({ channelId }: {
492
495
  channelId: string;
493
496
  }, options?: {
494
497
  extraParams?: Record<string, any>;
495
- timeoutSecs?: number;
498
+ timeout?: number;
496
499
  }): Promise<EDResponse>;
497
500
  /**
498
501
  * @param {{ musicId: string; depth?: number }} params
499
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
502
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
500
503
  * @returns {Promise<EDResponse>}
501
504
  */
502
505
  musicIdToShorts({ musicId, depth }: {
@@ -504,11 +507,11 @@ declare class YoutubeEndpoints {
504
507
  depth?: number;
505
508
  }, options?: {
506
509
  extraParams?: Record<string, any>;
507
- timeoutSecs?: number;
510
+ timeout?: number;
508
511
  }): Promise<EDResponse>;
509
512
  /**
510
513
  * @param {{ id: string; cursor?: string }} params
511
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
514
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
512
515
  * @returns {Promise<EDResponse>}
513
516
  */
514
517
  videoComments({ id, cursor }: {
@@ -516,7 +519,7 @@ declare class YoutubeEndpoints {
516
519
  cursor?: string;
517
520
  }, options?: {
518
521
  extraParams?: Record<string, any>;
519
- timeoutSecs?: number;
522
+ timeout?: number;
520
523
  }): Promise<EDResponse>;
521
524
  #private;
522
525
  }
@@ -534,7 +537,7 @@ declare class InstagramEndpoints {
534
537
  * cursor?: string;
535
538
  * alternativeMethod?: boolean;
536
539
  * }} params
537
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
540
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
538
541
  * @returns {Promise<EDResponse>}
539
542
  */
540
543
  userPosts({ userId, depth, oldestTimestamp, chunkSize, cursor, alternativeMethod, }: {
@@ -546,51 +549,51 @@ declare class InstagramEndpoints {
546
549
  alternativeMethod?: boolean;
547
550
  }, options?: {
548
551
  extraParams?: Record<string, any>;
549
- timeoutSecs?: number;
552
+ timeout?: number;
550
553
  }): Promise<EDResponse>;
551
554
  /**
552
555
  * @param {{ userId: number }} params
553
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
556
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
554
557
  * @returns {Promise<EDResponse>}
555
558
  */
556
559
  userBasicStats({ userId }: {
557
560
  userId: number;
558
561
  }, options?: {
559
562
  extraParams?: Record<string, any>;
560
- timeoutSecs?: number;
563
+ timeout?: number;
561
564
  }): Promise<EDResponse>;
562
565
  /**
563
566
  * @param {{ username: string }} params
564
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
567
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
565
568
  * @returns {Promise<EDResponse>}
566
569
  */
567
570
  userInfo({ username }: {
568
571
  username: string;
569
572
  }, options?: {
570
573
  extraParams?: Record<string, any>;
571
- timeoutSecs?: number;
574
+ timeout?: number;
572
575
  }): Promise<EDResponse>;
573
576
  /**
574
577
  * @param {{ username: string }} params
575
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
578
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
576
579
  * @returns {Promise<EDResponse>}
577
580
  */
578
581
  userDetailedInfo({ username }: {
579
582
  username: string;
580
583
  }, options?: {
581
584
  extraParams?: Record<string, any>;
582
- timeoutSecs?: number;
585
+ timeout?: number;
583
586
  }): Promise<EDResponse>;
584
587
  /**
585
588
  * @param {{ userId: number }} params
586
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
589
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
587
590
  * @returns {Promise<EDResponse>}
588
591
  */
589
592
  userFollowers({ userId }: {
590
593
  userId: number;
591
594
  }, options?: {
592
595
  extraParams?: Record<string, any>;
593
- timeoutSecs?: number;
596
+ timeout?: number;
594
597
  }): Promise<EDResponse>;
595
598
  /**
596
599
  * @param {{
@@ -601,7 +604,7 @@ declare class InstagramEndpoints {
601
604
  * cursor?: string;
602
605
  * chunkSize?: number;
603
606
  * }} params
604
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
607
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
605
608
  * @returns {Promise<EDResponse>}
606
609
  */
607
610
  userReels({ userId, depth, includeFeedVideo, oldestTimestamp, cursor, chunkSize, }: {
@@ -613,11 +616,11 @@ declare class InstagramEndpoints {
613
616
  chunkSize?: number;
614
617
  }, options?: {
615
618
  extraParams?: Record<string, any>;
616
- timeoutSecs?: number;
619
+ timeout?: number;
617
620
  }): Promise<EDResponse>;
618
621
  /**
619
622
  * @param {{ userId: number; cursor?: string; chunkSize?: number }} params
620
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
623
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
621
624
  * @returns {Promise<EDResponse>}
622
625
  */
623
626
  userTaggedPosts({ userId, cursor, chunkSize }: {
@@ -626,11 +629,11 @@ declare class InstagramEndpoints {
626
629
  chunkSize?: number;
627
630
  }, options?: {
628
631
  extraParams?: Record<string, any>;
629
- timeoutSecs?: number;
632
+ timeout?: number;
630
633
  }): Promise<EDResponse>;
631
634
  /**
632
635
  * @param {{ code: string; numComments?: number }} params
633
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
636
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
634
637
  * @returns {Promise<EDResponse>}
635
638
  */
636
639
  postInfoAndComments({ code, numComments }: {
@@ -638,7 +641,7 @@ declare class InstagramEndpoints {
638
641
  numComments?: number;
639
642
  }, options?: {
640
643
  extraParams?: Record<string, any>;
641
- timeoutSecs?: number;
644
+ timeout?: number;
642
645
  }): Promise<EDResponse>;
643
646
  /**
644
647
  * @param {{
@@ -648,7 +651,7 @@ declare class InstagramEndpoints {
648
651
  * getAuthorInfo?: boolean;
649
652
  * alternativeMethod?: boolean;
650
653
  * }} params
651
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
654
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
652
655
  * @returns {Promise<EDResponse>}
653
656
  */
654
657
  hashtagPosts({ hashtag, cursor, chunkSize, getAuthorInfo, alternativeMethod, }: {
@@ -659,11 +662,11 @@ declare class InstagramEndpoints {
659
662
  alternativeMethod?: boolean;
660
663
  }, options?: {
661
664
  extraParams?: Record<string, any>;
662
- timeoutSecs?: number;
665
+ timeout?: number;
663
666
  }): Promise<EDResponse>;
664
667
  /**
665
668
  * @param {{ musicId: string; cursor?: string }} params
666
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
669
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
667
670
  * @returns {Promise<EDResponse>}
668
671
  */
669
672
  musicPosts({ musicId, cursor }: {
@@ -671,18 +674,18 @@ declare class InstagramEndpoints {
671
674
  cursor?: string;
672
675
  }, options?: {
673
676
  extraParams?: Record<string, any>;
674
- timeoutSecs?: number;
677
+ timeout?: number;
675
678
  }): Promise<EDResponse>;
676
679
  /**
677
680
  * @param {{ text: string }} params
678
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
681
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
679
682
  * @returns {Promise<EDResponse>}
680
683
  */
681
684
  search({ text }: {
682
685
  text: string;
683
686
  }, options?: {
684
687
  extraParams?: Record<string, any>;
685
- timeoutSecs?: number;
688
+ timeout?: number;
686
689
  }): Promise<EDResponse>;
687
690
  #private;
688
691
  }
@@ -697,7 +700,7 @@ declare class TwitchEndpoints {
697
700
  * depth: number;
698
701
  * type: "videos" | "channels" | "games";
699
702
  * }} params
700
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
703
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
701
704
  * @returns {Promise<EDResponse>}
702
705
  */
703
706
  keywordSearch({ keyword, depth, type }: {
@@ -706,18 +709,18 @@ declare class TwitchEndpoints {
706
709
  type: "videos" | "channels" | "games";
707
710
  }, options?: {
708
711
  extraParams?: Record<string, any>;
709
- timeoutSecs?: number;
712
+ timeout?: number;
710
713
  }): Promise<EDResponse>;
711
714
  /**
712
715
  * @param {{ username: string }} params
713
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
716
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
714
717
  * @returns {Promise<EDResponse>}
715
718
  */
716
719
  userFollowers({ username }: {
717
720
  username: string;
718
721
  }, options?: {
719
722
  extraParams?: Record<string, any>;
720
- timeoutSecs?: number;
723
+ timeout?: number;
721
724
  }): Promise<EDResponse>;
722
725
  #private;
723
726
  }
@@ -733,7 +736,7 @@ declare class RedditEndpoints {
733
736
  * period: "hour" | "day" | "week" | "month" | "year" | "all";
734
737
  * cursor?: string;
735
738
  * }} params
736
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
739
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
737
740
  * @returns {Promise<EDResponse>}
738
741
  */
739
742
  subredditPosts({ name, sort, period, cursor }: {
@@ -743,11 +746,11 @@ declare class RedditEndpoints {
743
746
  cursor?: string;
744
747
  }, options?: {
745
748
  extraParams?: Record<string, any>;
746
- timeoutSecs?: number;
749
+ timeout?: number;
747
750
  }): Promise<EDResponse>;
748
751
  /**
749
752
  * @param {{ id: string; cursor?: string }} params
750
- * @param {{ extraParams?: Record<string, any>; timeoutSecs?: number }} options
753
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
751
754
  * @returns {Promise<EDResponse>}
752
755
  */
753
756
  postComments({ id, cursor }: {
@@ -755,7 +758,7 @@ declare class RedditEndpoints {
755
758
  cursor?: string;
756
759
  }, options?: {
757
760
  extraParams?: Record<string, any>;
758
- timeoutSecs?: number;
761
+ timeout?: number;
759
762
  }): Promise<EDResponse>;
760
763
  #private;
761
764
  }