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/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,19 +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
|
+
return this.c._request('POST', path, params)
|
|
511
|
+
}
|
|
512
|
+
async postTranslateStream(args: any = {}): Promise<any> {
|
|
513
|
+
const params:any = {}
|
|
514
|
+
let path = '/api/v1/translate/stream'
|
|
510
515
|
return this.c._request('POST', path, params)
|
|
511
516
|
}
|
|
512
517
|
async postTranslateText(args: any = {}): Promise<any> {
|
|
513
518
|
const params:any = {}
|
|
514
519
|
if (args["to_lang"] !== undefined) params["to_lang"] = args["to_lang"]
|
|
515
|
-
let path = '/translate/text'
|
|
520
|
+
let path = '/api/v1/translate/text'
|
|
516
521
|
return this.c._request('POST', path, params)
|
|
517
522
|
}
|
|
518
523
|
}
|
|
@@ -520,26 +525,26 @@ class WebparseApi {
|
|
|
520
525
|
constructor(private c: UapiClient) {}
|
|
521
526
|
async getWebTomarkdownAsyncStatus(args: any = {}): Promise<any> {
|
|
522
527
|
const params:any = {}
|
|
523
|
-
let path = '/web/tomarkdown/async/{task_id}'
|
|
528
|
+
let path = '/api/v1/web/tomarkdown/async/{task_id}'
|
|
524
529
|
if (args['task_id'] !== undefined) path = path.replace('{' + 'task_id' + '}', String(args['task_id']))
|
|
525
530
|
return this.c._request('GET', path, params)
|
|
526
531
|
}
|
|
527
532
|
async getWebparseExtractimages(args: any = {}): Promise<any> {
|
|
528
533
|
const params:any = {}
|
|
529
534
|
if (args["url"] !== undefined) params["url"] = args["url"]
|
|
530
|
-
let path = '/webparse/extractimages'
|
|
535
|
+
let path = '/api/v1/webparse/extractimages'
|
|
531
536
|
return this.c._request('GET', path, params)
|
|
532
537
|
}
|
|
533
538
|
async getWebparseMetadata(args: any = {}): Promise<any> {
|
|
534
539
|
const params:any = {}
|
|
535
540
|
if (args["url"] !== undefined) params["url"] = args["url"]
|
|
536
|
-
let path = '/webparse/metadata'
|
|
541
|
+
let path = '/api/v1/webparse/metadata'
|
|
537
542
|
return this.c._request('GET', path, params)
|
|
538
543
|
}
|
|
539
544
|
async postWebTomarkdownAsync(args: any = {}): Promise<any> {
|
|
540
545
|
const params:any = {}
|
|
541
546
|
if (args["url"] !== undefined) params["url"] = args["url"]
|
|
542
|
-
let path = '/web/tomarkdown/async'
|
|
547
|
+
let path = '/api/v1/web/tomarkdown/async'
|
|
543
548
|
return this.c._request('POST', path, params)
|
|
544
549
|
}
|
|
545
550
|
}
|
|
@@ -548,17 +553,17 @@ class MinGanCiShiBieApi {
|
|
|
548
553
|
async getSensitiveWordAnalyzeQuery(args: any = {}): Promise<any> {
|
|
549
554
|
const params:any = {}
|
|
550
555
|
if (args["keyword"] !== undefined) params["keyword"] = args["keyword"]
|
|
551
|
-
let path = '/sensitive-word/analyze-query'
|
|
556
|
+
let path = '/api/v1/sensitive-word/analyze-query'
|
|
552
557
|
return this.c._request('GET', path, params)
|
|
553
558
|
}
|
|
554
559
|
async postSensitiveWordAnalyze(args: any = {}): Promise<any> {
|
|
555
560
|
const params:any = {}
|
|
556
|
-
let path = '/sensitive-word/analyze'
|
|
561
|
+
let path = '/api/v1/sensitive-word/analyze'
|
|
557
562
|
return this.c._request('POST', path, params)
|
|
558
563
|
}
|
|
559
564
|
async postSensitiveWordQuickCheck(args: any = {}): Promise<any> {
|
|
560
565
|
const params:any = {}
|
|
561
|
-
let path = '/text/profanitycheck'
|
|
566
|
+
let path = '/api/v1/text/profanitycheck'
|
|
562
567
|
return this.c._request('POST', path, params)
|
|
563
568
|
}
|
|
564
569
|
}
|
|
@@ -566,12 +571,12 @@ class ZhiNengSouSuoApi {
|
|
|
566
571
|
constructor(private c: UapiClient) {}
|
|
567
572
|
async getSearchEngines(args: any = {}): Promise<any> {
|
|
568
573
|
const params:any = {}
|
|
569
|
-
let path = '/search/engines'
|
|
574
|
+
let path = '/api/v1/search/engines'
|
|
570
575
|
return this.c._request('GET', path, params)
|
|
571
576
|
}
|
|
572
577
|
async postSearchAggregate(args: any = {}): Promise<any> {
|
|
573
578
|
const params:any = {}
|
|
574
|
-
let path = '/search/aggregate'
|
|
579
|
+
let path = '/api/v1/search/aggregate'
|
|
575
580
|
return this.c._request('POST', path, params)
|
|
576
581
|
}
|
|
577
582
|
}
|