uapi-browser-sdk 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. package/dist/index.js +78 -78
  2. package/package.json +1 -1
  3. package/src/index.ts +78 -78
package/dist/index.js CHANGED
@@ -70,21 +70,21 @@ class ClipzyZaiXianJianTieBanApi {
70
70
  const params = {};
71
71
  if (args["id"] !== undefined)
72
72
  params["id"] = args["id"];
73
- let path = '/api/get';
73
+ let path = '/api/v1/api/get';
74
74
  return this.c._request('GET', path, params);
75
75
  }
76
76
  async getClipzyRaw(args = {}) {
77
77
  const params = {};
78
78
  if (args["key"] !== undefined)
79
79
  params["key"] = args["key"];
80
- let path = '/api/raw/{id}';
80
+ let path = '/api/v1/api/raw/{id}';
81
81
  if (args['id'] !== undefined)
82
82
  path = path.replace('{' + 'id' + '}', String(args['id']));
83
83
  return this.c._request('GET', path, params);
84
84
  }
85
85
  async postClipzyStore(args = {}) {
86
86
  const params = {};
87
- let path = '/api/store';
87
+ let path = '/api/v1/api/store';
88
88
  return this.c._request('POST', path, params);
89
89
  }
90
90
  }
@@ -96,12 +96,12 @@ class ConvertApi {
96
96
  const params = {};
97
97
  if (args["time"] !== undefined)
98
98
  params["time"] = args["time"];
99
- let path = '/convert/unixtime';
99
+ let path = '/api/v1/convert/unixtime';
100
100
  return this.c._request('GET', path, params);
101
101
  }
102
102
  async postConvertJson(args = {}) {
103
103
  const params = {};
104
- let path = '/convert/json';
104
+ let path = '/api/v1/convert/json';
105
105
  return this.c._request('POST', path, params);
106
106
  }
107
107
  }
@@ -111,7 +111,7 @@ class DailyApi {
111
111
  }
112
112
  async getDailyNewsImage(args = {}) {
113
113
  const params = {};
114
- let path = '/daily/news-image';
114
+ let path = '/api/v1/daily/news-image';
115
115
  return this.c._request('GET', path, params);
116
116
  }
117
117
  }
@@ -121,28 +121,28 @@ class GameApi {
121
121
  }
122
122
  async getGameEpicFree(args = {}) {
123
123
  const params = {};
124
- let path = '/game/epic-free';
124
+ let path = '/api/v1/game/epic-free';
125
125
  return this.c._request('GET', path, params);
126
126
  }
127
127
  async getGameMinecraftHistoryid(args = {}) {
128
128
  const params = {};
129
129
  if (args["uuid"] !== undefined)
130
130
  params["uuid"] = args["uuid"];
131
- let path = '/game/minecraft/historyid';
131
+ let path = '/api/v1/game/minecraft/historyid';
132
132
  return this.c._request('GET', path, params);
133
133
  }
134
134
  async getGameMinecraftServerstatus(args = {}) {
135
135
  const params = {};
136
136
  if (args["server"] !== undefined)
137
137
  params["server"] = args["server"];
138
- let path = '/game/minecraft/serverstatus';
138
+ let path = '/api/v1/game/minecraft/serverstatus';
139
139
  return this.c._request('GET', path, params);
140
140
  }
141
141
  async getGameMinecraftUserinfo(args = {}) {
142
142
  const params = {};
143
143
  if (args["username"] !== undefined)
144
144
  params["username"] = args["username"];
145
- let path = '/game/minecraft/userinfo';
145
+ let path = '/api/v1/game/minecraft/userinfo';
146
146
  return this.c._request('GET', path, params);
147
147
  }
148
148
  async getGameSteamSummary(args = {}) {
@@ -155,7 +155,7 @@ class GameApi {
155
155
  params["id3"] = args["id3"];
156
156
  if (args["key"] !== undefined)
157
157
  params["key"] = args["key"];
158
- let path = '/game/steam/summary';
158
+ let path = '/api/v1/game/steam/summary';
159
159
  return this.c._request('GET', path, params);
160
160
  }
161
161
  }
@@ -175,12 +175,12 @@ class ImageApi {
175
175
  params["d"] = args["d"];
176
176
  if (args["r"] !== undefined)
177
177
  params["r"] = args["r"];
178
- let path = '/avatar/gravatar';
178
+ let path = '/api/v1/avatar/gravatar';
179
179
  return this.c._request('GET', path, params);
180
180
  }
181
181
  async getImageBingDaily(args = {}) {
182
182
  const params = {};
183
- let path = '/image/bing-daily';
183
+ let path = '/api/v1/image/bing-daily';
184
184
  return this.c._request('GET', path, params);
185
185
  }
186
186
  async getImageMotou(args = {}) {
@@ -189,7 +189,7 @@ class ImageApi {
189
189
  params["qq"] = args["qq"];
190
190
  if (args["bg_color"] !== undefined)
191
191
  params["bg_color"] = args["bg_color"];
192
- let path = '/image/motou';
192
+ let path = '/api/v1/image/motou';
193
193
  return this.c._request('GET', path, params);
194
194
  }
195
195
  async getImageQrcode(args = {}) {
@@ -200,14 +200,14 @@ class ImageApi {
200
200
  params["size"] = args["size"];
201
201
  if (args["format"] !== undefined)
202
202
  params["format"] = args["format"];
203
- let path = '/image/qrcode';
203
+ let path = '/api/v1/image/qrcode';
204
204
  return this.c._request('GET', path, params);
205
205
  }
206
206
  async getImageTobase64(args = {}) {
207
207
  const params = {};
208
208
  if (args["url"] !== undefined)
209
209
  params["url"] = args["url"];
210
- let path = '/image/tobase64';
210
+ let path = '/api/v1/image/tobase64';
211
211
  return this.c._request('GET', path, params);
212
212
  }
213
213
  async postImageCompress(args = {}) {
@@ -216,22 +216,22 @@ class ImageApi {
216
216
  params["level"] = args["level"];
217
217
  if (args["format"] !== undefined)
218
218
  params["format"] = args["format"];
219
- let path = '/image/compress';
219
+ let path = '/api/v1/image/compress';
220
220
  return this.c._request('POST', path, params);
221
221
  }
222
222
  async postImageFrombase64(args = {}) {
223
223
  const params = {};
224
- let path = '/image/frombase64';
224
+ let path = '/api/v1/image/frombase64';
225
225
  return this.c._request('POST', path, params);
226
226
  }
227
227
  async postImageMotou(args = {}) {
228
228
  const params = {};
229
- let path = '/image/motou';
229
+ let path = '/api/v1/image/motou';
230
230
  return this.c._request('POST', path, params);
231
231
  }
232
232
  async postImageSpeechless(args = {}) {
233
233
  const params = {};
234
- let path = '/image/speechless';
234
+ let path = '/api/v1/image/speechless';
235
235
  return this.c._request('POST', path, params);
236
236
  }
237
237
  async postImageSvg(args = {}) {
@@ -244,7 +244,7 @@ class ImageApi {
244
244
  params["height"] = args["height"];
245
245
  if (args["quality"] !== undefined)
246
246
  params["quality"] = args["quality"];
247
- let path = '/image/svg';
247
+ let path = '/api/v1/image/svg';
248
248
  return this.c._request('POST', path, params);
249
249
  }
250
250
  }
@@ -258,26 +258,26 @@ class MiscApi {
258
258
  params["month"] = args["month"];
259
259
  if (args["day"] !== undefined)
260
260
  params["day"] = args["day"];
261
- let path = '/history/programmer';
261
+ let path = '/api/v1/history/programmer';
262
262
  return this.c._request('GET', path, params);
263
263
  }
264
264
  async getHistoryProgrammerToday(args = {}) {
265
265
  const params = {};
266
- let path = '/history/programmer/today';
266
+ let path = '/api/v1/history/programmer/today';
267
267
  return this.c._request('GET', path, params);
268
268
  }
269
269
  async getMiscHotboard(args = {}) {
270
270
  const params = {};
271
271
  if (args["type"] !== undefined)
272
272
  params["type"] = args["type"];
273
- let path = '/misc/hotboard';
273
+ let path = '/api/v1/misc/hotboard';
274
274
  return this.c._request('GET', path, params);
275
275
  }
276
276
  async getMiscPhoneinfo(args = {}) {
277
277
  const params = {};
278
278
  if (args["phone"] !== undefined)
279
279
  params["phone"] = args["phone"];
280
- let path = '/misc/phoneinfo';
280
+ let path = '/api/v1/misc/phoneinfo';
281
281
  return this.c._request('GET', path, params);
282
282
  }
283
283
  async getMiscRandomnumber(args = {}) {
@@ -294,26 +294,26 @@ class MiscApi {
294
294
  params["allow_decimal"] = args["allow_decimal"];
295
295
  if (args["decimal_places"] !== undefined)
296
296
  params["decimal_places"] = args["decimal_places"];
297
- let path = '/misc/randomnumber';
297
+ let path = '/api/v1/misc/randomnumber';
298
298
  return this.c._request('GET', path, params);
299
299
  }
300
300
  async getMiscTimestamp(args = {}) {
301
301
  const params = {};
302
302
  if (args["ts"] !== undefined)
303
303
  params["ts"] = args["ts"];
304
- let path = '/misc/timestamp';
304
+ let path = '/api/v1/misc/timestamp';
305
305
  return this.c._request('GET', path, params);
306
306
  }
307
307
  async getMiscTrackingCarriers(args = {}) {
308
308
  const params = {};
309
- let path = '/misc/tracking/carriers';
309
+ let path = '/api/v1/misc/tracking/carriers';
310
310
  return this.c._request('GET', path, params);
311
311
  }
312
312
  async getMiscTrackingDetect(args = {}) {
313
313
  const params = {};
314
314
  if (args["tracking_number"] !== undefined)
315
315
  params["tracking_number"] = args["tracking_number"];
316
- let path = '/misc/tracking/detect';
316
+ let path = '/api/v1/misc/tracking/detect';
317
317
  return this.c._request('GET', path, params);
318
318
  }
319
319
  async getMiscTrackingQuery(args = {}) {
@@ -322,7 +322,7 @@ class MiscApi {
322
322
  params["tracking_number"] = args["tracking_number"];
323
323
  if (args["carrier_code"] !== undefined)
324
324
  params["carrier_code"] = args["carrier_code"];
325
- let path = '/misc/tracking/query';
325
+ let path = '/api/v1/misc/tracking/query';
326
326
  return this.c._request('GET', path, params);
327
327
  }
328
328
  async getMiscWeather(args = {}) {
@@ -331,14 +331,14 @@ class MiscApi {
331
331
  params["city"] = args["city"];
332
332
  if (args["adcode"] !== undefined)
333
333
  params["adcode"] = args["adcode"];
334
- let path = '/misc/weather';
334
+ let path = '/api/v1/misc/weather';
335
335
  return this.c._request('GET', path, params);
336
336
  }
337
337
  async getMiscWorldtime(args = {}) {
338
338
  const params = {};
339
339
  if (args["city"] !== undefined)
340
340
  params["city"] = args["city"];
341
- let path = '/misc/worldtime';
341
+ let path = '/api/v1/misc/worldtime';
342
342
  return this.c._request('GET', path, params);
343
343
  }
344
344
  }
@@ -352,14 +352,14 @@ class NetworkApi {
352
352
  params["domain"] = args["domain"];
353
353
  if (args["type"] !== undefined)
354
354
  params["type"] = args["type"];
355
- let path = '/network/dns';
355
+ let path = '/api/v1/network/dns';
356
356
  return this.c._request('GET', path, params);
357
357
  }
358
358
  async getNetworkIcp(args = {}) {
359
359
  const params = {};
360
360
  if (args["domain"] !== undefined)
361
361
  params["domain"] = args["domain"];
362
- let path = '/network/icp';
362
+ let path = '/api/v1/network/icp';
363
363
  return this.c._request('GET', path, params);
364
364
  }
365
365
  async getNetworkIpinfo(args = {}) {
@@ -368,26 +368,26 @@ class NetworkApi {
368
368
  params["ip"] = args["ip"];
369
369
  if (args["source"] !== undefined)
370
370
  params["source"] = args["source"];
371
- let path = '/network/ipinfo';
371
+ let path = '/api/v1/network/ipinfo';
372
372
  return this.c._request('GET', path, params);
373
373
  }
374
374
  async getNetworkMyip(args = {}) {
375
375
  const params = {};
376
376
  if (args["source"] !== undefined)
377
377
  params["source"] = args["source"];
378
- let path = '/network/myip';
378
+ let path = '/api/v1/network/myip';
379
379
  return this.c._request('GET', path, params);
380
380
  }
381
381
  async getNetworkPing(args = {}) {
382
382
  const params = {};
383
383
  if (args["host"] !== undefined)
384
384
  params["host"] = args["host"];
385
- let path = '/network/ping';
385
+ let path = '/api/v1/network/ping';
386
386
  return this.c._request('GET', path, params);
387
387
  }
388
388
  async getNetworkPingmyip(args = {}) {
389
389
  const params = {};
390
- let path = '/network/pingmyip';
390
+ let path = '/api/v1/network/pingmyip';
391
391
  return this.c._request('GET', path, params);
392
392
  }
393
393
  async getNetworkPortscan(args = {}) {
@@ -398,14 +398,14 @@ class NetworkApi {
398
398
  params["port"] = args["port"];
399
399
  if (args["protocol"] !== undefined)
400
400
  params["protocol"] = args["protocol"];
401
- let path = '/network/portscan';
401
+ let path = '/api/v1/network/portscan';
402
402
  return this.c._request('GET', path, params);
403
403
  }
404
404
  async getNetworkUrlstatus(args = {}) {
405
405
  const params = {};
406
406
  if (args["url"] !== undefined)
407
407
  params["url"] = args["url"];
408
- let path = '/network/urlstatus';
408
+ let path = '/api/v1/network/urlstatus';
409
409
  return this.c._request('GET', path, params);
410
410
  }
411
411
  async getNetworkWhois(args = {}) {
@@ -414,14 +414,14 @@ class NetworkApi {
414
414
  params["domain"] = args["domain"];
415
415
  if (args["format"] !== undefined)
416
416
  params["format"] = args["format"];
417
- let path = '/network/whois';
417
+ let path = '/api/v1/network/whois';
418
418
  return this.c._request('GET', path, params);
419
419
  }
420
420
  async getNetworkWxdomain(args = {}) {
421
421
  const params = {};
422
422
  if (args["domain"] !== undefined)
423
423
  params["domain"] = args["domain"];
424
- let path = '/network/wxdomain';
424
+ let path = '/api/v1/network/wxdomain';
425
425
  return this.c._request('GET', path, params);
426
426
  }
427
427
  }
@@ -431,7 +431,7 @@ class PoemApi {
431
431
  }
432
432
  async getSaying(args = {}) {
433
433
  const params = {};
434
- let path = '/saying';
434
+ let path = '/api/v1/saying';
435
435
  return this.c._request('GET', path, params);
436
436
  }
437
437
  }
@@ -443,7 +443,7 @@ class RandomApi {
443
443
  const params = {};
444
444
  if (args["question"] !== undefined)
445
445
  params["question"] = args["question"];
446
- let path = '/answerbook/ask';
446
+ let path = '/api/v1/answerbook/ask';
447
447
  return this.c._request('GET', path, params);
448
448
  }
449
449
  async getRandomImage(args = {}) {
@@ -452,7 +452,7 @@ class RandomApi {
452
452
  params["category"] = args["category"];
453
453
  if (args["type"] !== undefined)
454
454
  params["type"] = args["type"];
455
- let path = '/random/image';
455
+ let path = '/api/v1/random/image';
456
456
  return this.c._request('GET', path, params);
457
457
  }
458
458
  async getRandomString(args = {}) {
@@ -461,12 +461,12 @@ class RandomApi {
461
461
  params["length"] = args["length"];
462
462
  if (args["type"] !== undefined)
463
463
  params["type"] = args["type"];
464
- let path = '/random/string';
464
+ let path = '/api/v1/random/string';
465
465
  return this.c._request('GET', path, params);
466
466
  }
467
467
  async postAnswerbookAsk(args = {}) {
468
468
  const params = {};
469
- let path = '/answerbook/ask';
469
+ let path = '/api/v1/answerbook/ask';
470
470
  return this.c._request('POST', path, params);
471
471
  }
472
472
  }
@@ -478,7 +478,7 @@ class SocialApi {
478
478
  const params = {};
479
479
  if (args["repo"] !== undefined)
480
480
  params["repo"] = args["repo"];
481
- let path = '/github/repo';
481
+ let path = '/api/v1/github/repo';
482
482
  return this.c._request('GET', path, params);
483
483
  }
484
484
  async getSocialBilibiliArchives(args = {}) {
@@ -493,7 +493,7 @@ class SocialApi {
493
493
  params["ps"] = args["ps"];
494
494
  if (args["pn"] !== undefined)
495
495
  params["pn"] = args["pn"];
496
- let path = '/social/bilibili/archives';
496
+ let path = '/api/v1/social/bilibili/archives';
497
497
  return this.c._request('GET', path, params);
498
498
  }
499
499
  async getSocialBilibiliLiveroom(args = {}) {
@@ -502,7 +502,7 @@ class SocialApi {
502
502
  params["mid"] = args["mid"];
503
503
  if (args["room_id"] !== undefined)
504
504
  params["room_id"] = args["room_id"];
505
- let path = '/social/bilibili/liveroom';
505
+ let path = '/api/v1/social/bilibili/liveroom';
506
506
  return this.c._request('GET', path, params);
507
507
  }
508
508
  async getSocialBilibiliReplies(args = {}) {
@@ -515,14 +515,14 @@ class SocialApi {
515
515
  params["ps"] = args["ps"];
516
516
  if (args["pn"] !== undefined)
517
517
  params["pn"] = args["pn"];
518
- let path = '/social/bilibili/replies';
518
+ let path = '/api/v1/social/bilibili/replies';
519
519
  return this.c._request('GET', path, params);
520
520
  }
521
521
  async getSocialBilibiliUserinfo(args = {}) {
522
522
  const params = {};
523
523
  if (args["uid"] !== undefined)
524
524
  params["uid"] = args["uid"];
525
- let path = '/social/bilibili/userinfo';
525
+ let path = '/api/v1/social/bilibili/userinfo';
526
526
  return this.c._request('GET', path, params);
527
527
  }
528
528
  async getSocialBilibiliVideoinfo(args = {}) {
@@ -531,21 +531,21 @@ class SocialApi {
531
531
  params["aid"] = args["aid"];
532
532
  if (args["bvid"] !== undefined)
533
533
  params["bvid"] = args["bvid"];
534
- let path = '/social/bilibili/videoinfo';
534
+ let path = '/api/v1/social/bilibili/videoinfo';
535
535
  return this.c._request('GET', path, params);
536
536
  }
537
537
  async getSocialQqGroupinfo(args = {}) {
538
538
  const params = {};
539
539
  if (args["group_id"] !== undefined)
540
540
  params["group_id"] = args["group_id"];
541
- let path = '/social/qq/groupinfo';
541
+ let path = '/api/v1/social/qq/groupinfo';
542
542
  return this.c._request('GET', path, params);
543
543
  }
544
544
  async getSocialQqUserinfo(args = {}) {
545
545
  const params = {};
546
546
  if (args["qq"] !== undefined)
547
547
  params["qq"] = args["qq"];
548
- let path = '/social/qq/userinfo';
548
+ let path = '/api/v1/social/qq/userinfo';
549
549
  return this.c._request('GET', path, params);
550
550
  }
551
551
  }
@@ -555,14 +555,14 @@ class StatusApi {
555
555
  }
556
556
  async getStatusRatelimit(args = {}) {
557
557
  const params = {};
558
- let path = '/status/ratelimit';
558
+ let path = '/api/v1/status/ratelimit';
559
559
  return this.c._request('GET', path, params);
560
560
  }
561
561
  async getStatusUsage(args = {}) {
562
562
  const params = {};
563
563
  if (args["path"] !== undefined)
564
564
  params["path"] = args["path"];
565
- let path = '/status/usage';
565
+ let path = '/api/v1/status/usage';
566
566
  return this.c._request('GET', path, params);
567
567
  }
568
568
  }
@@ -574,42 +574,42 @@ class TextApi {
574
574
  const params = {};
575
575
  if (args["text"] !== undefined)
576
576
  params["text"] = args["text"];
577
- let path = '/text/md5';
577
+ let path = '/api/v1/text/md5';
578
578
  return this.c._request('GET', path, params);
579
579
  }
580
580
  async postTextAesDecrypt(args = {}) {
581
581
  const params = {};
582
- let path = '/text/aes/decrypt';
582
+ let path = '/api/v1/text/aes/decrypt';
583
583
  return this.c._request('POST', path, params);
584
584
  }
585
585
  async postTextAesEncrypt(args = {}) {
586
586
  const params = {};
587
- let path = '/text/aes/encrypt';
587
+ let path = '/api/v1/text/aes/encrypt';
588
588
  return this.c._request('POST', path, params);
589
589
  }
590
590
  async postTextAnalyze(args = {}) {
591
591
  const params = {};
592
- let path = '/text/analyze';
592
+ let path = '/api/v1/text/analyze';
593
593
  return this.c._request('POST', path, params);
594
594
  }
595
595
  async postTextBase64Decode(args = {}) {
596
596
  const params = {};
597
- let path = '/text/base64/decode';
597
+ let path = '/api/v1/text/base64/decode';
598
598
  return this.c._request('POST', path, params);
599
599
  }
600
600
  async postTextBase64Encode(args = {}) {
601
601
  const params = {};
602
- let path = '/text/base64/encode';
602
+ let path = '/api/v1/text/base64/encode';
603
603
  return this.c._request('POST', path, params);
604
604
  }
605
605
  async postTextMd5(args = {}) {
606
606
  const params = {};
607
- let path = '/text/md5';
607
+ let path = '/api/v1/text/md5';
608
608
  return this.c._request('POST', path, params);
609
609
  }
610
610
  async postTextMd5Verify(args = {}) {
611
611
  const params = {};
612
- let path = '/text/md5/verify';
612
+ let path = '/api/v1/text/md5/verify';
613
613
  return this.c._request('POST', path, params);
614
614
  }
615
615
  }
@@ -619,26 +619,26 @@ class TranslateApi {
619
619
  }
620
620
  async getAiTranslateLanguages(args = {}) {
621
621
  const params = {};
622
- let path = '/ai/translate/languages';
622
+ let path = '/api/v1/ai/translate/languages';
623
623
  return this.c._request('GET', path, params);
624
624
  }
625
625
  async postAiTranslate(args = {}) {
626
626
  const params = {};
627
627
  if (args["target_lang"] !== undefined)
628
628
  params["target_lang"] = args["target_lang"];
629
- let path = '/ai/translate';
629
+ let path = '/api/v1/ai/translate';
630
630
  return this.c._request('POST', path, params);
631
631
  }
632
632
  async postTranslateStream(args = {}) {
633
633
  const params = {};
634
- let path = '/translate/stream';
634
+ let path = '/api/v1/translate/stream';
635
635
  return this.c._request('POST', path, params);
636
636
  }
637
637
  async postTranslateText(args = {}) {
638
638
  const params = {};
639
639
  if (args["to_lang"] !== undefined)
640
640
  params["to_lang"] = args["to_lang"];
641
- let path = '/translate/text';
641
+ let path = '/api/v1/translate/text';
642
642
  return this.c._request('POST', path, params);
643
643
  }
644
644
  }
@@ -648,7 +648,7 @@ class WebparseApi {
648
648
  }
649
649
  async getWebTomarkdownAsyncStatus(args = {}) {
650
650
  const params = {};
651
- let path = '/web/tomarkdown/async/{task_id}';
651
+ let path = '/api/v1/web/tomarkdown/async/{task_id}';
652
652
  if (args['task_id'] !== undefined)
653
653
  path = path.replace('{' + 'task_id' + '}', String(args['task_id']));
654
654
  return this.c._request('GET', path, params);
@@ -657,21 +657,21 @@ class WebparseApi {
657
657
  const params = {};
658
658
  if (args["url"] !== undefined)
659
659
  params["url"] = args["url"];
660
- let path = '/webparse/extractimages';
660
+ let path = '/api/v1/webparse/extractimages';
661
661
  return this.c._request('GET', path, params);
662
662
  }
663
663
  async getWebparseMetadata(args = {}) {
664
664
  const params = {};
665
665
  if (args["url"] !== undefined)
666
666
  params["url"] = args["url"];
667
- let path = '/webparse/metadata';
667
+ let path = '/api/v1/webparse/metadata';
668
668
  return this.c._request('GET', path, params);
669
669
  }
670
670
  async postWebTomarkdownAsync(args = {}) {
671
671
  const params = {};
672
672
  if (args["url"] !== undefined)
673
673
  params["url"] = args["url"];
674
- let path = '/web/tomarkdown/async';
674
+ let path = '/api/v1/web/tomarkdown/async';
675
675
  return this.c._request('POST', path, params);
676
676
  }
677
677
  }
@@ -683,17 +683,17 @@ class MinGanCiShiBieApi {
683
683
  const params = {};
684
684
  if (args["keyword"] !== undefined)
685
685
  params["keyword"] = args["keyword"];
686
- let path = '/sensitive-word/analyze-query';
686
+ let path = '/api/v1/sensitive-word/analyze-query';
687
687
  return this.c._request('GET', path, params);
688
688
  }
689
689
  async postSensitiveWordAnalyze(args = {}) {
690
690
  const params = {};
691
- let path = '/sensitive-word/analyze';
691
+ let path = '/api/v1/sensitive-word/analyze';
692
692
  return this.c._request('POST', path, params);
693
693
  }
694
694
  async postSensitiveWordQuickCheck(args = {}) {
695
695
  const params = {};
696
- let path = '/text/profanitycheck';
696
+ let path = '/api/v1/text/profanitycheck';
697
697
  return this.c._request('POST', path, params);
698
698
  }
699
699
  }
@@ -703,12 +703,12 @@ class ZhiNengSouSuoApi {
703
703
  }
704
704
  async getSearchEngines(args = {}) {
705
705
  const params = {};
706
- let path = '/search/engines';
706
+ let path = '/api/v1/search/engines';
707
707
  return this.c._request('GET', path, params);
708
708
  }
709
709
  async postSearchAggregate(args = {}) {
710
710
  const params = {};
711
- let path = '/search/aggregate';
711
+ let path = '/api/v1/search/aggregate';
712
712
  return this.c._request('POST', path, params);
713
713
  }
714
714
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uapi-browser-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -57,19 +57,19 @@ class ClipzyZaiXianJianTieBanApi {
57
57
  async getClipzyGet(args: any = {}): Promise<any> {
58
58
  const params:any = {}
59
59
  if (args["id"] !== undefined) params["id"] = args["id"]
60
- let path = '/api/get'
60
+ let path = '/api/v1/api/get'
61
61
  return this.c._request('GET', path, params)
62
62
  }
63
63
  async getClipzyRaw(args: any = {}): Promise<any> {
64
64
  const params:any = {}
65
65
  if (args["key"] !== undefined) params["key"] = args["key"]
66
- let path = '/api/raw/{id}'
66
+ let path = '/api/v1/api/raw/{id}'
67
67
  if (args['id'] !== undefined) path = path.replace('{' + 'id' + '}', String(args['id']))
68
68
  return this.c._request('GET', path, params)
69
69
  }
70
70
  async postClipzyStore(args: any = {}): Promise<any> {
71
71
  const params:any = {}
72
- let path = '/api/store'
72
+ let path = '/api/v1/api/store'
73
73
  return this.c._request('POST', path, params)
74
74
  }
75
75
  }
@@ -78,12 +78,12 @@ class ConvertApi {
78
78
  async getConvertUnixtime(args: any = {}): Promise<any> {
79
79
  const params:any = {}
80
80
  if (args["time"] !== undefined) params["time"] = args["time"]
81
- let path = '/convert/unixtime'
81
+ let path = '/api/v1/convert/unixtime'
82
82
  return this.c._request('GET', path, params)
83
83
  }
84
84
  async postConvertJson(args: any = {}): Promise<any> {
85
85
  const params:any = {}
86
- let path = '/convert/json'
86
+ let path = '/api/v1/convert/json'
87
87
  return this.c._request('POST', path, params)
88
88
  }
89
89
  }
@@ -91,7 +91,7 @@ class DailyApi {
91
91
  constructor(private c: UapiClient) {}
92
92
  async getDailyNewsImage(args: any = {}): Promise<any> {
93
93
  const params:any = {}
94
- let path = '/daily/news-image'
94
+ let path = '/api/v1/daily/news-image'
95
95
  return this.c._request('GET', path, params)
96
96
  }
97
97
  }
@@ -99,25 +99,25 @@ class GameApi {
99
99
  constructor(private c: UapiClient) {}
100
100
  async getGameEpicFree(args: any = {}): Promise<any> {
101
101
  const params:any = {}
102
- let path = '/game/epic-free'
102
+ let path = '/api/v1/game/epic-free'
103
103
  return this.c._request('GET', path, params)
104
104
  }
105
105
  async getGameMinecraftHistoryid(args: any = {}): Promise<any> {
106
106
  const params:any = {}
107
107
  if (args["uuid"] !== undefined) params["uuid"] = args["uuid"]
108
- let path = '/game/minecraft/historyid'
108
+ let path = '/api/v1/game/minecraft/historyid'
109
109
  return this.c._request('GET', path, params)
110
110
  }
111
111
  async getGameMinecraftServerstatus(args: any = {}): Promise<any> {
112
112
  const params:any = {}
113
113
  if (args["server"] !== undefined) params["server"] = args["server"]
114
- let path = '/game/minecraft/serverstatus'
114
+ let path = '/api/v1/game/minecraft/serverstatus'
115
115
  return this.c._request('GET', path, params)
116
116
  }
117
117
  async getGameMinecraftUserinfo(args: any = {}): Promise<any> {
118
118
  const params:any = {}
119
119
  if (args["username"] !== undefined) params["username"] = args["username"]
120
- let path = '/game/minecraft/userinfo'
120
+ let path = '/api/v1/game/minecraft/userinfo'
121
121
  return this.c._request('GET', path, params)
122
122
  }
123
123
  async getGameSteamSummary(args: any = {}): Promise<any> {
@@ -126,7 +126,7 @@ class GameApi {
126
126
  if (args["id"] !== undefined) params["id"] = args["id"]
127
127
  if (args["id3"] !== undefined) params["id3"] = args["id3"]
128
128
  if (args["key"] !== undefined) params["key"] = args["key"]
129
- let path = '/game/steam/summary'
129
+ let path = '/api/v1/game/steam/summary'
130
130
  return this.c._request('GET', path, params)
131
131
  }
132
132
  }
@@ -139,19 +139,19 @@ class ImageApi {
139
139
  if (args["s"] !== undefined) params["s"] = args["s"]
140
140
  if (args["d"] !== undefined) params["d"] = args["d"]
141
141
  if (args["r"] !== undefined) params["r"] = args["r"]
142
- let path = '/avatar/gravatar'
142
+ let path = '/api/v1/avatar/gravatar'
143
143
  return this.c._request('GET', path, params)
144
144
  }
145
145
  async getImageBingDaily(args: any = {}): Promise<any> {
146
146
  const params:any = {}
147
- let path = '/image/bing-daily'
147
+ let path = '/api/v1/image/bing-daily'
148
148
  return this.c._request('GET', path, params)
149
149
  }
150
150
  async getImageMotou(args: any = {}): Promise<any> {
151
151
  const params:any = {}
152
152
  if (args["qq"] !== undefined) params["qq"] = args["qq"]
153
153
  if (args["bg_color"] !== undefined) params["bg_color"] = args["bg_color"]
154
- let path = '/image/motou'
154
+ let path = '/api/v1/image/motou'
155
155
  return this.c._request('GET', path, params)
156
156
  }
157
157
  async getImageQrcode(args: any = {}): Promise<any> {
@@ -159,35 +159,35 @@ class ImageApi {
159
159
  if (args["text"] !== undefined) params["text"] = args["text"]
160
160
  if (args["size"] !== undefined) params["size"] = args["size"]
161
161
  if (args["format"] !== undefined) params["format"] = args["format"]
162
- let path = '/image/qrcode'
162
+ let path = '/api/v1/image/qrcode'
163
163
  return this.c._request('GET', path, params)
164
164
  }
165
165
  async getImageTobase64(args: any = {}): Promise<any> {
166
166
  const params:any = {}
167
167
  if (args["url"] !== undefined) params["url"] = args["url"]
168
- let path = '/image/tobase64'
168
+ let path = '/api/v1/image/tobase64'
169
169
  return this.c._request('GET', path, params)
170
170
  }
171
171
  async postImageCompress(args: any = {}): Promise<any> {
172
172
  const params:any = {}
173
173
  if (args["level"] !== undefined) params["level"] = args["level"]
174
174
  if (args["format"] !== undefined) params["format"] = args["format"]
175
- let path = '/image/compress'
175
+ let path = '/api/v1/image/compress'
176
176
  return this.c._request('POST', path, params)
177
177
  }
178
178
  async postImageFrombase64(args: any = {}): Promise<any> {
179
179
  const params:any = {}
180
- let path = '/image/frombase64'
180
+ let path = '/api/v1/image/frombase64'
181
181
  return this.c._request('POST', path, params)
182
182
  }
183
183
  async postImageMotou(args: any = {}): Promise<any> {
184
184
  const params:any = {}
185
- let path = '/image/motou'
185
+ let path = '/api/v1/image/motou'
186
186
  return this.c._request('POST', path, params)
187
187
  }
188
188
  async postImageSpeechless(args: any = {}): Promise<any> {
189
189
  const params:any = {}
190
- let path = '/image/speechless'
190
+ let path = '/api/v1/image/speechless'
191
191
  return this.c._request('POST', path, params)
192
192
  }
193
193
  async postImageSvg(args: any = {}): Promise<any> {
@@ -196,7 +196,7 @@ class ImageApi {
196
196
  if (args["width"] !== undefined) params["width"] = args["width"]
197
197
  if (args["height"] !== undefined) params["height"] = args["height"]
198
198
  if (args["quality"] !== undefined) params["quality"] = args["quality"]
199
- let path = '/image/svg'
199
+ let path = '/api/v1/image/svg'
200
200
  return this.c._request('POST', path, params)
201
201
  }
202
202
  }
@@ -206,24 +206,24 @@ class MiscApi {
206
206
  const params:any = {}
207
207
  if (args["month"] !== undefined) params["month"] = args["month"]
208
208
  if (args["day"] !== undefined) params["day"] = args["day"]
209
- let path = '/history/programmer'
209
+ let path = '/api/v1/history/programmer'
210
210
  return this.c._request('GET', path, params)
211
211
  }
212
212
  async getHistoryProgrammerToday(args: any = {}): Promise<any> {
213
213
  const params:any = {}
214
- let path = '/history/programmer/today'
214
+ let path = '/api/v1/history/programmer/today'
215
215
  return this.c._request('GET', path, params)
216
216
  }
217
217
  async getMiscHotboard(args: any = {}): Promise<any> {
218
218
  const params:any = {}
219
219
  if (args["type"] !== undefined) params["type"] = args["type"]
220
- let path = '/misc/hotboard'
220
+ let path = '/api/v1/misc/hotboard'
221
221
  return this.c._request('GET', path, params)
222
222
  }
223
223
  async getMiscPhoneinfo(args: any = {}): Promise<any> {
224
224
  const params:any = {}
225
225
  if (args["phone"] !== undefined) params["phone"] = args["phone"]
226
- let path = '/misc/phoneinfo'
226
+ let path = '/api/v1/misc/phoneinfo'
227
227
  return this.c._request('GET', path, params)
228
228
  }
229
229
  async getMiscRandomnumber(args: any = {}): Promise<any> {
@@ -234,44 +234,44 @@ class MiscApi {
234
234
  if (args["allow_repeat"] !== undefined) params["allow_repeat"] = args["allow_repeat"]
235
235
  if (args["allow_decimal"] !== undefined) params["allow_decimal"] = args["allow_decimal"]
236
236
  if (args["decimal_places"] !== undefined) params["decimal_places"] = args["decimal_places"]
237
- let path = '/misc/randomnumber'
237
+ let path = '/api/v1/misc/randomnumber'
238
238
  return this.c._request('GET', path, params)
239
239
  }
240
240
  async getMiscTimestamp(args: any = {}): Promise<any> {
241
241
  const params:any = {}
242
242
  if (args["ts"] !== undefined) params["ts"] = args["ts"]
243
- let path = '/misc/timestamp'
243
+ let path = '/api/v1/misc/timestamp'
244
244
  return this.c._request('GET', path, params)
245
245
  }
246
246
  async getMiscTrackingCarriers(args: any = {}): Promise<any> {
247
247
  const params:any = {}
248
- let path = '/misc/tracking/carriers'
248
+ let path = '/api/v1/misc/tracking/carriers'
249
249
  return this.c._request('GET', path, params)
250
250
  }
251
251
  async getMiscTrackingDetect(args: any = {}): Promise<any> {
252
252
  const params:any = {}
253
253
  if (args["tracking_number"] !== undefined) params["tracking_number"] = args["tracking_number"]
254
- let path = '/misc/tracking/detect'
254
+ let path = '/api/v1/misc/tracking/detect'
255
255
  return this.c._request('GET', path, params)
256
256
  }
257
257
  async getMiscTrackingQuery(args: any = {}): Promise<any> {
258
258
  const params:any = {}
259
259
  if (args["tracking_number"] !== undefined) params["tracking_number"] = args["tracking_number"]
260
260
  if (args["carrier_code"] !== undefined) params["carrier_code"] = args["carrier_code"]
261
- let path = '/misc/tracking/query'
261
+ let path = '/api/v1/misc/tracking/query'
262
262
  return this.c._request('GET', path, params)
263
263
  }
264
264
  async getMiscWeather(args: any = {}): Promise<any> {
265
265
  const params:any = {}
266
266
  if (args["city"] !== undefined) params["city"] = args["city"]
267
267
  if (args["adcode"] !== undefined) params["adcode"] = args["adcode"]
268
- let path = '/misc/weather'
268
+ let path = '/api/v1/misc/weather'
269
269
  return this.c._request('GET', path, params)
270
270
  }
271
271
  async getMiscWorldtime(args: any = {}): Promise<any> {
272
272
  const params:any = {}
273
273
  if (args["city"] !== undefined) params["city"] = args["city"]
274
- let path = '/misc/worldtime'
274
+ let path = '/api/v1/misc/worldtime'
275
275
  return this.c._request('GET', path, params)
276
276
  }
277
277
  }
@@ -281,37 +281,37 @@ class NetworkApi {
281
281
  const params:any = {}
282
282
  if (args["domain"] !== undefined) params["domain"] = args["domain"]
283
283
  if (args["type"] !== undefined) params["type"] = args["type"]
284
- let path = '/network/dns'
284
+ let path = '/api/v1/network/dns'
285
285
  return this.c._request('GET', path, params)
286
286
  }
287
287
  async getNetworkIcp(args: any = {}): Promise<any> {
288
288
  const params:any = {}
289
289
  if (args["domain"] !== undefined) params["domain"] = args["domain"]
290
- let path = '/network/icp'
290
+ let path = '/api/v1/network/icp'
291
291
  return this.c._request('GET', path, params)
292
292
  }
293
293
  async getNetworkIpinfo(args: any = {}): Promise<any> {
294
294
  const params:any = {}
295
295
  if (args["ip"] !== undefined) params["ip"] = args["ip"]
296
296
  if (args["source"] !== undefined) params["source"] = args["source"]
297
- let path = '/network/ipinfo'
297
+ let path = '/api/v1/network/ipinfo'
298
298
  return this.c._request('GET', path, params)
299
299
  }
300
300
  async getNetworkMyip(args: any = {}): Promise<any> {
301
301
  const params:any = {}
302
302
  if (args["source"] !== undefined) params["source"] = args["source"]
303
- let path = '/network/myip'
303
+ let path = '/api/v1/network/myip'
304
304
  return this.c._request('GET', path, params)
305
305
  }
306
306
  async getNetworkPing(args: any = {}): Promise<any> {
307
307
  const params:any = {}
308
308
  if (args["host"] !== undefined) params["host"] = args["host"]
309
- let path = '/network/ping'
309
+ let path = '/api/v1/network/ping'
310
310
  return this.c._request('GET', path, params)
311
311
  }
312
312
  async getNetworkPingmyip(args: any = {}): Promise<any> {
313
313
  const params:any = {}
314
- let path = '/network/pingmyip'
314
+ let path = '/api/v1/network/pingmyip'
315
315
  return this.c._request('GET', path, params)
316
316
  }
317
317
  async getNetworkPortscan(args: any = {}): Promise<any> {
@@ -319,26 +319,26 @@ class NetworkApi {
319
319
  if (args["host"] !== undefined) params["host"] = args["host"]
320
320
  if (args["port"] !== undefined) params["port"] = args["port"]
321
321
  if (args["protocol"] !== undefined) params["protocol"] = args["protocol"]
322
- let path = '/network/portscan'
322
+ let path = '/api/v1/network/portscan'
323
323
  return this.c._request('GET', path, params)
324
324
  }
325
325
  async getNetworkUrlstatus(args: any = {}): Promise<any> {
326
326
  const params:any = {}
327
327
  if (args["url"] !== undefined) params["url"] = args["url"]
328
- let path = '/network/urlstatus'
328
+ let path = '/api/v1/network/urlstatus'
329
329
  return this.c._request('GET', path, params)
330
330
  }
331
331
  async getNetworkWhois(args: any = {}): Promise<any> {
332
332
  const params:any = {}
333
333
  if (args["domain"] !== undefined) params["domain"] = args["domain"]
334
334
  if (args["format"] !== undefined) params["format"] = args["format"]
335
- let path = '/network/whois'
335
+ let path = '/api/v1/network/whois'
336
336
  return this.c._request('GET', path, params)
337
337
  }
338
338
  async getNetworkWxdomain(args: any = {}): Promise<any> {
339
339
  const params:any = {}
340
340
  if (args["domain"] !== undefined) params["domain"] = args["domain"]
341
- let path = '/network/wxdomain'
341
+ let path = '/api/v1/network/wxdomain'
342
342
  return this.c._request('GET', path, params)
343
343
  }
344
344
  }
@@ -346,7 +346,7 @@ class PoemApi {
346
346
  constructor(private c: UapiClient) {}
347
347
  async getSaying(args: any = {}): Promise<any> {
348
348
  const params:any = {}
349
- let path = '/saying'
349
+ let path = '/api/v1/saying'
350
350
  return this.c._request('GET', path, params)
351
351
  }
352
352
  }
@@ -355,26 +355,26 @@ class RandomApi {
355
355
  async getAnswerbookAsk(args: any = {}): Promise<any> {
356
356
  const params:any = {}
357
357
  if (args["question"] !== undefined) params["question"] = args["question"]
358
- let path = '/answerbook/ask'
358
+ let path = '/api/v1/answerbook/ask'
359
359
  return this.c._request('GET', path, params)
360
360
  }
361
361
  async getRandomImage(args: any = {}): Promise<any> {
362
362
  const params:any = {}
363
363
  if (args["category"] !== undefined) params["category"] = args["category"]
364
364
  if (args["type"] !== undefined) params["type"] = args["type"]
365
- let path = '/random/image'
365
+ let path = '/api/v1/random/image'
366
366
  return this.c._request('GET', path, params)
367
367
  }
368
368
  async getRandomString(args: any = {}): Promise<any> {
369
369
  const params:any = {}
370
370
  if (args["length"] !== undefined) params["length"] = args["length"]
371
371
  if (args["type"] !== undefined) params["type"] = args["type"]
372
- let path = '/random/string'
372
+ let path = '/api/v1/random/string'
373
373
  return this.c._request('GET', path, params)
374
374
  }
375
375
  async postAnswerbookAsk(args: any = {}): Promise<any> {
376
376
  const params:any = {}
377
- let path = '/answerbook/ask'
377
+ let path = '/api/v1/answerbook/ask'
378
378
  return this.c._request('POST', path, params)
379
379
  }
380
380
  }
@@ -383,7 +383,7 @@ class SocialApi {
383
383
  async getGithubRepo(args: any = {}): Promise<any> {
384
384
  const params:any = {}
385
385
  if (args["repo"] !== undefined) params["repo"] = args["repo"]
386
- let path = '/github/repo'
386
+ let path = '/api/v1/github/repo'
387
387
  return this.c._request('GET', path, params)
388
388
  }
389
389
  async getSocialBilibiliArchives(args: any = {}): Promise<any> {
@@ -393,14 +393,14 @@ class SocialApi {
393
393
  if (args["orderby"] !== undefined) params["orderby"] = args["orderby"]
394
394
  if (args["ps"] !== undefined) params["ps"] = args["ps"]
395
395
  if (args["pn"] !== undefined) params["pn"] = args["pn"]
396
- let path = '/social/bilibili/archives'
396
+ let path = '/api/v1/social/bilibili/archives'
397
397
  return this.c._request('GET', path, params)
398
398
  }
399
399
  async getSocialBilibiliLiveroom(args: any = {}): Promise<any> {
400
400
  const params:any = {}
401
401
  if (args["mid"] !== undefined) params["mid"] = args["mid"]
402
402
  if (args["room_id"] !== undefined) params["room_id"] = args["room_id"]
403
- let path = '/social/bilibili/liveroom'
403
+ let path = '/api/v1/social/bilibili/liveroom'
404
404
  return this.c._request('GET', path, params)
405
405
  }
406
406
  async getSocialBilibiliReplies(args: any = {}): Promise<any> {
@@ -409,32 +409,32 @@ class SocialApi {
409
409
  if (args["sort"] !== undefined) params["sort"] = args["sort"]
410
410
  if (args["ps"] !== undefined) params["ps"] = args["ps"]
411
411
  if (args["pn"] !== undefined) params["pn"] = args["pn"]
412
- let path = '/social/bilibili/replies'
412
+ let path = '/api/v1/social/bilibili/replies'
413
413
  return this.c._request('GET', path, params)
414
414
  }
415
415
  async getSocialBilibiliUserinfo(args: any = {}): Promise<any> {
416
416
  const params:any = {}
417
417
  if (args["uid"] !== undefined) params["uid"] = args["uid"]
418
- let path = '/social/bilibili/userinfo'
418
+ let path = '/api/v1/social/bilibili/userinfo'
419
419
  return this.c._request('GET', path, params)
420
420
  }
421
421
  async getSocialBilibiliVideoinfo(args: any = {}): Promise<any> {
422
422
  const params:any = {}
423
423
  if (args["aid"] !== undefined) params["aid"] = args["aid"]
424
424
  if (args["bvid"] !== undefined) params["bvid"] = args["bvid"]
425
- let path = '/social/bilibili/videoinfo'
425
+ let path = '/api/v1/social/bilibili/videoinfo'
426
426
  return this.c._request('GET', path, params)
427
427
  }
428
428
  async getSocialQqGroupinfo(args: any = {}): Promise<any> {
429
429
  const params:any = {}
430
430
  if (args["group_id"] !== undefined) params["group_id"] = args["group_id"]
431
- let path = '/social/qq/groupinfo'
431
+ let path = '/api/v1/social/qq/groupinfo'
432
432
  return this.c._request('GET', path, params)
433
433
  }
434
434
  async getSocialQqUserinfo(args: any = {}): Promise<any> {
435
435
  const params:any = {}
436
436
  if (args["qq"] !== undefined) params["qq"] = args["qq"]
437
- let path = '/social/qq/userinfo'
437
+ let path = '/api/v1/social/qq/userinfo'
438
438
  return this.c._request('GET', path, params)
439
439
  }
440
440
  }
@@ -442,13 +442,13 @@ class StatusApi {
442
442
  constructor(private c: UapiClient) {}
443
443
  async getStatusRatelimit(args: any = {}): Promise<any> {
444
444
  const params:any = {}
445
- let path = '/status/ratelimit'
445
+ let path = '/api/v1/status/ratelimit'
446
446
  return this.c._request('GET', path, params)
447
447
  }
448
448
  async getStatusUsage(args: any = {}): Promise<any> {
449
449
  const params:any = {}
450
450
  if (args["path"] !== undefined) params["path"] = args["path"]
451
- let path = '/status/usage'
451
+ let path = '/api/v1/status/usage'
452
452
  return this.c._request('GET', path, params)
453
453
  }
454
454
  }
@@ -457,42 +457,42 @@ class TextApi {
457
457
  async getTextMd5(args: any = {}): Promise<any> {
458
458
  const params:any = {}
459
459
  if (args["text"] !== undefined) params["text"] = args["text"]
460
- let path = '/text/md5'
460
+ let path = '/api/v1/text/md5'
461
461
  return this.c._request('GET', path, params)
462
462
  }
463
463
  async postTextAesDecrypt(args: any = {}): Promise<any> {
464
464
  const params:any = {}
465
- let path = '/text/aes/decrypt'
465
+ let path = '/api/v1/text/aes/decrypt'
466
466
  return this.c._request('POST', path, params)
467
467
  }
468
468
  async postTextAesEncrypt(args: any = {}): Promise<any> {
469
469
  const params:any = {}
470
- let path = '/text/aes/encrypt'
470
+ let path = '/api/v1/text/aes/encrypt'
471
471
  return this.c._request('POST', path, params)
472
472
  }
473
473
  async postTextAnalyze(args: any = {}): Promise<any> {
474
474
  const params:any = {}
475
- let path = '/text/analyze'
475
+ let path = '/api/v1/text/analyze'
476
476
  return this.c._request('POST', path, params)
477
477
  }
478
478
  async postTextBase64Decode(args: any = {}): Promise<any> {
479
479
  const params:any = {}
480
- let path = '/text/base64/decode'
480
+ let path = '/api/v1/text/base64/decode'
481
481
  return this.c._request('POST', path, params)
482
482
  }
483
483
  async postTextBase64Encode(args: any = {}): Promise<any> {
484
484
  const params:any = {}
485
- let path = '/text/base64/encode'
485
+ let path = '/api/v1/text/base64/encode'
486
486
  return this.c._request('POST', path, params)
487
487
  }
488
488
  async postTextMd5(args: any = {}): Promise<any> {
489
489
  const params:any = {}
490
- let path = '/text/md5'
490
+ let path = '/api/v1/text/md5'
491
491
  return this.c._request('POST', path, params)
492
492
  }
493
493
  async postTextMd5Verify(args: any = {}): Promise<any> {
494
494
  const params:any = {}
495
- let path = '/text/md5/verify'
495
+ let path = '/api/v1/text/md5/verify'
496
496
  return this.c._request('POST', path, params)
497
497
  }
498
498
  }
@@ -500,24 +500,24 @@ class TranslateApi {
500
500
  constructor(private c: UapiClient) {}
501
501
  async getAiTranslateLanguages(args: any = {}): Promise<any> {
502
502
  const params:any = {}
503
- let path = '/ai/translate/languages'
503
+ let path = '/api/v1/ai/translate/languages'
504
504
  return this.c._request('GET', path, params)
505
505
  }
506
506
  async postAiTranslate(args: any = {}): Promise<any> {
507
507
  const params:any = {}
508
508
  if (args["target_lang"] !== undefined) params["target_lang"] = args["target_lang"]
509
- let path = '/ai/translate'
509
+ let path = '/api/v1/ai/translate'
510
510
  return this.c._request('POST', path, params)
511
511
  }
512
512
  async postTranslateStream(args: any = {}): Promise<any> {
513
513
  const params:any = {}
514
- let path = '/translate/stream'
514
+ let path = '/api/v1/translate/stream'
515
515
  return this.c._request('POST', path, params)
516
516
  }
517
517
  async postTranslateText(args: any = {}): Promise<any> {
518
518
  const params:any = {}
519
519
  if (args["to_lang"] !== undefined) params["to_lang"] = args["to_lang"]
520
- let path = '/translate/text'
520
+ let path = '/api/v1/translate/text'
521
521
  return this.c._request('POST', path, params)
522
522
  }
523
523
  }
@@ -525,26 +525,26 @@ class WebparseApi {
525
525
  constructor(private c: UapiClient) {}
526
526
  async getWebTomarkdownAsyncStatus(args: any = {}): Promise<any> {
527
527
  const params:any = {}
528
- let path = '/web/tomarkdown/async/{task_id}'
528
+ let path = '/api/v1/web/tomarkdown/async/{task_id}'
529
529
  if (args['task_id'] !== undefined) path = path.replace('{' + 'task_id' + '}', String(args['task_id']))
530
530
  return this.c._request('GET', path, params)
531
531
  }
532
532
  async getWebparseExtractimages(args: any = {}): Promise<any> {
533
533
  const params:any = {}
534
534
  if (args["url"] !== undefined) params["url"] = args["url"]
535
- let path = '/webparse/extractimages'
535
+ let path = '/api/v1/webparse/extractimages'
536
536
  return this.c._request('GET', path, params)
537
537
  }
538
538
  async getWebparseMetadata(args: any = {}): Promise<any> {
539
539
  const params:any = {}
540
540
  if (args["url"] !== undefined) params["url"] = args["url"]
541
- let path = '/webparse/metadata'
541
+ let path = '/api/v1/webparse/metadata'
542
542
  return this.c._request('GET', path, params)
543
543
  }
544
544
  async postWebTomarkdownAsync(args: any = {}): Promise<any> {
545
545
  const params:any = {}
546
546
  if (args["url"] !== undefined) params["url"] = args["url"]
547
- let path = '/web/tomarkdown/async'
547
+ let path = '/api/v1/web/tomarkdown/async'
548
548
  return this.c._request('POST', path, params)
549
549
  }
550
550
  }
@@ -553,17 +553,17 @@ class MinGanCiShiBieApi {
553
553
  async getSensitiveWordAnalyzeQuery(args: any = {}): Promise<any> {
554
554
  const params:any = {}
555
555
  if (args["keyword"] !== undefined) params["keyword"] = args["keyword"]
556
- let path = '/sensitive-word/analyze-query'
556
+ let path = '/api/v1/sensitive-word/analyze-query'
557
557
  return this.c._request('GET', path, params)
558
558
  }
559
559
  async postSensitiveWordAnalyze(args: any = {}): Promise<any> {
560
560
  const params:any = {}
561
- let path = '/sensitive-word/analyze'
561
+ let path = '/api/v1/sensitive-word/analyze'
562
562
  return this.c._request('POST', path, params)
563
563
  }
564
564
  async postSensitiveWordQuickCheck(args: any = {}): Promise<any> {
565
565
  const params:any = {}
566
- let path = '/text/profanitycheck'
566
+ let path = '/api/v1/text/profanitycheck'
567
567
  return this.c._request('POST', path, params)
568
568
  }
569
569
  }
@@ -571,12 +571,12 @@ class ZhiNengSouSuoApi {
571
571
  constructor(private c: UapiClient) {}
572
572
  async getSearchEngines(args: any = {}): Promise<any> {
573
573
  const params:any = {}
574
- let path = '/search/engines'
574
+ let path = '/api/v1/search/engines'
575
575
  return this.c._request('GET', path, params)
576
576
  }
577
577
  async postSearchAggregate(args: any = {}): Promise<any> {
578
578
  const params:any = {}
579
- let path = '/search/aggregate'
579
+ let path = '/api/v1/search/aggregate'
580
580
  return this.c._request('POST', path, params)
581
581
  }
582
582
  }