uapi-browser-sdk 0.1.14 → 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 +1 -60
- package/dist/src/errors.d.ts +0 -16
- package/dist/src/errors.js +0 -22
- package/dist/src/index.d.ts +471 -2
- package/dist/src/index.js +504 -91
- package/package.json +1 -1
- package/src/errors.ts +0 -39
- package/src/index.ts +901 -4
package/src/index.ts
CHANGED
|
@@ -3,6 +3,12 @@ import { UapiError, type ResponseMeta, extractMetaFromHeaders, mapError } from '
|
|
|
3
3
|
export { UapiError, mapError, extractMetaFromHeaders } from './errors.js'
|
|
4
4
|
export type { RateLimitPolicyEntry, RateLimitStateEntry, ResponseMeta } from './errors.js'
|
|
5
5
|
|
|
6
|
+
export interface UapiClientOptions {
|
|
7
|
+
disableCache?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type RequestOptions = { disableCache?: boolean }
|
|
11
|
+
|
|
6
12
|
const API_PREFIX = '/api/v1'
|
|
7
13
|
|
|
8
14
|
function normalizeBaseURL(baseURL: string): string {
|
|
@@ -10,15 +16,48 @@ function normalizeBaseURL(baseURL: string): string {
|
|
|
10
16
|
return trimmed.endsWith(API_PREFIX) ? trimmed.slice(0, -API_PREFIX.length) : trimmed
|
|
11
17
|
}
|
|
12
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
|
+
}
|
|
13
40
|
export type GetClipzyGetResponse =
|
|
14
41
|
Internal.GetClipzyGet200Response
|
|
15
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;
|
|
16
49
|
/** 片段的唯一 ID。 */
|
|
17
50
|
id: string;
|
|
18
51
|
}
|
|
19
52
|
export type GetClipzyRawResponse =
|
|
20
53
|
string
|
|
21
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;
|
|
22
61
|
/** 片段的唯一 ID。 */
|
|
23
62
|
id: string;
|
|
24
63
|
/** 用于解密的 Base64 编码的 AES 密钥。 */
|
|
@@ -27,6 +66,12 @@ export interface GetClipzyRawArgs {
|
|
|
27
66
|
export type PostClipzyStoreResponse =
|
|
28
67
|
Internal.PostClipzyStore200Response
|
|
29
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;
|
|
30
75
|
/** 必需:经过加密和 LZString 压缩后的 Base64 字符串。请参考文档首页的JS代码示例。 */
|
|
31
76
|
compressedData: string;
|
|
32
77
|
/** 可选:片段的留存时间(秒)。正数表示秒数(最大约30天),-1 表示永久存储。默认为 3600。 */
|
|
@@ -35,12 +80,24 @@ export interface PostClipzyStoreArgs {
|
|
|
35
80
|
export type GetConvertUnixtimeResponse =
|
|
36
81
|
Internal.GetConvertUnixtime200Response
|
|
37
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;
|
|
38
89
|
/** 一个智能时间参数,可传入Unix时间戳(10位或13位)或标准日期字符串(如 '2023-10-27 10:30:00'),系统将自动识别并转换。 */
|
|
39
90
|
time: string;
|
|
40
91
|
}
|
|
41
92
|
export type PostConvertJsonResponse =
|
|
42
93
|
Internal.PostConvertJson200Response
|
|
43
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;
|
|
44
101
|
/** 需要被格式化的原始JSON字符串。 */
|
|
45
102
|
content: string;
|
|
46
103
|
}
|
|
@@ -51,6 +108,12 @@ export type GetGameEpicFreeResponse =
|
|
|
51
108
|
export type GetGameMinecraftHistoryidResponse =
|
|
52
109
|
Internal.GetGameMinecraftHistoryid200Response
|
|
53
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;
|
|
54
117
|
/** 玩家的 Minecraft 用户名。使用此参数查询时,会返回所有匹配用户的列表(包括当前用户名或曾用名匹配的玩家)。 */
|
|
55
118
|
name?: string;
|
|
56
119
|
/** 玩家的 Minecraft UUID,支持带连字符或不带连字符格式。 */
|
|
@@ -59,18 +122,36 @@ export interface GetGameMinecraftHistoryidArgs {
|
|
|
59
122
|
export type GetGameMinecraftServerstatusResponse =
|
|
60
123
|
Internal.GetGameMinecraftServerstatus200Response
|
|
61
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;
|
|
62
131
|
/** Minecraft服务器的地址,可以是域名(如 `hypixel.net`)或 `IP:端口` 的形式(如 `mc.example.com:25565`)。如果省略端口,将默认使用 `25565`。 */
|
|
63
132
|
server: string;
|
|
64
133
|
}
|
|
65
134
|
export type GetGameMinecraftUserinfoResponse =
|
|
66
135
|
Internal.GetGameMinecraftUserinfo200Response
|
|
67
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;
|
|
68
143
|
/** 玩家的 Minecraft 游戏内名称(正版ID)。 */
|
|
69
144
|
username: string;
|
|
70
145
|
}
|
|
71
146
|
export type GetGameSteamSummaryResponse =
|
|
72
147
|
Internal.GetGameSteamSummary200Response
|
|
73
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;
|
|
74
155
|
/** 用户的 Steam 标识。可以是以下任意一种格式:
|
|
75
156
|
- 纯数字的 **SteamID64**
|
|
76
157
|
- 用户的 **自定义 URL 名称** (Vanity URL)
|
|
@@ -87,6 +168,12 @@ export interface GetGameSteamSummaryArgs {
|
|
|
87
168
|
export type GetAvatarGravatarResponse =
|
|
88
169
|
ArrayBuffer
|
|
89
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;
|
|
90
177
|
/** 用户的 Email 地址。如果未提供 `hash` 参数,则此参数为必需。 */
|
|
91
178
|
email?: string;
|
|
92
179
|
/** 用户 Email 地址的小写 MD5 哈希值。如果提供此参数,将忽略 `email` 参数。 */
|
|
@@ -103,6 +190,12 @@ export type GetImageBingDailyResponse =
|
|
|
103
190
|
export type GetImageMotouResponse =
|
|
104
191
|
ArrayBuffer
|
|
105
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;
|
|
106
199
|
/** 你想要摸头的对象的QQ号码。 */
|
|
107
200
|
qq: string;
|
|
108
201
|
/** GIF的背景颜色。留空则由后端服务决定默认值。 */
|
|
@@ -113,6 +206,12 @@ export interface GetImageMotouArgs {
|
|
|
113
206
|
export type GetImageQrcodeResponse =
|
|
114
207
|
Internal.GetImageQrcode200Response
|
|
115
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;
|
|
116
215
|
/** 你希望编码到二维码中的任何文本内容,比如一个URL、一段话或者一个JSON字符串。 */
|
|
117
216
|
text: string;
|
|
118
217
|
/** 二维码图片的边长(正方形),单位是像素。有效范围是 256 到 2048 之间。 */
|
|
@@ -129,12 +228,24 @@ export interface GetImageQrcodeArgs {
|
|
|
129
228
|
export type GetImageTobase64Response =
|
|
130
229
|
Internal.GetImageTobase64200Response
|
|
131
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;
|
|
132
237
|
/** 需要转换为Base64的、可公开访问的图片URL地址。 */
|
|
133
238
|
url: string;
|
|
134
239
|
}
|
|
135
240
|
export type PostImageCompressResponse =
|
|
136
241
|
ArrayBuffer
|
|
137
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;
|
|
138
249
|
/** 压缩强度 (1-5),默认为 3。数字越小,压缩率越高。 */
|
|
139
250
|
level?: number;
|
|
140
251
|
/** 输出图片格式,可以是 'png' 或 'jpeg'。 */
|
|
@@ -145,12 +256,24 @@ export interface PostImageCompressArgs {
|
|
|
145
256
|
export type PostImageFrombase64Response =
|
|
146
257
|
Internal.PostImageFrombase64200Response
|
|
147
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;
|
|
148
265
|
/** 图片的Base64 Data URI,必须包含MIME类型头。例如:`data:image/png;base64,...` */
|
|
149
266
|
imageData: string;
|
|
150
267
|
}
|
|
151
268
|
export type PostImageMotouResponse =
|
|
152
269
|
ArrayBuffer
|
|
153
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;
|
|
154
277
|
/** GIF的背景颜色。可选值为 'white', 'black', 'transparent'。 */
|
|
155
278
|
bgColor?: string;
|
|
156
279
|
/** Same as `bgColor`. Kept for compatibility. */
|
|
@@ -165,6 +288,12 @@ export interface PostImageMotouArgs {
|
|
|
165
288
|
export type PostImageNsfwResponse =
|
|
166
289
|
Internal.PostImageNsfw200Response
|
|
167
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;
|
|
168
297
|
/** 要检测的图片文件。支持 JPG、JPEG、PNG、GIF、WebP 格式,最大 20MB。 */
|
|
169
298
|
file?: string;
|
|
170
299
|
/** 图片的 URL 地址。如果同时提供 file 和 url,将优先使用 file。 */
|
|
@@ -173,6 +302,12 @@ export interface PostImageNsfwArgs {
|
|
|
173
302
|
export type PostImageSpeechlessResponse =
|
|
174
303
|
ArrayBuffer
|
|
175
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;
|
|
176
311
|
/** 表情包下方的文字内容。求求你_______ */
|
|
177
312
|
bottomText?: string;
|
|
178
313
|
/** Same as `bottomText`. Kept for compatibility. */
|
|
@@ -185,6 +320,12 @@ export interface PostImageSpeechlessArgs {
|
|
|
185
320
|
export type PostImageSvgResponse =
|
|
186
321
|
ArrayBuffer
|
|
187
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;
|
|
188
329
|
/** 输出图像的目标格式。支持的值:`png`, `jpeg`, `jpg`, `gif`, `tiff`, `bmp`。 */
|
|
189
330
|
format?: string;
|
|
190
331
|
/** 输出图像的宽度(像素)。如果省略,将根据 `height` 保持宽高比,或者使用 SVG 的原始宽度。 */
|
|
@@ -199,6 +340,12 @@ export interface PostImageSvgArgs {
|
|
|
199
340
|
export type GetHistoryProgrammerResponse =
|
|
200
341
|
Internal.GetHistoryProgrammer200Response
|
|
201
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;
|
|
202
349
|
/** 月份,1-12之间的整数。 */
|
|
203
350
|
month: number;
|
|
204
351
|
/** 日期,1-31之间的整数。 */
|
|
@@ -209,6 +356,12 @@ export type GetHistoryProgrammerTodayResponse =
|
|
|
209
356
|
export type GetMiscDistrictResponse =
|
|
210
357
|
Internal.GetMiscDistrict200Response
|
|
211
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;
|
|
212
365
|
/** 关键词搜索(城市名、区县名,支持中英文)。 */
|
|
213
366
|
keywords?: string;
|
|
214
367
|
/** 中国行政区划代码精确查询(如 `110000`),同时返回下级行政区。 */
|
|
@@ -227,6 +380,12 @@ export interface GetMiscDistrictArgs {
|
|
|
227
380
|
export type GetMiscHolidayCalendarResponse =
|
|
228
381
|
Internal.GetMiscHolidayCalendar200Response
|
|
229
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;
|
|
230
389
|
/** 按天查询时填写这个参数,例如查某一天。格式:`YYYY-MM-DD`。和 `month`、`year` 三选一。 */
|
|
231
390
|
date?: string;
|
|
232
391
|
/** 按月查询时填写这个参数,例如查某个月。格式:`YYYY-MM`。和 `date`、`year` 三选一。 */
|
|
@@ -251,6 +410,12 @@ export interface GetMiscHolidayCalendarArgs {
|
|
|
251
410
|
export type GetMiscHotboardResponse =
|
|
252
411
|
Internal.GetMiscHotboard200Response
|
|
253
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;
|
|
254
419
|
/** 你想要查询的热榜平台。请从[支持的平台列表](#enum-list)中选择。 */
|
|
255
420
|
type: string;
|
|
256
421
|
/** 时光机模式:毫秒时间戳,返回最接近该时间的热榜快照。不传则返回当前实时热榜。 */
|
|
@@ -273,6 +438,12 @@ export interface GetMiscHotboardArgs {
|
|
|
273
438
|
export type GetMiscLunartimeResponse =
|
|
274
439
|
Internal.GetMiscLunartime200Response
|
|
275
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;
|
|
276
447
|
/** Unix 时间戳,支持 10 位秒级或 13 位毫秒级。不传则默认当前时间。 */
|
|
277
448
|
ts?: string;
|
|
278
449
|
/** 时区名称。支持 IANA 时区(如 Asia/Shanghai)和别名(Shanghai、Beijing)。默认 Asia/Shanghai。 */
|
|
@@ -281,12 +452,24 @@ export interface GetMiscLunartimeArgs {
|
|
|
281
452
|
export type GetMiscPhoneinfoResponse =
|
|
282
453
|
Internal.GetMiscPhoneinfo200Response
|
|
283
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;
|
|
284
461
|
/** 需要查询的11位中国大陆手机号码。 */
|
|
285
462
|
phone: string;
|
|
286
463
|
}
|
|
287
464
|
export type GetMiscRandomnumberResponse =
|
|
288
465
|
Internal.GetMiscRandomnumber200Response
|
|
289
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;
|
|
290
473
|
/** 生成随机数的最小值(包含)。 */
|
|
291
474
|
min?: number;
|
|
292
475
|
/** 生成随机数的最大值(包含)。 */
|
|
@@ -309,6 +492,12 @@ export interface GetMiscRandomnumberArgs {
|
|
|
309
492
|
export type GetMiscTimestampResponse =
|
|
310
493
|
Internal.GetMiscTimestamp200Response
|
|
311
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;
|
|
312
501
|
/** 需要转换的Unix时间戳,支持10位(秒)或13位(毫秒)。 */
|
|
313
502
|
ts: string;
|
|
314
503
|
}
|
|
@@ -317,6 +506,12 @@ export type GetMiscTrackingCarriersResponse =
|
|
|
317
506
|
export type GetMiscTrackingDetectResponse =
|
|
318
507
|
Internal.GetMiscTrackingDetect200Response
|
|
319
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;
|
|
320
515
|
/** 需要识别的快递单号。 */
|
|
321
516
|
trackingNumber: string;
|
|
322
517
|
/** Same as `trackingNumber`. Kept for compatibility. */
|
|
@@ -325,6 +520,12 @@ export interface GetMiscTrackingDetectArgs {
|
|
|
325
520
|
export type GetMiscTrackingQueryResponse =
|
|
326
521
|
Internal.GetMiscTrackingQuery200Response
|
|
327
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;
|
|
328
529
|
/** 快递单号,通常是一串10-20位的数字或字母数字组合。 */
|
|
329
530
|
trackingNumber: string;
|
|
330
531
|
/** Same as `trackingNumber`. Kept for compatibility. */
|
|
@@ -339,6 +540,12 @@ export interface GetMiscTrackingQueryArgs {
|
|
|
339
540
|
export type GetMiscWeatherResponse =
|
|
340
541
|
Internal.GetMiscWeather200Response
|
|
341
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;
|
|
342
549
|
/** 城市名称,支持中文(`北京`)和英文(`Tokyo`)。可选参数,不传时会尝试 IP 自动定位。 */
|
|
343
550
|
city?: string;
|
|
344
551
|
/** 城市行政区划代码(如 `110000`),优先级高于 city。可选参数,不传时会尝试 IP 自动定位。 */
|
|
@@ -359,12 +566,24 @@ export interface GetMiscWeatherArgs {
|
|
|
359
566
|
export type GetMiscWorldtimeResponse =
|
|
360
567
|
Internal.GetMiscWorldtime200Response
|
|
361
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;
|
|
362
575
|
/** 你需要查询的城市或地区,请使用标准的 IANA 时区数据库名称,例如 'Shanghai', 'Asia/Tokyo', 'America/New_York'。 */
|
|
363
576
|
city: string;
|
|
364
577
|
}
|
|
365
578
|
export type PostMiscDateDiffResponse =
|
|
366
579
|
Internal.PostMiscDateDiff200Response
|
|
367
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;
|
|
368
587
|
/** 结束日期,支持多种格式自动识别 */
|
|
369
588
|
endDate: string;
|
|
370
589
|
/** Same as `endDate`. Kept for compatibility. */
|
|
@@ -379,6 +598,12 @@ export interface PostMiscDateDiffArgs {
|
|
|
379
598
|
export type GetNetworkDnsResponse =
|
|
380
599
|
Internal.GetNetworkDns200Response
|
|
381
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;
|
|
382
607
|
/** 你需要查询的域名,例如 'cn.bing.com'。 */
|
|
383
608
|
domain: string;
|
|
384
609
|
/** 你想要查询的DNS记录类型。 */
|
|
@@ -387,12 +612,24 @@ export interface GetNetworkDnsArgs {
|
|
|
387
612
|
export type GetNetworkIcpResponse =
|
|
388
613
|
Internal.GetNetworkIcp200Response
|
|
389
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;
|
|
390
621
|
/** 需要查询的域名或URL */
|
|
391
622
|
domain: string;
|
|
392
623
|
}
|
|
393
624
|
export type GetNetworkIpinfoResponse =
|
|
394
625
|
Internal.GetNetworkIpinfo200Response
|
|
395
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;
|
|
396
633
|
/** 你需要查询的公网IP地址或域名(支持IPv4和IPv6)。 */
|
|
397
634
|
ip: string;
|
|
398
635
|
/** 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */
|
|
@@ -401,12 +638,24 @@ export interface GetNetworkIpinfoArgs {
|
|
|
401
638
|
export type GetNetworkMyipResponse =
|
|
402
639
|
Internal.GetNetworkMyip200Response
|
|
403
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;
|
|
404
647
|
/** 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */
|
|
405
648
|
source?: string;
|
|
406
649
|
}
|
|
407
650
|
export type GetNetworkPingResponse =
|
|
408
651
|
Internal.GetNetworkPing200Response
|
|
409
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;
|
|
410
659
|
/** 你需要 Ping 的目标主机,可以是域名或IP地址。 */
|
|
411
660
|
host: string;
|
|
412
661
|
}
|
|
@@ -415,6 +664,12 @@ export type GetNetworkPingmyipResponse =
|
|
|
415
664
|
export type GetNetworkPortscanResponse =
|
|
416
665
|
Internal.GetNetworkPortscan200Response
|
|
417
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;
|
|
418
673
|
/** 需要扫描的目标主机,可以是域名或IP地址。 */
|
|
419
674
|
host: string;
|
|
420
675
|
/** 需要扫描的端口号,范围是 1 到 65535。 */
|
|
@@ -425,12 +680,24 @@ export interface GetNetworkPortscanArgs {
|
|
|
425
680
|
export type GetNetworkUrlstatusResponse =
|
|
426
681
|
Internal.GetNetworkUrlstatus200Response
|
|
427
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;
|
|
428
689
|
/** 你需要检查其可访问性状态的完整URL。 */
|
|
429
690
|
url: string;
|
|
430
691
|
}
|
|
431
692
|
export type GetNetworkWhoisResponse =
|
|
432
693
|
Internal.GetNetworkWhois200Response
|
|
433
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;
|
|
434
701
|
/** 你需要查询WHOIS信息的域名。 */
|
|
435
702
|
domain: string;
|
|
436
703
|
/** 返回格式。留空或为 'text' 时返回原始WHOIS文本,设为 'json' 时返回结构化JSON。 */
|
|
@@ -439,6 +706,12 @@ export interface GetNetworkWhoisArgs {
|
|
|
439
706
|
export type GetNetworkWxdomainResponse =
|
|
440
707
|
Internal.GetNetworkWxdomain200Response
|
|
441
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;
|
|
442
715
|
/** 需要查询的域名。 */
|
|
443
716
|
domain: string;
|
|
444
717
|
}
|
|
@@ -447,12 +720,24 @@ export type GetSayingResponse =
|
|
|
447
720
|
export type GetAnswerbookAskResponse =
|
|
448
721
|
Internal.GetAnswerbookAsk200Response
|
|
449
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;
|
|
450
729
|
/** 你想要提问的问题。问题不能为空。 */
|
|
451
730
|
question: string;
|
|
452
731
|
}
|
|
453
732
|
export type GetRandomImageResponse =
|
|
454
733
|
ArrayBuffer
|
|
455
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;
|
|
456
741
|
/** (可选)指定图片主类别。
|
|
457
742
|
|
|
458
743
|
**支持的主类别:**
|
|
@@ -484,6 +769,12 @@ export interface GetRandomImageArgs {
|
|
|
484
769
|
export type GetRandomStringResponse =
|
|
485
770
|
Internal.GetRandomString200Response
|
|
486
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;
|
|
487
778
|
/** 你希望生成的字符串的长度。有效范围是 1 到 1024。 */
|
|
488
779
|
length?: number;
|
|
489
780
|
/** 指定构成字符串的字符类型。 */
|
|
@@ -492,18 +783,36 @@ export interface GetRandomStringArgs {
|
|
|
492
783
|
export type PostAnswerbookAskResponse =
|
|
493
784
|
Internal.PostAnswerbookAsk200Response
|
|
494
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;
|
|
495
792
|
/** 你想要提问的问题 */
|
|
496
793
|
question: string;
|
|
497
794
|
}
|
|
498
795
|
export type GetGithubRepoResponse =
|
|
499
796
|
Internal.GetGithubRepo200Response
|
|
500
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;
|
|
501
804
|
/** 目标仓库的标识,格式为 `owner/repo`。 */
|
|
502
805
|
repo: string;
|
|
503
806
|
}
|
|
504
807
|
export type GetSocialBilibiliArchivesResponse =
|
|
505
808
|
Internal.GetSocialBilibiliArchives200Response
|
|
506
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;
|
|
507
816
|
/** B站用户的mid(用户ID) */
|
|
508
817
|
mid: string;
|
|
509
818
|
/** 搜索关键词,可为空 */
|
|
@@ -518,6 +827,12 @@ export interface GetSocialBilibiliArchivesArgs {
|
|
|
518
827
|
export type GetSocialBilibiliLiveroomResponse =
|
|
519
828
|
Internal.GetSocialBilibiliLiveroom200Response
|
|
520
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;
|
|
521
836
|
/** 主播的用户ID (`mid`)。与 `room_id` 任选其一。 */
|
|
522
837
|
mid?: string;
|
|
523
838
|
/** 直播间ID,可以是长号(真实ID)或短号(靓号)。与 `mid` 任选其一。 */
|
|
@@ -528,6 +843,12 @@ export interface GetSocialBilibiliLiveroomArgs {
|
|
|
528
843
|
export type GetSocialBilibiliRepliesResponse =
|
|
529
844
|
Internal.GetSocialBilibiliReplies200Response
|
|
530
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;
|
|
531
852
|
/** 目标评论区的ID。对于视频,这通常就是它的 `aid`。 */
|
|
532
853
|
oid: string;
|
|
533
854
|
/** 排序方式。支持 `0/time`(按时间)、`1/like`(按点赞)、`2/reply`(按回复数)、`3/hot/hottest/最热`(按最热)。默认为 `0/time`。 */
|
|
@@ -540,12 +861,24 @@ export interface GetSocialBilibiliRepliesArgs {
|
|
|
540
861
|
export type GetSocialBilibiliUserinfoResponse =
|
|
541
862
|
Internal.GetSocialBilibiliUserinfo200Response
|
|
542
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;
|
|
543
870
|
/** Bilibili用户的UID */
|
|
544
871
|
uid: string;
|
|
545
872
|
}
|
|
546
873
|
export type GetSocialBilibiliVideoinfoResponse =
|
|
547
874
|
Internal.GetSocialBilibiliVideoinfo200Response
|
|
548
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;
|
|
549
882
|
/** 视频的AV号 (aid),纯数字格式。`aid`和`bvid`任选其一即可。 */
|
|
550
883
|
aid?: string;
|
|
551
884
|
/** 视频的BV号 (bvid),例如 `BV117411r7R1`。`aid`和`bvid`任选其一即可。 */
|
|
@@ -554,6 +887,12 @@ export interface GetSocialBilibiliVideoinfoArgs {
|
|
|
554
887
|
export type GetSocialQqGroupinfoResponse =
|
|
555
888
|
Internal.GetSocialQqGroupinfo200Response
|
|
556
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;
|
|
557
896
|
/** QQ群号,长度5-12位 */
|
|
558
897
|
groupId: string;
|
|
559
898
|
/** Same as `groupId`. Kept for compatibility. */
|
|
@@ -562,12 +901,24 @@ export interface GetSocialQqGroupinfoArgs {
|
|
|
562
901
|
export type GetSocialQqUserinfoResponse =
|
|
563
902
|
Internal.GetSocialQqUserinfo200Response
|
|
564
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;
|
|
565
910
|
/** 需要查询的QQ号 */
|
|
566
911
|
qq: string;
|
|
567
912
|
}
|
|
568
913
|
export type GetStatusRatelimitResponse =
|
|
569
914
|
Internal.GetStatusRatelimit200Response
|
|
570
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;
|
|
571
922
|
/** Bearer类型的API密钥认证头。例如:`Bearer sk-xxx` */
|
|
572
923
|
authorization: string;
|
|
573
924
|
/** Same as `authorization`. Kept for compatibility. */
|
|
@@ -576,18 +927,36 @@ export interface GetStatusRatelimitArgs {
|
|
|
576
927
|
export type GetStatusUsageResponse =
|
|
577
928
|
Internal.GetStatusUsage200Response
|
|
578
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;
|
|
579
936
|
/** (可选)如果你想查询某个特定的端点,请提供它的路径,例如 '/api/v1/image/motou'。如果留空,则返回所有端点的统计列表。 */
|
|
580
937
|
path?: string;
|
|
581
938
|
}
|
|
582
939
|
export type GetTextMd5Response =
|
|
583
940
|
Internal.GetTextMd5200Response
|
|
584
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;
|
|
585
948
|
/** 需要计算哈希值的文本 */
|
|
586
949
|
text: string;
|
|
587
950
|
}
|
|
588
951
|
export type PostTextAesDecryptResponse =
|
|
589
952
|
Internal.PostTextAesDecrypt200Response
|
|
590
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;
|
|
591
960
|
/** 密钥,长度必须为16、24或32字节,对应AES-128/192/256。 */
|
|
592
961
|
key: string;
|
|
593
962
|
/** 16字节的IV/Nonce,必须为16个字符 */
|
|
@@ -598,6 +967,12 @@ export interface PostTextAesDecryptArgs {
|
|
|
598
967
|
export type PostTextAesDecryptAdvancedResponse =
|
|
599
968
|
Internal.PostTextAesDecryptAdvanced200Response
|
|
600
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;
|
|
601
976
|
/** 初始化向量(非GCM模式必须提供,Base64编码)。此值来自加密接口返回的iv字段 */
|
|
602
977
|
iv?: string;
|
|
603
978
|
/** 解密密钥(必须与加密时相同) */
|
|
@@ -612,6 +987,12 @@ export interface PostTextAesDecryptAdvancedArgs {
|
|
|
612
987
|
export type PostTextAesEncryptResponse =
|
|
613
988
|
Internal.PostTextAesEncrypt200Response
|
|
614
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;
|
|
615
996
|
/** 密钥长度必须为 16、24 或 32 字节,分别对应 AES-128、AES-192、AES-256。 */
|
|
616
997
|
key: string;
|
|
617
998
|
/** 待加密的明文文本。 */
|
|
@@ -620,6 +1001,12 @@ export interface PostTextAesEncryptArgs {
|
|
|
620
1001
|
export type PostTextAesEncryptAdvancedResponse =
|
|
621
1002
|
Internal.PostTextAesEncryptAdvanced200Response
|
|
622
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;
|
|
623
1010
|
/** 自定义IV(可选,Base64编码,16字节)。GCM模式无需此参数 */
|
|
624
1011
|
iv?: string;
|
|
625
1012
|
/** 加密密钥(支持任意长度) */
|
|
@@ -638,24 +1025,48 @@ export interface PostTextAesEncryptAdvancedArgs {
|
|
|
638
1025
|
export type PostTextAnalyzeResponse =
|
|
639
1026
|
Internal.PostTextAnalyze200Response
|
|
640
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;
|
|
641
1034
|
/** */
|
|
642
1035
|
text: string;
|
|
643
1036
|
}
|
|
644
1037
|
export type PostTextBase64DecodeResponse =
|
|
645
1038
|
Internal.PostTextBase64Decode200Response
|
|
646
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;
|
|
647
1046
|
/** */
|
|
648
1047
|
text: string;
|
|
649
1048
|
}
|
|
650
1049
|
export type PostTextBase64EncodeResponse =
|
|
651
1050
|
Internal.PostTextBase64Encode200Response
|
|
652
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;
|
|
653
1058
|
/** */
|
|
654
1059
|
text: string;
|
|
655
1060
|
}
|
|
656
1061
|
export type PostTextConvertResponse =
|
|
657
1062
|
Internal.PostTextConvert200Response
|
|
658
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;
|
|
659
1070
|
/** 源格式类型 */
|
|
660
1071
|
from: string;
|
|
661
1072
|
/** 可选参数(预留,当前未使用) */
|
|
@@ -668,12 +1079,24 @@ export interface PostTextConvertArgs {
|
|
|
668
1079
|
export type PostTextMd5Response =
|
|
669
1080
|
Internal.GetTextMd5200Response
|
|
670
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;
|
|
671
1088
|
/** 需要计算哈希值的文本 */
|
|
672
1089
|
text: string;
|
|
673
1090
|
}
|
|
674
1091
|
export type PostTextMd5VerifyResponse =
|
|
675
1092
|
Internal.PostTextMd5Verify200Response
|
|
676
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;
|
|
677
1100
|
/** 用于比对的 MD5 哈希值(32 位小写十六进制字符串)。 */
|
|
678
1101
|
hash: string;
|
|
679
1102
|
/** 待校验的原始文本,会先计算其 MD5 再与 hash 进行比对。 */
|
|
@@ -684,6 +1107,12 @@ export type GetAiTranslateLanguagesResponse =
|
|
|
684
1107
|
export type PostAiTranslateResponse =
|
|
685
1108
|
Internal.PostAiTranslate200Response
|
|
686
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;
|
|
687
1116
|
/** 目标语言代码。请从[支持的语言列表](#enum-list)中选择一个语言代码。 */
|
|
688
1117
|
targetLang: string;
|
|
689
1118
|
/** Same as `targetLang`. Kept for compatibility. */
|
|
@@ -706,6 +1135,12 @@ export interface PostAiTranslateArgs {
|
|
|
706
1135
|
export type PostTranslateStreamResponse =
|
|
707
1136
|
string
|
|
708
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;
|
|
709
1144
|
/** 源语言,支持:中文、英文、auto(自动检测)。默认为auto */
|
|
710
1145
|
fromLang?: string;
|
|
711
1146
|
/** Same as `fromLang`. Kept for compatibility. */
|
|
@@ -722,6 +1157,12 @@ export interface PostTranslateStreamArgs {
|
|
|
722
1157
|
export type PostTranslateTextResponse =
|
|
723
1158
|
Internal.PostTranslateText200Response
|
|
724
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;
|
|
725
1166
|
/** 目标语言代码。请从[支持的语言列表](#enum-list)中选择一个语言代码。 */
|
|
726
1167
|
toLang: string;
|
|
727
1168
|
/** Same as `toLang`. Kept for compatibility. */
|
|
@@ -732,6 +1173,12 @@ export interface PostTranslateTextArgs {
|
|
|
732
1173
|
export type GetWebTomarkdownAsyncStatusResponse =
|
|
733
1174
|
Internal.GetWebTomarkdownAsyncStatus200Response
|
|
734
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;
|
|
735
1182
|
/** 任务ID(由提交接口返回) */
|
|
736
1183
|
taskId: string;
|
|
737
1184
|
/** Same as `taskId`. Kept for compatibility. */
|
|
@@ -740,36 +1187,72 @@ export interface GetWebTomarkdownAsyncStatusArgs {
|
|
|
740
1187
|
export type GetWebparseExtractimagesResponse =
|
|
741
1188
|
Internal.GetWebparseExtractimages200Response
|
|
742
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;
|
|
743
1196
|
/** 需要提取图片的网页URL */
|
|
744
1197
|
url: string;
|
|
745
1198
|
}
|
|
746
1199
|
export type GetWebparseMetadataResponse =
|
|
747
1200
|
Internal.GetWebparseMetadata200Response
|
|
748
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;
|
|
749
1208
|
/** 需要提取元数据的网页URL */
|
|
750
1209
|
url: string;
|
|
751
1210
|
}
|
|
752
1211
|
export type PostWebTomarkdownAsyncResponse =
|
|
753
1212
|
Internal.PostWebTomarkdownAsync202Response
|
|
754
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;
|
|
755
1220
|
/** 需要转换的网页URL。URL必须经过编码。 */
|
|
756
1221
|
url: string;
|
|
757
1222
|
}
|
|
758
1223
|
export type GetSensitiveWordAnalyzeQueryResponse =
|
|
759
1224
|
Internal.PostSensitiveWordAnalyze200Response
|
|
760
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;
|
|
761
1232
|
/** 要分析的关键词,最长1,000字符。 */
|
|
762
1233
|
keyword: string;
|
|
763
1234
|
}
|
|
764
1235
|
export type PostSensitiveWordAnalyzeResponse =
|
|
765
1236
|
Internal.PostSensitiveWordAnalyze200Response
|
|
766
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;
|
|
767
1244
|
/** 要分析的关键词列表,单次最多100个。单条关键词最多1,000字符,总字符数最多20,000。 */
|
|
768
1245
|
keywords: unknown[];
|
|
769
1246
|
}
|
|
770
1247
|
export type PostSensitiveWordQuickCheckResponse =
|
|
771
1248
|
Internal.PostSensitiveWordQuickCheck200Response
|
|
772
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;
|
|
773
1256
|
/** 需要检测的文本内容。支持简体和繁体中文。 */
|
|
774
1257
|
text: string;
|
|
775
1258
|
}
|
|
@@ -778,6 +1261,12 @@ export type GetSearchEnginesResponse =
|
|
|
778
1261
|
export type PostSearchAggregateResponse =
|
|
779
1262
|
Internal.PostSearchAggregate200Response
|
|
780
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;
|
|
781
1270
|
/** 是否获取页面完整正文(会影响响应时间) */
|
|
782
1271
|
fetchFull?: boolean;
|
|
783
1272
|
/** Same as `fetchFull`. Kept for compatibility. */
|
|
@@ -803,6 +1292,7 @@ export interface PostSearchAggregateArgs {
|
|
|
803
1292
|
export class UapiClient {
|
|
804
1293
|
private baseURL: string
|
|
805
1294
|
private token?: string
|
|
1295
|
+
private disableCache: boolean
|
|
806
1296
|
private _lastResponseMeta?: ResponseMeta
|
|
807
1297
|
readonly clipzyZaiXianJianTieBan: ClipzyZaiXianJianTieBanApi
|
|
808
1298
|
readonly "Clipzy 在线剪贴板": ClipzyZaiXianJianTieBanApi
|
|
@@ -837,9 +1327,11 @@ export class UapiClient {
|
|
|
837
1327
|
readonly zhiNengSouSuo: ZhiNengSouSuoApi
|
|
838
1328
|
readonly "智能搜索": ZhiNengSouSuoApi
|
|
839
1329
|
|
|
840
|
-
constructor(baseURL: string,
|
|
1330
|
+
constructor(baseURL: string, tokenOrOptions?: string | UapiClientOptions, maybeOptions: UapiClientOptions = {}) {
|
|
841
1331
|
this.baseURL = normalizeBaseURL(baseURL)
|
|
842
|
-
this.token =
|
|
1332
|
+
this.token = typeof tokenOrOptions === 'string' ? tokenOrOptions : undefined
|
|
1333
|
+
const options = typeof tokenOrOptions === 'string' ? maybeOptions : (tokenOrOptions ?? {})
|
|
1334
|
+
this.disableCache = options.disableCache ?? false
|
|
843
1335
|
const clipzyZaiXianJianTieBan = new ClipzyZaiXianJianTieBanApi(this)
|
|
844
1336
|
this.clipzyZaiXianJianTieBan = clipzyZaiXianJianTieBan
|
|
845
1337
|
this["Clipzy 在线剪贴板"] = clipzyZaiXianJianTieBan
|
|
@@ -901,10 +1393,12 @@ export class UapiClient {
|
|
|
901
1393
|
body?: Record<string, unknown>,
|
|
902
1394
|
headers?: Record<string, string>,
|
|
903
1395
|
responseKind: 'json' | 'text' | 'arrayBuffer' = 'json',
|
|
1396
|
+
requestOptions?: RequestOptions,
|
|
904
1397
|
) {
|
|
1398
|
+
const finalParams = applyCacheControl(method, params, this.disableCache, requestOptions?.disableCache)
|
|
905
1399
|
const url = new URL(this.baseURL + path)
|
|
906
|
-
if (
|
|
907
|
-
Object.entries(
|
|
1400
|
+
if (finalParams) {
|
|
1401
|
+
Object.entries(finalParams).forEach(([key, value]) => {
|
|
908
1402
|
if (value !== undefined) {
|
|
909
1403
|
url.searchParams.set(key, String(value))
|
|
910
1404
|
}
|
|
@@ -947,6 +1441,10 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
947
1441
|
const query: Record<string, unknown> = {}
|
|
948
1442
|
const headers: Record<string, string> = {}
|
|
949
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
|
|
950
1448
|
const argId = args.id
|
|
951
1449
|
if (argId !== undefined) query["id"] = argId
|
|
952
1450
|
let requestPath = '/api/v1/api/get'
|
|
@@ -957,6 +1455,7 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
957
1455
|
Object.keys(body).length > 0 ? body : undefined,
|
|
958
1456
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
959
1457
|
'json',
|
|
1458
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
960
1459
|
) as GetClipzyGetResponse
|
|
961
1460
|
}
|
|
962
1461
|
|
|
@@ -966,6 +1465,10 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
966
1465
|
const query: Record<string, unknown> = {}
|
|
967
1466
|
const headers: Record<string, string> = {}
|
|
968
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
|
|
969
1472
|
const argId = args.id
|
|
970
1473
|
const argKey = args.key
|
|
971
1474
|
if (argKey !== undefined) query["key"] = argKey
|
|
@@ -978,6 +1481,7 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
978
1481
|
Object.keys(body).length > 0 ? body : undefined,
|
|
979
1482
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
980
1483
|
'text',
|
|
1484
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
981
1485
|
) as GetClipzyRawResponse
|
|
982
1486
|
}
|
|
983
1487
|
|
|
@@ -987,6 +1491,10 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
987
1491
|
const query: Record<string, unknown> = {}
|
|
988
1492
|
const headers: Record<string, string> = {}
|
|
989
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
|
|
990
1498
|
const argCompressedData = args.compressedData
|
|
991
1499
|
if (argCompressedData !== undefined) body["compressedData"] = argCompressedData
|
|
992
1500
|
const argTtl = args.ttl
|
|
@@ -999,6 +1507,7 @@ export class ClipzyZaiXianJianTieBanApi {
|
|
|
999
1507
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1000
1508
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1001
1509
|
'json',
|
|
1510
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1002
1511
|
) as PostClipzyStoreResponse
|
|
1003
1512
|
}
|
|
1004
1513
|
}
|
|
@@ -1011,6 +1520,10 @@ export class ConvertApi {
|
|
|
1011
1520
|
const query: Record<string, unknown> = {}
|
|
1012
1521
|
const headers: Record<string, string> = {}
|
|
1013
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
|
|
1014
1527
|
const argTime = args.time
|
|
1015
1528
|
if (argTime !== undefined) query["time"] = argTime
|
|
1016
1529
|
let requestPath = '/api/v1/convert/unixtime'
|
|
@@ -1021,6 +1534,7 @@ export class ConvertApi {
|
|
|
1021
1534
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1022
1535
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1023
1536
|
'json',
|
|
1537
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1024
1538
|
) as GetConvertUnixtimeResponse
|
|
1025
1539
|
}
|
|
1026
1540
|
|
|
@@ -1030,6 +1544,10 @@ export class ConvertApi {
|
|
|
1030
1544
|
const query: Record<string, unknown> = {}
|
|
1031
1545
|
const headers: Record<string, string> = {}
|
|
1032
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
|
|
1033
1551
|
const argContent = args.content
|
|
1034
1552
|
if (argContent !== undefined) body["content"] = argContent
|
|
1035
1553
|
let requestPath = '/api/v1/convert/json'
|
|
@@ -1040,6 +1558,7 @@ export class ConvertApi {
|
|
|
1040
1558
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1041
1559
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1042
1560
|
'json',
|
|
1561
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1043
1562
|
) as PostConvertJsonResponse
|
|
1044
1563
|
}
|
|
1045
1564
|
}
|
|
@@ -1052,6 +1571,7 @@ export class DailyApi {
|
|
|
1052
1571
|
const query: Record<string, unknown> = {}
|
|
1053
1572
|
const headers: Record<string, string> = {}
|
|
1054
1573
|
const body: Record<string, unknown> = {}
|
|
1574
|
+
let disableCache: boolean | undefined
|
|
1055
1575
|
let requestPath = '/api/v1/daily/news-image'
|
|
1056
1576
|
return await this.c._request(
|
|
1057
1577
|
'GET',
|
|
@@ -1060,6 +1580,7 @@ export class DailyApi {
|
|
|
1060
1580
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1061
1581
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1062
1582
|
'arrayBuffer',
|
|
1583
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1063
1584
|
) as GetDailyNewsImageResponse
|
|
1064
1585
|
}
|
|
1065
1586
|
}
|
|
@@ -1072,6 +1593,7 @@ export class GameApi {
|
|
|
1072
1593
|
const query: Record<string, unknown> = {}
|
|
1073
1594
|
const headers: Record<string, string> = {}
|
|
1074
1595
|
const body: Record<string, unknown> = {}
|
|
1596
|
+
let disableCache: boolean | undefined
|
|
1075
1597
|
let requestPath = '/api/v1/game/epic-free'
|
|
1076
1598
|
return await this.c._request(
|
|
1077
1599
|
'GET',
|
|
@@ -1080,6 +1602,7 @@ export class GameApi {
|
|
|
1080
1602
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1081
1603
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1082
1604
|
'json',
|
|
1605
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1083
1606
|
) as GetGameEpicFreeResponse
|
|
1084
1607
|
}
|
|
1085
1608
|
|
|
@@ -1089,6 +1612,10 @@ export class GameApi {
|
|
|
1089
1612
|
const query: Record<string, unknown> = {}
|
|
1090
1613
|
const headers: Record<string, string> = {}
|
|
1091
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
|
|
1092
1619
|
const argName = args.name
|
|
1093
1620
|
if (argName !== undefined) query["name"] = argName
|
|
1094
1621
|
const argUuid = args.uuid
|
|
@@ -1101,6 +1628,7 @@ export class GameApi {
|
|
|
1101
1628
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1102
1629
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1103
1630
|
'json',
|
|
1631
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1104
1632
|
) as GetGameMinecraftHistoryidResponse
|
|
1105
1633
|
}
|
|
1106
1634
|
|
|
@@ -1110,6 +1638,10 @@ export class GameApi {
|
|
|
1110
1638
|
const query: Record<string, unknown> = {}
|
|
1111
1639
|
const headers: Record<string, string> = {}
|
|
1112
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
|
|
1113
1645
|
const argServer = args.server
|
|
1114
1646
|
if (argServer !== undefined) query["server"] = argServer
|
|
1115
1647
|
let requestPath = '/api/v1/game/minecraft/serverstatus'
|
|
@@ -1120,6 +1652,7 @@ export class GameApi {
|
|
|
1120
1652
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1121
1653
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1122
1654
|
'json',
|
|
1655
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1123
1656
|
) as GetGameMinecraftServerstatusResponse
|
|
1124
1657
|
}
|
|
1125
1658
|
|
|
@@ -1129,6 +1662,10 @@ export class GameApi {
|
|
|
1129
1662
|
const query: Record<string, unknown> = {}
|
|
1130
1663
|
const headers: Record<string, string> = {}
|
|
1131
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
|
|
1132
1669
|
const argUsername = args.username
|
|
1133
1670
|
if (argUsername !== undefined) query["username"] = argUsername
|
|
1134
1671
|
let requestPath = '/api/v1/game/minecraft/userinfo'
|
|
@@ -1139,6 +1676,7 @@ export class GameApi {
|
|
|
1139
1676
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1140
1677
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1141
1678
|
'json',
|
|
1679
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1142
1680
|
) as GetGameMinecraftUserinfoResponse
|
|
1143
1681
|
}
|
|
1144
1682
|
|
|
@@ -1148,6 +1686,10 @@ export class GameApi {
|
|
|
1148
1686
|
const query: Record<string, unknown> = {}
|
|
1149
1687
|
const headers: Record<string, string> = {}
|
|
1150
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
|
|
1151
1693
|
const argSteamid = args.steamid
|
|
1152
1694
|
if (argSteamid !== undefined) query["steamid"] = argSteamid
|
|
1153
1695
|
const argId = args.id
|
|
@@ -1164,6 +1706,7 @@ export class GameApi {
|
|
|
1164
1706
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1165
1707
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1166
1708
|
'json',
|
|
1709
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1167
1710
|
) as GetGameSteamSummaryResponse
|
|
1168
1711
|
}
|
|
1169
1712
|
}
|
|
@@ -1176,6 +1719,10 @@ export class ImageApi {
|
|
|
1176
1719
|
const query: Record<string, unknown> = {}
|
|
1177
1720
|
const headers: Record<string, string> = {}
|
|
1178
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
|
|
1179
1726
|
const argEmail = args.email
|
|
1180
1727
|
if (argEmail !== undefined) query["email"] = argEmail
|
|
1181
1728
|
const argHash = args.hash
|
|
@@ -1194,6 +1741,7 @@ export class ImageApi {
|
|
|
1194
1741
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1195
1742
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1196
1743
|
'arrayBuffer',
|
|
1744
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1197
1745
|
) as GetAvatarGravatarResponse
|
|
1198
1746
|
}
|
|
1199
1747
|
|
|
@@ -1203,6 +1751,7 @@ export class ImageApi {
|
|
|
1203
1751
|
const query: Record<string, unknown> = {}
|
|
1204
1752
|
const headers: Record<string, string> = {}
|
|
1205
1753
|
const body: Record<string, unknown> = {}
|
|
1754
|
+
let disableCache: boolean | undefined
|
|
1206
1755
|
let requestPath = '/api/v1/image/bing-daily'
|
|
1207
1756
|
return await this.c._request(
|
|
1208
1757
|
'GET',
|
|
@@ -1211,6 +1760,7 @@ export class ImageApi {
|
|
|
1211
1760
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1212
1761
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1213
1762
|
'arrayBuffer',
|
|
1763
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1214
1764
|
) as GetImageBingDailyResponse
|
|
1215
1765
|
}
|
|
1216
1766
|
|
|
@@ -1220,6 +1770,10 @@ export class ImageApi {
|
|
|
1220
1770
|
const query: Record<string, unknown> = {}
|
|
1221
1771
|
const headers: Record<string, string> = {}
|
|
1222
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
|
|
1223
1777
|
const argQq = args.qq
|
|
1224
1778
|
if (argQq !== undefined) query["qq"] = argQq
|
|
1225
1779
|
const argBgColor = args.bgColor ?? args["bg_color"]
|
|
@@ -1232,6 +1786,7 @@ export class ImageApi {
|
|
|
1232
1786
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1233
1787
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1234
1788
|
'arrayBuffer',
|
|
1789
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1235
1790
|
) as GetImageMotouResponse
|
|
1236
1791
|
}
|
|
1237
1792
|
|
|
@@ -1241,6 +1796,10 @@ export class ImageApi {
|
|
|
1241
1796
|
const query: Record<string, unknown> = {}
|
|
1242
1797
|
const headers: Record<string, string> = {}
|
|
1243
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
|
|
1244
1803
|
const argText = args.text
|
|
1245
1804
|
if (argText !== undefined) query["text"] = argText
|
|
1246
1805
|
const argSize = args.size
|
|
@@ -1261,6 +1820,7 @@ export class ImageApi {
|
|
|
1261
1820
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1262
1821
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1263
1822
|
'json',
|
|
1823
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1264
1824
|
) as GetImageQrcodeResponse
|
|
1265
1825
|
}
|
|
1266
1826
|
|
|
@@ -1270,6 +1830,10 @@ export class ImageApi {
|
|
|
1270
1830
|
const query: Record<string, unknown> = {}
|
|
1271
1831
|
const headers: Record<string, string> = {}
|
|
1272
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
|
|
1273
1837
|
const argUrl = args.url
|
|
1274
1838
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
1275
1839
|
let requestPath = '/api/v1/image/tobase64'
|
|
@@ -1280,6 +1844,7 @@ export class ImageApi {
|
|
|
1280
1844
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1281
1845
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1282
1846
|
'json',
|
|
1847
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1283
1848
|
) as GetImageTobase64Response
|
|
1284
1849
|
}
|
|
1285
1850
|
|
|
@@ -1289,6 +1854,10 @@ export class ImageApi {
|
|
|
1289
1854
|
const query: Record<string, unknown> = {}
|
|
1290
1855
|
const headers: Record<string, string> = {}
|
|
1291
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
|
|
1292
1861
|
const argLevel = args.level
|
|
1293
1862
|
if (argLevel !== undefined) query["level"] = argLevel
|
|
1294
1863
|
const argFormat = args.format
|
|
@@ -1303,6 +1872,7 @@ export class ImageApi {
|
|
|
1303
1872
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1304
1873
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1305
1874
|
'arrayBuffer',
|
|
1875
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1306
1876
|
) as PostImageCompressResponse
|
|
1307
1877
|
}
|
|
1308
1878
|
|
|
@@ -1312,6 +1882,10 @@ export class ImageApi {
|
|
|
1312
1882
|
const query: Record<string, unknown> = {}
|
|
1313
1883
|
const headers: Record<string, string> = {}
|
|
1314
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
|
|
1315
1889
|
const argImageData = args.imageData
|
|
1316
1890
|
if (argImageData !== undefined) body["imageData"] = argImageData
|
|
1317
1891
|
let requestPath = '/api/v1/image/frombase64'
|
|
@@ -1322,6 +1896,7 @@ export class ImageApi {
|
|
|
1322
1896
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1323
1897
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1324
1898
|
'json',
|
|
1899
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1325
1900
|
) as PostImageFrombase64Response
|
|
1326
1901
|
}
|
|
1327
1902
|
|
|
@@ -1331,6 +1906,10 @@ export class ImageApi {
|
|
|
1331
1906
|
const query: Record<string, unknown> = {}
|
|
1332
1907
|
const headers: Record<string, string> = {}
|
|
1333
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
|
|
1334
1913
|
const argBgColor = args.bgColor ?? args["bg_color"]
|
|
1335
1914
|
if (argBgColor !== undefined) body["bg_color"] = argBgColor
|
|
1336
1915
|
const argFile = args.file
|
|
@@ -1345,6 +1924,7 @@ export class ImageApi {
|
|
|
1345
1924
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1346
1925
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1347
1926
|
'arrayBuffer',
|
|
1927
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1348
1928
|
) as PostImageMotouResponse
|
|
1349
1929
|
}
|
|
1350
1930
|
|
|
@@ -1354,6 +1934,10 @@ export class ImageApi {
|
|
|
1354
1934
|
const query: Record<string, unknown> = {}
|
|
1355
1935
|
const headers: Record<string, string> = {}
|
|
1356
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
|
|
1357
1941
|
const argFile = args.file
|
|
1358
1942
|
if (argFile !== undefined) body["file"] = argFile
|
|
1359
1943
|
const argUrl = args.url
|
|
@@ -1366,6 +1950,7 @@ export class ImageApi {
|
|
|
1366
1950
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1367
1951
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1368
1952
|
'json',
|
|
1953
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1369
1954
|
) as PostImageNsfwResponse
|
|
1370
1955
|
}
|
|
1371
1956
|
|
|
@@ -1375,6 +1960,10 @@ export class ImageApi {
|
|
|
1375
1960
|
const query: Record<string, unknown> = {}
|
|
1376
1961
|
const headers: Record<string, string> = {}
|
|
1377
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
|
|
1378
1967
|
const argBottomText = args.bottomText ?? args["bottom_text"]
|
|
1379
1968
|
if (argBottomText !== undefined) body["bottom_text"] = argBottomText
|
|
1380
1969
|
const argTopText = args.topText ?? args["top_text"]
|
|
@@ -1387,6 +1976,7 @@ export class ImageApi {
|
|
|
1387
1976
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1388
1977
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1389
1978
|
'arrayBuffer',
|
|
1979
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1390
1980
|
) as PostImageSpeechlessResponse
|
|
1391
1981
|
}
|
|
1392
1982
|
|
|
@@ -1396,6 +1986,10 @@ export class ImageApi {
|
|
|
1396
1986
|
const query: Record<string, unknown> = {}
|
|
1397
1987
|
const headers: Record<string, string> = {}
|
|
1398
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
|
|
1399
1993
|
const argFormat = args.format
|
|
1400
1994
|
if (argFormat !== undefined) query["format"] = argFormat
|
|
1401
1995
|
const argWidth = args.width
|
|
@@ -1414,6 +2008,7 @@ export class ImageApi {
|
|
|
1414
2008
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1415
2009
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1416
2010
|
'arrayBuffer',
|
|
2011
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1417
2012
|
) as PostImageSvgResponse
|
|
1418
2013
|
}
|
|
1419
2014
|
}
|
|
@@ -1426,6 +2021,10 @@ export class MiscApi {
|
|
|
1426
2021
|
const query: Record<string, unknown> = {}
|
|
1427
2022
|
const headers: Record<string, string> = {}
|
|
1428
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
|
|
1429
2028
|
const argMonth = args.month
|
|
1430
2029
|
if (argMonth !== undefined) query["month"] = argMonth
|
|
1431
2030
|
const argDay = args.day
|
|
@@ -1438,6 +2037,7 @@ export class MiscApi {
|
|
|
1438
2037
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1439
2038
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1440
2039
|
'json',
|
|
2040
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1441
2041
|
) as GetHistoryProgrammerResponse
|
|
1442
2042
|
}
|
|
1443
2043
|
|
|
@@ -1447,6 +2047,7 @@ export class MiscApi {
|
|
|
1447
2047
|
const query: Record<string, unknown> = {}
|
|
1448
2048
|
const headers: Record<string, string> = {}
|
|
1449
2049
|
const body: Record<string, unknown> = {}
|
|
2050
|
+
let disableCache: boolean | undefined
|
|
1450
2051
|
let requestPath = '/api/v1/history/programmer/today'
|
|
1451
2052
|
return await this.c._request(
|
|
1452
2053
|
'GET',
|
|
@@ -1455,6 +2056,7 @@ export class MiscApi {
|
|
|
1455
2056
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1456
2057
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1457
2058
|
'json',
|
|
2059
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1458
2060
|
) as GetHistoryProgrammerTodayResponse
|
|
1459
2061
|
}
|
|
1460
2062
|
|
|
@@ -1464,6 +2066,10 @@ export class MiscApi {
|
|
|
1464
2066
|
const query: Record<string, unknown> = {}
|
|
1465
2067
|
const headers: Record<string, string> = {}
|
|
1466
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
|
|
1467
2073
|
const argKeywords = args.keywords
|
|
1468
2074
|
if (argKeywords !== undefined) query["keywords"] = argKeywords
|
|
1469
2075
|
const argAdcode = args.adcode
|
|
@@ -1486,6 +2092,7 @@ export class MiscApi {
|
|
|
1486
2092
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1487
2093
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1488
2094
|
'json',
|
|
2095
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1489
2096
|
) as GetMiscDistrictResponse
|
|
1490
2097
|
}
|
|
1491
2098
|
|
|
@@ -1495,6 +2102,10 @@ export class MiscApi {
|
|
|
1495
2102
|
const query: Record<string, unknown> = {}
|
|
1496
2103
|
const headers: Record<string, string> = {}
|
|
1497
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
|
|
1498
2109
|
const argDate = args.date
|
|
1499
2110
|
if (argDate !== undefined) query["date"] = argDate
|
|
1500
2111
|
const argMonth = args.month
|
|
@@ -1517,6 +2128,7 @@ export class MiscApi {
|
|
|
1517
2128
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1518
2129
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1519
2130
|
'json',
|
|
2131
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1520
2132
|
) as GetMiscHolidayCalendarResponse
|
|
1521
2133
|
}
|
|
1522
2134
|
|
|
@@ -1526,6 +2138,10 @@ export class MiscApi {
|
|
|
1526
2138
|
const query: Record<string, unknown> = {}
|
|
1527
2139
|
const headers: Record<string, string> = {}
|
|
1528
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
|
|
1529
2145
|
const argType = args.type
|
|
1530
2146
|
if (argType !== undefined) query["type"] = argType
|
|
1531
2147
|
const argTime = args.time
|
|
@@ -1548,6 +2164,7 @@ export class MiscApi {
|
|
|
1548
2164
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1549
2165
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1550
2166
|
'json',
|
|
2167
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1551
2168
|
) as GetMiscHotboardResponse
|
|
1552
2169
|
}
|
|
1553
2170
|
|
|
@@ -1557,6 +2174,10 @@ export class MiscApi {
|
|
|
1557
2174
|
const query: Record<string, unknown> = {}
|
|
1558
2175
|
const headers: Record<string, string> = {}
|
|
1559
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
|
|
1560
2181
|
const argTs = args.ts
|
|
1561
2182
|
if (argTs !== undefined) query["ts"] = argTs
|
|
1562
2183
|
const argTimezone = args.timezone
|
|
@@ -1569,6 +2190,7 @@ export class MiscApi {
|
|
|
1569
2190
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1570
2191
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1571
2192
|
'json',
|
|
2193
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1572
2194
|
) as GetMiscLunartimeResponse
|
|
1573
2195
|
}
|
|
1574
2196
|
|
|
@@ -1578,6 +2200,10 @@ export class MiscApi {
|
|
|
1578
2200
|
const query: Record<string, unknown> = {}
|
|
1579
2201
|
const headers: Record<string, string> = {}
|
|
1580
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
|
|
1581
2207
|
const argPhone = args.phone
|
|
1582
2208
|
if (argPhone !== undefined) query["phone"] = argPhone
|
|
1583
2209
|
let requestPath = '/api/v1/misc/phoneinfo'
|
|
@@ -1588,6 +2214,7 @@ export class MiscApi {
|
|
|
1588
2214
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1589
2215
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1590
2216
|
'json',
|
|
2217
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1591
2218
|
) as GetMiscPhoneinfoResponse
|
|
1592
2219
|
}
|
|
1593
2220
|
|
|
@@ -1597,6 +2224,10 @@ export class MiscApi {
|
|
|
1597
2224
|
const query: Record<string, unknown> = {}
|
|
1598
2225
|
const headers: Record<string, string> = {}
|
|
1599
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
|
|
1600
2231
|
const argMin = args.min
|
|
1601
2232
|
if (argMin !== undefined) query["min"] = argMin
|
|
1602
2233
|
const argMax = args.max
|
|
@@ -1617,6 +2248,7 @@ export class MiscApi {
|
|
|
1617
2248
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1618
2249
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1619
2250
|
'json',
|
|
2251
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1620
2252
|
) as GetMiscRandomnumberResponse
|
|
1621
2253
|
}
|
|
1622
2254
|
|
|
@@ -1626,6 +2258,10 @@ export class MiscApi {
|
|
|
1626
2258
|
const query: Record<string, unknown> = {}
|
|
1627
2259
|
const headers: Record<string, string> = {}
|
|
1628
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
|
|
1629
2265
|
const argTs = args.ts
|
|
1630
2266
|
if (argTs !== undefined) query["ts"] = argTs
|
|
1631
2267
|
let requestPath = '/api/v1/misc/timestamp'
|
|
@@ -1636,6 +2272,7 @@ export class MiscApi {
|
|
|
1636
2272
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1637
2273
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1638
2274
|
'json',
|
|
2275
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1639
2276
|
) as GetMiscTimestampResponse
|
|
1640
2277
|
}
|
|
1641
2278
|
|
|
@@ -1645,6 +2282,7 @@ export class MiscApi {
|
|
|
1645
2282
|
const query: Record<string, unknown> = {}
|
|
1646
2283
|
const headers: Record<string, string> = {}
|
|
1647
2284
|
const body: Record<string, unknown> = {}
|
|
2285
|
+
let disableCache: boolean | undefined
|
|
1648
2286
|
let requestPath = '/api/v1/misc/tracking/carriers'
|
|
1649
2287
|
return await this.c._request(
|
|
1650
2288
|
'GET',
|
|
@@ -1653,6 +2291,7 @@ export class MiscApi {
|
|
|
1653
2291
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1654
2292
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1655
2293
|
'json',
|
|
2294
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1656
2295
|
) as GetMiscTrackingCarriersResponse
|
|
1657
2296
|
}
|
|
1658
2297
|
|
|
@@ -1662,6 +2301,10 @@ export class MiscApi {
|
|
|
1662
2301
|
const query: Record<string, unknown> = {}
|
|
1663
2302
|
const headers: Record<string, string> = {}
|
|
1664
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
|
|
1665
2308
|
const argTrackingNumber = args.trackingNumber ?? args["tracking_number"]
|
|
1666
2309
|
if (argTrackingNumber !== undefined) query["tracking_number"] = argTrackingNumber
|
|
1667
2310
|
let requestPath = '/api/v1/misc/tracking/detect'
|
|
@@ -1672,6 +2315,7 @@ export class MiscApi {
|
|
|
1672
2315
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1673
2316
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1674
2317
|
'json',
|
|
2318
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1675
2319
|
) as GetMiscTrackingDetectResponse
|
|
1676
2320
|
}
|
|
1677
2321
|
|
|
@@ -1681,6 +2325,10 @@ export class MiscApi {
|
|
|
1681
2325
|
const query: Record<string, unknown> = {}
|
|
1682
2326
|
const headers: Record<string, string> = {}
|
|
1683
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
|
|
1684
2332
|
const argTrackingNumber = args.trackingNumber ?? args["tracking_number"]
|
|
1685
2333
|
if (argTrackingNumber !== undefined) query["tracking_number"] = argTrackingNumber
|
|
1686
2334
|
const argCarrierCode = args.carrierCode ?? args["carrier_code"]
|
|
@@ -1695,6 +2343,7 @@ export class MiscApi {
|
|
|
1695
2343
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1696
2344
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1697
2345
|
'json',
|
|
2346
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1698
2347
|
) as GetMiscTrackingQueryResponse
|
|
1699
2348
|
}
|
|
1700
2349
|
|
|
@@ -1704,6 +2353,10 @@ export class MiscApi {
|
|
|
1704
2353
|
const query: Record<string, unknown> = {}
|
|
1705
2354
|
const headers: Record<string, string> = {}
|
|
1706
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
|
|
1707
2360
|
const argCity = args.city
|
|
1708
2361
|
if (argCity !== undefined) query["city"] = argCity
|
|
1709
2362
|
const argAdcode = args.adcode
|
|
@@ -1728,6 +2381,7 @@ export class MiscApi {
|
|
|
1728
2381
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1729
2382
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1730
2383
|
'json',
|
|
2384
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1731
2385
|
) as GetMiscWeatherResponse
|
|
1732
2386
|
}
|
|
1733
2387
|
|
|
@@ -1737,6 +2391,10 @@ export class MiscApi {
|
|
|
1737
2391
|
const query: Record<string, unknown> = {}
|
|
1738
2392
|
const headers: Record<string, string> = {}
|
|
1739
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
|
|
1740
2398
|
const argCity = args.city
|
|
1741
2399
|
if (argCity !== undefined) query["city"] = argCity
|
|
1742
2400
|
let requestPath = '/api/v1/misc/worldtime'
|
|
@@ -1747,6 +2405,7 @@ export class MiscApi {
|
|
|
1747
2405
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1748
2406
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1749
2407
|
'json',
|
|
2408
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1750
2409
|
) as GetMiscWorldtimeResponse
|
|
1751
2410
|
}
|
|
1752
2411
|
|
|
@@ -1756,6 +2415,10 @@ export class MiscApi {
|
|
|
1756
2415
|
const query: Record<string, unknown> = {}
|
|
1757
2416
|
const headers: Record<string, string> = {}
|
|
1758
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
|
|
1759
2422
|
const argEndDate = args.endDate ?? args["end_date"]
|
|
1760
2423
|
if (argEndDate !== undefined) body["end_date"] = argEndDate
|
|
1761
2424
|
const argFormat = args.format
|
|
@@ -1770,6 +2433,7 @@ export class MiscApi {
|
|
|
1770
2433
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1771
2434
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1772
2435
|
'json',
|
|
2436
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1773
2437
|
) as PostMiscDateDiffResponse
|
|
1774
2438
|
}
|
|
1775
2439
|
}
|
|
@@ -1782,6 +2446,10 @@ export class NetworkApi {
|
|
|
1782
2446
|
const query: Record<string, unknown> = {}
|
|
1783
2447
|
const headers: Record<string, string> = {}
|
|
1784
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
|
|
1785
2453
|
const argDomain = args.domain
|
|
1786
2454
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1787
2455
|
const argType = args.type
|
|
@@ -1794,6 +2462,7 @@ export class NetworkApi {
|
|
|
1794
2462
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1795
2463
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1796
2464
|
'json',
|
|
2465
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1797
2466
|
) as GetNetworkDnsResponse
|
|
1798
2467
|
}
|
|
1799
2468
|
|
|
@@ -1803,6 +2472,10 @@ export class NetworkApi {
|
|
|
1803
2472
|
const query: Record<string, unknown> = {}
|
|
1804
2473
|
const headers: Record<string, string> = {}
|
|
1805
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
|
|
1806
2479
|
const argDomain = args.domain
|
|
1807
2480
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1808
2481
|
let requestPath = '/api/v1/network/icp'
|
|
@@ -1813,6 +2486,7 @@ export class NetworkApi {
|
|
|
1813
2486
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1814
2487
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1815
2488
|
'json',
|
|
2489
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1816
2490
|
) as GetNetworkIcpResponse
|
|
1817
2491
|
}
|
|
1818
2492
|
|
|
@@ -1822,6 +2496,10 @@ export class NetworkApi {
|
|
|
1822
2496
|
const query: Record<string, unknown> = {}
|
|
1823
2497
|
const headers: Record<string, string> = {}
|
|
1824
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
|
|
1825
2503
|
const argIp = args.ip
|
|
1826
2504
|
if (argIp !== undefined) query["ip"] = argIp
|
|
1827
2505
|
const argSource = args.source
|
|
@@ -1834,6 +2512,7 @@ export class NetworkApi {
|
|
|
1834
2512
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1835
2513
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1836
2514
|
'json',
|
|
2515
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1837
2516
|
) as GetNetworkIpinfoResponse
|
|
1838
2517
|
}
|
|
1839
2518
|
|
|
@@ -1843,6 +2522,10 @@ export class NetworkApi {
|
|
|
1843
2522
|
const query: Record<string, unknown> = {}
|
|
1844
2523
|
const headers: Record<string, string> = {}
|
|
1845
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
|
|
1846
2529
|
const argSource = args.source
|
|
1847
2530
|
if (argSource !== undefined) query["source"] = argSource
|
|
1848
2531
|
let requestPath = '/api/v1/network/myip'
|
|
@@ -1853,6 +2536,7 @@ export class NetworkApi {
|
|
|
1853
2536
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1854
2537
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1855
2538
|
'json',
|
|
2539
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1856
2540
|
) as GetNetworkMyipResponse
|
|
1857
2541
|
}
|
|
1858
2542
|
|
|
@@ -1862,6 +2546,10 @@ export class NetworkApi {
|
|
|
1862
2546
|
const query: Record<string, unknown> = {}
|
|
1863
2547
|
const headers: Record<string, string> = {}
|
|
1864
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
|
|
1865
2553
|
const argHost = args.host
|
|
1866
2554
|
if (argHost !== undefined) query["host"] = argHost
|
|
1867
2555
|
let requestPath = '/api/v1/network/ping'
|
|
@@ -1872,6 +2560,7 @@ export class NetworkApi {
|
|
|
1872
2560
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1873
2561
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1874
2562
|
'json',
|
|
2563
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1875
2564
|
) as GetNetworkPingResponse
|
|
1876
2565
|
}
|
|
1877
2566
|
|
|
@@ -1881,6 +2570,7 @@ export class NetworkApi {
|
|
|
1881
2570
|
const query: Record<string, unknown> = {}
|
|
1882
2571
|
const headers: Record<string, string> = {}
|
|
1883
2572
|
const body: Record<string, unknown> = {}
|
|
2573
|
+
let disableCache: boolean | undefined
|
|
1884
2574
|
let requestPath = '/api/v1/network/pingmyip'
|
|
1885
2575
|
return await this.c._request(
|
|
1886
2576
|
'GET',
|
|
@@ -1889,6 +2579,7 @@ export class NetworkApi {
|
|
|
1889
2579
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1890
2580
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1891
2581
|
'json',
|
|
2582
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1892
2583
|
) as GetNetworkPingmyipResponse
|
|
1893
2584
|
}
|
|
1894
2585
|
|
|
@@ -1898,6 +2589,10 @@ export class NetworkApi {
|
|
|
1898
2589
|
const query: Record<string, unknown> = {}
|
|
1899
2590
|
const headers: Record<string, string> = {}
|
|
1900
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
|
|
1901
2596
|
const argHost = args.host
|
|
1902
2597
|
if (argHost !== undefined) query["host"] = argHost
|
|
1903
2598
|
const argPort = args.port
|
|
@@ -1912,6 +2607,7 @@ export class NetworkApi {
|
|
|
1912
2607
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1913
2608
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1914
2609
|
'json',
|
|
2610
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1915
2611
|
) as GetNetworkPortscanResponse
|
|
1916
2612
|
}
|
|
1917
2613
|
|
|
@@ -1921,6 +2617,10 @@ export class NetworkApi {
|
|
|
1921
2617
|
const query: Record<string, unknown> = {}
|
|
1922
2618
|
const headers: Record<string, string> = {}
|
|
1923
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
|
|
1924
2624
|
const argUrl = args.url
|
|
1925
2625
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
1926
2626
|
let requestPath = '/api/v1/network/urlstatus'
|
|
@@ -1931,6 +2631,7 @@ export class NetworkApi {
|
|
|
1931
2631
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1932
2632
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1933
2633
|
'json',
|
|
2634
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1934
2635
|
) as GetNetworkUrlstatusResponse
|
|
1935
2636
|
}
|
|
1936
2637
|
|
|
@@ -1940,6 +2641,10 @@ export class NetworkApi {
|
|
|
1940
2641
|
const query: Record<string, unknown> = {}
|
|
1941
2642
|
const headers: Record<string, string> = {}
|
|
1942
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
|
|
1943
2648
|
const argDomain = args.domain
|
|
1944
2649
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1945
2650
|
const argFormat = args.format
|
|
@@ -1952,6 +2657,7 @@ export class NetworkApi {
|
|
|
1952
2657
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1953
2658
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1954
2659
|
'json',
|
|
2660
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1955
2661
|
) as GetNetworkWhoisResponse
|
|
1956
2662
|
}
|
|
1957
2663
|
|
|
@@ -1961,6 +2667,10 @@ export class NetworkApi {
|
|
|
1961
2667
|
const query: Record<string, unknown> = {}
|
|
1962
2668
|
const headers: Record<string, string> = {}
|
|
1963
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
|
|
1964
2674
|
const argDomain = args.domain
|
|
1965
2675
|
if (argDomain !== undefined) query["domain"] = argDomain
|
|
1966
2676
|
let requestPath = '/api/v1/network/wxdomain'
|
|
@@ -1971,6 +2681,7 @@ export class NetworkApi {
|
|
|
1971
2681
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1972
2682
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1973
2683
|
'json',
|
|
2684
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1974
2685
|
) as GetNetworkWxdomainResponse
|
|
1975
2686
|
}
|
|
1976
2687
|
}
|
|
@@ -1983,6 +2694,7 @@ export class PoemApi {
|
|
|
1983
2694
|
const query: Record<string, unknown> = {}
|
|
1984
2695
|
const headers: Record<string, string> = {}
|
|
1985
2696
|
const body: Record<string, unknown> = {}
|
|
2697
|
+
let disableCache: boolean | undefined
|
|
1986
2698
|
let requestPath = '/api/v1/saying'
|
|
1987
2699
|
return await this.c._request(
|
|
1988
2700
|
'GET',
|
|
@@ -1991,6 +2703,7 @@ export class PoemApi {
|
|
|
1991
2703
|
Object.keys(body).length > 0 ? body : undefined,
|
|
1992
2704
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
1993
2705
|
'json',
|
|
2706
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
1994
2707
|
) as GetSayingResponse
|
|
1995
2708
|
}
|
|
1996
2709
|
}
|
|
@@ -2003,6 +2716,10 @@ export class RandomApi {
|
|
|
2003
2716
|
const query: Record<string, unknown> = {}
|
|
2004
2717
|
const headers: Record<string, string> = {}
|
|
2005
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
|
|
2006
2723
|
const argQuestion = args.question
|
|
2007
2724
|
if (argQuestion !== undefined) query["question"] = argQuestion
|
|
2008
2725
|
let requestPath = '/api/v1/answerbook/ask'
|
|
@@ -2013,6 +2730,7 @@ export class RandomApi {
|
|
|
2013
2730
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2014
2731
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2015
2732
|
'json',
|
|
2733
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2016
2734
|
) as GetAnswerbookAskResponse
|
|
2017
2735
|
}
|
|
2018
2736
|
|
|
@@ -2022,6 +2740,10 @@ export class RandomApi {
|
|
|
2022
2740
|
const query: Record<string, unknown> = {}
|
|
2023
2741
|
const headers: Record<string, string> = {}
|
|
2024
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
|
|
2025
2747
|
const argCategory = args.category
|
|
2026
2748
|
if (argCategory !== undefined) query["category"] = argCategory
|
|
2027
2749
|
const argType = args.type
|
|
@@ -2034,6 +2756,7 @@ export class RandomApi {
|
|
|
2034
2756
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2035
2757
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2036
2758
|
'arrayBuffer',
|
|
2759
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2037
2760
|
) as GetRandomImageResponse
|
|
2038
2761
|
}
|
|
2039
2762
|
|
|
@@ -2043,6 +2766,10 @@ export class RandomApi {
|
|
|
2043
2766
|
const query: Record<string, unknown> = {}
|
|
2044
2767
|
const headers: Record<string, string> = {}
|
|
2045
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
|
|
2046
2773
|
const argLength = args.length
|
|
2047
2774
|
if (argLength !== undefined) query["length"] = argLength
|
|
2048
2775
|
const argType = args.type
|
|
@@ -2055,6 +2782,7 @@ export class RandomApi {
|
|
|
2055
2782
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2056
2783
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2057
2784
|
'json',
|
|
2785
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2058
2786
|
) as GetRandomStringResponse
|
|
2059
2787
|
}
|
|
2060
2788
|
|
|
@@ -2064,6 +2792,10 @@ export class RandomApi {
|
|
|
2064
2792
|
const query: Record<string, unknown> = {}
|
|
2065
2793
|
const headers: Record<string, string> = {}
|
|
2066
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
|
|
2067
2799
|
const argQuestion = args.question
|
|
2068
2800
|
if (argQuestion !== undefined) body["question"] = argQuestion
|
|
2069
2801
|
let requestPath = '/api/v1/answerbook/ask'
|
|
@@ -2074,6 +2806,7 @@ export class RandomApi {
|
|
|
2074
2806
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2075
2807
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2076
2808
|
'json',
|
|
2809
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2077
2810
|
) as PostAnswerbookAskResponse
|
|
2078
2811
|
}
|
|
2079
2812
|
}
|
|
@@ -2086,6 +2819,10 @@ export class SocialApi {
|
|
|
2086
2819
|
const query: Record<string, unknown> = {}
|
|
2087
2820
|
const headers: Record<string, string> = {}
|
|
2088
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
|
|
2089
2826
|
const argRepo = args.repo
|
|
2090
2827
|
if (argRepo !== undefined) query["repo"] = argRepo
|
|
2091
2828
|
let requestPath = '/api/v1/github/repo'
|
|
@@ -2096,6 +2833,7 @@ export class SocialApi {
|
|
|
2096
2833
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2097
2834
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2098
2835
|
'json',
|
|
2836
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2099
2837
|
) as GetGithubRepoResponse
|
|
2100
2838
|
}
|
|
2101
2839
|
|
|
@@ -2105,6 +2843,10 @@ export class SocialApi {
|
|
|
2105
2843
|
const query: Record<string, unknown> = {}
|
|
2106
2844
|
const headers: Record<string, string> = {}
|
|
2107
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
|
|
2108
2850
|
const argMid = args.mid
|
|
2109
2851
|
if (argMid !== undefined) query["mid"] = argMid
|
|
2110
2852
|
const argKeywords = args.keywords
|
|
@@ -2123,6 +2865,7 @@ export class SocialApi {
|
|
|
2123
2865
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2124
2866
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2125
2867
|
'json',
|
|
2868
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2126
2869
|
) as GetSocialBilibiliArchivesResponse
|
|
2127
2870
|
}
|
|
2128
2871
|
|
|
@@ -2132,6 +2875,10 @@ export class SocialApi {
|
|
|
2132
2875
|
const query: Record<string, unknown> = {}
|
|
2133
2876
|
const headers: Record<string, string> = {}
|
|
2134
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
|
|
2135
2882
|
const argMid = args.mid
|
|
2136
2883
|
if (argMid !== undefined) query["mid"] = argMid
|
|
2137
2884
|
const argRoomId = args.roomId ?? args["room_id"]
|
|
@@ -2144,6 +2891,7 @@ export class SocialApi {
|
|
|
2144
2891
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2145
2892
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2146
2893
|
'json',
|
|
2894
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2147
2895
|
) as GetSocialBilibiliLiveroomResponse
|
|
2148
2896
|
}
|
|
2149
2897
|
|
|
@@ -2153,6 +2901,10 @@ export class SocialApi {
|
|
|
2153
2901
|
const query: Record<string, unknown> = {}
|
|
2154
2902
|
const headers: Record<string, string> = {}
|
|
2155
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
|
|
2156
2908
|
const argOid = args.oid
|
|
2157
2909
|
if (argOid !== undefined) query["oid"] = argOid
|
|
2158
2910
|
const argSort = args.sort
|
|
@@ -2169,6 +2921,7 @@ export class SocialApi {
|
|
|
2169
2921
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2170
2922
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2171
2923
|
'json',
|
|
2924
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2172
2925
|
) as GetSocialBilibiliRepliesResponse
|
|
2173
2926
|
}
|
|
2174
2927
|
|
|
@@ -2178,6 +2931,10 @@ export class SocialApi {
|
|
|
2178
2931
|
const query: Record<string, unknown> = {}
|
|
2179
2932
|
const headers: Record<string, string> = {}
|
|
2180
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
|
|
2181
2938
|
const argUid = args.uid
|
|
2182
2939
|
if (argUid !== undefined) query["uid"] = argUid
|
|
2183
2940
|
let requestPath = '/api/v1/social/bilibili/userinfo'
|
|
@@ -2188,6 +2945,7 @@ export class SocialApi {
|
|
|
2188
2945
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2189
2946
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2190
2947
|
'json',
|
|
2948
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2191
2949
|
) as GetSocialBilibiliUserinfoResponse
|
|
2192
2950
|
}
|
|
2193
2951
|
|
|
@@ -2197,6 +2955,10 @@ export class SocialApi {
|
|
|
2197
2955
|
const query: Record<string, unknown> = {}
|
|
2198
2956
|
const headers: Record<string, string> = {}
|
|
2199
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
|
|
2200
2962
|
const argAid = args.aid
|
|
2201
2963
|
if (argAid !== undefined) query["aid"] = argAid
|
|
2202
2964
|
const argBvid = args.bvid
|
|
@@ -2209,6 +2971,7 @@ export class SocialApi {
|
|
|
2209
2971
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2210
2972
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2211
2973
|
'json',
|
|
2974
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2212
2975
|
) as GetSocialBilibiliVideoinfoResponse
|
|
2213
2976
|
}
|
|
2214
2977
|
|
|
@@ -2218,6 +2981,10 @@ export class SocialApi {
|
|
|
2218
2981
|
const query: Record<string, unknown> = {}
|
|
2219
2982
|
const headers: Record<string, string> = {}
|
|
2220
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
|
|
2221
2988
|
const argGroupId = args.groupId ?? args["group_id"]
|
|
2222
2989
|
if (argGroupId !== undefined) query["group_id"] = argGroupId
|
|
2223
2990
|
let requestPath = '/api/v1/social/qq/groupinfo'
|
|
@@ -2228,6 +2995,7 @@ export class SocialApi {
|
|
|
2228
2995
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2229
2996
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2230
2997
|
'json',
|
|
2998
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2231
2999
|
) as GetSocialQqGroupinfoResponse
|
|
2232
3000
|
}
|
|
2233
3001
|
|
|
@@ -2237,6 +3005,10 @@ export class SocialApi {
|
|
|
2237
3005
|
const query: Record<string, unknown> = {}
|
|
2238
3006
|
const headers: Record<string, string> = {}
|
|
2239
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
|
|
2240
3012
|
const argQq = args.qq
|
|
2241
3013
|
if (argQq !== undefined) query["qq"] = argQq
|
|
2242
3014
|
let requestPath = '/api/v1/social/qq/userinfo'
|
|
@@ -2247,6 +3019,7 @@ export class SocialApi {
|
|
|
2247
3019
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2248
3020
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2249
3021
|
'json',
|
|
3022
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2250
3023
|
) as GetSocialQqUserinfoResponse
|
|
2251
3024
|
}
|
|
2252
3025
|
}
|
|
@@ -2259,6 +3032,10 @@ export class StatusApi {
|
|
|
2259
3032
|
const query: Record<string, unknown> = {}
|
|
2260
3033
|
const headers: Record<string, string> = {}
|
|
2261
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
|
|
2262
3039
|
const argAuthorization = args.authorization ?? args["Authorization"]
|
|
2263
3040
|
if (argAuthorization !== undefined) headers["Authorization"] = String(argAuthorization)
|
|
2264
3041
|
let requestPath = '/api/v1/status/ratelimit'
|
|
@@ -2269,6 +3046,7 @@ export class StatusApi {
|
|
|
2269
3046
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2270
3047
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2271
3048
|
'json',
|
|
3049
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2272
3050
|
) as GetStatusRatelimitResponse
|
|
2273
3051
|
}
|
|
2274
3052
|
|
|
@@ -2278,6 +3056,10 @@ export class StatusApi {
|
|
|
2278
3056
|
const query: Record<string, unknown> = {}
|
|
2279
3057
|
const headers: Record<string, string> = {}
|
|
2280
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
|
|
2281
3063
|
const argPath = args.path
|
|
2282
3064
|
if (argPath !== undefined) query["path"] = argPath
|
|
2283
3065
|
let requestPath = '/api/v1/status/usage'
|
|
@@ -2288,6 +3070,7 @@ export class StatusApi {
|
|
|
2288
3070
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2289
3071
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2290
3072
|
'json',
|
|
3073
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2291
3074
|
) as GetStatusUsageResponse
|
|
2292
3075
|
}
|
|
2293
3076
|
}
|
|
@@ -2300,6 +3083,10 @@ export class TextApi {
|
|
|
2300
3083
|
const query: Record<string, unknown> = {}
|
|
2301
3084
|
const headers: Record<string, string> = {}
|
|
2302
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
|
|
2303
3090
|
const argText = args.text
|
|
2304
3091
|
if (argText !== undefined) query["text"] = argText
|
|
2305
3092
|
let requestPath = '/api/v1/text/md5'
|
|
@@ -2310,6 +3097,7 @@ export class TextApi {
|
|
|
2310
3097
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2311
3098
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2312
3099
|
'json',
|
|
3100
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2313
3101
|
) as GetTextMd5Response
|
|
2314
3102
|
}
|
|
2315
3103
|
|
|
@@ -2319,6 +3107,10 @@ export class TextApi {
|
|
|
2319
3107
|
const query: Record<string, unknown> = {}
|
|
2320
3108
|
const headers: Record<string, string> = {}
|
|
2321
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
|
|
2322
3114
|
const argKey = args.key
|
|
2323
3115
|
if (argKey !== undefined) body["key"] = argKey
|
|
2324
3116
|
const argNonce = args.nonce
|
|
@@ -2333,6 +3125,7 @@ export class TextApi {
|
|
|
2333
3125
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2334
3126
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2335
3127
|
'json',
|
|
3128
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2336
3129
|
) as PostTextAesDecryptResponse
|
|
2337
3130
|
}
|
|
2338
3131
|
|
|
@@ -2342,6 +3135,10 @@ export class TextApi {
|
|
|
2342
3135
|
const query: Record<string, unknown> = {}
|
|
2343
3136
|
const headers: Record<string, string> = {}
|
|
2344
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
|
|
2345
3142
|
const argIv = args.iv
|
|
2346
3143
|
if (argIv !== undefined) body["iv"] = argIv
|
|
2347
3144
|
const argKey = args.key
|
|
@@ -2360,6 +3157,7 @@ export class TextApi {
|
|
|
2360
3157
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2361
3158
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2362
3159
|
'json',
|
|
3160
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2363
3161
|
) as PostTextAesDecryptAdvancedResponse
|
|
2364
3162
|
}
|
|
2365
3163
|
|
|
@@ -2369,6 +3167,10 @@ export class TextApi {
|
|
|
2369
3167
|
const query: Record<string, unknown> = {}
|
|
2370
3168
|
const headers: Record<string, string> = {}
|
|
2371
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
|
|
2372
3174
|
const argKey = args.key
|
|
2373
3175
|
if (argKey !== undefined) body["key"] = argKey
|
|
2374
3176
|
const argText = args.text
|
|
@@ -2381,6 +3183,7 @@ export class TextApi {
|
|
|
2381
3183
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2382
3184
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2383
3185
|
'json',
|
|
3186
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2384
3187
|
) as PostTextAesEncryptResponse
|
|
2385
3188
|
}
|
|
2386
3189
|
|
|
@@ -2390,6 +3193,10 @@ export class TextApi {
|
|
|
2390
3193
|
const query: Record<string, unknown> = {}
|
|
2391
3194
|
const headers: Record<string, string> = {}
|
|
2392
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
|
|
2393
3200
|
const argIv = args.iv
|
|
2394
3201
|
if (argIv !== undefined) body["iv"] = argIv
|
|
2395
3202
|
const argKey = args.key
|
|
@@ -2410,6 +3217,7 @@ export class TextApi {
|
|
|
2410
3217
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2411
3218
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2412
3219
|
'json',
|
|
3220
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2413
3221
|
) as PostTextAesEncryptAdvancedResponse
|
|
2414
3222
|
}
|
|
2415
3223
|
|
|
@@ -2419,6 +3227,10 @@ export class TextApi {
|
|
|
2419
3227
|
const query: Record<string, unknown> = {}
|
|
2420
3228
|
const headers: Record<string, string> = {}
|
|
2421
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
|
|
2422
3234
|
const argText = args.text
|
|
2423
3235
|
if (argText !== undefined) body["text"] = argText
|
|
2424
3236
|
let requestPath = '/api/v1/text/analyze'
|
|
@@ -2429,6 +3241,7 @@ export class TextApi {
|
|
|
2429
3241
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2430
3242
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2431
3243
|
'json',
|
|
3244
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2432
3245
|
) as PostTextAnalyzeResponse
|
|
2433
3246
|
}
|
|
2434
3247
|
|
|
@@ -2438,6 +3251,10 @@ export class TextApi {
|
|
|
2438
3251
|
const query: Record<string, unknown> = {}
|
|
2439
3252
|
const headers: Record<string, string> = {}
|
|
2440
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
|
|
2441
3258
|
const argText = args.text
|
|
2442
3259
|
if (argText !== undefined) body["text"] = argText
|
|
2443
3260
|
let requestPath = '/api/v1/text/base64/decode'
|
|
@@ -2448,6 +3265,7 @@ export class TextApi {
|
|
|
2448
3265
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2449
3266
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2450
3267
|
'json',
|
|
3268
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2451
3269
|
) as PostTextBase64DecodeResponse
|
|
2452
3270
|
}
|
|
2453
3271
|
|
|
@@ -2457,6 +3275,10 @@ export class TextApi {
|
|
|
2457
3275
|
const query: Record<string, unknown> = {}
|
|
2458
3276
|
const headers: Record<string, string> = {}
|
|
2459
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
|
|
2460
3282
|
const argText = args.text
|
|
2461
3283
|
if (argText !== undefined) body["text"] = argText
|
|
2462
3284
|
let requestPath = '/api/v1/text/base64/encode'
|
|
@@ -2467,6 +3289,7 @@ export class TextApi {
|
|
|
2467
3289
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2468
3290
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2469
3291
|
'json',
|
|
3292
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2470
3293
|
) as PostTextBase64EncodeResponse
|
|
2471
3294
|
}
|
|
2472
3295
|
|
|
@@ -2476,6 +3299,10 @@ export class TextApi {
|
|
|
2476
3299
|
const query: Record<string, unknown> = {}
|
|
2477
3300
|
const headers: Record<string, string> = {}
|
|
2478
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
|
|
2479
3306
|
const argFrom = args.from
|
|
2480
3307
|
if (argFrom !== undefined) body["from"] = argFrom
|
|
2481
3308
|
const argOptions = args.options
|
|
@@ -2492,6 +3319,7 @@ export class TextApi {
|
|
|
2492
3319
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2493
3320
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2494
3321
|
'json',
|
|
3322
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2495
3323
|
) as PostTextConvertResponse
|
|
2496
3324
|
}
|
|
2497
3325
|
|
|
@@ -2501,6 +3329,10 @@ export class TextApi {
|
|
|
2501
3329
|
const query: Record<string, unknown> = {}
|
|
2502
3330
|
const headers: Record<string, string> = {}
|
|
2503
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
|
|
2504
3336
|
const argText = args.text
|
|
2505
3337
|
if (argText !== undefined) body["text"] = argText
|
|
2506
3338
|
let requestPath = '/api/v1/text/md5'
|
|
@@ -2511,6 +3343,7 @@ export class TextApi {
|
|
|
2511
3343
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2512
3344
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2513
3345
|
'json',
|
|
3346
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2514
3347
|
) as PostTextMd5Response
|
|
2515
3348
|
}
|
|
2516
3349
|
|
|
@@ -2520,6 +3353,10 @@ export class TextApi {
|
|
|
2520
3353
|
const query: Record<string, unknown> = {}
|
|
2521
3354
|
const headers: Record<string, string> = {}
|
|
2522
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
|
|
2523
3360
|
const argHash = args.hash
|
|
2524
3361
|
if (argHash !== undefined) body["hash"] = argHash
|
|
2525
3362
|
const argText = args.text
|
|
@@ -2532,6 +3369,7 @@ export class TextApi {
|
|
|
2532
3369
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2533
3370
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2534
3371
|
'json',
|
|
3372
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2535
3373
|
) as PostTextMd5VerifyResponse
|
|
2536
3374
|
}
|
|
2537
3375
|
}
|
|
@@ -2544,6 +3382,7 @@ export class TranslateApi {
|
|
|
2544
3382
|
const query: Record<string, unknown> = {}
|
|
2545
3383
|
const headers: Record<string, string> = {}
|
|
2546
3384
|
const body: Record<string, unknown> = {}
|
|
3385
|
+
let disableCache: boolean | undefined
|
|
2547
3386
|
let requestPath = '/api/v1/ai/translate/languages'
|
|
2548
3387
|
return await this.c._request(
|
|
2549
3388
|
'GET',
|
|
@@ -2552,6 +3391,7 @@ export class TranslateApi {
|
|
|
2552
3391
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2553
3392
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2554
3393
|
'json',
|
|
3394
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2555
3395
|
) as GetAiTranslateLanguagesResponse
|
|
2556
3396
|
}
|
|
2557
3397
|
|
|
@@ -2561,6 +3401,10 @@ export class TranslateApi {
|
|
|
2561
3401
|
const query: Record<string, unknown> = {}
|
|
2562
3402
|
const headers: Record<string, string> = {}
|
|
2563
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
|
|
2564
3408
|
const argTargetLang = args.targetLang ?? args["target_lang"]
|
|
2565
3409
|
if (argTargetLang !== undefined) query["target_lang"] = argTargetLang
|
|
2566
3410
|
const argContext = args.context
|
|
@@ -2581,6 +3425,7 @@ export class TranslateApi {
|
|
|
2581
3425
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2582
3426
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2583
3427
|
'json',
|
|
3428
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2584
3429
|
) as PostAiTranslateResponse
|
|
2585
3430
|
}
|
|
2586
3431
|
|
|
@@ -2590,6 +3435,10 @@ export class TranslateApi {
|
|
|
2590
3435
|
const query: Record<string, unknown> = {}
|
|
2591
3436
|
const headers: Record<string, string> = {}
|
|
2592
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
|
|
2593
3442
|
const argFromLang = args.fromLang ?? args["from_lang"]
|
|
2594
3443
|
if (argFromLang !== undefined) body["from_lang"] = argFromLang
|
|
2595
3444
|
const argQuery = args.query
|
|
@@ -2606,6 +3455,7 @@ export class TranslateApi {
|
|
|
2606
3455
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2607
3456
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2608
3457
|
'json',
|
|
3458
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2609
3459
|
) as PostTranslateStreamResponse
|
|
2610
3460
|
}
|
|
2611
3461
|
|
|
@@ -2615,6 +3465,10 @@ export class TranslateApi {
|
|
|
2615
3465
|
const query: Record<string, unknown> = {}
|
|
2616
3466
|
const headers: Record<string, string> = {}
|
|
2617
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
|
|
2618
3472
|
const argToLang = args.toLang ?? args["to_lang"]
|
|
2619
3473
|
if (argToLang !== undefined) query["to_lang"] = argToLang
|
|
2620
3474
|
const argText = args.text
|
|
@@ -2627,6 +3481,7 @@ export class TranslateApi {
|
|
|
2627
3481
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2628
3482
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2629
3483
|
'json',
|
|
3484
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2630
3485
|
) as PostTranslateTextResponse
|
|
2631
3486
|
}
|
|
2632
3487
|
}
|
|
@@ -2639,6 +3494,10 @@ export class WebparseApi {
|
|
|
2639
3494
|
const query: Record<string, unknown> = {}
|
|
2640
3495
|
const headers: Record<string, string> = {}
|
|
2641
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
|
|
2642
3501
|
const argTaskId = args.taskId ?? args["task_id"]
|
|
2643
3502
|
let requestPath = '/api/v1/web/tomarkdown/async/{task_id}'
|
|
2644
3503
|
if (argTaskId !== undefined) requestPath = requestPath.replace('{'+ 'task_id' +'}', String(argTaskId))
|
|
@@ -2649,6 +3508,7 @@ export class WebparseApi {
|
|
|
2649
3508
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2650
3509
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2651
3510
|
'json',
|
|
3511
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2652
3512
|
) as GetWebTomarkdownAsyncStatusResponse
|
|
2653
3513
|
}
|
|
2654
3514
|
|
|
@@ -2658,6 +3518,10 @@ export class WebparseApi {
|
|
|
2658
3518
|
const query: Record<string, unknown> = {}
|
|
2659
3519
|
const headers: Record<string, string> = {}
|
|
2660
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
|
|
2661
3525
|
const argUrl = args.url
|
|
2662
3526
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
2663
3527
|
let requestPath = '/api/v1/webparse/extractimages'
|
|
@@ -2668,6 +3532,7 @@ export class WebparseApi {
|
|
|
2668
3532
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2669
3533
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2670
3534
|
'json',
|
|
3535
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2671
3536
|
) as GetWebparseExtractimagesResponse
|
|
2672
3537
|
}
|
|
2673
3538
|
|
|
@@ -2677,6 +3542,10 @@ export class WebparseApi {
|
|
|
2677
3542
|
const query: Record<string, unknown> = {}
|
|
2678
3543
|
const headers: Record<string, string> = {}
|
|
2679
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
|
|
2680
3549
|
const argUrl = args.url
|
|
2681
3550
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
2682
3551
|
let requestPath = '/api/v1/webparse/metadata'
|
|
@@ -2687,6 +3556,7 @@ export class WebparseApi {
|
|
|
2687
3556
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2688
3557
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2689
3558
|
'json',
|
|
3559
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2690
3560
|
) as GetWebparseMetadataResponse
|
|
2691
3561
|
}
|
|
2692
3562
|
|
|
@@ -2696,6 +3566,10 @@ export class WebparseApi {
|
|
|
2696
3566
|
const query: Record<string, unknown> = {}
|
|
2697
3567
|
const headers: Record<string, string> = {}
|
|
2698
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
|
|
2699
3573
|
const argUrl = args.url
|
|
2700
3574
|
if (argUrl !== undefined) query["url"] = argUrl
|
|
2701
3575
|
let requestPath = '/api/v1/web/tomarkdown/async'
|
|
@@ -2706,6 +3580,7 @@ export class WebparseApi {
|
|
|
2706
3580
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2707
3581
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2708
3582
|
'json',
|
|
3583
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2709
3584
|
) as PostWebTomarkdownAsyncResponse
|
|
2710
3585
|
}
|
|
2711
3586
|
}
|
|
@@ -2718,6 +3593,10 @@ export class MinGanCiShiBieApi {
|
|
|
2718
3593
|
const query: Record<string, unknown> = {}
|
|
2719
3594
|
const headers: Record<string, string> = {}
|
|
2720
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
|
|
2721
3600
|
const argKeyword = args.keyword
|
|
2722
3601
|
if (argKeyword !== undefined) query["keyword"] = argKeyword
|
|
2723
3602
|
let requestPath = '/api/v1/sensitive-word/analyze-query'
|
|
@@ -2728,6 +3607,7 @@ export class MinGanCiShiBieApi {
|
|
|
2728
3607
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2729
3608
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2730
3609
|
'json',
|
|
3610
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2731
3611
|
) as GetSensitiveWordAnalyzeQueryResponse
|
|
2732
3612
|
}
|
|
2733
3613
|
|
|
@@ -2737,6 +3617,10 @@ export class MinGanCiShiBieApi {
|
|
|
2737
3617
|
const query: Record<string, unknown> = {}
|
|
2738
3618
|
const headers: Record<string, string> = {}
|
|
2739
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
|
|
2740
3624
|
const argKeywords = args.keywords
|
|
2741
3625
|
if (argKeywords !== undefined) body["keywords"] = argKeywords
|
|
2742
3626
|
let requestPath = '/api/v1/sensitive-word/analyze'
|
|
@@ -2747,6 +3631,7 @@ export class MinGanCiShiBieApi {
|
|
|
2747
3631
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2748
3632
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2749
3633
|
'json',
|
|
3634
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2750
3635
|
) as PostSensitiveWordAnalyzeResponse
|
|
2751
3636
|
}
|
|
2752
3637
|
|
|
@@ -2756,6 +3641,10 @@ export class MinGanCiShiBieApi {
|
|
|
2756
3641
|
const query: Record<string, unknown> = {}
|
|
2757
3642
|
const headers: Record<string, string> = {}
|
|
2758
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
|
|
2759
3648
|
const argText = args.text
|
|
2760
3649
|
if (argText !== undefined) body["text"] = argText
|
|
2761
3650
|
let requestPath = '/api/v1/text/profanitycheck'
|
|
@@ -2766,6 +3655,7 @@ export class MinGanCiShiBieApi {
|
|
|
2766
3655
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2767
3656
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2768
3657
|
'json',
|
|
3658
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2769
3659
|
) as PostSensitiveWordQuickCheckResponse
|
|
2770
3660
|
}
|
|
2771
3661
|
}
|
|
@@ -2778,6 +3668,7 @@ export class ZhiNengSouSuoApi {
|
|
|
2778
3668
|
const query: Record<string, unknown> = {}
|
|
2779
3669
|
const headers: Record<string, string> = {}
|
|
2780
3670
|
const body: Record<string, unknown> = {}
|
|
3671
|
+
let disableCache: boolean | undefined
|
|
2781
3672
|
let requestPath = '/api/v1/search/engines'
|
|
2782
3673
|
return await this.c._request(
|
|
2783
3674
|
'GET',
|
|
@@ -2786,6 +3677,7 @@ export class ZhiNengSouSuoApi {
|
|
|
2786
3677
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2787
3678
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2788
3679
|
'json',
|
|
3680
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2789
3681
|
) as GetSearchEnginesResponse
|
|
2790
3682
|
}
|
|
2791
3683
|
|
|
@@ -2795,6 +3687,10 @@ export class ZhiNengSouSuoApi {
|
|
|
2795
3687
|
const query: Record<string, unknown> = {}
|
|
2796
3688
|
const headers: Record<string, string> = {}
|
|
2797
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
|
|
2798
3694
|
const argFetchFull = args.fetchFull ?? args["fetch_full"]
|
|
2799
3695
|
if (argFetchFull !== undefined) body["fetch_full"] = argFetchFull
|
|
2800
3696
|
const argFiletype = args.filetype
|
|
@@ -2817,6 +3713,7 @@ export class ZhiNengSouSuoApi {
|
|
|
2817
3713
|
Object.keys(body).length > 0 ? body : undefined,
|
|
2818
3714
|
Object.keys(headers).length > 0 ? headers : undefined,
|
|
2819
3715
|
'json',
|
|
3716
|
+
disableCache !== undefined ? { disableCache } : undefined,
|
|
2820
3717
|
) as PostSearchAggregateResponse
|
|
2821
3718
|
}
|
|
2822
3719
|
}
|