uapi-browser-sdk 0.1.13 → 0.1.15
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 +2 -2
- package/dist/src/index.d.ts +471 -2
- package/dist/src/index.js +511 -93
- package/package.json +1 -1
- package/src/index.ts +911 -6
package/src/index.ts
CHANGED
|
@@ -2,15 +2,62 @@ import type * as Internal from '../internal/src/index.js'
|
|
|
2
2
|
import { UapiError, type ResponseMeta, extractMetaFromHeaders, mapError } from './errors.js'
|
|
3
3
|
export { UapiError, mapError, extractMetaFromHeaders } from './errors.js'
|
|
4
4
|
export type { RateLimitPolicyEntry, RateLimitStateEntry, ResponseMeta } from './errors.js'
|
|
5
|
+
|
|
6
|
+
export interface UapiClientOptions {
|
|
7
|
+
disableCache?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type RequestOptions = { disableCache?: boolean }
|
|
11
|
+
|
|
12
|
+
const API_PREFIX = '/api/v1'
|
|
13
|
+
|
|
14
|
+
function normalizeBaseURL(baseURL: string): string {
|
|
15
|
+
const trimmed = baseURL.replace(/\/+$/, '')
|
|
16
|
+
return trimmed.endsWith(API_PREFIX) ? trimmed.slice(0, -API_PREFIX.length) : trimmed
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function applyCacheControl(
|
|
20
|
+
method: string,
|
|
21
|
+
params?: Record<string, unknown>,
|
|
22
|
+
defaultDisableCache = false,
|
|
23
|
+
requestDisableCache?: boolean,
|
|
24
|
+
): Record<string, unknown> | undefined {
|
|
25
|
+
if (method.toUpperCase() !== 'GET') {
|
|
26
|
+
return params
|
|
27
|
+
}
|
|
28
|
+
if (params?.["_t"] !== undefined && params?.["_t"] !== null) {
|
|
29
|
+
return params
|
|
30
|
+
}
|
|
31
|
+
const disableCache = requestDisableCache ?? defaultDisableCache
|
|
32
|
+
if (!disableCache) {
|
|
33
|
+
return params
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
...(params ?? {}),
|
|
37
|
+
_t: Date.now(),
|
|
38
|
+
}
|
|
39
|
+
}
|
|
5
40
|
export type GetClipzyGetResponse =
|
|
6
41
|
Internal.GetClipzyGet200Response
|
|
7
42
|
export interface GetClipzyGetArgs {
|
|
43
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
44
|
+
disableCache?: boolean;
|
|
45
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
46
|
+
"disable_cache"?: boolean;
|
|
47
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
48
|
+
_t?: string | number;
|
|
8
49
|
/** 片段的唯一 ID。 */
|
|
9
50
|
id: string;
|
|
10
51
|
}
|
|
11
52
|
export type GetClipzyRawResponse =
|
|
12
53
|
string
|
|
13
54
|
export interface GetClipzyRawArgs {
|
|
55
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
56
|
+
disableCache?: boolean;
|
|
57
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
58
|
+
"disable_cache"?: boolean;
|
|
59
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
60
|
+
_t?: string | number;
|
|
14
61
|
/** 片段的唯一 ID。 */
|
|
15
62
|
id: string;
|
|
16
63
|
/** 用于解密的 Base64 编码的 AES 密钥。 */
|
|
@@ -19,6 +66,12 @@ export interface GetClipzyRawArgs {
|
|
|
19
66
|
export type PostClipzyStoreResponse =
|
|
20
67
|
Internal.PostClipzyStore200Response
|
|
21
68
|
export interface PostClipzyStoreArgs {
|
|
69
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
70
|
+
disableCache?: boolean;
|
|
71
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
72
|
+
"disable_cache"?: boolean;
|
|
73
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
74
|
+
_t?: string | number;
|
|
22
75
|
/** 必需:经过加密和 LZString 压缩后的 Base64 字符串。请参考文档首页的JS代码示例。 */
|
|
23
76
|
compressedData: string;
|
|
24
77
|
/** 可选:片段的留存时间(秒)。正数表示秒数(最大约30天),-1 表示永久存储。默认为 3600。 */
|
|
@@ -27,12 +80,24 @@ export interface PostClipzyStoreArgs {
|
|
|
27
80
|
export type GetConvertUnixtimeResponse =
|
|
28
81
|
Internal.GetConvertUnixtime200Response
|
|
29
82
|
export interface GetConvertUnixtimeArgs {
|
|
83
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
84
|
+
disableCache?: boolean;
|
|
85
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
86
|
+
"disable_cache"?: boolean;
|
|
87
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
88
|
+
_t?: string | number;
|
|
30
89
|
/** 一个智能时间参数,可传入Unix时间戳(10位或13位)或标准日期字符串(如 '2023-10-27 10:30:00'),系统将自动识别并转换。 */
|
|
31
90
|
time: string;
|
|
32
91
|
}
|
|
33
92
|
export type PostConvertJsonResponse =
|
|
34
93
|
Internal.PostConvertJson200Response
|
|
35
94
|
export interface PostConvertJsonArgs {
|
|
95
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
96
|
+
disableCache?: boolean;
|
|
97
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
98
|
+
"disable_cache"?: boolean;
|
|
99
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
100
|
+
_t?: string | number;
|
|
36
101
|
/** 需要被格式化的原始JSON字符串。 */
|
|
37
102
|
content: string;
|
|
38
103
|
}
|
|
@@ -43,6 +108,12 @@ export type GetGameEpicFreeResponse =
|
|
|
43
108
|
export type GetGameMinecraftHistoryidResponse =
|
|
44
109
|
Internal.GetGameMinecraftHistoryid200Response
|
|
45
110
|
export interface GetGameMinecraftHistoryidArgs {
|
|
111
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
112
|
+
disableCache?: boolean;
|
|
113
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
114
|
+
"disable_cache"?: boolean;
|
|
115
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
116
|
+
_t?: string | number;
|
|
46
117
|
/** 玩家的 Minecraft 用户名。使用此参数查询时,会返回所有匹配用户的列表(包括当前用户名或曾用名匹配的玩家)。 */
|
|
47
118
|
name?: string;
|
|
48
119
|
/** 玩家的 Minecraft UUID,支持带连字符或不带连字符格式。 */
|
|
@@ -51,18 +122,36 @@ export interface GetGameMinecraftHistoryidArgs {
|
|
|
51
122
|
export type GetGameMinecraftServerstatusResponse =
|
|
52
123
|
Internal.GetGameMinecraftServerstatus200Response
|
|
53
124
|
export interface GetGameMinecraftServerstatusArgs {
|
|
125
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
126
|
+
disableCache?: boolean;
|
|
127
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
128
|
+
"disable_cache"?: boolean;
|
|
129
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
130
|
+
_t?: string | number;
|
|
54
131
|
/** Minecraft服务器的地址,可以是域名(如 `hypixel.net`)或 `IP:端口` 的形式(如 `mc.example.com:25565`)。如果省略端口,将默认使用 `25565`。 */
|
|
55
132
|
server: string;
|
|
56
133
|
}
|
|
57
134
|
export type GetGameMinecraftUserinfoResponse =
|
|
58
135
|
Internal.GetGameMinecraftUserinfo200Response
|
|
59
136
|
export interface GetGameMinecraftUserinfoArgs {
|
|
137
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
138
|
+
disableCache?: boolean;
|
|
139
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
140
|
+
"disable_cache"?: boolean;
|
|
141
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
142
|
+
_t?: string | number;
|
|
60
143
|
/** 玩家的 Minecraft 游戏内名称(正版ID)。 */
|
|
61
144
|
username: string;
|
|
62
145
|
}
|
|
63
146
|
export type GetGameSteamSummaryResponse =
|
|
64
147
|
Internal.GetGameSteamSummary200Response
|
|
65
148
|
export interface GetGameSteamSummaryArgs {
|
|
149
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
150
|
+
disableCache?: boolean;
|
|
151
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
152
|
+
"disable_cache"?: boolean;
|
|
153
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
154
|
+
_t?: string | number;
|
|
66
155
|
/** 用户的 Steam 标识。可以是以下任意一种格式:
|
|
67
156
|
- 纯数字的 **SteamID64**
|
|
68
157
|
- 用户的 **自定义 URL 名称** (Vanity URL)
|
|
@@ -79,6 +168,12 @@ export interface GetGameSteamSummaryArgs {
|
|
|
79
168
|
export type GetAvatarGravatarResponse =
|
|
80
169
|
ArrayBuffer
|
|
81
170
|
export interface GetAvatarGravatarArgs {
|
|
171
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
172
|
+
disableCache?: boolean;
|
|
173
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
174
|
+
"disable_cache"?: boolean;
|
|
175
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
176
|
+
_t?: string | number;
|
|
82
177
|
/** 用户的 Email 地址。如果未提供 `hash` 参数,则此参数为必需。 */
|
|
83
178
|
email?: string;
|
|
84
179
|
/** 用户 Email 地址的小写 MD5 哈希值。如果提供此参数,将忽略 `email` 参数。 */
|
|
@@ -95,6 +190,12 @@ export type GetImageBingDailyResponse =
|
|
|
95
190
|
export type GetImageMotouResponse =
|
|
96
191
|
ArrayBuffer
|
|
97
192
|
export interface GetImageMotouArgs {
|
|
193
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
194
|
+
disableCache?: boolean;
|
|
195
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
196
|
+
"disable_cache"?: boolean;
|
|
197
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
198
|
+
_t?: string | number;
|
|
98
199
|
/** 你想要摸头的对象的QQ号码。 */
|
|
99
200
|
qq: string;
|
|
100
201
|
/** GIF的背景颜色。留空则由后端服务决定默认值。 */
|
|
@@ -105,6 +206,12 @@ export interface GetImageMotouArgs {
|
|
|
105
206
|
export type GetImageQrcodeResponse =
|
|
106
207
|
Internal.GetImageQrcode200Response
|
|
107
208
|
export interface GetImageQrcodeArgs {
|
|
209
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
210
|
+
disableCache?: boolean;
|
|
211
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
212
|
+
"disable_cache"?: boolean;
|
|
213
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
214
|
+
_t?: string | number;
|
|
108
215
|
/** 你希望编码到二维码中的任何文本内容,比如一个URL、一段话或者一个JSON字符串。 */
|
|
109
216
|
text: string;
|
|
110
217
|
/** 二维码图片的边长(正方形),单位是像素。有效范围是 256 到 2048 之间。 */
|
|
@@ -121,12 +228,24 @@ export interface GetImageQrcodeArgs {
|
|
|
121
228
|
export type GetImageTobase64Response =
|
|
122
229
|
Internal.GetImageTobase64200Response
|
|
123
230
|
export interface GetImageTobase64Args {
|
|
231
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
232
|
+
disableCache?: boolean;
|
|
233
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
234
|
+
"disable_cache"?: boolean;
|
|
235
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
236
|
+
_t?: string | number;
|
|
124
237
|
/** 需要转换为Base64的、可公开访问的图片URL地址。 */
|
|
125
238
|
url: string;
|
|
126
239
|
}
|
|
127
240
|
export type PostImageCompressResponse =
|
|
128
241
|
ArrayBuffer
|
|
129
242
|
export interface PostImageCompressArgs {
|
|
243
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
244
|
+
disableCache?: boolean;
|
|
245
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
246
|
+
"disable_cache"?: boolean;
|
|
247
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
248
|
+
_t?: string | number;
|
|
130
249
|
/** 压缩强度 (1-5),默认为 3。数字越小,压缩率越高。 */
|
|
131
250
|
level?: number;
|
|
132
251
|
/** 输出图片格式,可以是 'png' 或 'jpeg'。 */
|
|
@@ -137,12 +256,24 @@ export interface PostImageCompressArgs {
|
|
|
137
256
|
export type PostImageFrombase64Response =
|
|
138
257
|
Internal.PostImageFrombase64200Response
|
|
139
258
|
export interface PostImageFrombase64Args {
|
|
259
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
260
|
+
disableCache?: boolean;
|
|
261
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
262
|
+
"disable_cache"?: boolean;
|
|
263
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
264
|
+
_t?: string | number;
|
|
140
265
|
/** 图片的Base64 Data URI,必须包含MIME类型头。例如:`data:image/png;base64,...` */
|
|
141
266
|
imageData: string;
|
|
142
267
|
}
|
|
143
268
|
export type PostImageMotouResponse =
|
|
144
269
|
ArrayBuffer
|
|
145
270
|
export interface PostImageMotouArgs {
|
|
271
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
272
|
+
disableCache?: boolean;
|
|
273
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
274
|
+
"disable_cache"?: boolean;
|
|
275
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
276
|
+
_t?: string | number;
|
|
146
277
|
/** GIF的背景颜色。可选值为 'white', 'black', 'transparent'。 */
|
|
147
278
|
bgColor?: string;
|
|
148
279
|
/** Same as `bgColor`. Kept for compatibility. */
|
|
@@ -157,6 +288,12 @@ export interface PostImageMotouArgs {
|
|
|
157
288
|
export type PostImageNsfwResponse =
|
|
158
289
|
Internal.PostImageNsfw200Response
|
|
159
290
|
export interface PostImageNsfwArgs {
|
|
291
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
292
|
+
disableCache?: boolean;
|
|
293
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
294
|
+
"disable_cache"?: boolean;
|
|
295
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
296
|
+
_t?: string | number;
|
|
160
297
|
/** 要检测的图片文件。支持 JPG、JPEG、PNG、GIF、WebP 格式,最大 20MB。 */
|
|
161
298
|
file?: string;
|
|
162
299
|
/** 图片的 URL 地址。如果同时提供 file 和 url,将优先使用 file。 */
|
|
@@ -165,6 +302,12 @@ export interface PostImageNsfwArgs {
|
|
|
165
302
|
export type PostImageSpeechlessResponse =
|
|
166
303
|
ArrayBuffer
|
|
167
304
|
export interface PostImageSpeechlessArgs {
|
|
305
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
306
|
+
disableCache?: boolean;
|
|
307
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
308
|
+
"disable_cache"?: boolean;
|
|
309
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
310
|
+
_t?: string | number;
|
|
168
311
|
/** 表情包下方的文字内容。求求你_______ */
|
|
169
312
|
bottomText?: string;
|
|
170
313
|
/** Same as `bottomText`. Kept for compatibility. */
|
|
@@ -177,6 +320,12 @@ export interface PostImageSpeechlessArgs {
|
|
|
177
320
|
export type PostImageSvgResponse =
|
|
178
321
|
ArrayBuffer
|
|
179
322
|
export interface PostImageSvgArgs {
|
|
323
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
324
|
+
disableCache?: boolean;
|
|
325
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
326
|
+
"disable_cache"?: boolean;
|
|
327
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
328
|
+
_t?: string | number;
|
|
180
329
|
/** 输出图像的目标格式。支持的值:`png`, `jpeg`, `jpg`, `gif`, `tiff`, `bmp`。 */
|
|
181
330
|
format?: string;
|
|
182
331
|
/** 输出图像的宽度(像素)。如果省略,将根据 `height` 保持宽高比,或者使用 SVG 的原始宽度。 */
|
|
@@ -191,6 +340,12 @@ export interface PostImageSvgArgs {
|
|
|
191
340
|
export type GetHistoryProgrammerResponse =
|
|
192
341
|
Internal.GetHistoryProgrammer200Response
|
|
193
342
|
export interface GetHistoryProgrammerArgs {
|
|
343
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
344
|
+
disableCache?: boolean;
|
|
345
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
346
|
+
"disable_cache"?: boolean;
|
|
347
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
348
|
+
_t?: string | number;
|
|
194
349
|
/** 月份,1-12之间的整数。 */
|
|
195
350
|
month: number;
|
|
196
351
|
/** 日期,1-31之间的整数。 */
|
|
@@ -201,6 +356,12 @@ export type GetHistoryProgrammerTodayResponse =
|
|
|
201
356
|
export type GetMiscDistrictResponse =
|
|
202
357
|
Internal.GetMiscDistrict200Response
|
|
203
358
|
export interface GetMiscDistrictArgs {
|
|
359
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
360
|
+
disableCache?: boolean;
|
|
361
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
362
|
+
"disable_cache"?: boolean;
|
|
363
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
364
|
+
_t?: string | number;
|
|
204
365
|
/** 关键词搜索(城市名、区县名,支持中英文)。 */
|
|
205
366
|
keywords?: string;
|
|
206
367
|
/** 中国行政区划代码精确查询(如 `110000`),同时返回下级行政区。 */
|
|
@@ -219,6 +380,12 @@ export interface GetMiscDistrictArgs {
|
|
|
219
380
|
export type GetMiscHolidayCalendarResponse =
|
|
220
381
|
Internal.GetMiscHolidayCalendar200Response
|
|
221
382
|
export interface GetMiscHolidayCalendarArgs {
|
|
383
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
384
|
+
disableCache?: boolean;
|
|
385
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
386
|
+
"disable_cache"?: boolean;
|
|
387
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
388
|
+
_t?: string | number;
|
|
222
389
|
/** 按天查询时填写这个参数,例如查某一天。格式:`YYYY-MM-DD`。和 `month`、`year` 三选一。 */
|
|
223
390
|
date?: string;
|
|
224
391
|
/** 按月查询时填写这个参数,例如查某个月。格式:`YYYY-MM`。和 `date`、`year` 三选一。 */
|
|
@@ -243,6 +410,12 @@ export interface GetMiscHolidayCalendarArgs {
|
|
|
243
410
|
export type GetMiscHotboardResponse =
|
|
244
411
|
Internal.GetMiscHotboard200Response
|
|
245
412
|
export interface GetMiscHotboardArgs {
|
|
413
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
414
|
+
disableCache?: boolean;
|
|
415
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
416
|
+
"disable_cache"?: boolean;
|
|
417
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
418
|
+
_t?: string | number;
|
|
246
419
|
/** 你想要查询的热榜平台。请从[支持的平台列表](#enum-list)中选择。 */
|
|
247
420
|
type: string;
|
|
248
421
|
/** 时光机模式:毫秒时间戳,返回最接近该时间的热榜快照。不传则返回当前实时热榜。 */
|
|
@@ -265,6 +438,12 @@ export interface GetMiscHotboardArgs {
|
|
|
265
438
|
export type GetMiscLunartimeResponse =
|
|
266
439
|
Internal.GetMiscLunartime200Response
|
|
267
440
|
export interface GetMiscLunartimeArgs {
|
|
441
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
442
|
+
disableCache?: boolean;
|
|
443
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
444
|
+
"disable_cache"?: boolean;
|
|
445
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
446
|
+
_t?: string | number;
|
|
268
447
|
/** Unix 时间戳,支持 10 位秒级或 13 位毫秒级。不传则默认当前时间。 */
|
|
269
448
|
ts?: string;
|
|
270
449
|
/** 时区名称。支持 IANA 时区(如 Asia/Shanghai)和别名(Shanghai、Beijing)。默认 Asia/Shanghai。 */
|
|
@@ -273,12 +452,24 @@ export interface GetMiscLunartimeArgs {
|
|
|
273
452
|
export type GetMiscPhoneinfoResponse =
|
|
274
453
|
Internal.GetMiscPhoneinfo200Response
|
|
275
454
|
export interface GetMiscPhoneinfoArgs {
|
|
455
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
456
|
+
disableCache?: boolean;
|
|
457
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
458
|
+
"disable_cache"?: boolean;
|
|
459
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
460
|
+
_t?: string | number;
|
|
276
461
|
/** 需要查询的11位中国大陆手机号码。 */
|
|
277
462
|
phone: string;
|
|
278
463
|
}
|
|
279
464
|
export type GetMiscRandomnumberResponse =
|
|
280
465
|
Internal.GetMiscRandomnumber200Response
|
|
281
466
|
export interface GetMiscRandomnumberArgs {
|
|
467
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
468
|
+
disableCache?: boolean;
|
|
469
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
470
|
+
"disable_cache"?: boolean;
|
|
471
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
472
|
+
_t?: string | number;
|
|
282
473
|
/** 生成随机数的最小值(包含)。 */
|
|
283
474
|
min?: number;
|
|
284
475
|
/** 生成随机数的最大值(包含)。 */
|
|
@@ -301,6 +492,12 @@ export interface GetMiscRandomnumberArgs {
|
|
|
301
492
|
export type GetMiscTimestampResponse =
|
|
302
493
|
Internal.GetMiscTimestamp200Response
|
|
303
494
|
export interface GetMiscTimestampArgs {
|
|
495
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
496
|
+
disableCache?: boolean;
|
|
497
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
498
|
+
"disable_cache"?: boolean;
|
|
499
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
500
|
+
_t?: string | number;
|
|
304
501
|
/** 需要转换的Unix时间戳,支持10位(秒)或13位(毫秒)。 */
|
|
305
502
|
ts: string;
|
|
306
503
|
}
|
|
@@ -309,6 +506,12 @@ export type GetMiscTrackingCarriersResponse =
|
|
|
309
506
|
export type GetMiscTrackingDetectResponse =
|
|
310
507
|
Internal.GetMiscTrackingDetect200Response
|
|
311
508
|
export interface GetMiscTrackingDetectArgs {
|
|
509
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
510
|
+
disableCache?: boolean;
|
|
511
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
512
|
+
"disable_cache"?: boolean;
|
|
513
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
514
|
+
_t?: string | number;
|
|
312
515
|
/** 需要识别的快递单号。 */
|
|
313
516
|
trackingNumber: string;
|
|
314
517
|
/** Same as `trackingNumber`. Kept for compatibility. */
|
|
@@ -317,6 +520,12 @@ export interface GetMiscTrackingDetectArgs {
|
|
|
317
520
|
export type GetMiscTrackingQueryResponse =
|
|
318
521
|
Internal.GetMiscTrackingQuery200Response
|
|
319
522
|
export interface GetMiscTrackingQueryArgs {
|
|
523
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
524
|
+
disableCache?: boolean;
|
|
525
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
526
|
+
"disable_cache"?: boolean;
|
|
527
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
528
|
+
_t?: string | number;
|
|
320
529
|
/** 快递单号,通常是一串10-20位的数字或字母数字组合。 */
|
|
321
530
|
trackingNumber: string;
|
|
322
531
|
/** Same as `trackingNumber`. Kept for compatibility. */
|
|
@@ -331,6 +540,12 @@ export interface GetMiscTrackingQueryArgs {
|
|
|
331
540
|
export type GetMiscWeatherResponse =
|
|
332
541
|
Internal.GetMiscWeather200Response
|
|
333
542
|
export interface GetMiscWeatherArgs {
|
|
543
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
544
|
+
disableCache?: boolean;
|
|
545
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
546
|
+
"disable_cache"?: boolean;
|
|
547
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
548
|
+
_t?: string | number;
|
|
334
549
|
/** 城市名称,支持中文(`北京`)和英文(`Tokyo`)。可选参数,不传时会尝试 IP 自动定位。 */
|
|
335
550
|
city?: string;
|
|
336
551
|
/** 城市行政区划代码(如 `110000`),优先级高于 city。可选参数,不传时会尝试 IP 自动定位。 */
|
|
@@ -351,12 +566,24 @@ export interface GetMiscWeatherArgs {
|
|
|
351
566
|
export type GetMiscWorldtimeResponse =
|
|
352
567
|
Internal.GetMiscWorldtime200Response
|
|
353
568
|
export interface GetMiscWorldtimeArgs {
|
|
569
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
570
|
+
disableCache?: boolean;
|
|
571
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
572
|
+
"disable_cache"?: boolean;
|
|
573
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
574
|
+
_t?: string | number;
|
|
354
575
|
/** 你需要查询的城市或地区,请使用标准的 IANA 时区数据库名称,例如 'Shanghai', 'Asia/Tokyo', 'America/New_York'。 */
|
|
355
576
|
city: string;
|
|
356
577
|
}
|
|
357
578
|
export type PostMiscDateDiffResponse =
|
|
358
579
|
Internal.PostMiscDateDiff200Response
|
|
359
580
|
export interface PostMiscDateDiffArgs {
|
|
581
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
582
|
+
disableCache?: boolean;
|
|
583
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
584
|
+
"disable_cache"?: boolean;
|
|
585
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
586
|
+
_t?: string | number;
|
|
360
587
|
/** 结束日期,支持多种格式自动识别 */
|
|
361
588
|
endDate: string;
|
|
362
589
|
/** Same as `endDate`. Kept for compatibility. */
|
|
@@ -371,6 +598,12 @@ export interface PostMiscDateDiffArgs {
|
|
|
371
598
|
export type GetNetworkDnsResponse =
|
|
372
599
|
Internal.GetNetworkDns200Response
|
|
373
600
|
export interface GetNetworkDnsArgs {
|
|
601
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
602
|
+
disableCache?: boolean;
|
|
603
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
604
|
+
"disable_cache"?: boolean;
|
|
605
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
606
|
+
_t?: string | number;
|
|
374
607
|
/** 你需要查询的域名,例如 'cn.bing.com'。 */
|
|
375
608
|
domain: string;
|
|
376
609
|
/** 你想要查询的DNS记录类型。 */
|
|
@@ -379,12 +612,24 @@ export interface GetNetworkDnsArgs {
|
|
|
379
612
|
export type GetNetworkIcpResponse =
|
|
380
613
|
Internal.GetNetworkIcp200Response
|
|
381
614
|
export interface GetNetworkIcpArgs {
|
|
615
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
616
|
+
disableCache?: boolean;
|
|
617
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
618
|
+
"disable_cache"?: boolean;
|
|
619
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
620
|
+
_t?: string | number;
|
|
382
621
|
/** 需要查询的域名或URL */
|
|
383
622
|
domain: string;
|
|
384
623
|
}
|
|
385
624
|
export type GetNetworkIpinfoResponse =
|
|
386
625
|
Internal.GetNetworkIpinfo200Response
|
|
387
626
|
export interface GetNetworkIpinfoArgs {
|
|
627
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
628
|
+
disableCache?: boolean;
|
|
629
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
630
|
+
"disable_cache"?: boolean;
|
|
631
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
632
|
+
_t?: string | number;
|
|
388
633
|
/** 你需要查询的公网IP地址或域名(支持IPv4和IPv6)。 */
|
|
389
634
|
ip: string;
|
|
390
635
|
/** 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */
|
|
@@ -393,12 +638,24 @@ export interface GetNetworkIpinfoArgs {
|
|
|
393
638
|
export type GetNetworkMyipResponse =
|
|
394
639
|
Internal.GetNetworkMyip200Response
|
|
395
640
|
export interface GetNetworkMyipArgs {
|
|
641
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
642
|
+
disableCache?: boolean;
|
|
643
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
644
|
+
"disable_cache"?: boolean;
|
|
645
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
646
|
+
_t?: string | number;
|
|
396
647
|
/** 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */
|
|
397
648
|
source?: string;
|
|
398
649
|
}
|
|
399
650
|
export type GetNetworkPingResponse =
|
|
400
651
|
Internal.GetNetworkPing200Response
|
|
401
652
|
export interface GetNetworkPingArgs {
|
|
653
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
654
|
+
disableCache?: boolean;
|
|
655
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
656
|
+
"disable_cache"?: boolean;
|
|
657
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
658
|
+
_t?: string | number;
|
|
402
659
|
/** 你需要 Ping 的目标主机,可以是域名或IP地址。 */
|
|
403
660
|
host: string;
|
|
404
661
|
}
|
|
@@ -407,6 +664,12 @@ export type GetNetworkPingmyipResponse =
|
|
|
407
664
|
export type GetNetworkPortscanResponse =
|
|
408
665
|
Internal.GetNetworkPortscan200Response
|
|
409
666
|
export interface GetNetworkPortscanArgs {
|
|
667
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
668
|
+
disableCache?: boolean;
|
|
669
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
670
|
+
"disable_cache"?: boolean;
|
|
671
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
672
|
+
_t?: string | number;
|
|
410
673
|
/** 需要扫描的目标主机,可以是域名或IP地址。 */
|
|
411
674
|
host: string;
|
|
412
675
|
/** 需要扫描的端口号,范围是 1 到 65535。 */
|
|
@@ -417,12 +680,24 @@ export interface GetNetworkPortscanArgs {
|
|
|
417
680
|
export type GetNetworkUrlstatusResponse =
|
|
418
681
|
Internal.GetNetworkUrlstatus200Response
|
|
419
682
|
export interface GetNetworkUrlstatusArgs {
|
|
683
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
684
|
+
disableCache?: boolean;
|
|
685
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
686
|
+
"disable_cache"?: boolean;
|
|
687
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
688
|
+
_t?: string | number;
|
|
420
689
|
/** 你需要检查其可访问性状态的完整URL。 */
|
|
421
690
|
url: string;
|
|
422
691
|
}
|
|
423
692
|
export type GetNetworkWhoisResponse =
|
|
424
693
|
Internal.GetNetworkWhois200Response
|
|
425
694
|
export interface GetNetworkWhoisArgs {
|
|
695
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
696
|
+
disableCache?: boolean;
|
|
697
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
698
|
+
"disable_cache"?: boolean;
|
|
699
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
700
|
+
_t?: string | number;
|
|
426
701
|
/** 你需要查询WHOIS信息的域名。 */
|
|
427
702
|
domain: string;
|
|
428
703
|
/** 返回格式。留空或为 'text' 时返回原始WHOIS文本,设为 'json' 时返回结构化JSON。 */
|
|
@@ -431,6 +706,12 @@ export interface GetNetworkWhoisArgs {
|
|
|
431
706
|
export type GetNetworkWxdomainResponse =
|
|
432
707
|
Internal.GetNetworkWxdomain200Response
|
|
433
708
|
export interface GetNetworkWxdomainArgs {
|
|
709
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
710
|
+
disableCache?: boolean;
|
|
711
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
712
|
+
"disable_cache"?: boolean;
|
|
713
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
714
|
+
_t?: string | number;
|
|
434
715
|
/** 需要查询的域名。 */
|
|
435
716
|
domain: string;
|
|
436
717
|
}
|
|
@@ -439,12 +720,24 @@ export type GetSayingResponse =
|
|
|
439
720
|
export type GetAnswerbookAskResponse =
|
|
440
721
|
Internal.GetAnswerbookAsk200Response
|
|
441
722
|
export interface GetAnswerbookAskArgs {
|
|
723
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
724
|
+
disableCache?: boolean;
|
|
725
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
726
|
+
"disable_cache"?: boolean;
|
|
727
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
728
|
+
_t?: string | number;
|
|
442
729
|
/** 你想要提问的问题。问题不能为空。 */
|
|
443
730
|
question: string;
|
|
444
731
|
}
|
|
445
732
|
export type GetRandomImageResponse =
|
|
446
733
|
ArrayBuffer
|
|
447
734
|
export interface GetRandomImageArgs {
|
|
735
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
736
|
+
disableCache?: boolean;
|
|
737
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
738
|
+
"disable_cache"?: boolean;
|
|
739
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
740
|
+
_t?: string | number;
|
|
448
741
|
/** (可选)指定图片主类别。
|
|
449
742
|
|
|
450
743
|
**支持的主类别:**
|
|
@@ -476,6 +769,12 @@ export interface GetRandomImageArgs {
|
|
|
476
769
|
export type GetRandomStringResponse =
|
|
477
770
|
Internal.GetRandomString200Response
|
|
478
771
|
export interface GetRandomStringArgs {
|
|
772
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
773
|
+
disableCache?: boolean;
|
|
774
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
775
|
+
"disable_cache"?: boolean;
|
|
776
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
777
|
+
_t?: string | number;
|
|
479
778
|
/** 你希望生成的字符串的长度。有效范围是 1 到 1024。 */
|
|
480
779
|
length?: number;
|
|
481
780
|
/** 指定构成字符串的字符类型。 */
|
|
@@ -484,18 +783,36 @@ export interface GetRandomStringArgs {
|
|
|
484
783
|
export type PostAnswerbookAskResponse =
|
|
485
784
|
Internal.PostAnswerbookAsk200Response
|
|
486
785
|
export interface PostAnswerbookAskArgs {
|
|
786
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
787
|
+
disableCache?: boolean;
|
|
788
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
789
|
+
"disable_cache"?: boolean;
|
|
790
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
791
|
+
_t?: string | number;
|
|
487
792
|
/** 你想要提问的问题 */
|
|
488
793
|
question: string;
|
|
489
794
|
}
|
|
490
795
|
export type GetGithubRepoResponse =
|
|
491
796
|
Internal.GetGithubRepo200Response
|
|
492
797
|
export interface GetGithubRepoArgs {
|
|
798
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
799
|
+
disableCache?: boolean;
|
|
800
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
801
|
+
"disable_cache"?: boolean;
|
|
802
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
803
|
+
_t?: string | number;
|
|
493
804
|
/** 目标仓库的标识,格式为 `owner/repo`。 */
|
|
494
805
|
repo: string;
|
|
495
806
|
}
|
|
496
807
|
export type GetSocialBilibiliArchivesResponse =
|
|
497
808
|
Internal.GetSocialBilibiliArchives200Response
|
|
498
809
|
export interface GetSocialBilibiliArchivesArgs {
|
|
810
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
811
|
+
disableCache?: boolean;
|
|
812
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
813
|
+
"disable_cache"?: boolean;
|
|
814
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
815
|
+
_t?: string | number;
|
|
499
816
|
/** B站用户的mid(用户ID) */
|
|
500
817
|
mid: string;
|
|
501
818
|
/** 搜索关键词,可为空 */
|
|
@@ -510,6 +827,12 @@ export interface GetSocialBilibiliArchivesArgs {
|
|
|
510
827
|
export type GetSocialBilibiliLiveroomResponse =
|
|
511
828
|
Internal.GetSocialBilibiliLiveroom200Response
|
|
512
829
|
export interface GetSocialBilibiliLiveroomArgs {
|
|
830
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
831
|
+
disableCache?: boolean;
|
|
832
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
833
|
+
"disable_cache"?: boolean;
|
|
834
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
835
|
+
_t?: string | number;
|
|
513
836
|
/** 主播的用户ID (`mid`)。与 `room_id` 任选其一。 */
|
|
514
837
|
mid?: string;
|
|
515
838
|
/** 直播间ID,可以是长号(真实ID)或短号(靓号)。与 `mid` 任选其一。 */
|
|
@@ -520,6 +843,12 @@ export interface GetSocialBilibiliLiveroomArgs {
|
|
|
520
843
|
export type GetSocialBilibiliRepliesResponse =
|
|
521
844
|
Internal.GetSocialBilibiliReplies200Response
|
|
522
845
|
export interface GetSocialBilibiliRepliesArgs {
|
|
846
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
847
|
+
disableCache?: boolean;
|
|
848
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
849
|
+
"disable_cache"?: boolean;
|
|
850
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
851
|
+
_t?: string | number;
|
|
523
852
|
/** 目标评论区的ID。对于视频,这通常就是它的 `aid`。 */
|
|
524
853
|
oid: string;
|
|
525
854
|
/** 排序方式。支持 `0/time`(按时间)、`1/like`(按点赞)、`2/reply`(按回复数)、`3/hot/hottest/最热`(按最热)。默认为 `0/time`。 */
|
|
@@ -532,12 +861,24 @@ export interface GetSocialBilibiliRepliesArgs {
|
|
|
532
861
|
export type GetSocialBilibiliUserinfoResponse =
|
|
533
862
|
Internal.GetSocialBilibiliUserinfo200Response
|
|
534
863
|
export interface GetSocialBilibiliUserinfoArgs {
|
|
864
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
865
|
+
disableCache?: boolean;
|
|
866
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
867
|
+
"disable_cache"?: boolean;
|
|
868
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
869
|
+
_t?: string | number;
|
|
535
870
|
/** Bilibili用户的UID */
|
|
536
871
|
uid: string;
|
|
537
872
|
}
|
|
538
873
|
export type GetSocialBilibiliVideoinfoResponse =
|
|
539
874
|
Internal.GetSocialBilibiliVideoinfo200Response
|
|
540
875
|
export interface GetSocialBilibiliVideoinfoArgs {
|
|
876
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
877
|
+
disableCache?: boolean;
|
|
878
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
879
|
+
"disable_cache"?: boolean;
|
|
880
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
881
|
+
_t?: string | number;
|
|
541
882
|
/** 视频的AV号 (aid),纯数字格式。`aid`和`bvid`任选其一即可。 */
|
|
542
883
|
aid?: string;
|
|
543
884
|
/** 视频的BV号 (bvid),例如 `BV117411r7R1`。`aid`和`bvid`任选其一即可。 */
|
|
@@ -546,6 +887,12 @@ export interface GetSocialBilibiliVideoinfoArgs {
|
|
|
546
887
|
export type GetSocialQqGroupinfoResponse =
|
|
547
888
|
Internal.GetSocialQqGroupinfo200Response
|
|
548
889
|
export interface GetSocialQqGroupinfoArgs {
|
|
890
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
891
|
+
disableCache?: boolean;
|
|
892
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
893
|
+
"disable_cache"?: boolean;
|
|
894
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
895
|
+
_t?: string | number;
|
|
549
896
|
/** QQ群号,长度5-12位 */
|
|
550
897
|
groupId: string;
|
|
551
898
|
/** Same as `groupId`. Kept for compatibility. */
|
|
@@ -554,12 +901,24 @@ export interface GetSocialQqGroupinfoArgs {
|
|
|
554
901
|
export type GetSocialQqUserinfoResponse =
|
|
555
902
|
Internal.GetSocialQqUserinfo200Response
|
|
556
903
|
export interface GetSocialQqUserinfoArgs {
|
|
904
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
905
|
+
disableCache?: boolean;
|
|
906
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
907
|
+
"disable_cache"?: boolean;
|
|
908
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
909
|
+
_t?: string | number;
|
|
557
910
|
/** 需要查询的QQ号 */
|
|
558
911
|
qq: string;
|
|
559
912
|
}
|
|
560
913
|
export type GetStatusRatelimitResponse =
|
|
561
914
|
Internal.GetStatusRatelimit200Response
|
|
562
915
|
export interface GetStatusRatelimitArgs {
|
|
916
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
917
|
+
disableCache?: boolean;
|
|
918
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
919
|
+
"disable_cache"?: boolean;
|
|
920
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
921
|
+
_t?: string | number;
|
|
563
922
|
/** Bearer类型的API密钥认证头。例如:`Bearer sk-xxx` */
|
|
564
923
|
authorization: string;
|
|
565
924
|
/** Same as `authorization`. Kept for compatibility. */
|
|
@@ -568,18 +927,36 @@ export interface GetStatusRatelimitArgs {
|
|
|
568
927
|
export type GetStatusUsageResponse =
|
|
569
928
|
Internal.GetStatusUsage200Response
|
|
570
929
|
export interface GetStatusUsageArgs {
|
|
930
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
931
|
+
disableCache?: boolean;
|
|
932
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
933
|
+
"disable_cache"?: boolean;
|
|
934
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
935
|
+
_t?: string | number;
|
|
571
936
|
/** (可选)如果你想查询某个特定的端点,请提供它的路径,例如 '/api/v1/image/motou'。如果留空,则返回所有端点的统计列表。 */
|
|
572
937
|
path?: string;
|
|
573
938
|
}
|
|
574
939
|
export type GetTextMd5Response =
|
|
575
940
|
Internal.GetTextMd5200Response
|
|
576
941
|
export interface GetTextMd5Args {
|
|
942
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
943
|
+
disableCache?: boolean;
|
|
944
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
945
|
+
"disable_cache"?: boolean;
|
|
946
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
947
|
+
_t?: string | number;
|
|
577
948
|
/** 需要计算哈希值的文本 */
|
|
578
949
|
text: string;
|
|
579
950
|
}
|
|
580
951
|
export type PostTextAesDecryptResponse =
|
|
581
952
|
Internal.PostTextAesDecrypt200Response
|
|
582
953
|
export interface PostTextAesDecryptArgs {
|
|
954
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
955
|
+
disableCache?: boolean;
|
|
956
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
957
|
+
"disable_cache"?: boolean;
|
|
958
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
959
|
+
_t?: string | number;
|
|
583
960
|
/** 密钥,长度必须为16、24或32字节,对应AES-128/192/256。 */
|
|
584
961
|
key: string;
|
|
585
962
|
/** 16字节的IV/Nonce,必须为16个字符 */
|
|
@@ -590,6 +967,12 @@ export interface PostTextAesDecryptArgs {
|
|
|
590
967
|
export type PostTextAesDecryptAdvancedResponse =
|
|
591
968
|
Internal.PostTextAesDecryptAdvanced200Response
|
|
592
969
|
export interface PostTextAesDecryptAdvancedArgs {
|
|
970
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
971
|
+
disableCache?: boolean;
|
|
972
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
973
|
+
"disable_cache"?: boolean;
|
|
974
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
975
|
+
_t?: string | number;
|
|
593
976
|
/** 初始化向量(非GCM模式必须提供,Base64编码)。此值来自加密接口返回的iv字段 */
|
|
594
977
|
iv?: string;
|
|
595
978
|
/** 解密密钥(必须与加密时相同) */
|
|
@@ -604,6 +987,12 @@ export interface PostTextAesDecryptAdvancedArgs {
|
|
|
604
987
|
export type PostTextAesEncryptResponse =
|
|
605
988
|
Internal.PostTextAesEncrypt200Response
|
|
606
989
|
export interface PostTextAesEncryptArgs {
|
|
990
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
991
|
+
disableCache?: boolean;
|
|
992
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
993
|
+
"disable_cache"?: boolean;
|
|
994
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
995
|
+
_t?: string | number;
|
|
607
996
|
/** 密钥长度必须为 16、24 或 32 字节,分别对应 AES-128、AES-192、AES-256。 */
|
|
608
997
|
key: string;
|
|
609
998
|
/** 待加密的明文文本。 */
|
|
@@ -612,6 +1001,12 @@ export interface PostTextAesEncryptArgs {
|
|
|
612
1001
|
export type PostTextAesEncryptAdvancedResponse =
|
|
613
1002
|
Internal.PostTextAesEncryptAdvanced200Response
|
|
614
1003
|
export interface PostTextAesEncryptAdvancedArgs {
|
|
1004
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1005
|
+
disableCache?: boolean;
|
|
1006
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1007
|
+
"disable_cache"?: boolean;
|
|
1008
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1009
|
+
_t?: string | number;
|
|
615
1010
|
/** 自定义IV(可选,Base64编码,16字节)。GCM模式无需此参数 */
|
|
616
1011
|
iv?: string;
|
|
617
1012
|
/** 加密密钥(支持任意长度) */
|
|
@@ -630,24 +1025,48 @@ export interface PostTextAesEncryptAdvancedArgs {
|
|
|
630
1025
|
export type PostTextAnalyzeResponse =
|
|
631
1026
|
Internal.PostTextAnalyze200Response
|
|
632
1027
|
export interface PostTextAnalyzeArgs {
|
|
1028
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1029
|
+
disableCache?: boolean;
|
|
1030
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1031
|
+
"disable_cache"?: boolean;
|
|
1032
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1033
|
+
_t?: string | number;
|
|
633
1034
|
/** */
|
|
634
1035
|
text: string;
|
|
635
1036
|
}
|
|
636
1037
|
export type PostTextBase64DecodeResponse =
|
|
637
1038
|
Internal.PostTextBase64Decode200Response
|
|
638
1039
|
export interface PostTextBase64DecodeArgs {
|
|
1040
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1041
|
+
disableCache?: boolean;
|
|
1042
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1043
|
+
"disable_cache"?: boolean;
|
|
1044
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1045
|
+
_t?: string | number;
|
|
639
1046
|
/** */
|
|
640
1047
|
text: string;
|
|
641
1048
|
}
|
|
642
1049
|
export type PostTextBase64EncodeResponse =
|
|
643
1050
|
Internal.PostTextBase64Encode200Response
|
|
644
1051
|
export interface PostTextBase64EncodeArgs {
|
|
1052
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1053
|
+
disableCache?: boolean;
|
|
1054
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1055
|
+
"disable_cache"?: boolean;
|
|
1056
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1057
|
+
_t?: string | number;
|
|
645
1058
|
/** */
|
|
646
1059
|
text: string;
|
|
647
1060
|
}
|
|
648
1061
|
export type PostTextConvertResponse =
|
|
649
1062
|
Internal.PostTextConvert200Response
|
|
650
1063
|
export interface PostTextConvertArgs {
|
|
1064
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1065
|
+
disableCache?: boolean;
|
|
1066
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1067
|
+
"disable_cache"?: boolean;
|
|
1068
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1069
|
+
_t?: string | number;
|
|
651
1070
|
/** 源格式类型 */
|
|
652
1071
|
from: string;
|
|
653
1072
|
/** 可选参数(预留,当前未使用) */
|
|
@@ -660,12 +1079,24 @@ export interface PostTextConvertArgs {
|
|
|
660
1079
|
export type PostTextMd5Response =
|
|
661
1080
|
Internal.GetTextMd5200Response
|
|
662
1081
|
export interface PostTextMd5Args {
|
|
1082
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1083
|
+
disableCache?: boolean;
|
|
1084
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1085
|
+
"disable_cache"?: boolean;
|
|
1086
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1087
|
+
_t?: string | number;
|
|
663
1088
|
/** 需要计算哈希值的文本 */
|
|
664
1089
|
text: string;
|
|
665
1090
|
}
|
|
666
1091
|
export type PostTextMd5VerifyResponse =
|
|
667
1092
|
Internal.PostTextMd5Verify200Response
|
|
668
1093
|
export interface PostTextMd5VerifyArgs {
|
|
1094
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1095
|
+
disableCache?: boolean;
|
|
1096
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1097
|
+
"disable_cache"?: boolean;
|
|
1098
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1099
|
+
_t?: string | number;
|
|
669
1100
|
/** 用于比对的 MD5 哈希值(32 位小写十六进制字符串)。 */
|
|
670
1101
|
hash: string;
|
|
671
1102
|
/** 待校验的原始文本,会先计算其 MD5 再与 hash 进行比对。 */
|
|
@@ -676,6 +1107,12 @@ export type GetAiTranslateLanguagesResponse =
|
|
|
676
1107
|
export type PostAiTranslateResponse =
|
|
677
1108
|
Internal.PostAiTranslate200Response
|
|
678
1109
|
export interface PostAiTranslateArgs {
|
|
1110
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1111
|
+
disableCache?: boolean;
|
|
1112
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1113
|
+
"disable_cache"?: boolean;
|
|
1114
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1115
|
+
_t?: string | number;
|
|
679
1116
|
/** 目标语言代码。请从[支持的语言列表](#enum-list)中选择一个语言代码。 */
|
|
680
1117
|
targetLang: string;
|
|
681
1118
|
/** Same as `targetLang`. Kept for compatibility. */
|
|
@@ -698,6 +1135,12 @@ export interface PostAiTranslateArgs {
|
|
|
698
1135
|
export type PostTranslateStreamResponse =
|
|
699
1136
|
string
|
|
700
1137
|
export interface PostTranslateStreamArgs {
|
|
1138
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1139
|
+
disableCache?: boolean;
|
|
1140
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1141
|
+
"disable_cache"?: boolean;
|
|
1142
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1143
|
+
_t?: string | number;
|
|
701
1144
|
/** 源语言,支持:中文、英文、auto(自动检测)。默认为auto */
|
|
702
1145
|
fromLang?: string;
|
|
703
1146
|
/** Same as `fromLang`. Kept for compatibility. */
|
|
@@ -714,6 +1157,12 @@ export interface PostTranslateStreamArgs {
|
|
|
714
1157
|
export type PostTranslateTextResponse =
|
|
715
1158
|
Internal.PostTranslateText200Response
|
|
716
1159
|
export interface PostTranslateTextArgs {
|
|
1160
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1161
|
+
disableCache?: boolean;
|
|
1162
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1163
|
+
"disable_cache"?: boolean;
|
|
1164
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1165
|
+
_t?: string | number;
|
|
717
1166
|
/** 目标语言代码。请从[支持的语言列表](#enum-list)中选择一个语言代码。 */
|
|
718
1167
|
toLang: string;
|
|
719
1168
|
/** Same as `toLang`. Kept for compatibility. */
|
|
@@ -724,6 +1173,12 @@ export interface PostTranslateTextArgs {
|
|
|
724
1173
|
export type GetWebTomarkdownAsyncStatusResponse =
|
|
725
1174
|
Internal.GetWebTomarkdownAsyncStatus200Response
|
|
726
1175
|
export interface GetWebTomarkdownAsyncStatusArgs {
|
|
1176
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1177
|
+
disableCache?: boolean;
|
|
1178
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1179
|
+
"disable_cache"?: boolean;
|
|
1180
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1181
|
+
_t?: string | number;
|
|
727
1182
|
/** 任务ID(由提交接口返回) */
|
|
728
1183
|
taskId: string;
|
|
729
1184
|
/** Same as `taskId`. Kept for compatibility. */
|
|
@@ -732,36 +1187,72 @@ export interface GetWebTomarkdownAsyncStatusArgs {
|
|
|
732
1187
|
export type GetWebparseExtractimagesResponse =
|
|
733
1188
|
Internal.GetWebparseExtractimages200Response
|
|
734
1189
|
export interface GetWebparseExtractimagesArgs {
|
|
1190
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1191
|
+
disableCache?: boolean;
|
|
1192
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1193
|
+
"disable_cache"?: boolean;
|
|
1194
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1195
|
+
_t?: string | number;
|
|
735
1196
|
/** 需要提取图片的网页URL */
|
|
736
1197
|
url: string;
|
|
737
1198
|
}
|
|
738
1199
|
export type GetWebparseMetadataResponse =
|
|
739
1200
|
Internal.GetWebparseMetadata200Response
|
|
740
1201
|
export interface GetWebparseMetadataArgs {
|
|
1202
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1203
|
+
disableCache?: boolean;
|
|
1204
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1205
|
+
"disable_cache"?: boolean;
|
|
1206
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1207
|
+
_t?: string | number;
|
|
741
1208
|
/** 需要提取元数据的网页URL */
|
|
742
1209
|
url: string;
|
|
743
1210
|
}
|
|
744
1211
|
export type PostWebTomarkdownAsyncResponse =
|
|
745
1212
|
Internal.PostWebTomarkdownAsync202Response
|
|
746
1213
|
export interface PostWebTomarkdownAsyncArgs {
|
|
1214
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1215
|
+
disableCache?: boolean;
|
|
1216
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1217
|
+
"disable_cache"?: boolean;
|
|
1218
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1219
|
+
_t?: string | number;
|
|
747
1220
|
/** 需要转换的网页URL。URL必须经过编码。 */
|
|
748
1221
|
url: string;
|
|
749
1222
|
}
|
|
750
1223
|
export type GetSensitiveWordAnalyzeQueryResponse =
|
|
751
1224
|
Internal.PostSensitiveWordAnalyze200Response
|
|
752
1225
|
export interface GetSensitiveWordAnalyzeQueryArgs {
|
|
1226
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1227
|
+
disableCache?: boolean;
|
|
1228
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1229
|
+
"disable_cache"?: boolean;
|
|
1230
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1231
|
+
_t?: string | number;
|
|
753
1232
|
/** 要分析的关键词,最长1,000字符。 */
|
|
754
1233
|
keyword: string;
|
|
755
1234
|
}
|
|
756
1235
|
export type PostSensitiveWordAnalyzeResponse =
|
|
757
1236
|
Internal.PostSensitiveWordAnalyze200Response
|
|
758
1237
|
export interface PostSensitiveWordAnalyzeArgs {
|
|
1238
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1239
|
+
disableCache?: boolean;
|
|
1240
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1241
|
+
"disable_cache"?: boolean;
|
|
1242
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1243
|
+
_t?: string | number;
|
|
759
1244
|
/** 要分析的关键词列表,单次最多100个。单条关键词最多1,000字符,总字符数最多20,000。 */
|
|
760
1245
|
keywords: unknown[];
|
|
761
1246
|
}
|
|
762
1247
|
export type PostSensitiveWordQuickCheckResponse =
|
|
763
1248
|
Internal.PostSensitiveWordQuickCheck200Response
|
|
764
1249
|
export interface PostSensitiveWordQuickCheckArgs {
|
|
1250
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1251
|
+
disableCache?: boolean;
|
|
1252
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1253
|
+
"disable_cache"?: boolean;
|
|
1254
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1255
|
+
_t?: string | number;
|
|
765
1256
|
/** 需要检测的文本内容。支持简体和繁体中文。 */
|
|
766
1257
|
text: string;
|
|
767
1258
|
}
|
|
@@ -770,6 +1261,12 @@ export type GetSearchEnginesResponse =
|
|
|
770
1261
|
export type PostSearchAggregateResponse =
|
|
771
1262
|
Internal.PostSearchAggregate200Response
|
|
772
1263
|
export interface PostSearchAggregateArgs {
|
|
1264
|
+
/** 为 true 时会自动附加 `_t` 时间戳,绕过服务端缓存。 */
|
|
1265
|
+
disableCache?: boolean;
|
|
1266
|
+
/** Same as `disableCache`. Kept for compatibility. */
|
|
1267
|
+
"disable_cache"?: boolean;
|
|
1268
|
+
/** 手动指定缓存穿透时间戳。传入后会原样带到查询参数中。 */
|
|
1269
|
+
_t?: string | number;
|
|
773
1270
|
/** 是否获取页面完整正文(会影响响应时间) */
|
|
774
1271
|
fetchFull?: boolean;
|
|
775
1272
|
/** Same as `fetchFull`. Kept for compatibility. */
|
|
@@ -795,6 +1292,7 @@ export interface PostSearchAggregateArgs {
|
|
|
795
1292
|
export class UapiClient {
|
|
796
1293
|
private baseURL: string
|
|
797
1294
|
private token?: string
|
|
1295
|
+
private disableCache: boolean
|
|
798
1296
|
private _lastResponseMeta?: ResponseMeta
|
|
799
1297
|
readonly clipzyZaiXianJianTieBan: ClipzyZaiXianJianTieBanApi
|
|
800
1298
|
readonly "Clipzy 在线剪贴板": ClipzyZaiXianJianTieBanApi
|
|
@@ -829,9 +1327,11 @@ export class UapiClient {
|
|
|
829
1327
|
readonly zhiNengSouSuo: ZhiNengSouSuoApi
|
|
830
1328
|
readonly "智能搜索": ZhiNengSouSuoApi
|
|
831
1329
|
|
|
832
|
-
constructor(baseURL: string,
|
|
833
|
-
this.baseURL = baseURL
|
|
834
|
-
this.token =
|
|
1330
|
+
constructor(baseURL: string, tokenOrOptions?: string | UapiClientOptions, maybeOptions: UapiClientOptions = {}) {
|
|
1331
|
+
this.baseURL = normalizeBaseURL(baseURL)
|
|
1332
|
+
this.token = typeof tokenOrOptions === 'string' ? tokenOrOptions : undefined
|
|
1333
|
+
const options = typeof tokenOrOptions === 'string' ? maybeOptions : (tokenOrOptions ?? {})
|
|
1334
|
+
this.disableCache = options.disableCache ?? false
|
|
835
1335
|
const clipzyZaiXianJianTieBan = new ClipzyZaiXianJianTieBanApi(this)
|
|
836
1336
|
this.clipzyZaiXianJianTieBan = clipzyZaiXianJianTieBan
|
|
837
1337
|
this["Clipzy 在线剪贴板"] = clipzyZaiXianJianTieBan
|
|
@@ -893,10 +1393,12 @@ export class UapiClient {
|
|
|
893
1393
|
body?: Record<string, unknown>,
|
|
894
1394
|
headers?: Record<string, string>,
|
|
895
1395
|
responseKind: 'json' | 'text' | 'arrayBuffer' = 'json',
|
|
1396
|
+
requestOptions?: RequestOptions,
|
|
896
1397
|
) {
|
|
897
|
-
const
|
|
898
|
-
|
|
899
|
-
|
|
1398
|
+
const finalParams = applyCacheControl(method, params, this.disableCache, requestOptions?.disableCache)
|
|
1399
|
+
const url = new URL(this.baseURL + path)
|
|
1400
|
+
if (finalParams) {
|
|
1401
|
+
Object.entries(finalParams).forEach(([key, value]) => {
|
|
900
1402
|
if (value !== undefined) {
|
|
901
1403
|
url.searchParams.set(key, String(value))
|
|
902
1404
|
}
|
|
@@ -939,6 +1441,10 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
939
1441
|
const query: Record<string, unknown> = {}
|
|
940
1442
|
const headers: Record<string, string> = {}
|
|
941
1443
|
const body: Record<string, unknown> = {}
|
|
1444
|
+
let disableCache: boolean | undefined
|
|
1445
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1446
|
+
const argCacheBuster = args._t
|
|
1447
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
942
1448
|
const argId = args.id
|
|
943
1449
|
if (argId !== undefined) query["id"] = argId
|
|
944
1450
|
let requestPath = '/api/v1/api/get'
|
|
@@ -949,6 +1455,7 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
949
1455
|
Object.keys(body).length > 0 ? body : undefined,
|
|
950
1456
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
951
1457
|
'json',
|
|
1458
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
952
1459
|
) as GetClipzyGetResponse
|
|
953
1460
|
}
|
|
954
1461
|
|
|
@@ -958,6 +1465,10 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
958
1465
|
const query: Record<string, unknown> = {}
|
|
959
1466
|
const headers: Record<string, string> = {}
|
|
960
1467
|
const body: Record<string, unknown> = {}
|
|
1468
|
+
let disableCache: boolean | undefined
|
|
1469
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1470
|
+
const argCacheBuster = args._t
|
|
1471
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
961
1472
|
const argId = args.id
|
|
962
1473
|
const argKey = args.key
|
|
963
1474
|
if (argKey !== undefined) query["key"] = argKey
|
|
@@ -970,6 +1481,7 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
970
1481
|
Object.keys(body).length > 0 ? body : undefined,
|
|
971
1482
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
972
1483
|
'text',
|
|
1484
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
973
1485
|
) as GetClipzyRawResponse
|
|
974
1486
|
}
|
|
975
1487
|
|
|
@@ -979,6 +1491,10 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
979
1491
|
const query: Record<string, unknown> = {}
|
|
980
1492
|
const headers: Record<string, string> = {}
|
|
981
1493
|
const body: Record<string, unknown> = {}
|
|
1494
|
+
let disableCache: boolean | undefined
|
|
1495
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1496
|
+
const argCacheBuster = args._t
|
|
1497
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
982
1498
|
const argCompressedData = args.compressedData
|
|
983
1499
|
if (argCompressedData !== undefined) body["compressedData"] = argCompressedData
|
|
984
1500
|
const argTtl = args.ttl
|
|
@@ -991,6 +1507,7 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
991
1507
|
Object.keys(body).length > 0 ? body : undefined,
|
|
992
1508
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
993
1509
|
'json',
|
|
1510
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
994
1511
|
) as PostClipzyStoreResponse
|
|
995
1512
|
}
|
|
996
1513
|
}
|
|
@@ -1003,6 +1520,10 @@ export class ConvertApi {
|
|
|
1003
1520
|
const query: Record<string, unknown> = {}
|
|
1004
1521
|
const headers: Record<string, string> = {}
|
|
1005
1522
|
const body: Record<string, unknown> = {}
|
|
1523
|
+
let disableCache: boolean | undefined
|
|
1524
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1525
|
+
const argCacheBuster = args._t
|
|
1526
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1006
1527
|
const argTime = args.time
|
|
1007
1528
|
if (argTime !== undefined) query["time"] = argTime
|
|
1008
1529
|
let requestPath = '/api/v1/convert/unixtime'
|
|
@@ -1013,6 +1534,7 @@ export class ConvertApi {
|
|
|
1013
1534
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1014
1535
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1015
1536
|
'json',
|
|
1537
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1016
1538
|
) as GetConvertUnixtimeResponse
|
|
1017
1539
|
}
|
|
1018
1540
|
|
|
@@ -1022,6 +1544,10 @@ export class ConvertApi {
|
|
|
1022
1544
|
const query: Record<string, unknown> = {}
|
|
1023
1545
|
const headers: Record<string, string> = {}
|
|
1024
1546
|
const body: Record<string, unknown> = {}
|
|
1547
|
+
let disableCache: boolean | undefined
|
|
1548
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1549
|
+
const argCacheBuster = args._t
|
|
1550
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1025
1551
|
const argContent = args.content
|
|
1026
1552
|
if (argContent !== undefined) body["content"] = argContent
|
|
1027
1553
|
let requestPath = '/api/v1/convert/json'
|
|
@@ -1032,6 +1558,7 @@ export class ConvertApi {
|
|
|
1032
1558
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1033
1559
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1034
1560
|
'json',
|
|
1561
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1035
1562
|
) as PostConvertJsonResponse
|
|
1036
1563
|
}
|
|
1037
1564
|
}
|
|
@@ -1044,6 +1571,7 @@ export class DailyApi {
|
|
|
1044
1571
|
const query: Record<string, unknown> = {}
|
|
1045
1572
|
const headers: Record<string, string> = {}
|
|
1046
1573
|
const body: Record<string, unknown> = {}
|
|
1574
|
+
let disableCache: boolean | undefined
|
|
1047
1575
|
let requestPath = '/api/v1/daily/news-image'
|
|
1048
1576
|
return await this.c._request(
|
|
1049
1577
|
'GET',
|
|
@@ -1052,6 +1580,7 @@ export class DailyApi {
|
|
|
1052
1580
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1053
1581
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1054
1582
|
'arrayBuffer',
|
|
1583
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1055
1584
|
) as GetDailyNewsImageResponse
|
|
1056
1585
|
}
|
|
1057
1586
|
}
|
|
@@ -1064,6 +1593,7 @@ export class GameApi {
|
|
|
1064
1593
|
const query: Record<string, unknown> = {}
|
|
1065
1594
|
const headers: Record<string, string> = {}
|
|
1066
1595
|
const body: Record<string, unknown> = {}
|
|
1596
|
+
let disableCache: boolean | undefined
|
|
1067
1597
|
let requestPath = '/api/v1/game/epic-free'
|
|
1068
1598
|
return await this.c._request(
|
|
1069
1599
|
'GET',
|
|
@@ -1072,6 +1602,7 @@ export class GameApi {
|
|
|
1072
1602
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1073
1603
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1074
1604
|
'json',
|
|
1605
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1075
1606
|
) as GetGameEpicFreeResponse
|
|
1076
1607
|
}
|
|
1077
1608
|
|
|
@@ -1081,6 +1612,10 @@ export class GameApi {
|
|
|
1081
1612
|
const query: Record<string, unknown> = {}
|
|
1082
1613
|
const headers: Record<string, string> = {}
|
|
1083
1614
|
const body: Record<string, unknown> = {}
|
|
1615
|
+
let disableCache: boolean | undefined
|
|
1616
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1617
|
+
const argCacheBuster = args._t
|
|
1618
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1084
1619
|
const argName = args.name
|
|
1085
1620
|
if (argName !== undefined) query["name"] = argName
|
|
1086
1621
|
const argUuid = args.uuid
|
|
@@ -1093,6 +1628,7 @@ export class GameApi {
|
|
|
1093
1628
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1094
1629
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1095
1630
|
'json',
|
|
1631
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1096
1632
|
) as GetGameMinecraftHistoryidResponse
|
|
1097
1633
|
}
|
|
1098
1634
|
|
|
@@ -1102,6 +1638,10 @@ export class GameApi {
|
|
|
1102
1638
|
const query: Record<string, unknown> = {}
|
|
1103
1639
|
const headers: Record<string, string> = {}
|
|
1104
1640
|
const body: Record<string, unknown> = {}
|
|
1641
|
+
let disableCache: boolean | undefined
|
|
1642
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1643
|
+
const argCacheBuster = args._t
|
|
1644
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1105
1645
|
const argServer = args.server
|
|
1106
1646
|
if (argServer !== undefined) query["server"] = argServer
|
|
1107
1647
|
let requestPath = '/api/v1/game/minecraft/serverstatus'
|
|
@@ -1112,6 +1652,7 @@ export class GameApi {
|
|
|
1112
1652
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1113
1653
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1114
1654
|
'json',
|
|
1655
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1115
1656
|
) as GetGameMinecraftServerstatusResponse
|
|
1116
1657
|
}
|
|
1117
1658
|
|
|
@@ -1121,6 +1662,10 @@ export class GameApi {
|
|
|
1121
1662
|
const query: Record<string, unknown> = {}
|
|
1122
1663
|
const headers: Record<string, string> = {}
|
|
1123
1664
|
const body: Record<string, unknown> = {}
|
|
1665
|
+
let disableCache: boolean | undefined
|
|
1666
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1667
|
+
const argCacheBuster = args._t
|
|
1668
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1124
1669
|
const argUsername = args.username
|
|
1125
1670
|
if (argUsername !== undefined) query["username"] = argUsername
|
|
1126
1671
|
let requestPath = '/api/v1/game/minecraft/userinfo'
|
|
@@ -1131,6 +1676,7 @@ export class GameApi {
|
|
|
1131
1676
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1132
1677
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1133
1678
|
'json',
|
|
1679
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1134
1680
|
) as GetGameMinecraftUserinfoResponse
|
|
1135
1681
|
}
|
|
1136
1682
|
|
|
@@ -1140,6 +1686,10 @@ export class GameApi {
|
|
|
1140
1686
|
const query: Record<string, unknown> = {}
|
|
1141
1687
|
const headers: Record<string, string> = {}
|
|
1142
1688
|
const body: Record<string, unknown> = {}
|
|
1689
|
+
let disableCache: boolean | undefined
|
|
1690
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1691
|
+
const argCacheBuster = args._t
|
|
1692
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1143
1693
|
const argSteamid = args.steamid
|
|
1144
1694
|
if (argSteamid !== undefined) query["steamid"] = argSteamid
|
|
1145
1695
|
const argId = args.id
|
|
@@ -1156,6 +1706,7 @@ export class GameApi {
|
|
|
1156
1706
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1157
1707
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1158
1708
|
'json',
|
|
1709
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1159
1710
|
) as GetGameSteamSummaryResponse
|
|
1160
1711
|
}
|
|
1161
1712
|
}
|
|
@@ -1168,6 +1719,10 @@ export class ImageApi {
|
|
|
1168
1719
|
const query: Record<string, unknown> = {}
|
|
1169
1720
|
const headers: Record<string, string> = {}
|
|
1170
1721
|
const body: Record<string, unknown> = {}
|
|
1722
|
+
let disableCache: boolean | undefined
|
|
1723
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1724
|
+
const argCacheBuster = args._t
|
|
1725
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1171
1726
|
const argEmail = args.email
|
|
1172
1727
|
if (argEmail !== undefined) query["email"] = argEmail
|
|
1173
1728
|
const argHash = args.hash
|
|
@@ -1186,6 +1741,7 @@ export class ImageApi {
|
|
|
1186
1741
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1187
1742
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1188
1743
|
'arrayBuffer',
|
|
1744
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1189
1745
|
) as GetAvatarGravatarResponse
|
|
1190
1746
|
}
|
|
1191
1747
|
|
|
@@ -1195,6 +1751,7 @@ export class ImageApi {
|
|
|
1195
1751
|
const query: Record<string, unknown> = {}
|
|
1196
1752
|
const headers: Record<string, string> = {}
|
|
1197
1753
|
const body: Record<string, unknown> = {}
|
|
1754
|
+
let disableCache: boolean | undefined
|
|
1198
1755
|
let requestPath = '/api/v1/image/bing-daily'
|
|
1199
1756
|
return await this.c._request(
|
|
1200
1757
|
'GET',
|
|
@@ -1203,6 +1760,7 @@ export class ImageApi {
|
|
|
1203
1760
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1204
1761
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1205
1762
|
'arrayBuffer',
|
|
1763
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1206
1764
|
) as GetImageBingDailyResponse
|
|
1207
1765
|
}
|
|
1208
1766
|
|
|
@@ -1212,6 +1770,10 @@ export class ImageApi {
|
|
|
1212
1770
|
const query: Record<string, unknown> = {}
|
|
1213
1771
|
const headers: Record<string, string> = {}
|
|
1214
1772
|
const body: Record<string, unknown> = {}
|
|
1773
|
+
let disableCache: boolean | undefined
|
|
1774
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1775
|
+
const argCacheBuster = args._t
|
|
1776
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1215
1777
|
const argQq = args.qq
|
|
1216
1778
|
if (argQq !== undefined) query["qq"] = argQq
|
|
1217
1779
|
const argBgColor = args.bgColor ?? args["bg_color"]
|
|
@@ -1224,6 +1786,7 @@ export class ImageApi {
|
|
|
1224
1786
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1225
1787
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1226
1788
|
'arrayBuffer',
|
|
1789
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1227
1790
|
) as GetImageMotouResponse
|
|
1228
1791
|
}
|
|
1229
1792
|
|
|
@@ -1233,6 +1796,10 @@ export class ImageApi {
|
|
|
1233
1796
|
const query: Record<string, unknown> = {}
|
|
1234
1797
|
const headers: Record<string, string> = {}
|
|
1235
1798
|
const body: Record<string, unknown> = {}
|
|
1799
|
+
let disableCache: boolean | undefined
|
|
1800
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1801
|
+
const argCacheBuster = args._t
|
|
1802
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1236
1803
|
const argText = args.text
|
|
1237
1804
|
if (argText !== undefined) query["text"] = argText
|
|
1238
1805
|
const argSize = args.size
|
|
@@ -1253,6 +1820,7 @@ export class ImageApi {
|
|
|
1253
1820
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1254
1821
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1255
1822
|
'json',
|
|
1823
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1256
1824
|
) as GetImageQrcodeResponse
|
|
1257
1825
|
}
|
|
1258
1826
|
|
|
@@ -1262,6 +1830,10 @@ export class ImageApi {
|
|
|
1262
1830
|
const query: Record<string, unknown> = {}
|
|
1263
1831
|
const headers: Record<string, string> = {}
|
|
1264
1832
|
const body: Record<string, unknown> = {}
|
|
1833
|
+
let disableCache: boolean | undefined
|
|
1834
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1835
|
+
const argCacheBuster = args._t
|
|
1836
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1265
1837
|
const argUrl = args.url
|
|
1266
1838
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
1267
1839
|
let requestPath = '/api/v1/image/tobase64'
|
|
@@ -1272,6 +1844,7 @@ export class ImageApi {
|
|
|
1272
1844
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1273
1845
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1274
1846
|
'json',
|
|
1847
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1275
1848
|
) as GetImageTobase64Response
|
|
1276
1849
|
}
|
|
1277
1850
|
|
|
@@ -1281,6 +1854,10 @@ export class ImageApi {
|
|
|
1281
1854
|
const query: Record<string, unknown> = {}
|
|
1282
1855
|
const headers: Record<string, string> = {}
|
|
1283
1856
|
const body: Record<string, unknown> = {}
|
|
1857
|
+
let disableCache: boolean | undefined
|
|
1858
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1859
|
+
const argCacheBuster = args._t
|
|
1860
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1284
1861
|
const argLevel = args.level
|
|
1285
1862
|
if (argLevel !== undefined) query["level"] = argLevel
|
|
1286
1863
|
const argFormat = args.format
|
|
@@ -1295,6 +1872,7 @@ export class ImageApi {
|
|
|
1295
1872
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1296
1873
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1297
1874
|
'arrayBuffer',
|
|
1875
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1298
1876
|
) as PostImageCompressResponse
|
|
1299
1877
|
}
|
|
1300
1878
|
|
|
@@ -1304,6 +1882,10 @@ export class ImageApi {
|
|
|
1304
1882
|
const query: Record<string, unknown> = {}
|
|
1305
1883
|
const headers: Record<string, string> = {}
|
|
1306
1884
|
const body: Record<string, unknown> = {}
|
|
1885
|
+
let disableCache: boolean | undefined
|
|
1886
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1887
|
+
const argCacheBuster = args._t
|
|
1888
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1307
1889
|
const argImageData = args.imageData
|
|
1308
1890
|
if (argImageData !== undefined) body["imageData"] = argImageData
|
|
1309
1891
|
let requestPath = '/api/v1/image/frombase64'
|
|
@@ -1314,6 +1896,7 @@ export class ImageApi {
|
|
|
1314
1896
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1315
1897
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1316
1898
|
'json',
|
|
1899
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1317
1900
|
) as PostImageFrombase64Response
|
|
1318
1901
|
}
|
|
1319
1902
|
|
|
@@ -1323,6 +1906,10 @@ export class ImageApi {
|
|
|
1323
1906
|
const query: Record<string, unknown> = {}
|
|
1324
1907
|
const headers: Record<string, string> = {}
|
|
1325
1908
|
const body: Record<string, unknown> = {}
|
|
1909
|
+
let disableCache: boolean | undefined
|
|
1910
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1911
|
+
const argCacheBuster = args._t
|
|
1912
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1326
1913
|
const argBgColor = args.bgColor ?? args["bg_color"]
|
|
1327
1914
|
if (argBgColor !== undefined) body["bg_color"] = argBgColor
|
|
1328
1915
|
const argFile = args.file
|
|
@@ -1337,6 +1924,7 @@ export class ImageApi {
|
|
|
1337
1924
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1338
1925
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1339
1926
|
'arrayBuffer',
|
|
1927
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1340
1928
|
) as PostImageMotouResponse
|
|
1341
1929
|
}
|
|
1342
1930
|
|
|
@@ -1346,6 +1934,10 @@ export class ImageApi {
|
|
|
1346
1934
|
const query: Record<string, unknown> = {}
|
|
1347
1935
|
const headers: Record<string, string> = {}
|
|
1348
1936
|
const body: Record<string, unknown> = {}
|
|
1937
|
+
let disableCache: boolean | undefined
|
|
1938
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1939
|
+
const argCacheBuster = args._t
|
|
1940
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1349
1941
|
const argFile = args.file
|
|
1350
1942
|
if (argFile !== undefined) body["file"] = argFile
|
|
1351
1943
|
const argUrl = args.url
|
|
@@ -1358,6 +1950,7 @@ export class ImageApi {
|
|
|
1358
1950
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1359
1951
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1360
1952
|
'json',
|
|
1953
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1361
1954
|
) as PostImageNsfwResponse
|
|
1362
1955
|
}
|
|
1363
1956
|
|
|
@@ -1367,6 +1960,10 @@ export class ImageApi {
|
|
|
1367
1960
|
const query: Record<string, unknown> = {}
|
|
1368
1961
|
const headers: Record<string, string> = {}
|
|
1369
1962
|
const body: Record<string, unknown> = {}
|
|
1963
|
+
let disableCache: boolean | undefined
|
|
1964
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1965
|
+
const argCacheBuster = args._t
|
|
1966
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1370
1967
|
const argBottomText = args.bottomText ?? args["bottom_text"]
|
|
1371
1968
|
if (argBottomText !== undefined) body["bottom_text"] = argBottomText
|
|
1372
1969
|
const argTopText = args.topText ?? args["top_text"]
|
|
@@ -1379,6 +1976,7 @@ export class ImageApi {
|
|
|
1379
1976
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1380
1977
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1381
1978
|
'arrayBuffer',
|
|
1979
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1382
1980
|
) as PostImageSpeechlessResponse
|
|
1383
1981
|
}
|
|
1384
1982
|
|
|
@@ -1388,6 +1986,10 @@ export class ImageApi {
|
|
|
1388
1986
|
const query: Record<string, unknown> = {}
|
|
1389
1987
|
const headers: Record<string, string> = {}
|
|
1390
1988
|
const body: Record<string, unknown> = {}
|
|
1989
|
+
let disableCache: boolean | undefined
|
|
1990
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
1991
|
+
const argCacheBuster = args._t
|
|
1992
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1391
1993
|
const argFormat = args.format
|
|
1392
1994
|
if (argFormat !== undefined) query["format"] = argFormat
|
|
1393
1995
|
const argWidth = args.width
|
|
@@ -1406,6 +2008,7 @@ export class ImageApi {
|
|
|
1406
2008
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1407
2009
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1408
2010
|
'arrayBuffer',
|
|
2011
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1409
2012
|
) as PostImageSvgResponse
|
|
1410
2013
|
}
|
|
1411
2014
|
}
|
|
@@ -1418,6 +2021,10 @@ export class MiscApi {
|
|
|
1418
2021
|
const query: Record<string, unknown> = {}
|
|
1419
2022
|
const headers: Record<string, string> = {}
|
|
1420
2023
|
const body: Record<string, unknown> = {}
|
|
2024
|
+
let disableCache: boolean | undefined
|
|
2025
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2026
|
+
const argCacheBuster = args._t
|
|
2027
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1421
2028
|
const argMonth = args.month
|
|
1422
2029
|
if (argMonth !== undefined) query["month"] = argMonth
|
|
1423
2030
|
const argDay = args.day
|
|
@@ -1430,6 +2037,7 @@ export class MiscApi {
|
|
|
1430
2037
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1431
2038
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1432
2039
|
'json',
|
|
2040
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1433
2041
|
) as GetHistoryProgrammerResponse
|
|
1434
2042
|
}
|
|
1435
2043
|
|
|
@@ -1439,6 +2047,7 @@ export class MiscApi {
|
|
|
1439
2047
|
const query: Record<string, unknown> = {}
|
|
1440
2048
|
const headers: Record<string, string> = {}
|
|
1441
2049
|
const body: Record<string, unknown> = {}
|
|
2050
|
+
let disableCache: boolean | undefined
|
|
1442
2051
|
let requestPath = '/api/v1/history/programmer/today'
|
|
1443
2052
|
return await this.c._request(
|
|
1444
2053
|
'GET',
|
|
@@ -1447,6 +2056,7 @@ export class MiscApi {
|
|
|
1447
2056
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1448
2057
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1449
2058
|
'json',
|
|
2059
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1450
2060
|
) as GetHistoryProgrammerTodayResponse
|
|
1451
2061
|
}
|
|
1452
2062
|
|
|
@@ -1456,6 +2066,10 @@ export class MiscApi {
|
|
|
1456
2066
|
const query: Record<string, unknown> = {}
|
|
1457
2067
|
const headers: Record<string, string> = {}
|
|
1458
2068
|
const body: Record<string, unknown> = {}
|
|
2069
|
+
let disableCache: boolean | undefined
|
|
2070
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2071
|
+
const argCacheBuster = args._t
|
|
2072
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1459
2073
|
const argKeywords = args.keywords
|
|
1460
2074
|
if (argKeywords !== undefined) query["keywords"] = argKeywords
|
|
1461
2075
|
const argAdcode = args.adcode
|
|
@@ -1478,6 +2092,7 @@ export class MiscApi {
|
|
|
1478
2092
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1479
2093
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1480
2094
|
'json',
|
|
2095
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1481
2096
|
) as GetMiscDistrictResponse
|
|
1482
2097
|
}
|
|
1483
2098
|
|
|
@@ -1487,6 +2102,10 @@ export class MiscApi {
|
|
|
1487
2102
|
const query: Record<string, unknown> = {}
|
|
1488
2103
|
const headers: Record<string, string> = {}
|
|
1489
2104
|
const body: Record<string, unknown> = {}
|
|
2105
|
+
let disableCache: boolean | undefined
|
|
2106
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2107
|
+
const argCacheBuster = args._t
|
|
2108
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1490
2109
|
const argDate = args.date
|
|
1491
2110
|
if (argDate !== undefined) query["date"] = argDate
|
|
1492
2111
|
const argMonth = args.month
|
|
@@ -1509,6 +2128,7 @@ export class MiscApi {
|
|
|
1509
2128
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1510
2129
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1511
2130
|
'json',
|
|
2131
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1512
2132
|
) as GetMiscHolidayCalendarResponse
|
|
1513
2133
|
}
|
|
1514
2134
|
|
|
@@ -1518,6 +2138,10 @@ export class MiscApi {
|
|
|
1518
2138
|
const query: Record<string, unknown> = {}
|
|
1519
2139
|
const headers: Record<string, string> = {}
|
|
1520
2140
|
const body: Record<string, unknown> = {}
|
|
2141
|
+
let disableCache: boolean | undefined
|
|
2142
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2143
|
+
const argCacheBuster = args._t
|
|
2144
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1521
2145
|
const argType = args.type
|
|
1522
2146
|
if (argType !== undefined) query["type"] = argType
|
|
1523
2147
|
const argTime = args.time
|
|
@@ -1540,6 +2164,7 @@ export class MiscApi {
|
|
|
1540
2164
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1541
2165
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1542
2166
|
'json',
|
|
2167
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1543
2168
|
) as GetMiscHotboardResponse
|
|
1544
2169
|
}
|
|
1545
2170
|
|
|
@@ -1549,6 +2174,10 @@ export class MiscApi {
|
|
|
1549
2174
|
const query: Record<string, unknown> = {}
|
|
1550
2175
|
const headers: Record<string, string> = {}
|
|
1551
2176
|
const body: Record<string, unknown> = {}
|
|
2177
|
+
let disableCache: boolean | undefined
|
|
2178
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2179
|
+
const argCacheBuster = args._t
|
|
2180
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1552
2181
|
const argTs = args.ts
|
|
1553
2182
|
if (argTs !== undefined) query["ts"] = argTs
|
|
1554
2183
|
const argTimezone = args.timezone
|
|
@@ -1561,6 +2190,7 @@ export class MiscApi {
|
|
|
1561
2190
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1562
2191
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1563
2192
|
'json',
|
|
2193
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1564
2194
|
) as GetMiscLunartimeResponse
|
|
1565
2195
|
}
|
|
1566
2196
|
|
|
@@ -1570,6 +2200,10 @@ export class MiscApi {
|
|
|
1570
2200
|
const query: Record<string, unknown> = {}
|
|
1571
2201
|
const headers: Record<string, string> = {}
|
|
1572
2202
|
const body: Record<string, unknown> = {}
|
|
2203
|
+
let disableCache: boolean | undefined
|
|
2204
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2205
|
+
const argCacheBuster = args._t
|
|
2206
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1573
2207
|
const argPhone = args.phone
|
|
1574
2208
|
if (argPhone !== undefined) query["phone"] = argPhone
|
|
1575
2209
|
let requestPath = '/api/v1/misc/phoneinfo'
|
|
@@ -1580,6 +2214,7 @@ export class MiscApi {
|
|
|
1580
2214
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1581
2215
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1582
2216
|
'json',
|
|
2217
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1583
2218
|
) as GetMiscPhoneinfoResponse
|
|
1584
2219
|
}
|
|
1585
2220
|
|
|
@@ -1589,6 +2224,10 @@ export class MiscApi {
|
|
|
1589
2224
|
const query: Record<string, unknown> = {}
|
|
1590
2225
|
const headers: Record<string, string> = {}
|
|
1591
2226
|
const body: Record<string, unknown> = {}
|
|
2227
|
+
let disableCache: boolean | undefined
|
|
2228
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2229
|
+
const argCacheBuster = args._t
|
|
2230
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1592
2231
|
const argMin = args.min
|
|
1593
2232
|
if (argMin !== undefined) query["min"] = argMin
|
|
1594
2233
|
const argMax = args.max
|
|
@@ -1609,6 +2248,7 @@ export class MiscApi {
|
|
|
1609
2248
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1610
2249
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1611
2250
|
'json',
|
|
2251
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1612
2252
|
) as GetMiscRandomnumberResponse
|
|
1613
2253
|
}
|
|
1614
2254
|
|
|
@@ -1618,6 +2258,10 @@ export class MiscApi {
|
|
|
1618
2258
|
const query: Record<string, unknown> = {}
|
|
1619
2259
|
const headers: Record<string, string> = {}
|
|
1620
2260
|
const body: Record<string, unknown> = {}
|
|
2261
|
+
let disableCache: boolean | undefined
|
|
2262
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2263
|
+
const argCacheBuster = args._t
|
|
2264
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1621
2265
|
const argTs = args.ts
|
|
1622
2266
|
if (argTs !== undefined) query["ts"] = argTs
|
|
1623
2267
|
let requestPath = '/api/v1/misc/timestamp'
|
|
@@ -1628,6 +2272,7 @@ export class MiscApi {
|
|
|
1628
2272
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1629
2273
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1630
2274
|
'json',
|
|
2275
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1631
2276
|
) as GetMiscTimestampResponse
|
|
1632
2277
|
}
|
|
1633
2278
|
|
|
@@ -1637,6 +2282,7 @@ export class MiscApi {
|
|
|
1637
2282
|
const query: Record<string, unknown> = {}
|
|
1638
2283
|
const headers: Record<string, string> = {}
|
|
1639
2284
|
const body: Record<string, unknown> = {}
|
|
2285
|
+
let disableCache: boolean | undefined
|
|
1640
2286
|
let requestPath = '/api/v1/misc/tracking/carriers'
|
|
1641
2287
|
return await this.c._request(
|
|
1642
2288
|
'GET',
|
|
@@ -1645,6 +2291,7 @@ export class MiscApi {
|
|
|
1645
2291
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1646
2292
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1647
2293
|
'json',
|
|
2294
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1648
2295
|
) as GetMiscTrackingCarriersResponse
|
|
1649
2296
|
}
|
|
1650
2297
|
|
|
@@ -1654,6 +2301,10 @@ export class MiscApi {
|
|
|
1654
2301
|
const query: Record<string, unknown> = {}
|
|
1655
2302
|
const headers: Record<string, string> = {}
|
|
1656
2303
|
const body: Record<string, unknown> = {}
|
|
2304
|
+
let disableCache: boolean | undefined
|
|
2305
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2306
|
+
const argCacheBuster = args._t
|
|
2307
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1657
2308
|
const argTrackingNumber = args.trackingNumber ?? args["tracking_number"]
|
|
1658
2309
|
if (argTrackingNumber !== undefined) query["tracking_number"] = argTrackingNumber
|
|
1659
2310
|
let requestPath = '/api/v1/misc/tracking/detect'
|
|
@@ -1664,6 +2315,7 @@ export class MiscApi {
|
|
|
1664
2315
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1665
2316
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1666
2317
|
'json',
|
|
2318
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1667
2319
|
) as GetMiscTrackingDetectResponse
|
|
1668
2320
|
}
|
|
1669
2321
|
|
|
@@ -1673,6 +2325,10 @@ export class MiscApi {
|
|
|
1673
2325
|
const query: Record<string, unknown> = {}
|
|
1674
2326
|
const headers: Record<string, string> = {}
|
|
1675
2327
|
const body: Record<string, unknown> = {}
|
|
2328
|
+
let disableCache: boolean | undefined
|
|
2329
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2330
|
+
const argCacheBuster = args._t
|
|
2331
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1676
2332
|
const argTrackingNumber = args.trackingNumber ?? args["tracking_number"]
|
|
1677
2333
|
if (argTrackingNumber !== undefined) query["tracking_number"] = argTrackingNumber
|
|
1678
2334
|
const argCarrierCode = args.carrierCode ?? args["carrier_code"]
|
|
@@ -1687,6 +2343,7 @@ export class MiscApi {
|
|
|
1687
2343
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1688
2344
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1689
2345
|
'json',
|
|
2346
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1690
2347
|
) as GetMiscTrackingQueryResponse
|
|
1691
2348
|
}
|
|
1692
2349
|
|
|
@@ -1696,6 +2353,10 @@ export class MiscApi {
|
|
|
1696
2353
|
const query: Record<string, unknown> = {}
|
|
1697
2354
|
const headers: Record<string, string> = {}
|
|
1698
2355
|
const body: Record<string, unknown> = {}
|
|
2356
|
+
let disableCache: boolean | undefined
|
|
2357
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2358
|
+
const argCacheBuster = args._t
|
|
2359
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1699
2360
|
const argCity = args.city
|
|
1700
2361
|
if (argCity !== undefined) query["city"] = argCity
|
|
1701
2362
|
const argAdcode = args.adcode
|
|
@@ -1720,6 +2381,7 @@ export class MiscApi {
|
|
|
1720
2381
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1721
2382
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1722
2383
|
'json',
|
|
2384
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1723
2385
|
) as GetMiscWeatherResponse
|
|
1724
2386
|
}
|
|
1725
2387
|
|
|
@@ -1729,6 +2391,10 @@ export class MiscApi {
|
|
|
1729
2391
|
const query: Record<string, unknown> = {}
|
|
1730
2392
|
const headers: Record<string, string> = {}
|
|
1731
2393
|
const body: Record<string, unknown> = {}
|
|
2394
|
+
let disableCache: boolean | undefined
|
|
2395
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2396
|
+
const argCacheBuster = args._t
|
|
2397
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1732
2398
|
const argCity = args.city
|
|
1733
2399
|
if (argCity !== undefined) query["city"] = argCity
|
|
1734
2400
|
let requestPath = '/api/v1/misc/worldtime'
|
|
@@ -1739,6 +2405,7 @@ export class MiscApi {
|
|
|
1739
2405
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1740
2406
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1741
2407
|
'json',
|
|
2408
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1742
2409
|
) as GetMiscWorldtimeResponse
|
|
1743
2410
|
}
|
|
1744
2411
|
|
|
@@ -1748,6 +2415,10 @@ export class MiscApi {
|
|
|
1748
2415
|
const query: Record<string, unknown> = {}
|
|
1749
2416
|
const headers: Record<string, string> = {}
|
|
1750
2417
|
const body: Record<string, unknown> = {}
|
|
2418
|
+
let disableCache: boolean | undefined
|
|
2419
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2420
|
+
const argCacheBuster = args._t
|
|
2421
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1751
2422
|
const argEndDate = args.endDate ?? args["end_date"]
|
|
1752
2423
|
if (argEndDate !== undefined) body["end_date"] = argEndDate
|
|
1753
2424
|
const argFormat = args.format
|
|
@@ -1762,6 +2433,7 @@ export class MiscApi {
|
|
|
1762
2433
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1763
2434
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1764
2435
|
'json',
|
|
2436
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1765
2437
|
) as PostMiscDateDiffResponse
|
|
1766
2438
|
}
|
|
1767
2439
|
}
|
|
@@ -1774,6 +2446,10 @@ export class NetworkApi {
|
|
|
1774
2446
|
const query: Record<string, unknown> = {}
|
|
1775
2447
|
const headers: Record<string, string> = {}
|
|
1776
2448
|
const body: Record<string, unknown> = {}
|
|
2449
|
+
let disableCache: boolean | undefined
|
|
2450
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2451
|
+
const argCacheBuster = args._t
|
|
2452
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1777
2453
|
const argDomain = args.domain
|
|
1778
2454
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1779
2455
|
const argType = args.type
|
|
@@ -1786,6 +2462,7 @@ export class NetworkApi {
|
|
|
1786
2462
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1787
2463
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1788
2464
|
'json',
|
|
2465
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1789
2466
|
) as GetNetworkDnsResponse
|
|
1790
2467
|
}
|
|
1791
2468
|
|
|
@@ -1795,6 +2472,10 @@ export class NetworkApi {
|
|
|
1795
2472
|
const query: Record<string, unknown> = {}
|
|
1796
2473
|
const headers: Record<string, string> = {}
|
|
1797
2474
|
const body: Record<string, unknown> = {}
|
|
2475
|
+
let disableCache: boolean | undefined
|
|
2476
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2477
|
+
const argCacheBuster = args._t
|
|
2478
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1798
2479
|
const argDomain = args.domain
|
|
1799
2480
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1800
2481
|
let requestPath = '/api/v1/network/icp'
|
|
@@ -1805,6 +2486,7 @@ export class NetworkApi {
|
|
|
1805
2486
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1806
2487
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1807
2488
|
'json',
|
|
2489
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1808
2490
|
) as GetNetworkIcpResponse
|
|
1809
2491
|
}
|
|
1810
2492
|
|
|
@@ -1814,6 +2496,10 @@ export class NetworkApi {
|
|
|
1814
2496
|
const query: Record<string, unknown> = {}
|
|
1815
2497
|
const headers: Record<string, string> = {}
|
|
1816
2498
|
const body: Record<string, unknown> = {}
|
|
2499
|
+
let disableCache: boolean | undefined
|
|
2500
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2501
|
+
const argCacheBuster = args._t
|
|
2502
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1817
2503
|
const argIp = args.ip
|
|
1818
2504
|
if (argIp !== undefined) query["ip"] = argIp
|
|
1819
2505
|
const argSource = args.source
|
|
@@ -1826,6 +2512,7 @@ export class NetworkApi {
|
|
|
1826
2512
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1827
2513
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1828
2514
|
'json',
|
|
2515
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1829
2516
|
) as GetNetworkIpinfoResponse
|
|
1830
2517
|
}
|
|
1831
2518
|
|
|
@@ -1835,6 +2522,10 @@ export class NetworkApi {
|
|
|
1835
2522
|
const query: Record<string, unknown> = {}
|
|
1836
2523
|
const headers: Record<string, string> = {}
|
|
1837
2524
|
const body: Record<string, unknown> = {}
|
|
2525
|
+
let disableCache: boolean | undefined
|
|
2526
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2527
|
+
const argCacheBuster = args._t
|
|
2528
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1838
2529
|
const argSource = args.source
|
|
1839
2530
|
if (argSource !== undefined) query["source"] = argSource
|
|
1840
2531
|
let requestPath = '/api/v1/network/myip'
|
|
@@ -1845,6 +2536,7 @@ export class NetworkApi {
|
|
|
1845
2536
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1846
2537
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1847
2538
|
'json',
|
|
2539
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1848
2540
|
) as GetNetworkMyipResponse
|
|
1849
2541
|
}
|
|
1850
2542
|
|
|
@@ -1854,6 +2546,10 @@ export class NetworkApi {
|
|
|
1854
2546
|
const query: Record<string, unknown> = {}
|
|
1855
2547
|
const headers: Record<string, string> = {}
|
|
1856
2548
|
const body: Record<string, unknown> = {}
|
|
2549
|
+
let disableCache: boolean | undefined
|
|
2550
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2551
|
+
const argCacheBuster = args._t
|
|
2552
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1857
2553
|
const argHost = args.host
|
|
1858
2554
|
if (argHost !== undefined) query["host"] = argHost
|
|
1859
2555
|
let requestPath = '/api/v1/network/ping'
|
|
@@ -1864,6 +2560,7 @@ export class NetworkApi {
|
|
|
1864
2560
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1865
2561
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1866
2562
|
'json',
|
|
2563
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1867
2564
|
) as GetNetworkPingResponse
|
|
1868
2565
|
}
|
|
1869
2566
|
|
|
@@ -1873,6 +2570,7 @@ export class NetworkApi {
|
|
|
1873
2570
|
const query: Record<string, unknown> = {}
|
|
1874
2571
|
const headers: Record<string, string> = {}
|
|
1875
2572
|
const body: Record<string, unknown> = {}
|
|
2573
|
+
let disableCache: boolean | undefined
|
|
1876
2574
|
let requestPath = '/api/v1/network/pingmyip'
|
|
1877
2575
|
return await this.c._request(
|
|
1878
2576
|
'GET',
|
|
@@ -1881,6 +2579,7 @@ export class NetworkApi {
|
|
|
1881
2579
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1882
2580
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1883
2581
|
'json',
|
|
2582
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1884
2583
|
) as GetNetworkPingmyipResponse
|
|
1885
2584
|
}
|
|
1886
2585
|
|
|
@@ -1890,6 +2589,10 @@ export class NetworkApi {
|
|
|
1890
2589
|
const query: Record<string, unknown> = {}
|
|
1891
2590
|
const headers: Record<string, string> = {}
|
|
1892
2591
|
const body: Record<string, unknown> = {}
|
|
2592
|
+
let disableCache: boolean | undefined
|
|
2593
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2594
|
+
const argCacheBuster = args._t
|
|
2595
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1893
2596
|
const argHost = args.host
|
|
1894
2597
|
if (argHost !== undefined) query["host"] = argHost
|
|
1895
2598
|
const argPort = args.port
|
|
@@ -1904,6 +2607,7 @@ export class NetworkApi {
|
|
|
1904
2607
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1905
2608
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1906
2609
|
'json',
|
|
2610
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1907
2611
|
) as GetNetworkPortscanResponse
|
|
1908
2612
|
}
|
|
1909
2613
|
|
|
@@ -1913,6 +2617,10 @@ export class NetworkApi {
|
|
|
1913
2617
|
const query: Record<string, unknown> = {}
|
|
1914
2618
|
const headers: Record<string, string> = {}
|
|
1915
2619
|
const body: Record<string, unknown> = {}
|
|
2620
|
+
let disableCache: boolean | undefined
|
|
2621
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2622
|
+
const argCacheBuster = args._t
|
|
2623
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1916
2624
|
const argUrl = args.url
|
|
1917
2625
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
1918
2626
|
let requestPath = '/api/v1/network/urlstatus'
|
|
@@ -1923,6 +2631,7 @@ export class NetworkApi {
|
|
|
1923
2631
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1924
2632
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1925
2633
|
'json',
|
|
2634
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1926
2635
|
) as GetNetworkUrlstatusResponse
|
|
1927
2636
|
}
|
|
1928
2637
|
|
|
@@ -1932,6 +2641,10 @@ export class NetworkApi {
|
|
|
1932
2641
|
const query: Record<string, unknown> = {}
|
|
1933
2642
|
const headers: Record<string, string> = {}
|
|
1934
2643
|
const body: Record<string, unknown> = {}
|
|
2644
|
+
let disableCache: boolean | undefined
|
|
2645
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2646
|
+
const argCacheBuster = args._t
|
|
2647
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1935
2648
|
const argDomain = args.domain
|
|
1936
2649
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1937
2650
|
const argFormat = args.format
|
|
@@ -1944,6 +2657,7 @@ export class NetworkApi {
|
|
|
1944
2657
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1945
2658
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1946
2659
|
'json',
|
|
2660
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1947
2661
|
) as GetNetworkWhoisResponse
|
|
1948
2662
|
}
|
|
1949
2663
|
|
|
@@ -1953,6 +2667,10 @@ export class NetworkApi {
|
|
|
1953
2667
|
const query: Record<string, unknown> = {}
|
|
1954
2668
|
const headers: Record<string, string> = {}
|
|
1955
2669
|
const body: Record<string, unknown> = {}
|
|
2670
|
+
let disableCache: boolean | undefined
|
|
2671
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2672
|
+
const argCacheBuster = args._t
|
|
2673
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1956
2674
|
const argDomain = args.domain
|
|
1957
2675
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1958
2676
|
let requestPath = '/api/v1/network/wxdomain'
|
|
@@ -1963,6 +2681,7 @@ export class NetworkApi {
|
|
|
1963
2681
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1964
2682
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1965
2683
|
'json',
|
|
2684
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1966
2685
|
) as GetNetworkWxdomainResponse
|
|
1967
2686
|
}
|
|
1968
2687
|
}
|
|
@@ -1975,6 +2694,7 @@ export class PoemApi {
|
|
|
1975
2694
|
const query: Record<string, unknown> = {}
|
|
1976
2695
|
const headers: Record<string, string> = {}
|
|
1977
2696
|
const body: Record<string, unknown> = {}
|
|
2697
|
+
let disableCache: boolean | undefined
|
|
1978
2698
|
let requestPath = '/api/v1/saying'
|
|
1979
2699
|
return await this.c._request(
|
|
1980
2700
|
'GET',
|
|
@@ -1983,6 +2703,7 @@ export class PoemApi {
|
|
|
1983
2703
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1984
2704
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1985
2705
|
'json',
|
|
2706
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1986
2707
|
) as GetSayingResponse
|
|
1987
2708
|
}
|
|
1988
2709
|
}
|
|
@@ -1995,6 +2716,10 @@ export class RandomApi {
|
|
|
1995
2716
|
const query: Record<string, unknown> = {}
|
|
1996
2717
|
const headers: Record<string, string> = {}
|
|
1997
2718
|
const body: Record<string, unknown> = {}
|
|
2719
|
+
let disableCache: boolean | undefined
|
|
2720
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2721
|
+
const argCacheBuster = args._t
|
|
2722
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
1998
2723
|
const argQuestion = args.question
|
|
1999
2724
|
if (argQuestion !== undefined) query["question"] = argQuestion
|
|
2000
2725
|
let requestPath = '/api/v1/answerbook/ask'
|
|
@@ -2005,6 +2730,7 @@ export class RandomApi {
|
|
|
2005
2730
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2006
2731
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2007
2732
|
'json',
|
|
2733
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2008
2734
|
) as GetAnswerbookAskResponse
|
|
2009
2735
|
}
|
|
2010
2736
|
|
|
@@ -2014,6 +2740,10 @@ export class RandomApi {
|
|
|
2014
2740
|
const query: Record<string, unknown> = {}
|
|
2015
2741
|
const headers: Record<string, string> = {}
|
|
2016
2742
|
const body: Record<string, unknown> = {}
|
|
2743
|
+
let disableCache: boolean | undefined
|
|
2744
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2745
|
+
const argCacheBuster = args._t
|
|
2746
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2017
2747
|
const argCategory = args.category
|
|
2018
2748
|
if (argCategory !== undefined) query["category"] = argCategory
|
|
2019
2749
|
const argType = args.type
|
|
@@ -2026,6 +2756,7 @@ export class RandomApi {
|
|
|
2026
2756
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2027
2757
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2028
2758
|
'arrayBuffer',
|
|
2759
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2029
2760
|
) as GetRandomImageResponse
|
|
2030
2761
|
}
|
|
2031
2762
|
|
|
@@ -2035,6 +2766,10 @@ export class RandomApi {
|
|
|
2035
2766
|
const query: Record<string, unknown> = {}
|
|
2036
2767
|
const headers: Record<string, string> = {}
|
|
2037
2768
|
const body: Record<string, unknown> = {}
|
|
2769
|
+
let disableCache: boolean | undefined
|
|
2770
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2771
|
+
const argCacheBuster = args._t
|
|
2772
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2038
2773
|
const argLength = args.length
|
|
2039
2774
|
if (argLength !== undefined) query["length"] = argLength
|
|
2040
2775
|
const argType = args.type
|
|
@@ -2047,6 +2782,7 @@ export class RandomApi {
|
|
|
2047
2782
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2048
2783
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2049
2784
|
'json',
|
|
2785
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2050
2786
|
) as GetRandomStringResponse
|
|
2051
2787
|
}
|
|
2052
2788
|
|
|
@@ -2056,6 +2792,10 @@ export class RandomApi {
|
|
|
2056
2792
|
const query: Record<string, unknown> = {}
|
|
2057
2793
|
const headers: Record<string, string> = {}
|
|
2058
2794
|
const body: Record<string, unknown> = {}
|
|
2795
|
+
let disableCache: boolean | undefined
|
|
2796
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2797
|
+
const argCacheBuster = args._t
|
|
2798
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2059
2799
|
const argQuestion = args.question
|
|
2060
2800
|
if (argQuestion !== undefined) body["question"] = argQuestion
|
|
2061
2801
|
let requestPath = '/api/v1/answerbook/ask'
|
|
@@ -2066,6 +2806,7 @@ export class RandomApi {
|
|
|
2066
2806
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2067
2807
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2068
2808
|
'json',
|
|
2809
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2069
2810
|
) as PostAnswerbookAskResponse
|
|
2070
2811
|
}
|
|
2071
2812
|
}
|
|
@@ -2078,6 +2819,10 @@ export class SocialApi {
|
|
|
2078
2819
|
const query: Record<string, unknown> = {}
|
|
2079
2820
|
const headers: Record<string, string> = {}
|
|
2080
2821
|
const body: Record<string, unknown> = {}
|
|
2822
|
+
let disableCache: boolean | undefined
|
|
2823
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2824
|
+
const argCacheBuster = args._t
|
|
2825
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2081
2826
|
const argRepo = args.repo
|
|
2082
2827
|
if (argRepo !== undefined) query["repo"] = argRepo
|
|
2083
2828
|
let requestPath = '/api/v1/github/repo'
|
|
@@ -2088,6 +2833,7 @@ export class SocialApi {
|
|
|
2088
2833
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2089
2834
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2090
2835
|
'json',
|
|
2836
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2091
2837
|
) as GetGithubRepoResponse
|
|
2092
2838
|
}
|
|
2093
2839
|
|
|
@@ -2097,6 +2843,10 @@ export class SocialApi {
|
|
|
2097
2843
|
const query: Record<string, unknown> = {}
|
|
2098
2844
|
const headers: Record<string, string> = {}
|
|
2099
2845
|
const body: Record<string, unknown> = {}
|
|
2846
|
+
let disableCache: boolean | undefined
|
|
2847
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2848
|
+
const argCacheBuster = args._t
|
|
2849
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2100
2850
|
const argMid = args.mid
|
|
2101
2851
|
if (argMid !== undefined) query["mid"] = argMid
|
|
2102
2852
|
const argKeywords = args.keywords
|
|
@@ -2115,6 +2865,7 @@ export class SocialApi {
|
|
|
2115
2865
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2116
2866
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2117
2867
|
'json',
|
|
2868
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2118
2869
|
) as GetSocialBilibiliArchivesResponse
|
|
2119
2870
|
}
|
|
2120
2871
|
|
|
@@ -2124,6 +2875,10 @@ export class SocialApi {
|
|
|
2124
2875
|
const query: Record<string, unknown> = {}
|
|
2125
2876
|
const headers: Record<string, string> = {}
|
|
2126
2877
|
const body: Record<string, unknown> = {}
|
|
2878
|
+
let disableCache: boolean | undefined
|
|
2879
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2880
|
+
const argCacheBuster = args._t
|
|
2881
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2127
2882
|
const argMid = args.mid
|
|
2128
2883
|
if (argMid !== undefined) query["mid"] = argMid
|
|
2129
2884
|
const argRoomId = args.roomId ?? args["room_id"]
|
|
@@ -2136,6 +2891,7 @@ export class SocialApi {
|
|
|
2136
2891
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2137
2892
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2138
2893
|
'json',
|
|
2894
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2139
2895
|
) as GetSocialBilibiliLiveroomResponse
|
|
2140
2896
|
}
|
|
2141
2897
|
|
|
@@ -2145,6 +2901,10 @@ export class SocialApi {
|
|
|
2145
2901
|
const query: Record<string, unknown> = {}
|
|
2146
2902
|
const headers: Record<string, string> = {}
|
|
2147
2903
|
const body: Record<string, unknown> = {}
|
|
2904
|
+
let disableCache: boolean | undefined
|
|
2905
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2906
|
+
const argCacheBuster = args._t
|
|
2907
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2148
2908
|
const argOid = args.oid
|
|
2149
2909
|
if (argOid !== undefined) query["oid"] = argOid
|
|
2150
2910
|
const argSort = args.sort
|
|
@@ -2161,6 +2921,7 @@ export class SocialApi {
|
|
|
2161
2921
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2162
2922
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2163
2923
|
'json',
|
|
2924
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2164
2925
|
) as GetSocialBilibiliRepliesResponse
|
|
2165
2926
|
}
|
|
2166
2927
|
|
|
@@ -2170,6 +2931,10 @@ export class SocialApi {
|
|
|
2170
2931
|
const query: Record<string, unknown> = {}
|
|
2171
2932
|
const headers: Record<string, string> = {}
|
|
2172
2933
|
const body: Record<string, unknown> = {}
|
|
2934
|
+
let disableCache: boolean | undefined
|
|
2935
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2936
|
+
const argCacheBuster = args._t
|
|
2937
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2173
2938
|
const argUid = args.uid
|
|
2174
2939
|
if (argUid !== undefined) query["uid"] = argUid
|
|
2175
2940
|
let requestPath = '/api/v1/social/bilibili/userinfo'
|
|
@@ -2180,6 +2945,7 @@ export class SocialApi {
|
|
|
2180
2945
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2181
2946
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2182
2947
|
'json',
|
|
2948
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2183
2949
|
) as GetSocialBilibiliUserinfoResponse
|
|
2184
2950
|
}
|
|
2185
2951
|
|
|
@@ -2189,6 +2955,10 @@ export class SocialApi {
|
|
|
2189
2955
|
const query: Record<string, unknown> = {}
|
|
2190
2956
|
const headers: Record<string, string> = {}
|
|
2191
2957
|
const body: Record<string, unknown> = {}
|
|
2958
|
+
let disableCache: boolean | undefined
|
|
2959
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2960
|
+
const argCacheBuster = args._t
|
|
2961
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2192
2962
|
const argAid = args.aid
|
|
2193
2963
|
if (argAid !== undefined) query["aid"] = argAid
|
|
2194
2964
|
const argBvid = args.bvid
|
|
@@ -2201,6 +2971,7 @@ export class SocialApi {
|
|
|
2201
2971
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2202
2972
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2203
2973
|
'json',
|
|
2974
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2204
2975
|
) as GetSocialBilibiliVideoinfoResponse
|
|
2205
2976
|
}
|
|
2206
2977
|
|
|
@@ -2210,6 +2981,10 @@ export class SocialApi {
|
|
|
2210
2981
|
const query: Record<string, unknown> = {}
|
|
2211
2982
|
const headers: Record<string, string> = {}
|
|
2212
2983
|
const body: Record<string, unknown> = {}
|
|
2984
|
+
let disableCache: boolean | undefined
|
|
2985
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
2986
|
+
const argCacheBuster = args._t
|
|
2987
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2213
2988
|
const argGroupId = args.groupId ?? args["group_id"]
|
|
2214
2989
|
if (argGroupId !== undefined) query["group_id"] = argGroupId
|
|
2215
2990
|
let requestPath = '/api/v1/social/qq/groupinfo'
|
|
@@ -2220,6 +2995,7 @@ export class SocialApi {
|
|
|
2220
2995
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2221
2996
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2222
2997
|
'json',
|
|
2998
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2223
2999
|
) as GetSocialQqGroupinfoResponse
|
|
2224
3000
|
}
|
|
2225
3001
|
|
|
@@ -2229,6 +3005,10 @@ export class SocialApi {
|
|
|
2229
3005
|
const query: Record<string, unknown> = {}
|
|
2230
3006
|
const headers: Record<string, string> = {}
|
|
2231
3007
|
const body: Record<string, unknown> = {}
|
|
3008
|
+
let disableCache: boolean | undefined
|
|
3009
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3010
|
+
const argCacheBuster = args._t
|
|
3011
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2232
3012
|
const argQq = args.qq
|
|
2233
3013
|
if (argQq !== undefined) query["qq"] = argQq
|
|
2234
3014
|
let requestPath = '/api/v1/social/qq/userinfo'
|
|
@@ -2239,6 +3019,7 @@ export class SocialApi {
|
|
|
2239
3019
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2240
3020
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2241
3021
|
'json',
|
|
3022
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2242
3023
|
) as GetSocialQqUserinfoResponse
|
|
2243
3024
|
}
|
|
2244
3025
|
}
|
|
@@ -2251,6 +3032,10 @@ export class StatusApi {
|
|
|
2251
3032
|
const query: Record<string, unknown> = {}
|
|
2252
3033
|
const headers: Record<string, string> = {}
|
|
2253
3034
|
const body: Record<string, unknown> = {}
|
|
3035
|
+
let disableCache: boolean | undefined
|
|
3036
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3037
|
+
const argCacheBuster = args._t
|
|
3038
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2254
3039
|
const argAuthorization = args.authorization ?? args["Authorization"]
|
|
2255
3040
|
if (argAuthorization !== undefined) headers["Authorization"] = String(argAuthorization)
|
|
2256
3041
|
let requestPath = '/api/v1/status/ratelimit'
|
|
@@ -2261,6 +3046,7 @@ export class StatusApi {
|
|
|
2261
3046
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2262
3047
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2263
3048
|
'json',
|
|
3049
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2264
3050
|
) as GetStatusRatelimitResponse
|
|
2265
3051
|
}
|
|
2266
3052
|
|
|
@@ -2270,6 +3056,10 @@ export class StatusApi {
|
|
|
2270
3056
|
const query: Record<string, unknown> = {}
|
|
2271
3057
|
const headers: Record<string, string> = {}
|
|
2272
3058
|
const body: Record<string, unknown> = {}
|
|
3059
|
+
let disableCache: boolean | undefined
|
|
3060
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3061
|
+
const argCacheBuster = args._t
|
|
3062
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2273
3063
|
const argPath = args.path
|
|
2274
3064
|
if (argPath !== undefined) query["path"] = argPath
|
|
2275
3065
|
let requestPath = '/api/v1/status/usage'
|
|
@@ -2280,6 +3070,7 @@ export class StatusApi {
|
|
|
2280
3070
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2281
3071
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2282
3072
|
'json',
|
|
3073
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2283
3074
|
) as GetStatusUsageResponse
|
|
2284
3075
|
}
|
|
2285
3076
|
}
|
|
@@ -2292,6 +3083,10 @@ export class TextApi {
|
|
|
2292
3083
|
const query: Record<string, unknown> = {}
|
|
2293
3084
|
const headers: Record<string, string> = {}
|
|
2294
3085
|
const body: Record<string, unknown> = {}
|
|
3086
|
+
let disableCache: boolean | undefined
|
|
3087
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3088
|
+
const argCacheBuster = args._t
|
|
3089
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2295
3090
|
const argText = args.text
|
|
2296
3091
|
if (argText !== undefined) query["text"] = argText
|
|
2297
3092
|
let requestPath = '/api/v1/text/md5'
|
|
@@ -2302,6 +3097,7 @@ export class TextApi {
|
|
|
2302
3097
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2303
3098
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2304
3099
|
'json',
|
|
3100
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2305
3101
|
) as GetTextMd5Response
|
|
2306
3102
|
}
|
|
2307
3103
|
|
|
@@ -2311,6 +3107,10 @@ export class TextApi {
|
|
|
2311
3107
|
const query: Record<string, unknown> = {}
|
|
2312
3108
|
const headers: Record<string, string> = {}
|
|
2313
3109
|
const body: Record<string, unknown> = {}
|
|
3110
|
+
let disableCache: boolean | undefined
|
|
3111
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3112
|
+
const argCacheBuster = args._t
|
|
3113
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2314
3114
|
const argKey = args.key
|
|
2315
3115
|
if (argKey !== undefined) body["key"] = argKey
|
|
2316
3116
|
const argNonce = args.nonce
|
|
@@ -2325,6 +3125,7 @@ export class TextApi {
|
|
|
2325
3125
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2326
3126
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2327
3127
|
'json',
|
|
3128
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2328
3129
|
) as PostTextAesDecryptResponse
|
|
2329
3130
|
}
|
|
2330
3131
|
|
|
@@ -2334,6 +3135,10 @@ export class TextApi {
|
|
|
2334
3135
|
const query: Record<string, unknown> = {}
|
|
2335
3136
|
const headers: Record<string, string> = {}
|
|
2336
3137
|
const body: Record<string, unknown> = {}
|
|
3138
|
+
let disableCache: boolean | undefined
|
|
3139
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3140
|
+
const argCacheBuster = args._t
|
|
3141
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2337
3142
|
const argIv = args.iv
|
|
2338
3143
|
if (argIv !== undefined) body["iv"] = argIv
|
|
2339
3144
|
const argKey = args.key
|
|
@@ -2352,6 +3157,7 @@ export class TextApi {
|
|
|
2352
3157
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2353
3158
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2354
3159
|
'json',
|
|
3160
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2355
3161
|
) as PostTextAesDecryptAdvancedResponse
|
|
2356
3162
|
}
|
|
2357
3163
|
|
|
@@ -2361,6 +3167,10 @@ export class TextApi {
|
|
|
2361
3167
|
const query: Record<string, unknown> = {}
|
|
2362
3168
|
const headers: Record<string, string> = {}
|
|
2363
3169
|
const body: Record<string, unknown> = {}
|
|
3170
|
+
let disableCache: boolean | undefined
|
|
3171
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3172
|
+
const argCacheBuster = args._t
|
|
3173
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2364
3174
|
const argKey = args.key
|
|
2365
3175
|
if (argKey !== undefined) body["key"] = argKey
|
|
2366
3176
|
const argText = args.text
|
|
@@ -2373,6 +3183,7 @@ export class TextApi {
|
|
|
2373
3183
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2374
3184
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2375
3185
|
'json',
|
|
3186
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2376
3187
|
) as PostTextAesEncryptResponse
|
|
2377
3188
|
}
|
|
2378
3189
|
|
|
@@ -2382,6 +3193,10 @@ export class TextApi {
|
|
|
2382
3193
|
const query: Record<string, unknown> = {}
|
|
2383
3194
|
const headers: Record<string, string> = {}
|
|
2384
3195
|
const body: Record<string, unknown> = {}
|
|
3196
|
+
let disableCache: boolean | undefined
|
|
3197
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3198
|
+
const argCacheBuster = args._t
|
|
3199
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2385
3200
|
const argIv = args.iv
|
|
2386
3201
|
if (argIv !== undefined) body["iv"] = argIv
|
|
2387
3202
|
const argKey = args.key
|
|
@@ -2402,6 +3217,7 @@ export class TextApi {
|
|
|
2402
3217
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2403
3218
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2404
3219
|
'json',
|
|
3220
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2405
3221
|
) as PostTextAesEncryptAdvancedResponse
|
|
2406
3222
|
}
|
|
2407
3223
|
|
|
@@ -2411,6 +3227,10 @@ export class TextApi {
|
|
|
2411
3227
|
const query: Record<string, unknown> = {}
|
|
2412
3228
|
const headers: Record<string, string> = {}
|
|
2413
3229
|
const body: Record<string, unknown> = {}
|
|
3230
|
+
let disableCache: boolean | undefined
|
|
3231
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3232
|
+
const argCacheBuster = args._t
|
|
3233
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2414
3234
|
const argText = args.text
|
|
2415
3235
|
if (argText !== undefined) body["text"] = argText
|
|
2416
3236
|
let requestPath = '/api/v1/text/analyze'
|
|
@@ -2421,6 +3241,7 @@ export class TextApi {
|
|
|
2421
3241
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2422
3242
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2423
3243
|
'json',
|
|
3244
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2424
3245
|
) as PostTextAnalyzeResponse
|
|
2425
3246
|
}
|
|
2426
3247
|
|
|
@@ -2430,6 +3251,10 @@ export class TextApi {
|
|
|
2430
3251
|
const query: Record<string, unknown> = {}
|
|
2431
3252
|
const headers: Record<string, string> = {}
|
|
2432
3253
|
const body: Record<string, unknown> = {}
|
|
3254
|
+
let disableCache: boolean | undefined
|
|
3255
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3256
|
+
const argCacheBuster = args._t
|
|
3257
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2433
3258
|
const argText = args.text
|
|
2434
3259
|
if (argText !== undefined) body["text"] = argText
|
|
2435
3260
|
let requestPath = '/api/v1/text/base64/decode'
|
|
@@ -2440,6 +3265,7 @@ export class TextApi {
|
|
|
2440
3265
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2441
3266
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2442
3267
|
'json',
|
|
3268
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2443
3269
|
) as PostTextBase64DecodeResponse
|
|
2444
3270
|
}
|
|
2445
3271
|
|
|
@@ -2449,6 +3275,10 @@ export class TextApi {
|
|
|
2449
3275
|
const query: Record<string, unknown> = {}
|
|
2450
3276
|
const headers: Record<string, string> = {}
|
|
2451
3277
|
const body: Record<string, unknown> = {}
|
|
3278
|
+
let disableCache: boolean | undefined
|
|
3279
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3280
|
+
const argCacheBuster = args._t
|
|
3281
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2452
3282
|
const argText = args.text
|
|
2453
3283
|
if (argText !== undefined) body["text"] = argText
|
|
2454
3284
|
let requestPath = '/api/v1/text/base64/encode'
|
|
@@ -2459,6 +3289,7 @@ export class TextApi {
|
|
|
2459
3289
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2460
3290
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2461
3291
|
'json',
|
|
3292
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2462
3293
|
) as PostTextBase64EncodeResponse
|
|
2463
3294
|
}
|
|
2464
3295
|
|
|
@@ -2468,6 +3299,10 @@ export class TextApi {
|
|
|
2468
3299
|
const query: Record<string, unknown> = {}
|
|
2469
3300
|
const headers: Record<string, string> = {}
|
|
2470
3301
|
const body: Record<string, unknown> = {}
|
|
3302
|
+
let disableCache: boolean | undefined
|
|
3303
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3304
|
+
const argCacheBuster = args._t
|
|
3305
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2471
3306
|
const argFrom = args.from
|
|
2472
3307
|
if (argFrom !== undefined) body["from"] = argFrom
|
|
2473
3308
|
const argOptions = args.options
|
|
@@ -2484,6 +3319,7 @@ export class TextApi {
|
|
|
2484
3319
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2485
3320
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2486
3321
|
'json',
|
|
3322
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2487
3323
|
) as PostTextConvertResponse
|
|
2488
3324
|
}
|
|
2489
3325
|
|
|
@@ -2493,6 +3329,10 @@ export class TextApi {
|
|
|
2493
3329
|
const query: Record<string, unknown> = {}
|
|
2494
3330
|
const headers: Record<string, string> = {}
|
|
2495
3331
|
const body: Record<string, unknown> = {}
|
|
3332
|
+
let disableCache: boolean | undefined
|
|
3333
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3334
|
+
const argCacheBuster = args._t
|
|
3335
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2496
3336
|
const argText = args.text
|
|
2497
3337
|
if (argText !== undefined) body["text"] = argText
|
|
2498
3338
|
let requestPath = '/api/v1/text/md5'
|
|
@@ -2503,6 +3343,7 @@ export class TextApi {
|
|
|
2503
3343
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2504
3344
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2505
3345
|
'json',
|
|
3346
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2506
3347
|
) as PostTextMd5Response
|
|
2507
3348
|
}
|
|
2508
3349
|
|
|
@@ -2512,6 +3353,10 @@ export class TextApi {
|
|
|
2512
3353
|
const query: Record<string, unknown> = {}
|
|
2513
3354
|
const headers: Record<string, string> = {}
|
|
2514
3355
|
const body: Record<string, unknown> = {}
|
|
3356
|
+
let disableCache: boolean | undefined
|
|
3357
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3358
|
+
const argCacheBuster = args._t
|
|
3359
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2515
3360
|
const argHash = args.hash
|
|
2516
3361
|
if (argHash !== undefined) body["hash"] = argHash
|
|
2517
3362
|
const argText = args.text
|
|
@@ -2524,6 +3369,7 @@ export class TextApi {
|
|
|
2524
3369
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2525
3370
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2526
3371
|
'json',
|
|
3372
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2527
3373
|
) as PostTextMd5VerifyResponse
|
|
2528
3374
|
}
|
|
2529
3375
|
}
|
|
@@ -2536,6 +3382,7 @@ export class TranslateApi {
|
|
|
2536
3382
|
const query: Record<string, unknown> = {}
|
|
2537
3383
|
const headers: Record<string, string> = {}
|
|
2538
3384
|
const body: Record<string, unknown> = {}
|
|
3385
|
+
let disableCache: boolean | undefined
|
|
2539
3386
|
let requestPath = '/api/v1/ai/translate/languages'
|
|
2540
3387
|
return await this.c._request(
|
|
2541
3388
|
'GET',
|
|
@@ -2544,6 +3391,7 @@ export class TranslateApi {
|
|
|
2544
3391
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2545
3392
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2546
3393
|
'json',
|
|
3394
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2547
3395
|
) as GetAiTranslateLanguagesResponse
|
|
2548
3396
|
}
|
|
2549
3397
|
|
|
@@ -2553,6 +3401,10 @@ export class TranslateApi {
|
|
|
2553
3401
|
const query: Record<string, unknown> = {}
|
|
2554
3402
|
const headers: Record<string, string> = {}
|
|
2555
3403
|
const body: Record<string, unknown> = {}
|
|
3404
|
+
let disableCache: boolean | undefined
|
|
3405
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3406
|
+
const argCacheBuster = args._t
|
|
3407
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2556
3408
|
const argTargetLang = args.targetLang ?? args["target_lang"]
|
|
2557
3409
|
if (argTargetLang !== undefined) query["target_lang"] = argTargetLang
|
|
2558
3410
|
const argContext = args.context
|
|
@@ -2573,6 +3425,7 @@ export class TranslateApi {
|
|
|
2573
3425
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2574
3426
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2575
3427
|
'json',
|
|
3428
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2576
3429
|
) as PostAiTranslateResponse
|
|
2577
3430
|
}
|
|
2578
3431
|
|
|
@@ -2582,6 +3435,10 @@ export class TranslateApi {
|
|
|
2582
3435
|
const query: Record<string, unknown> = {}
|
|
2583
3436
|
const headers: Record<string, string> = {}
|
|
2584
3437
|
const body: Record<string, unknown> = {}
|
|
3438
|
+
let disableCache: boolean | undefined
|
|
3439
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3440
|
+
const argCacheBuster = args._t
|
|
3441
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2585
3442
|
const argFromLang = args.fromLang ?? args["from_lang"]
|
|
2586
3443
|
if (argFromLang !== undefined) body["from_lang"] = argFromLang
|
|
2587
3444
|
const argQuery = args.query
|
|
@@ -2598,6 +3455,7 @@ export class TranslateApi {
|
|
|
2598
3455
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2599
3456
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2600
3457
|
'json',
|
|
3458
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2601
3459
|
) as PostTranslateStreamResponse
|
|
2602
3460
|
}
|
|
2603
3461
|
|
|
@@ -2607,6 +3465,10 @@ export class TranslateApi {
|
|
|
2607
3465
|
const query: Record<string, unknown> = {}
|
|
2608
3466
|
const headers: Record<string, string> = {}
|
|
2609
3467
|
const body: Record<string, unknown> = {}
|
|
3468
|
+
let disableCache: boolean | undefined
|
|
3469
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3470
|
+
const argCacheBuster = args._t
|
|
3471
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2610
3472
|
const argToLang = args.toLang ?? args["to_lang"]
|
|
2611
3473
|
if (argToLang !== undefined) query["to_lang"] = argToLang
|
|
2612
3474
|
const argText = args.text
|
|
@@ -2619,6 +3481,7 @@ export class TranslateApi {
|
|
|
2619
3481
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2620
3482
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2621
3483
|
'json',
|
|
3484
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2622
3485
|
) as PostTranslateTextResponse
|
|
2623
3486
|
}
|
|
2624
3487
|
}
|
|
@@ -2631,6 +3494,10 @@ export class WebparseApi {
|
|
|
2631
3494
|
const query: Record<string, unknown> = {}
|
|
2632
3495
|
const headers: Record<string, string> = {}
|
|
2633
3496
|
const body: Record<string, unknown> = {}
|
|
3497
|
+
let disableCache: boolean | undefined
|
|
3498
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3499
|
+
const argCacheBuster = args._t
|
|
3500
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2634
3501
|
const argTaskId = args.taskId ?? args["task_id"]
|
|
2635
3502
|
let requestPath = '/api/v1/web/tomarkdown/async/{task_id}'
|
|
2636
3503
|
if (argTaskId !== undefined) requestPath = requestPath.replace('{'+ 'task_id' +'}', String(argTaskId))
|
|
@@ -2641,6 +3508,7 @@ export class WebparseApi {
|
|
|
2641
3508
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2642
3509
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2643
3510
|
'json',
|
|
3511
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2644
3512
|
) as GetWebTomarkdownAsyncStatusResponse
|
|
2645
3513
|
}
|
|
2646
3514
|
|
|
@@ -2650,6 +3518,10 @@ export class WebparseApi {
|
|
|
2650
3518
|
const query: Record<string, unknown> = {}
|
|
2651
3519
|
const headers: Record<string, string> = {}
|
|
2652
3520
|
const body: Record<string, unknown> = {}
|
|
3521
|
+
let disableCache: boolean | undefined
|
|
3522
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3523
|
+
const argCacheBuster = args._t
|
|
3524
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2653
3525
|
const argUrl = args.url
|
|
2654
3526
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
2655
3527
|
let requestPath = '/api/v1/webparse/extractimages'
|
|
@@ -2660,6 +3532,7 @@ export class WebparseApi {
|
|
|
2660
3532
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2661
3533
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2662
3534
|
'json',
|
|
3535
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2663
3536
|
) as GetWebparseExtractimagesResponse
|
|
2664
3537
|
}
|
|
2665
3538
|
|
|
@@ -2669,6 +3542,10 @@ export class WebparseApi {
|
|
|
2669
3542
|
const query: Record<string, unknown> = {}
|
|
2670
3543
|
const headers: Record<string, string> = {}
|
|
2671
3544
|
const body: Record<string, unknown> = {}
|
|
3545
|
+
let disableCache: boolean | undefined
|
|
3546
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3547
|
+
const argCacheBuster = args._t
|
|
3548
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2672
3549
|
const argUrl = args.url
|
|
2673
3550
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
2674
3551
|
let requestPath = '/api/v1/webparse/metadata'
|
|
@@ -2679,6 +3556,7 @@ export class WebparseApi {
|
|
|
2679
3556
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2680
3557
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2681
3558
|
'json',
|
|
3559
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2682
3560
|
) as GetWebparseMetadataResponse
|
|
2683
3561
|
}
|
|
2684
3562
|
|
|
@@ -2688,6 +3566,10 @@ export class WebparseApi {
|
|
|
2688
3566
|
const query: Record<string, unknown> = {}
|
|
2689
3567
|
const headers: Record<string, string> = {}
|
|
2690
3568
|
const body: Record<string, unknown> = {}
|
|
3569
|
+
let disableCache: boolean | undefined
|
|
3570
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3571
|
+
const argCacheBuster = args._t
|
|
3572
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2691
3573
|
const argUrl = args.url
|
|
2692
3574
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
2693
3575
|
let requestPath = '/api/v1/web/tomarkdown/async'
|
|
@@ -2698,6 +3580,7 @@ export class WebparseApi {
|
|
|
2698
3580
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2699
3581
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2700
3582
|
'json',
|
|
3583
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2701
3584
|
) as PostWebTomarkdownAsyncResponse
|
|
2702
3585
|
}
|
|
2703
3586
|
}
|
|
@@ -2710,6 +3593,10 @@ export class MinGanCiShiBieApi {
|
|
|
2710
3593
|
const query: Record<string, unknown> = {}
|
|
2711
3594
|
const headers: Record<string, string> = {}
|
|
2712
3595
|
const body: Record<string, unknown> = {}
|
|
3596
|
+
let disableCache: boolean | undefined
|
|
3597
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3598
|
+
const argCacheBuster = args._t
|
|
3599
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2713
3600
|
const argKeyword = args.keyword
|
|
2714
3601
|
if (argKeyword !== undefined) query["keyword"] = argKeyword
|
|
2715
3602
|
let requestPath = '/api/v1/sensitive-word/analyze-query'
|
|
@@ -2720,6 +3607,7 @@ export class MinGanCiShiBieApi {
|
|
|
2720
3607
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2721
3608
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2722
3609
|
'json',
|
|
3610
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2723
3611
|
) as GetSensitiveWordAnalyzeQueryResponse
|
|
2724
3612
|
}
|
|
2725
3613
|
|
|
@@ -2729,6 +3617,10 @@ export class MinGanCiShiBieApi {
|
|
|
2729
3617
|
const query: Record<string, unknown> = {}
|
|
2730
3618
|
const headers: Record<string, string> = {}
|
|
2731
3619
|
const body: Record<string, unknown> = {}
|
|
3620
|
+
let disableCache: boolean | undefined
|
|
3621
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3622
|
+
const argCacheBuster = args._t
|
|
3623
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2732
3624
|
const argKeywords = args.keywords
|
|
2733
3625
|
if (argKeywords !== undefined) body["keywords"] = argKeywords
|
|
2734
3626
|
let requestPath = '/api/v1/sensitive-word/analyze'
|
|
@@ -2739,6 +3631,7 @@ export class MinGanCiShiBieApi {
|
|
|
2739
3631
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2740
3632
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2741
3633
|
'json',
|
|
3634
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2742
3635
|
) as PostSensitiveWordAnalyzeResponse
|
|
2743
3636
|
}
|
|
2744
3637
|
|
|
@@ -2748,6 +3641,10 @@ export class MinGanCiShiBieApi {
|
|
|
2748
3641
|
const query: Record<string, unknown> = {}
|
|
2749
3642
|
const headers: Record<string, string> = {}
|
|
2750
3643
|
const body: Record<string, unknown> = {}
|
|
3644
|
+
let disableCache: boolean | undefined
|
|
3645
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3646
|
+
const argCacheBuster = args._t
|
|
3647
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2751
3648
|
const argText = args.text
|
|
2752
3649
|
if (argText !== undefined) body["text"] = argText
|
|
2753
3650
|
let requestPath = '/api/v1/text/profanitycheck'
|
|
@@ -2758,6 +3655,7 @@ export class MinGanCiShiBieApi {
|
|
|
2758
3655
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2759
3656
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2760
3657
|
'json',
|
|
3658
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2761
3659
|
) as PostSensitiveWordQuickCheckResponse
|
|
2762
3660
|
}
|
|
2763
3661
|
}
|
|
@@ -2770,6 +3668,7 @@ export class ZhiNengSouSuoApi {
|
|
|
2770
3668
|
const query: Record<string, unknown> = {}
|
|
2771
3669
|
const headers: Record<string, string> = {}
|
|
2772
3670
|
const body: Record<string, unknown> = {}
|
|
3671
|
+
let disableCache: boolean | undefined
|
|
2773
3672
|
let requestPath = '/api/v1/search/engines'
|
|
2774
3673
|
return await this.c._request(
|
|
2775
3674
|
'GET',
|
|
@@ -2778,6 +3677,7 @@ export class ZhiNengSouSuoApi {
|
|
|
2778
3677
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2779
3678
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2780
3679
|
'json',
|
|
3680
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2781
3681
|
) as GetSearchEnginesResponse
|
|
2782
3682
|
}
|
|
2783
3683
|
|
|
@@ -2787,6 +3687,10 @@ export class ZhiNengSouSuoApi {
|
|
|
2787
3687
|
const query: Record<string, unknown> = {}
|
|
2788
3688
|
const headers: Record<string, string> = {}
|
|
2789
3689
|
const body: Record<string, unknown> = {}
|
|
3690
|
+
let disableCache: boolean | undefined
|
|
3691
|
+
disableCache = args.disableCache ?? args["disable_cache"]
|
|
3692
|
+
const argCacheBuster = args._t
|
|
3693
|
+
if (argCacheBuster !== undefined) query["_t"] = argCacheBuster
|
|
2790
3694
|
const argFetchFull = args.fetchFull ?? args["fetch_full"]
|
|
2791
3695
|
if (argFetchFull !== undefined) body["fetch_full"] = argFetchFull
|
|
2792
3696
|
const argFiletype = args.filetype
|
|
@@ -2809,6 +3713,7 @@ export class ZhiNengSouSuoApi {
|
|
|
2809
3713
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2810
3714
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2811
3715
|
'json',
|
|
3716
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2812
3717
|
) as PostSearchAggregateResponse
|
|
2813
3718
|
}
|
|
2814
3719
|
}
|