uapi-browser-sdk 0.1.1 → 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.
- package/README.md +42 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +82 -77
- package/internal/.openapi-generator/FILES +6 -0
- package/internal/docs/PostTranslateStream400Response.md +36 -0
- package/internal/docs/PostTranslateStream500Response.md +36 -0
- package/internal/docs/PostTranslateStreamRequest.md +40 -0
- package/internal/docs/TranslateApi.md +70 -0
- package/internal/src/apis/TranslateApi.ts +58 -0
- package/internal/src/models/PostTranslateStream400Response.ts +85 -0
- package/internal/src/models/PostTranslateStream500Response.ts +73 -0
- package/internal/src/models/PostTranslateStreamRequest.ts +112 -0
- package/internal/src/models/index.ts +3 -0
- package/package.json +4 -2
- package/src/index.ts +82 -77
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,21 +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
|
+
return this.c._request('POST', path, params);
|
|
631
|
+
}
|
|
632
|
+
async postTranslateStream(args = {}) {
|
|
633
|
+
const params = {};
|
|
634
|
+
let path = '/api/v1/translate/stream';
|
|
630
635
|
return this.c._request('POST', path, params);
|
|
631
636
|
}
|
|
632
637
|
async postTranslateText(args = {}) {
|
|
633
638
|
const params = {};
|
|
634
639
|
if (args["to_lang"] !== undefined)
|
|
635
640
|
params["to_lang"] = args["to_lang"];
|
|
636
|
-
let path = '/translate/text';
|
|
641
|
+
let path = '/api/v1/translate/text';
|
|
637
642
|
return this.c._request('POST', path, params);
|
|
638
643
|
}
|
|
639
644
|
}
|
|
@@ -643,7 +648,7 @@ class WebparseApi {
|
|
|
643
648
|
}
|
|
644
649
|
async getWebTomarkdownAsyncStatus(args = {}) {
|
|
645
650
|
const params = {};
|
|
646
|
-
let path = '/web/tomarkdown/async/{task_id}';
|
|
651
|
+
let path = '/api/v1/web/tomarkdown/async/{task_id}';
|
|
647
652
|
if (args['task_id'] !== undefined)
|
|
648
653
|
path = path.replace('{' + 'task_id' + '}', String(args['task_id']));
|
|
649
654
|
return this.c._request('GET', path, params);
|
|
@@ -652,21 +657,21 @@ class WebparseApi {
|
|
|
652
657
|
const params = {};
|
|
653
658
|
if (args["url"] !== undefined)
|
|
654
659
|
params["url"] = args["url"];
|
|
655
|
-
let path = '/webparse/extractimages';
|
|
660
|
+
let path = '/api/v1/webparse/extractimages';
|
|
656
661
|
return this.c._request('GET', path, params);
|
|
657
662
|
}
|
|
658
663
|
async getWebparseMetadata(args = {}) {
|
|
659
664
|
const params = {};
|
|
660
665
|
if (args["url"] !== undefined)
|
|
661
666
|
params["url"] = args["url"];
|
|
662
|
-
let path = '/webparse/metadata';
|
|
667
|
+
let path = '/api/v1/webparse/metadata';
|
|
663
668
|
return this.c._request('GET', path, params);
|
|
664
669
|
}
|
|
665
670
|
async postWebTomarkdownAsync(args = {}) {
|
|
666
671
|
const params = {};
|
|
667
672
|
if (args["url"] !== undefined)
|
|
668
673
|
params["url"] = args["url"];
|
|
669
|
-
let path = '/web/tomarkdown/async';
|
|
674
|
+
let path = '/api/v1/web/tomarkdown/async';
|
|
670
675
|
return this.c._request('POST', path, params);
|
|
671
676
|
}
|
|
672
677
|
}
|
|
@@ -678,17 +683,17 @@ class MinGanCiShiBieApi {
|
|
|
678
683
|
const params = {};
|
|
679
684
|
if (args["keyword"] !== undefined)
|
|
680
685
|
params["keyword"] = args["keyword"];
|
|
681
|
-
let path = '/sensitive-word/analyze-query';
|
|
686
|
+
let path = '/api/v1/sensitive-word/analyze-query';
|
|
682
687
|
return this.c._request('GET', path, params);
|
|
683
688
|
}
|
|
684
689
|
async postSensitiveWordAnalyze(args = {}) {
|
|
685
690
|
const params = {};
|
|
686
|
-
let path = '/sensitive-word/analyze';
|
|
691
|
+
let path = '/api/v1/sensitive-word/analyze';
|
|
687
692
|
return this.c._request('POST', path, params);
|
|
688
693
|
}
|
|
689
694
|
async postSensitiveWordQuickCheck(args = {}) {
|
|
690
695
|
const params = {};
|
|
691
|
-
let path = '/text/profanitycheck';
|
|
696
|
+
let path = '/api/v1/text/profanitycheck';
|
|
692
697
|
return this.c._request('POST', path, params);
|
|
693
698
|
}
|
|
694
699
|
}
|
|
@@ -698,12 +703,12 @@ class ZhiNengSouSuoApi {
|
|
|
698
703
|
}
|
|
699
704
|
async getSearchEngines(args = {}) {
|
|
700
705
|
const params = {};
|
|
701
|
-
let path = '/search/engines';
|
|
706
|
+
let path = '/api/v1/search/engines';
|
|
702
707
|
return this.c._request('GET', path, params);
|
|
703
708
|
}
|
|
704
709
|
async postSearchAggregate(args = {}) {
|
|
705
710
|
const params = {};
|
|
706
|
-
let path = '/search/aggregate';
|
|
711
|
+
let path = '/api/v1/search/aggregate';
|
|
707
712
|
return this.c._request('POST', path, params);
|
|
708
713
|
}
|
|
709
714
|
}
|
|
@@ -262,6 +262,9 @@ docs/PostTextMd5Request.md
|
|
|
262
262
|
docs/PostTextMd5Verify200Response.md
|
|
263
263
|
docs/PostTextMd5Verify400Response.md
|
|
264
264
|
docs/PostTextMd5VerifyRequest.md
|
|
265
|
+
docs/PostTranslateStream400Response.md
|
|
266
|
+
docs/PostTranslateStream500Response.md
|
|
267
|
+
docs/PostTranslateStreamRequest.md
|
|
265
268
|
docs/PostTranslateText200Response.md
|
|
266
269
|
docs/PostTranslateText400Response.md
|
|
267
270
|
docs/PostTranslateText500Response.md
|
|
@@ -545,6 +548,9 @@ src/models/PostTextMd5Request.ts
|
|
|
545
548
|
src/models/PostTextMd5Verify200Response.ts
|
|
546
549
|
src/models/PostTextMd5Verify400Response.ts
|
|
547
550
|
src/models/PostTextMd5VerifyRequest.ts
|
|
551
|
+
src/models/PostTranslateStream400Response.ts
|
|
552
|
+
src/models/PostTranslateStream500Response.ts
|
|
553
|
+
src/models/PostTranslateStreamRequest.ts
|
|
548
554
|
src/models/PostTranslateText200Response.ts
|
|
549
555
|
src/models/PostTranslateText400Response.ts
|
|
550
556
|
src/models/PostTranslateText500Response.ts
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PostTranslateStream400Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`error` | string
|
|
10
|
+
`code` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PostTranslateStream400Response } from 'uapi-browser-sdk-browser'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"error": Missing required parameter,
|
|
20
|
+
"code": MISSING_QUERY,
|
|
21
|
+
} satisfies PostTranslateStream400Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostTranslateStream400Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|