karin-plugin-kkk 2.32.3 → 2.34.0

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.
@@ -1,1561 +1,9 @@
1
1
  import { t as ChalkInstance } from "./index-_og592jD.mjs";
2
2
  import { EventEmitter } from "node:events";
3
+ import zod from "zod";
3
4
  import { AxiosRequestConfig, AxiosResponse, RawAxiosResponseHeaders } from "axios";
4
5
  import express from "express";
5
6
 
6
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts
7
- type _JSONSchema = boolean | JSONSchema;
8
- type JSONSchema = {
9
- [k: string]: unknown;
10
- $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
11
- $id?: string;
12
- $anchor?: string;
13
- $ref?: string;
14
- $dynamicRef?: string;
15
- $dynamicAnchor?: string;
16
- $vocabulary?: Record<string, boolean>;
17
- $comment?: string;
18
- $defs?: Record<string, JSONSchema>;
19
- type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
20
- additionalItems?: _JSONSchema;
21
- unevaluatedItems?: _JSONSchema;
22
- prefixItems?: _JSONSchema[];
23
- items?: _JSONSchema | _JSONSchema[];
24
- contains?: _JSONSchema;
25
- additionalProperties?: _JSONSchema;
26
- unevaluatedProperties?: _JSONSchema;
27
- properties?: Record<string, _JSONSchema>;
28
- patternProperties?: Record<string, _JSONSchema>;
29
- dependentSchemas?: Record<string, _JSONSchema>;
30
- propertyNames?: _JSONSchema;
31
- if?: _JSONSchema;
32
- then?: _JSONSchema;
33
- else?: _JSONSchema;
34
- allOf?: JSONSchema[];
35
- anyOf?: JSONSchema[];
36
- oneOf?: JSONSchema[];
37
- not?: _JSONSchema;
38
- multipleOf?: number;
39
- maximum?: number;
40
- exclusiveMaximum?: number | boolean;
41
- minimum?: number;
42
- exclusiveMinimum?: number | boolean;
43
- maxLength?: number;
44
- minLength?: number;
45
- pattern?: string;
46
- maxItems?: number;
47
- minItems?: number;
48
- uniqueItems?: boolean;
49
- maxContains?: number;
50
- minContains?: number;
51
- maxProperties?: number;
52
- minProperties?: number;
53
- required?: string[];
54
- dependentRequired?: Record<string, string[]>;
55
- enum?: Array<string | number | boolean | null>;
56
- const?: string | number | boolean | null;
57
- id?: string;
58
- title?: string;
59
- description?: string;
60
- default?: unknown;
61
- deprecated?: boolean;
62
- readOnly?: boolean;
63
- writeOnly?: boolean;
64
- nullable?: boolean;
65
- examples?: unknown[];
66
- format?: string;
67
- contentMediaType?: string;
68
- contentEncoding?: string;
69
- contentSchema?: JSONSchema;
70
- _prefault?: unknown;
71
- };
72
- type BaseSchema = JSONSchema;
73
- //#endregion
74
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.cts
75
- /** The Standard interface. */
76
- interface StandardTypedV1<Input = unknown, Output = Input> {
77
- /** The Standard properties. */
78
- readonly "~standard": StandardTypedV1.Props<Input, Output>;
79
- }
80
- declare namespace StandardTypedV1 {
81
- /** The Standard properties interface. */
82
- interface Props<Input = unknown, Output = Input> {
83
- /** The version number of the standard. */
84
- readonly version: 1;
85
- /** The vendor name of the schema library. */
86
- readonly vendor: string;
87
- /** Inferred types associated with the schema. */
88
- readonly types?: Types<Input, Output> | undefined;
89
- }
90
- /** The Standard types interface. */
91
- interface Types<Input = unknown, Output = Input> {
92
- /** The input type of the schema. */
93
- readonly input: Input;
94
- /** The output type of the schema. */
95
- readonly output: Output;
96
- }
97
- /** Infers the input type of a Standard. */
98
- type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
99
- /** Infers the output type of a Standard. */
100
- type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
101
- }
102
- /** The Standard Schema interface. */
103
- interface StandardSchemaV1<Input = unknown, Output = Input> {
104
- /** The Standard Schema properties. */
105
- readonly "~standard": StandardSchemaV1.Props<Input, Output>;
106
- }
107
- declare namespace StandardSchemaV1 {
108
- /** The Standard Schema properties interface. */
109
- interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
110
- /** Validates unknown input values. */
111
- readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
112
- }
113
- /** The result interface of the validate function. */
114
- type Result<Output> = SuccessResult<Output> | FailureResult;
115
- /** The result interface if validation succeeds. */
116
- interface SuccessResult<Output> {
117
- /** The typed output value. */
118
- readonly value: Output;
119
- /** The absence of issues indicates success. */
120
- readonly issues?: undefined;
121
- }
122
- interface Options {
123
- /** Implicit support for additional vendor-specific parameters, if needed. */
124
- readonly libraryOptions?: Record<string, unknown> | undefined;
125
- }
126
- /** The result interface if validation fails. */
127
- interface FailureResult {
128
- /** The issues of failed validation. */
129
- readonly issues: ReadonlyArray<Issue>;
130
- }
131
- /** The issue interface of the failure output. */
132
- interface Issue {
133
- /** The error message of the issue. */
134
- readonly message: string;
135
- /** The path of the issue, if any. */
136
- readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
137
- }
138
- /** The path segment interface of the issue. */
139
- interface PathSegment {
140
- /** The key representing a path segment. */
141
- readonly key: PropertyKey;
142
- }
143
- /** The Standard types interface. */
144
- interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
145
- /** Infers the input type of a Standard. */
146
- type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
147
- /** Infers the output type of a Standard. */
148
- type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
149
- }
150
- /** The Standard JSON Schema interface. */
151
- interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
152
- /** The Standard JSON Schema properties. */
153
- readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
154
- }
155
- declare namespace StandardJSONSchemaV1 {
156
- /** The Standard JSON Schema properties interface. */
157
- interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
158
- /** Methods for generating the input/output JSON Schema. */
159
- readonly jsonSchema: Converter;
160
- }
161
- /** The Standard JSON Schema converter interface. */
162
- interface Converter {
163
- /** Converts the input type to JSON Schema. May throw if conversion is not supported. */
164
- readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
165
- /** Converts the output type to JSON Schema. May throw if conversion is not supported. */
166
- readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
167
- }
168
- /** The target version of the generated JSON Schema.
169
- *
170
- * It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use.
171
- *
172
- * The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
173
- *
174
- * All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
175
- */
176
- type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
177
- /** The options for the input/output methods. */
178
- interface Options {
179
- /** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
180
- readonly target: Target;
181
- /** Implicit support for additional vendor-specific parameters, if needed. */
182
- readonly libraryOptions?: Record<string, unknown> | undefined;
183
- }
184
- /** The Standard types interface. */
185
- interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
186
- /** Infers the input type of a Standard. */
187
- type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
188
- /** Infers the output type of a Standard. */
189
- type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
190
- }
191
- interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
192
- //#endregion
193
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.d.cts
194
- declare const $output: unique symbol;
195
- type $output = typeof $output;
196
- declare const $input: unique symbol;
197
- type $input = typeof $input;
198
- type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
199
- type MetadataType = object | undefined;
200
- declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
201
- _meta: Meta;
202
- _schema: Schema;
203
- _map: WeakMap<Schema, $replace<Meta, Schema>>;
204
- _idmap: Map<string, Schema>;
205
- add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
206
- clear(): this;
207
- remove(schema: Schema): this;
208
- get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
209
- has(schema: Schema): boolean;
210
- }
211
- interface JSONSchemaMeta {
212
- id?: string | undefined;
213
- title?: string | undefined;
214
- description?: string | undefined;
215
- deprecated?: boolean | undefined;
216
- [k: string]: unknown;
217
- }
218
- interface GlobalMeta extends JSONSchemaMeta {}
219
- //#endregion
220
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.cts
221
- type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
222
- interface JSONSchemaGeneratorParams {
223
- processors: Record<string, Processor>;
224
- /** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
225
- * @default globalRegistry */
226
- metadata?: $ZodRegistry<Record<string, any>>;
227
- /** The JSON Schema version to target.
228
- * - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
229
- * - `"draft-07"` — JSON Schema Draft 7
230
- * - `"draft-04"` — JSON Schema Draft 4
231
- * - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
232
- target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
233
- /** How to handle unrepresentable types.
234
- * - `"throw"` — Default. Unrepresentable types throw an error
235
- * - `"any"` — Unrepresentable types become `{}` */
236
- unrepresentable?: "throw" | "any";
237
- /** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
238
- override?: (ctx: {
239
- zodSchema: $ZodTypes;
240
- jsonSchema: BaseSchema;
241
- path: (string | number)[];
242
- }) => void;
243
- /** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
244
- * - `"output"` — Default. Convert the output schema.
245
- * - `"input"` — Convert the input schema. */
246
- io?: "input" | "output";
247
- cycles?: "ref" | "throw";
248
- reused?: "ref" | "inline";
249
- external?: {
250
- registry: $ZodRegistry<{
251
- id?: string | undefined;
252
- }>;
253
- uri?: ((id: string) => string) | undefined;
254
- defs: Record<string, BaseSchema>;
255
- } | undefined;
256
- }
257
- /**
258
- * Parameters for the toJSONSchema function.
259
- */
260
- type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
261
- interface ProcessParams {
262
- schemaPath: $ZodType[];
263
- path: (string | number)[];
264
- }
265
- interface Seen {
266
- /** JSON Schema result for this Zod schema */
267
- schema: BaseSchema;
268
- /** A cached version of the schema that doesn't get overwritten during ref resolution */
269
- def?: BaseSchema;
270
- defId?: string | undefined;
271
- /** Number of times this schema was encountered during traversal */
272
- count: number;
273
- /** Cycle path */
274
- cycle?: (string | number)[] | undefined;
275
- isParent?: boolean | undefined;
276
- /** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
277
- ref?: $ZodType | null;
278
- /** JSON Schema property path for this schema */
279
- path?: (string | number)[] | undefined;
280
- }
281
- interface ToJSONSchemaContext {
282
- processors: Record<string, Processor>;
283
- metadataRegistry: $ZodRegistry<Record<string, any>>;
284
- target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
285
- unrepresentable: "throw" | "any";
286
- override: (ctx: {
287
- zodSchema: $ZodType;
288
- jsonSchema: BaseSchema;
289
- path: (string | number)[];
290
- }) => void;
291
- io: "input" | "output";
292
- counter: number;
293
- seen: Map<$ZodType, Seen>;
294
- cycles: "ref" | "throw";
295
- reused: "ref" | "inline";
296
- external?: {
297
- registry: $ZodRegistry<{
298
- id?: string | undefined;
299
- }>;
300
- uri?: ((id: string) => string) | undefined;
301
- defs: Record<string, BaseSchema>;
302
- } | undefined;
303
- }
304
- type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
305
- interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
306
- "~standard": ZodStandardSchemaWithJSON$1<T>;
307
- }
308
- //#endregion
309
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.d.cts
310
- type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
311
- type IsAny<T> = 0 extends 1 & T ? true : false;
312
- type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
313
- type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
314
- type NoUndefined<T> = T extends undefined ? never : T;
315
- type LoosePartial<T extends object> = InexactPartial<T> & {
316
- [k: string]: unknown;
317
- };
318
- type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
319
- type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
320
- readonly [Symbol.toStringTag]: string;
321
- } | Date | Error | Generator | Promise<unknown> | RegExp;
322
- type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
323
- type Identity<T> = T;
324
- type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
325
- type Prettify<T> = { [K in keyof T]: T[K] } & {};
326
- type TupleItems = ReadonlyArray<SomeType>;
327
- type AnyFunc = (...args: any[]) => any;
328
- type MaybeAsync<T> = T | Promise<T>;
329
- type EnumValue = string | number;
330
- type EnumLike = Readonly<Record<string, EnumValue>>;
331
- type Literal = string | number | bigint | boolean | null | undefined;
332
- type Primitive = string | number | symbol | bigint | boolean | null | undefined;
333
- type HasLength = {
334
- length: number;
335
- };
336
- type PropValues = Record<string, Set<Primitive>>;
337
- type PrimitiveSet = Set<Primitive>;
338
- type EmptyToNever<T> = keyof T extends never ? never : T;
339
- declare abstract class Class {
340
- constructor(..._args: any[]);
341
- }
342
- //#endregion
343
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.d.cts
344
- declare const version: {
345
- readonly major: 4;
346
- readonly minor: 3;
347
- readonly patch: number;
348
- };
349
- //#endregion
350
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts
351
- interface ParseContext<T extends $ZodIssueBase = never> {
352
- /** Customize error messages. */
353
- readonly error?: $ZodErrorMap<T>;
354
- /** Include the `input` field in issue objects. Default `false`. */
355
- readonly reportInput?: boolean;
356
- /** Skip eval-based fast path. Default `false`. */
357
- readonly jitless?: boolean;
358
- }
359
- /** @internal */
360
- interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
361
- readonly async?: boolean | undefined;
362
- readonly direction?: "forward" | "backward";
363
- readonly skipChecks?: boolean;
364
- }
365
- interface ParsePayload<T = unknown> {
366
- value: T;
367
- issues: $ZodRawIssue[];
368
- /** A may to mark a whole payload as aborted. Used in codecs/pipes. */
369
- aborted?: boolean;
370
- }
371
- type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
372
- interface $ZodTypeDef {
373
- type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
374
- error?: $ZodErrorMap<never> | undefined;
375
- checks?: $ZodCheck<never>[];
376
- }
377
- interface _$ZodTypeInternals {
378
- /** The `@zod/core` version of this schema */
379
- version: typeof version;
380
- /** Schema definition. */
381
- def: $ZodTypeDef;
382
- /** @internal Randomly generated ID for this schema. */
383
- /** @internal List of deferred initializers. */
384
- deferred: AnyFunc[] | undefined;
385
- /** @internal Parses input and runs all checks (refinements). */
386
- run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
387
- /** @internal Parses input, doesn't run checks. */
388
- parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
389
- /** @internal Stores identifiers for the set of traits implemented by this schema. */
390
- traits: Set<string>;
391
- /** @internal Indicates that a schema output type should be considered optional inside objects.
392
- * @default Required
393
- */
394
- /** @internal */
395
- optin?: "optional" | undefined;
396
- /** @internal */
397
- optout?: "optional" | undefined;
398
- /** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
399
- *
400
- * Defined on: enum, const, literal, null, undefined
401
- * Passthrough: optional, nullable, branded, default, catch, pipe
402
- * Todo: unions?
403
- */
404
- values?: PrimitiveSet | undefined;
405
- /** Default value bubbled up from */
406
- /** @internal A set of literal discriminators used for the fast path in discriminated unions. */
407
- propValues?: PropValues | undefined;
408
- /** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
409
- pattern: RegExp | undefined;
410
- /** @internal The constructor function of this schema. */
411
- constr: new (def: any) => $ZodType;
412
- /** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
413
- bag: Record<string, unknown>;
414
- /** @internal The set of issues this schema might throw during type checking. */
415
- isst: $ZodIssueBase;
416
- /** @internal Subject to change, not a public API. */
417
- processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
418
- /** An optional method used to override `toJSONSchema` logic. */
419
- toJSONSchema?: () => unknown;
420
- /** @internal The parent of this schema. Only set during certain clone operations. */
421
- parent?: $ZodType | undefined;
422
- }
423
- /** @internal */
424
- interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
425
- /** @internal The inferred output type */
426
- output: O;
427
- /** @internal The inferred input type */
428
- input: I;
429
- }
430
- type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
431
- type SomeType = {
432
- _zod: _$ZodTypeInternals;
433
- };
434
- interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
435
- _zod: Internals;
436
- "~standard": $ZodStandardSchema<this>;
437
- }
438
- interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
439
- declare const $ZodType: $constructor<$ZodType>;
440
- interface $ZodStringDef extends $ZodTypeDef {
441
- type: "string";
442
- coerce?: boolean;
443
- checks?: $ZodCheck<string>[];
444
- }
445
- interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
446
- def: $ZodStringDef;
447
- /** @deprecated Internal API, use with caution (not deprecated) */
448
- pattern: RegExp;
449
- /** @deprecated Internal API, use with caution (not deprecated) */
450
- isst: $ZodIssueInvalidType;
451
- bag: LoosePartial<{
452
- minimum: number;
453
- maximum: number;
454
- patterns: Set<RegExp>;
455
- format: string;
456
- contentEncoding: string;
457
- }>;
458
- }
459
- interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
460
- declare const $ZodString: $constructor<$ZodString>;
461
- interface $ZodNumberDef extends $ZodTypeDef {
462
- type: "number";
463
- coerce?: boolean;
464
- }
465
- interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
466
- def: $ZodNumberDef;
467
- /** @deprecated Internal API, use with caution (not deprecated) */
468
- pattern: RegExp;
469
- /** @deprecated Internal API, use with caution (not deprecated) */
470
- isst: $ZodIssueInvalidType;
471
- bag: LoosePartial<{
472
- minimum: number;
473
- maximum: number;
474
- exclusiveMinimum: number;
475
- exclusiveMaximum: number;
476
- format: string;
477
- pattern: RegExp;
478
- }>;
479
- }
480
- interface $ZodNumber<Input = unknown> extends $ZodType {
481
- _zod: $ZodNumberInternals<Input>;
482
- }
483
- declare const $ZodNumber: $constructor<$ZodNumber>;
484
- interface $ZodBooleanDef extends $ZodTypeDef {
485
- type: "boolean";
486
- coerce?: boolean;
487
- checks?: $ZodCheck<boolean>[];
488
- }
489
- interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
490
- pattern: RegExp;
491
- def: $ZodBooleanDef;
492
- isst: $ZodIssueInvalidType;
493
- }
494
- interface $ZodBoolean<T = unknown> extends $ZodType {
495
- _zod: $ZodBooleanInternals<T>;
496
- }
497
- declare const $ZodBoolean: $constructor<$ZodBoolean>;
498
- interface $ZodBigIntDef extends $ZodTypeDef {
499
- type: "bigint";
500
- coerce?: boolean;
501
- }
502
- interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
503
- pattern: RegExp;
504
- /** @internal Internal API, use with caution */
505
- def: $ZodBigIntDef;
506
- isst: $ZodIssueInvalidType;
507
- bag: LoosePartial<{
508
- minimum: bigint;
509
- maximum: bigint;
510
- format: string;
511
- }>;
512
- }
513
- interface $ZodBigInt<T = unknown> extends $ZodType {
514
- _zod: $ZodBigIntInternals<T>;
515
- }
516
- declare const $ZodBigInt: $constructor<$ZodBigInt>;
517
- interface $ZodSymbolDef extends $ZodTypeDef {
518
- type: "symbol";
519
- }
520
- interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
521
- def: $ZodSymbolDef;
522
- isst: $ZodIssueInvalidType;
523
- }
524
- interface $ZodSymbol extends $ZodType {
525
- _zod: $ZodSymbolInternals;
526
- }
527
- declare const $ZodSymbol: $constructor<$ZodSymbol>;
528
- interface $ZodUndefinedDef extends $ZodTypeDef {
529
- type: "undefined";
530
- }
531
- interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
532
- pattern: RegExp;
533
- def: $ZodUndefinedDef;
534
- values: PrimitiveSet;
535
- isst: $ZodIssueInvalidType;
536
- }
537
- interface $ZodUndefined extends $ZodType {
538
- _zod: $ZodUndefinedInternals;
539
- }
540
- declare const $ZodUndefined: $constructor<$ZodUndefined>;
541
- interface $ZodNullDef extends $ZodTypeDef {
542
- type: "null";
543
- }
544
- interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
545
- pattern: RegExp;
546
- def: $ZodNullDef;
547
- values: PrimitiveSet;
548
- isst: $ZodIssueInvalidType;
549
- }
550
- interface $ZodNull extends $ZodType {
551
- _zod: $ZodNullInternals;
552
- }
553
- declare const $ZodNull: $constructor<$ZodNull>;
554
- interface $ZodAnyDef extends $ZodTypeDef {
555
- type: "any";
556
- }
557
- interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
558
- def: $ZodAnyDef;
559
- isst: never;
560
- }
561
- interface $ZodAny extends $ZodType {
562
- _zod: $ZodAnyInternals;
563
- }
564
- declare const $ZodAny: $constructor<$ZodAny>;
565
- interface $ZodUnknownDef extends $ZodTypeDef {
566
- type: "unknown";
567
- }
568
- interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
569
- def: $ZodUnknownDef;
570
- isst: never;
571
- }
572
- interface $ZodUnknown extends $ZodType {
573
- _zod: $ZodUnknownInternals;
574
- }
575
- declare const $ZodUnknown: $constructor<$ZodUnknown>;
576
- interface $ZodNeverDef extends $ZodTypeDef {
577
- type: "never";
578
- }
579
- interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
580
- def: $ZodNeverDef;
581
- isst: $ZodIssueInvalidType;
582
- }
583
- interface $ZodNever extends $ZodType {
584
- _zod: $ZodNeverInternals;
585
- }
586
- declare const $ZodNever: $constructor<$ZodNever>;
587
- interface $ZodVoidDef extends $ZodTypeDef {
588
- type: "void";
589
- }
590
- interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
591
- def: $ZodVoidDef;
592
- isst: $ZodIssueInvalidType;
593
- }
594
- interface $ZodVoid extends $ZodType {
595
- _zod: $ZodVoidInternals;
596
- }
597
- declare const $ZodVoid: $constructor<$ZodVoid>;
598
- interface $ZodDateDef extends $ZodTypeDef {
599
- type: "date";
600
- coerce?: boolean;
601
- }
602
- interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
603
- def: $ZodDateDef;
604
- isst: $ZodIssueInvalidType;
605
- bag: LoosePartial<{
606
- minimum: Date;
607
- maximum: Date;
608
- format: string;
609
- }>;
610
- }
611
- interface $ZodDate<T = unknown> extends $ZodType {
612
- _zod: $ZodDateInternals<T>;
613
- }
614
- declare const $ZodDate: $constructor<$ZodDate>;
615
- interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
616
- type: "array";
617
- element: T;
618
- }
619
- interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
620
- def: $ZodArrayDef<T>;
621
- isst: $ZodIssueInvalidType;
622
- output: output<T>[];
623
- input: input<T>[];
624
- }
625
- interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
626
- declare const $ZodArray: $constructor<$ZodArray>;
627
- type OptionalOutSchema = {
628
- _zod: {
629
- optout: "optional";
630
- };
631
- };
632
- type OptionalInSchema = {
633
- _zod: {
634
- optin: "optional";
635
- };
636
- };
637
- type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"] } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"] } & Extra>;
638
- type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"] } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"] } & Extra>;
639
- type $ZodObjectConfig = {
640
- out: Record<string, unknown>;
641
- in: Record<string, unknown>;
642
- };
643
- type $ZodShape = Readonly<{
644
- [k: string]: $ZodType;
645
- }>;
646
- interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
647
- type: "object";
648
- shape: Shape;
649
- catchall?: $ZodType | undefined;
650
- }
651
- interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
652
- def: $ZodObjectDef<Shape>;
653
- config: Config;
654
- isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
655
- propValues: PropValues;
656
- output: $InferObjectOutput<Shape, Config["out"]>;
657
- input: $InferObjectInput<Shape, Config["in"]>;
658
- optin?: "optional" | undefined;
659
- optout?: "optional" | undefined;
660
- }
661
- type $ZodLooseShape = Record<string, any>;
662
- interface $ZodObject< /** @ts-ignore Cast variance */out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
663
- declare const $ZodObject: $constructor<$ZodObject>;
664
- type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
665
- type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
666
- interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
667
- type: "union";
668
- options: Options;
669
- inclusive?: boolean;
670
- }
671
- type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
672
- type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
673
- interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
674
- def: $ZodUnionDef<T>;
675
- isst: $ZodIssueInvalidUnion;
676
- pattern: T[number]["_zod"]["pattern"];
677
- values: T[number]["_zod"]["values"];
678
- output: $InferUnionOutput<T[number]>;
679
- input: $InferUnionInput<T[number]>;
680
- optin: IsOptionalIn<T[number]> extends false ? "optional" | undefined : "optional";
681
- optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
682
- }
683
- interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
684
- _zod: $ZodUnionInternals<T>;
685
- }
686
- declare const $ZodUnion: $constructor<$ZodUnion>;
687
- interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
688
- type: "intersection";
689
- left: Left;
690
- right: Right;
691
- }
692
- interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
693
- def: $ZodIntersectionDef<A, B>;
694
- isst: never;
695
- optin: A["_zod"]["optin"] | B["_zod"]["optin"];
696
- optout: A["_zod"]["optout"] | B["_zod"]["optout"];
697
- output: output<A> & output<B>;
698
- input: input<A> & input<B>;
699
- }
700
- interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
701
- _zod: $ZodIntersectionInternals<A, B>;
702
- }
703
- declare const $ZodIntersection: $constructor<$ZodIntersection>;
704
- interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
705
- type: "tuple";
706
- items: T;
707
- rest: Rest;
708
- }
709
- type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
710
- type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]> };
711
- type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
712
- type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
713
- type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]> };
714
- type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
715
- interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
716
- def: $ZodTupleDef<T, Rest>;
717
- isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
718
- output: $InferTupleOutputType<T, Rest>;
719
- input: $InferTupleInputType<T, Rest>;
720
- }
721
- interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
722
- _zod: $ZodTupleInternals<T, Rest>;
723
- }
724
- declare const $ZodTuple: $constructor<$ZodTuple>;
725
- type $ZodRecordKey = $ZodType<string | number | symbol, unknown>;
726
- interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
727
- type: "record";
728
- keyType: Key;
729
- valueType: Value;
730
- /** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
731
- mode?: "strict" | "loose";
732
- }
733
- type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
734
- type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key> & PropertyKey, input<Value>>> : Record<input<Key> & PropertyKey, input<Value>>;
735
- interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
736
- def: $ZodRecordDef<Key, Value>;
737
- isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
738
- optin?: "optional" | undefined;
739
- optout?: "optional" | undefined;
740
- }
741
- type $partial = {
742
- "~~partial": true;
743
- };
744
- interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
745
- _zod: $ZodRecordInternals<Key, Value>;
746
- }
747
- declare const $ZodRecord: $constructor<$ZodRecord>;
748
- interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
749
- type: "map";
750
- keyType: Key;
751
- valueType: Value;
752
- }
753
- interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
754
- def: $ZodMapDef<Key, Value>;
755
- isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
756
- optin?: "optional" | undefined;
757
- optout?: "optional" | undefined;
758
- }
759
- interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
760
- _zod: $ZodMapInternals<Key, Value>;
761
- }
762
- declare const $ZodMap: $constructor<$ZodMap>;
763
- interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
764
- type: "set";
765
- valueType: T;
766
- }
767
- interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
768
- def: $ZodSetDef<T>;
769
- isst: $ZodIssueInvalidType;
770
- optin?: "optional" | undefined;
771
- optout?: "optional" | undefined;
772
- }
773
- interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
774
- _zod: $ZodSetInternals<T>;
775
- }
776
- declare const $ZodSet: $constructor<$ZodSet>;
777
- type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
778
- type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
779
- interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
780
- type: "enum";
781
- entries: T;
782
- }
783
- interface $ZodEnumInternals< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
784
- def: $ZodEnumDef<T>;
785
- /** @deprecated Internal API, use with caution (not deprecated) */
786
- values: PrimitiveSet;
787
- /** @deprecated Internal API, use with caution (not deprecated) */
788
- pattern: RegExp;
789
- isst: $ZodIssueInvalidValue;
790
- }
791
- interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType {
792
- _zod: $ZodEnumInternals<T>;
793
- }
794
- declare const $ZodEnum: $constructor<$ZodEnum>;
795
- interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef {
796
- type: "literal";
797
- values: T[];
798
- }
799
- interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> {
800
- def: $ZodLiteralDef<T>;
801
- values: Set<T>;
802
- pattern: RegExp;
803
- isst: $ZodIssueInvalidValue;
804
- }
805
- interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
806
- _zod: $ZodLiteralInternals<T>;
807
- }
808
- declare const $ZodLiteral: $constructor<$ZodLiteral>;
809
- type _File = typeof globalThis extends {
810
- File: infer F extends new (...args: any[]) => any;
811
- } ? InstanceType<F> : {};
812
- /** Do not reference this directly. */
813
- interface File extends _File {
814
- readonly type: string;
815
- readonly size: number;
816
- }
817
- interface $ZodFileDef extends $ZodTypeDef {
818
- type: "file";
819
- }
820
- interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
821
- def: $ZodFileDef;
822
- isst: $ZodIssueInvalidType;
823
- bag: LoosePartial<{
824
- minimum: number;
825
- maximum: number;
826
- mime: MimeTypes[];
827
- }>;
828
- }
829
- interface $ZodFile extends $ZodType {
830
- _zod: $ZodFileInternals;
831
- }
832
- declare const $ZodFile: $constructor<$ZodFile>;
833
- interface $ZodTransformDef extends $ZodTypeDef {
834
- type: "transform";
835
- transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
836
- }
837
- interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
838
- def: $ZodTransformDef;
839
- isst: never;
840
- }
841
- interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
842
- _zod: $ZodTransformInternals<O, I>;
843
- }
844
- declare const $ZodTransform: $constructor<$ZodTransform>;
845
- interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
846
- type: "optional";
847
- innerType: T;
848
- }
849
- interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
850
- def: $ZodOptionalDef<T>;
851
- optin: "optional";
852
- optout: "optional";
853
- isst: never;
854
- values: T["_zod"]["values"];
855
- pattern: T["_zod"]["pattern"];
856
- }
857
- interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
858
- _zod: $ZodOptionalInternals<T>;
859
- }
860
- declare const $ZodOptional: $constructor<$ZodOptional>;
861
- interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {}
862
- interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
863
- def: $ZodExactOptionalDef<T>;
864
- output: output<T>;
865
- input: input<T>;
866
- }
867
- interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
868
- _zod: $ZodExactOptionalInternals<T>;
869
- }
870
- declare const $ZodExactOptional: $constructor<$ZodExactOptional>;
871
- interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
872
- type: "nullable";
873
- innerType: T;
874
- }
875
- interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
876
- def: $ZodNullableDef<T>;
877
- optin: T["_zod"]["optin"];
878
- optout: T["_zod"]["optout"];
879
- isst: never;
880
- values: T["_zod"]["values"];
881
- pattern: T["_zod"]["pattern"];
882
- }
883
- interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
884
- _zod: $ZodNullableInternals<T>;
885
- }
886
- declare const $ZodNullable: $constructor<$ZodNullable>;
887
- interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
888
- type: "default";
889
- innerType: T;
890
- /** The default value. May be a getter. */
891
- defaultValue: NoUndefined<output<T>>;
892
- }
893
- interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
894
- def: $ZodDefaultDef<T>;
895
- optin: "optional";
896
- optout?: "optional" | undefined;
897
- isst: never;
898
- values: T["_zod"]["values"];
899
- }
900
- interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
901
- _zod: $ZodDefaultInternals<T>;
902
- }
903
- declare const $ZodDefault: $constructor<$ZodDefault>;
904
- interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
905
- type: "prefault";
906
- innerType: T;
907
- /** The default value. May be a getter. */
908
- defaultValue: input<T>;
909
- }
910
- interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
911
- def: $ZodPrefaultDef<T>;
912
- optin: "optional";
913
- optout?: "optional" | undefined;
914
- isst: never;
915
- values: T["_zod"]["values"];
916
- }
917
- interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
918
- _zod: $ZodPrefaultInternals<T>;
919
- }
920
- declare const $ZodPrefault: $constructor<$ZodPrefault>;
921
- interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
922
- type: "nonoptional";
923
- innerType: T;
924
- }
925
- interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
926
- def: $ZodNonOptionalDef<T>;
927
- isst: $ZodIssueInvalidType;
928
- values: T["_zod"]["values"];
929
- optin: "optional" | undefined;
930
- optout: "optional" | undefined;
931
- }
932
- interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
933
- _zod: $ZodNonOptionalInternals<T>;
934
- }
935
- declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
936
- interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
937
- type: "success";
938
- innerType: T;
939
- }
940
- interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
941
- def: $ZodSuccessDef<T>;
942
- isst: never;
943
- optin: T["_zod"]["optin"];
944
- optout: "optional" | undefined;
945
- }
946
- interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
947
- _zod: $ZodSuccessInternals<T>;
948
- }
949
- declare const $ZodSuccess: $constructor<$ZodSuccess>;
950
- interface $ZodCatchCtx extends ParsePayload {
951
- /** @deprecated Use `ctx.issues` */
952
- error: {
953
- issues: $ZodIssue[];
954
- };
955
- /** @deprecated Use `ctx.value` */
956
- input: unknown;
957
- }
958
- interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
959
- type: "catch";
960
- innerType: T;
961
- catchValue: (ctx: $ZodCatchCtx) => unknown;
962
- }
963
- interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
964
- def: $ZodCatchDef<T>;
965
- optin: T["_zod"]["optin"];
966
- optout: T["_zod"]["optout"];
967
- isst: never;
968
- values: T["_zod"]["values"];
969
- }
970
- interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
971
- _zod: $ZodCatchInternals<T>;
972
- }
973
- declare const $ZodCatch: $constructor<$ZodCatch>;
974
- interface $ZodNaNDef extends $ZodTypeDef {
975
- type: "nan";
976
- }
977
- interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
978
- def: $ZodNaNDef;
979
- isst: $ZodIssueInvalidType;
980
- }
981
- interface $ZodNaN extends $ZodType {
982
- _zod: $ZodNaNInternals;
983
- }
984
- declare const $ZodNaN: $constructor<$ZodNaN>;
985
- interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
986
- type: "pipe";
987
- in: A;
988
- out: B;
989
- /** Only defined inside $ZodCodec instances. */
990
- transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
991
- /** Only defined inside $ZodCodec instances. */
992
- reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
993
- }
994
- interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
995
- def: $ZodPipeDef<A, B>;
996
- isst: never;
997
- values: A["_zod"]["values"];
998
- optin: A["_zod"]["optin"];
999
- optout: B["_zod"]["optout"];
1000
- propValues: A["_zod"]["propValues"];
1001
- }
1002
- interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
1003
- _zod: $ZodPipeInternals<A, B>;
1004
- }
1005
- declare const $ZodPipe: $constructor<$ZodPipe>;
1006
- interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1007
- type: "readonly";
1008
- innerType: T;
1009
- }
1010
- interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
1011
- def: $ZodReadonlyDef<T>;
1012
- optin: T["_zod"]["optin"];
1013
- optout: T["_zod"]["optout"];
1014
- isst: never;
1015
- propValues: T["_zod"]["propValues"];
1016
- values: T["_zod"]["values"];
1017
- }
1018
- interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
1019
- _zod: $ZodReadonlyInternals<T>;
1020
- }
1021
- declare const $ZodReadonly: $constructor<$ZodReadonly>;
1022
- interface $ZodTemplateLiteralDef extends $ZodTypeDef {
1023
- type: "template_literal";
1024
- parts: $ZodTemplateLiteralPart[];
1025
- format?: string | undefined;
1026
- }
1027
- interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
1028
- pattern: RegExp;
1029
- def: $ZodTemplateLiteralDef;
1030
- isst: $ZodIssueInvalidType;
1031
- }
1032
- interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
1033
- _zod: $ZodTemplateLiteralInternals<Template>;
1034
- }
1035
- type LiteralPart = Exclude<Literal, symbol>;
1036
- interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
1037
- pattern: RegExp;
1038
- }
1039
- interface SchemaPart extends $ZodType {
1040
- _zod: SchemaPartInternals;
1041
- }
1042
- type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
1043
- declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
1044
- type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
1045
- type $ZodFunctionIn = $ZodFunctionArgs;
1046
- type $ZodFunctionOut = $ZodType;
1047
- type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
1048
- type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
1049
- type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
1050
- type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
1051
- interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
1052
- type: "function";
1053
- input: In;
1054
- output: Out;
1055
- }
1056
- interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
1057
- def: $ZodFunctionDef<Args, Returns>;
1058
- isst: $ZodIssueInvalidType;
1059
- }
1060
- interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
1061
- /** @deprecated */
1062
- _def: $ZodFunctionDef<Args, Returns>;
1063
- _input: $InferInnerFunctionType<Args, Returns>;
1064
- _output: $InferOuterFunctionType<Args, Returns>;
1065
- implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
1066
- implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
1067
- input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
1068
- input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
1069
- input(...args: any[]): $ZodFunction<any, Returns>;
1070
- output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
1071
- }
1072
- declare const $ZodFunction: $constructor<$ZodFunction>;
1073
- interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1074
- type: "promise";
1075
- innerType: T;
1076
- }
1077
- interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
1078
- def: $ZodPromiseDef<T>;
1079
- isst: never;
1080
- }
1081
- interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
1082
- _zod: $ZodPromiseInternals<T>;
1083
- }
1084
- declare const $ZodPromise: $constructor<$ZodPromise>;
1085
- interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
1086
- type: "lazy";
1087
- getter: () => T;
1088
- }
1089
- interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
1090
- def: $ZodLazyDef<T>;
1091
- isst: never;
1092
- /** Auto-cached way to retrieve the inner schema */
1093
- innerType: T;
1094
- pattern: T["_zod"]["pattern"];
1095
- propValues: T["_zod"]["propValues"];
1096
- optin: T["_zod"]["optin"];
1097
- optout: T["_zod"]["optout"];
1098
- }
1099
- interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
1100
- _zod: $ZodLazyInternals<T>;
1101
- }
1102
- declare const $ZodLazy: $constructor<$ZodLazy>;
1103
- interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
1104
- type: "custom";
1105
- check: "custom";
1106
- path?: PropertyKey[] | undefined;
1107
- error?: $ZodErrorMap | undefined;
1108
- params?: Record<string, any> | undefined;
1109
- fn: (arg: O) => unknown;
1110
- }
1111
- interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
1112
- def: $ZodCustomDef;
1113
- issc: $ZodIssue;
1114
- isst: never;
1115
- bag: LoosePartial<{
1116
- Class: typeof Class;
1117
- }>;
1118
- }
1119
- interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
1120
- _zod: $ZodCustomInternals<O, I>;
1121
- }
1122
- declare const $ZodCustom: $constructor<$ZodCustom>;
1123
- type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
1124
- //#endregion
1125
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.d.cts
1126
- interface $ZodCheckDef {
1127
- check: string;
1128
- error?: $ZodErrorMap<never> | undefined;
1129
- /** If true, no later checks will be executed if this check fails. Default `false`. */
1130
- abort?: boolean | undefined;
1131
- /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
1132
- when?: ((payload: ParsePayload) => boolean) | undefined;
1133
- }
1134
- interface $ZodCheckInternals<T> {
1135
- def: $ZodCheckDef;
1136
- /** The set of issues this check might throw. */
1137
- issc?: $ZodIssueBase;
1138
- check(payload: ParsePayload<T>): MaybeAsync<void>;
1139
- onattach: ((schema: $ZodType) => void)[];
1140
- }
1141
- interface $ZodCheck<in T = never> {
1142
- _zod: $ZodCheckInternals<T>;
1143
- }
1144
- declare const $ZodCheck: $constructor<$ZodCheck<any>>;
1145
- interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
1146
- check: "max_length";
1147
- maximum: number;
1148
- }
1149
- interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1150
- def: $ZodCheckMaxLengthDef;
1151
- issc: $ZodIssueTooBig<T>;
1152
- }
1153
- interface $ZodCheckMaxLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
1154
- _zod: $ZodCheckMaxLengthInternals<T>;
1155
- }
1156
- declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
1157
- interface $ZodCheckMinLengthDef extends $ZodCheckDef {
1158
- check: "min_length";
1159
- minimum: number;
1160
- }
1161
- interface $ZodCheckMinLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1162
- def: $ZodCheckMinLengthDef;
1163
- issc: $ZodIssueTooSmall<T>;
1164
- }
1165
- interface $ZodCheckMinLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
1166
- _zod: $ZodCheckMinLengthInternals<T>;
1167
- }
1168
- declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
1169
- interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
1170
- check: "length_equals";
1171
- length: number;
1172
- }
1173
- interface $ZodCheckLengthEqualsInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
1174
- def: $ZodCheckLengthEqualsDef;
1175
- issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
1176
- }
1177
- interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodCheck<T> {
1178
- _zod: $ZodCheckLengthEqualsInternals<T>;
1179
- }
1180
- declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
1181
- type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
1182
- //#endregion
1183
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.d.cts
1184
- interface $ZodIssueBase {
1185
- readonly code?: string;
1186
- readonly input?: unknown;
1187
- readonly path: PropertyKey[];
1188
- readonly message: string;
1189
- }
1190
- type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {});
1191
- interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
1192
- readonly code: "invalid_type";
1193
- readonly expected: $ZodInvalidTypeExpected;
1194
- readonly input?: Input;
1195
- }
1196
- interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
1197
- readonly code: "too_big";
1198
- readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
1199
- readonly maximum: number | bigint;
1200
- readonly inclusive?: boolean;
1201
- readonly exact?: boolean;
1202
- readonly input?: Input;
1203
- }
1204
- interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
1205
- readonly code: "too_small";
1206
- readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
1207
- readonly minimum: number | bigint;
1208
- /** True if the allowable range includes the minimum */
1209
- readonly inclusive?: boolean;
1210
- /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
1211
- readonly exact?: boolean;
1212
- readonly input?: Input;
1213
- }
1214
- interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
1215
- readonly code: "invalid_format";
1216
- readonly format: $ZodStringFormats | (string & {});
1217
- readonly pattern?: string;
1218
- readonly input?: string;
1219
- }
1220
- interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
1221
- readonly code: "not_multiple_of";
1222
- readonly divisor: number;
1223
- readonly input?: Input;
1224
- }
1225
- interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
1226
- readonly code: "unrecognized_keys";
1227
- readonly keys: string[];
1228
- readonly input?: Record<string, unknown>;
1229
- }
1230
- interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
1231
- readonly code: "invalid_union";
1232
- readonly errors: $ZodIssue[][];
1233
- readonly input?: unknown;
1234
- readonly discriminator?: string | undefined;
1235
- readonly inclusive?: true;
1236
- }
1237
- interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
1238
- readonly code: "invalid_union";
1239
- readonly errors: [];
1240
- readonly input?: unknown;
1241
- readonly discriminator?: string | undefined;
1242
- readonly inclusive: false;
1243
- }
1244
- type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
1245
- interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
1246
- readonly code: "invalid_key";
1247
- readonly origin: "map" | "record";
1248
- readonly issues: $ZodIssue[];
1249
- readonly input?: Input;
1250
- }
1251
- interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
1252
- readonly code: "invalid_element";
1253
- readonly origin: "map" | "set";
1254
- readonly key: unknown;
1255
- readonly issues: $ZodIssue[];
1256
- readonly input?: Input;
1257
- }
1258
- interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
1259
- readonly code: "invalid_value";
1260
- readonly values: Primitive[];
1261
- readonly input?: Input;
1262
- }
1263
- interface $ZodIssueCustom extends $ZodIssueBase {
1264
- readonly code: "custom";
1265
- readonly params?: Record<string, any> | undefined;
1266
- readonly input?: unknown;
1267
- }
1268
- type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
1269
- type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
1270
- type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1271
- /** The input data */readonly input: unknown; /** The schema or check that originated this issue. */
1272
- readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will continue executing checks/refinements after this issue. */
1273
- readonly continue?: boolean | undefined;
1274
- } & Record<string, unknown>> : never;
1275
- type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
1276
- interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
1277
- (issue: $ZodRawIssue<T>): {
1278
- message: string;
1279
- } | string | undefined | null;
1280
- }
1281
- interface $ZodError<T = unknown> extends Error {
1282
- type: T;
1283
- issues: $ZodIssue[];
1284
- _zod: {
1285
- output: T;
1286
- def: $ZodIssue[];
1287
- };
1288
- stack?: string;
1289
- name: string;
1290
- }
1291
- declare const $ZodError: $constructor<$ZodError>;
1292
- type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
1293
- type _FlattenedError<T, U = string> = {
1294
- formErrors: U[];
1295
- fieldErrors: { [P in keyof T]?: U[] };
1296
- };
1297
- type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U> } : T extends any[] ? {
1298
- [k: number]: $ZodFormattedError<T[number], U>;
1299
- } : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U> }> : any;
1300
- type $ZodFormattedError<T, U = string> = {
1301
- _errors: U[];
1302
- } & Flatten<_ZodFormattedError<T, U>>;
1303
- //#endregion
1304
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.d.cts
1305
- type ZodTrait = {
1306
- _zod: {
1307
- def: any;
1308
- [k: string]: any;
1309
- };
1310
- };
1311
- interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
1312
- new (def: D): T;
1313
- init(inst: T, def: D): asserts inst is T;
1314
- }
1315
- declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
1316
- Parent?: typeof Class;
1317
- }): $constructor<T, D>;
1318
- declare const $brand: unique symbol;
1319
- type $brand<T extends string | number | symbol = string | number | symbol> = {
1320
- [$brand]: { [k in T]: true };
1321
- };
1322
- type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
1323
- _zod: {
1324
- input: input<T> & $brand<Brand>;
1325
- output: output<T> & $brand<Brand>;
1326
- };
1327
- } : Dir extends "in" ? {
1328
- _zod: {
1329
- input: input<T> & $brand<Brand>;
1330
- };
1331
- } : {
1332
- _zod: {
1333
- output: output<T> & $brand<Brand>;
1334
- };
1335
- });
1336
- type input<T> = T extends {
1337
- _zod: {
1338
- input: any;
1339
- };
1340
- } ? T["_zod"]["input"] : unknown;
1341
- type output<T> = T extends {
1342
- _zod: {
1343
- output: any;
1344
- };
1345
- } ? T["_zod"]["output"] : unknown;
1346
- //#endregion
1347
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.d.cts
1348
- type Params$4<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
1349
- error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
1350
- message?: string | undefined;
1351
- })>>>;
1352
- type TypeParams<T extends $ZodType = $ZodType & {
1353
- _isst: never;
1354
- }, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params$4<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
1355
- type CheckParams<T extends $ZodCheck = $ZodCheck, // & { _issc: never },
1356
- AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params$4<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
1357
- type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params$4<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
1358
- type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
1359
- type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
1360
- type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
1361
- type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
1362
- type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
1363
- type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
1364
- type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
1365
- /** The schema or check that originated this issue. */readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
1366
- readonly continue?: boolean | undefined;
1367
- } & Record<string, unknown>> : never;
1368
- interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
1369
- addIssue(arg: string | $ZodSuperRefineIssue): void;
1370
- }
1371
- //#endregion
1372
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.d.cts
1373
- /** An Error-like class used to store Zod validation issues. */
1374
- interface ZodError<T = unknown> extends $ZodError<T> {
1375
- /** @deprecated Use the `z.treeifyError(err)` function instead. */
1376
- format(): $ZodFormattedError<T>;
1377
- format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
1378
- /** @deprecated Use the `z.treeifyError(err)` function instead. */
1379
- flatten(): $ZodFlattenedError<T>;
1380
- flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T, U>;
1381
- /** @deprecated Push directly to `.issues` instead. */
1382
- addIssue(issue: $ZodIssue): void;
1383
- /** @deprecated Push directly to `.issues` instead. */
1384
- addIssues(issues: $ZodIssue[]): void;
1385
- /** @deprecated Check `err.issues.length === 0` instead. */
1386
- isEmpty: boolean;
1387
- }
1388
- declare const ZodError: $constructor<ZodError>;
1389
- //#endregion
1390
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.d.cts
1391
- type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
1392
- type ZodSafeParseSuccess<T> = {
1393
- success: true;
1394
- data: T;
1395
- error?: never;
1396
- };
1397
- type ZodSafeParseError<T> = {
1398
- success: false;
1399
- data?: never;
1400
- error: ZodError<T>;
1401
- };
1402
- //#endregion
1403
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.d.cts
1404
- type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
1405
- interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
1406
- def: Internals["def"];
1407
- type: Internals["def"]["type"];
1408
- /** @deprecated Use `.def` instead. */
1409
- _def: Internals["def"];
1410
- /** @deprecated Use `z.output<typeof schema>` instead. */
1411
- _output: Internals["output"];
1412
- /** @deprecated Use `z.input<typeof schema>` instead. */
1413
- _input: Internals["input"];
1414
- "~standard": ZodStandardSchemaWithJSON<this>;
1415
- /** Converts this schema to a JSON Schema representation. */
1416
- toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
1417
- check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
1418
- with(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
1419
- clone(def?: Internals["def"], params?: {
1420
- parent: boolean;
1421
- }): this;
1422
- register<R extends $ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], this>?] : [$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
1423
- brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
1424
- parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
1425
- safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1426
- parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1427
- safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1428
- spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
1429
- encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
1430
- decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
1431
- encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
1432
- decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
1433
- safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
1434
- safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
1435
- safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
1436
- safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
1437
- refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R, input<this>> : this;
1438
- superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>): this;
1439
- overwrite(fn: (x: output<this>) => output<this>): this;
1440
- optional(): ZodOptional<this>;
1441
- exactOptional(): ZodExactOptional<this>;
1442
- nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
1443
- nullable(): ZodNullable<this>;
1444
- nullish(): ZodOptional<ZodNullable<this>>;
1445
- default(def: NoUndefined<output<this>>): ZodDefault<this>;
1446
- default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
1447
- prefault(def: () => input<this>): ZodPrefault<this>;
1448
- prefault(def: input<this>): ZodPrefault<this>;
1449
- array(): ZodArray<this>;
1450
- or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
1451
- and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
1452
- transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
1453
- catch(def: output<this>): ZodCatch<this>;
1454
- catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
1455
- pipe<T extends $ZodType<any, output<this>>>(target: T | $ZodType<any, output<this>>): ZodPipe<this, T>;
1456
- readonly(): ZodReadonly<this>;
1457
- /** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
1458
- describe(description: string): this;
1459
- description?: string;
1460
- /** Returns the metadata associated with this instance in `z.globalRegistry` */
1461
- meta(): $replace<GlobalMeta, this> | undefined;
1462
- /** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
1463
- meta(data: $replace<GlobalMeta, this>): this;
1464
- /** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
1465
- *
1466
- * ```ts
1467
- * const schema = z.string().optional();
1468
- * const isOptional = schema.safeParse(undefined).success; // true
1469
- * ```
1470
- */
1471
- isOptional(): boolean;
1472
- /**
1473
- * @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
1474
- *
1475
- * ```ts
1476
- * const schema = z.string().nullable();
1477
- * const isNullable = schema.safeParse(null).success; // true
1478
- * ```
1479
- */
1480
- isNullable(): boolean;
1481
- apply<T>(fn: (schema: this) => T): T;
1482
- }
1483
- interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
1484
- declare const ZodType: $constructor<ZodType>;
1485
- interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
1486
- element: T;
1487
- min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
1488
- nonempty(params?: string | $ZodCheckMinLengthParams): this;
1489
- max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
1490
- length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
1491
- unwrap(): T;
1492
- "~standard": ZodStandardSchemaWithJSON<this>;
1493
- }
1494
- declare const ZodArray: $constructor<ZodArray>;
1495
- interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
1496
- "~standard": ZodStandardSchemaWithJSON<this>;
1497
- options: T;
1498
- }
1499
- declare const ZodUnion: $constructor<ZodUnion>;
1500
- interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
1501
- "~standard": ZodStandardSchemaWithJSON<this>;
1502
- }
1503
- declare const ZodIntersection: $constructor<ZodIntersection>;
1504
- interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
1505
- "~standard": ZodStandardSchemaWithJSON<this>;
1506
- }
1507
- declare const ZodTransform: $constructor<ZodTransform>;
1508
- interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
1509
- "~standard": ZodStandardSchemaWithJSON<this>;
1510
- unwrap(): T;
1511
- }
1512
- declare const ZodOptional: $constructor<ZodOptional>;
1513
- interface ZodExactOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodExactOptionalInternals<T>>, $ZodExactOptional<T> {
1514
- "~standard": ZodStandardSchemaWithJSON<this>;
1515
- unwrap(): T;
1516
- }
1517
- declare const ZodExactOptional: $constructor<ZodExactOptional>;
1518
- interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
1519
- "~standard": ZodStandardSchemaWithJSON<this>;
1520
- unwrap(): T;
1521
- }
1522
- declare const ZodNullable: $constructor<ZodNullable>;
1523
- interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
1524
- "~standard": ZodStandardSchemaWithJSON<this>;
1525
- unwrap(): T;
1526
- /** @deprecated Use `.unwrap()` instead. */
1527
- removeDefault(): T;
1528
- }
1529
- declare const ZodDefault: $constructor<ZodDefault>;
1530
- interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
1531
- "~standard": ZodStandardSchemaWithJSON<this>;
1532
- unwrap(): T;
1533
- }
1534
- declare const ZodPrefault: $constructor<ZodPrefault>;
1535
- interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
1536
- "~standard": ZodStandardSchemaWithJSON<this>;
1537
- unwrap(): T;
1538
- }
1539
- declare const ZodNonOptional: $constructor<ZodNonOptional>;
1540
- interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
1541
- "~standard": ZodStandardSchemaWithJSON<this>;
1542
- unwrap(): T;
1543
- /** @deprecated Use `.unwrap()` instead. */
1544
- removeCatch(): T;
1545
- }
1546
- declare const ZodCatch: $constructor<ZodCatch>;
1547
- interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
1548
- "~standard": ZodStandardSchemaWithJSON<this>;
1549
- in: A;
1550
- out: B;
1551
- }
1552
- declare const ZodPipe: $constructor<ZodPipe>;
1553
- interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
1554
- "~standard": ZodStandardSchemaWithJSON<this>;
1555
- unwrap(): T;
1556
- }
1557
- declare const ZodReadonly: $constructor<ZodReadonly>;
1558
- //#endregion
1559
7
  //#region ../amagi/packages/core/dist/default/index.d.ts
1560
8
  //#region src/platform/bilibili/sign/wbi.d.ts
1561
9
  /**
@@ -1903,68 +351,68 @@ type BilibiliMethodOptMap = {
1903
351
  }; //#endregion
1904
352
  //#region src/validation/bilibili.d.ts
1905
353
  /** 视频信息参数验证 */
1906
- declare const BilibiliVideoParamsSchema: ZodType<BilibiliMethodOptionsMap['VideoInfoParams']>;
354
+ declare const BilibiliVideoParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['VideoInfoParams']>;
1907
355
  /** 视频流参数验证 */
1908
- declare const BilibiliVideoDownloadParamsSchema: ZodType<BilibiliMethodOptionsMap['VideoStreamParams']>;
356
+ declare const BilibiliVideoDownloadParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['VideoStreamParams']>;
1909
357
  /** 评论参数验证 */
1910
- declare const BilibiliCommentParamsSchema: ZodType<BilibiliMethodOptionsMap['CommentParams']>;
358
+ declare const BilibiliCommentParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['CommentParams']>;
1911
359
  /** 评论回复参数验证 */
1912
- declare const BilibiliCommentReplyParamsSchema: ZodType<BilibiliMethodOptionsMap['CommentReplyParams']>;
360
+ declare const BilibiliCommentReplyParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['CommentReplyParams']>;
1913
361
  /** 用户参数验证 */
1914
- declare const BilibiliUserParamsSchema: ZodType<BilibiliMethodOptionsMap['UserParams']>;
362
+ declare const BilibiliUserParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['UserParams']>;
1915
363
  /** 表情参数验证 */
1916
- declare const BilibiliEmojiParamsSchema: ZodType<BilibiliMethodOptionsMap['EmojiParams']>;
364
+ declare const BilibiliEmojiParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['EmojiParams']>;
1917
365
  /** 番剧信息参数验证 */
1918
- declare const BilibiliBangumiInfoParamsSchema: ZodType<BilibiliMethodOptionsMap['BangumiInfoParams']>;
366
+ declare const BilibiliBangumiInfoParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['BangumiInfoParams']>;
1919
367
  /** 番剧流参数验证 */
1920
- declare const BilibiliBangumiStreamParamsSchema: ZodType<BilibiliMethodOptionsMap['BangumiStreamParams']>;
368
+ declare const BilibiliBangumiStreamParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['BangumiStreamParams']>;
1921
369
  /** 动态参数验证 */
1922
- declare const BilibiliDynamicParamsSchema: ZodType<BilibiliMethodOptionsMap['DynamicParams']>;
370
+ declare const BilibiliDynamicParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['DynamicParams']>;
1923
371
  /** 直播间参数验证 */
1924
- declare const BilibiliLiveParamsSchema: ZodType<BilibiliMethodOptionsMap['LiveRoomParams']>;
372
+ declare const BilibiliLiveParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['LiveRoomParams']>;
1925
373
  /** 登录状态参数验证 */
1926
- declare const BilibiliLoginParamsSchema: ZodType<BilibiliMethodOptionsMap['LoginBaseInfoParams']>;
374
+ declare const BilibiliLoginParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['LoginBaseInfoParams']>;
1927
375
  /** 申请二维码参数验证 */
1928
- declare const BilibiliQrcodeParamsSchema: ZodType<BilibiliMethodOptionsMap['GetQrcodeParams']>;
376
+ declare const BilibiliQrcodeParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['GetQrcodeParams']>;
1929
377
  /** 二维码状态参数验证 */
1930
- declare const BilibiliQrcodeStatusParamsSchema: ZodType<BilibiliMethodOptionsMap['QrcodeParams']>;
378
+ declare const BilibiliQrcodeStatusParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['QrcodeParams']>;
1931
379
  /** AV转BV参数验证 */
1932
- declare const BilibiliAv2BvParamsSchema: ZodType<BilibiliMethodOptionsMap['Av2BvParams']>;
380
+ declare const BilibiliAv2BvParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['Av2BvParams']>;
1933
381
  /** BV转AV参数验证 */
1934
- declare const BilibiliBv2AvParamsSchema: ZodType<BilibiliMethodOptionsMap['Bv2AvParams']>;
382
+ declare const BilibiliBv2AvParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['Bv2AvParams']>;
1935
383
  /** 专栏内容参数验证 */
1936
- declare const BilibiliArticleParamsSchema: ZodType<BilibiliMethodOptionsMap['ArticleParams']>;
384
+ declare const BilibiliArticleParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['ArticleParams']>;
1937
385
  /** 专栏卡片参数验证 */
1938
- declare const BilibiliArticleCardParamsSchema: ZodType<BilibiliMethodOptionsMap['ArticleCardParams']>;
386
+ declare const BilibiliArticleCardParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['ArticleCardParams']>;
1939
387
  /** 专栏信息参数验证 */
1940
- declare const BilibiliArticleInfoParamsSchema: ZodType<BilibiliMethodOptionsMap['ArticleInfoParams']>;
388
+ declare const BilibiliArticleInfoParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['ArticleInfoParams']>;
1941
389
  /** 文集信息参数验证 */
1942
- declare const BilibiliColumnInfoParamsSchema: ZodType<BilibiliMethodOptionsMap['ColumnInfoParams']>;
390
+ declare const BilibiliColumnInfoParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['ColumnInfoParams']>;
1943
391
  /** 验证码申请参数验证 */
1944
- declare const BilibiliApplyCaptchaParamsSchema: ZodType<BilibiliMethodOptionsMap['ApplyVoucherCaptchaParams']>;
392
+ declare const BilibiliApplyCaptchaParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['ApplyVoucherCaptchaParams']>;
1945
393
  /** 验证码验证参数验证 */
1946
- declare const BilibiliValidateCaptchaParamsSchema: ZodType<BilibiliMethodOptionsMap['ValidateCaptchaParams']>;
394
+ declare const BilibiliValidateCaptchaParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['ValidateCaptchaParams']>;
1947
395
  /** 弹幕参数验证 */
1948
- declare const BilibiliDanmakuParamsSchema: ZodType<BilibiliMethodOptionsMap['DanmakuParams']>;
396
+ declare const BilibiliDanmakuParamsSchema: zod.ZodType<BilibiliMethodOptionsMap['DanmakuParams']>;
1949
397
  /** B站参数验证模式映射 */
1950
398
  declare const BilibiliValidationSchemas: {
1951
- readonly videoInfo: ZodType<{
399
+ readonly videoInfo: zod.ZodType<{
1952
400
  methodType: "videoInfo";
1953
401
  bvid: string;
1954
- }, unknown, $ZodTypeInternals<{
402
+ }, unknown, zod.core.$ZodTypeInternals<{
1955
403
  methodType: "videoInfo";
1956
404
  bvid: string;
1957
405
  }, unknown>>;
1958
- readonly videoStream: ZodType<{
406
+ readonly videoStream: zod.ZodType<{
1959
407
  methodType: "videoStream";
1960
408
  avid: number;
1961
409
  cid: number;
1962
- }, unknown, $ZodTypeInternals<{
410
+ }, unknown, zod.core.$ZodTypeInternals<{
1963
411
  methodType: "videoStream";
1964
412
  avid: number;
1965
413
  cid: number;
1966
414
  }, unknown>>;
1967
- readonly comments: ZodType<{
415
+ readonly comments: zod.ZodType<{
1968
416
  methodType: "comments";
1969
417
  type: CommentType;
1970
418
  oid: string;
@@ -1974,7 +422,7 @@ declare const BilibiliValidationSchemas: {
1974
422
  plat?: number;
1975
423
  seek_rpid?: string;
1976
424
  web_location?: string;
1977
- }, unknown, $ZodTypeInternals<{
425
+ }, unknown, zod.core.$ZodTypeInternals<{
1978
426
  methodType: "comments";
1979
427
  type: CommentType;
1980
428
  oid: string;
@@ -1985,174 +433,174 @@ declare const BilibiliValidationSchemas: {
1985
433
  seek_rpid?: string;
1986
434
  web_location?: string;
1987
435
  }, unknown>>;
1988
- readonly commentReplies: ZodType<{
436
+ readonly commentReplies: zod.ZodType<{
1989
437
  methodType: "commentReplies";
1990
438
  type: CommentType;
1991
439
  oid: string;
1992
440
  root: string;
1993
441
  number?: number;
1994
- }, unknown, $ZodTypeInternals<{
442
+ }, unknown, zod.core.$ZodTypeInternals<{
1995
443
  methodType: "commentReplies";
1996
444
  type: CommentType;
1997
445
  oid: string;
1998
446
  root: string;
1999
447
  number?: number;
2000
448
  }, unknown>>;
2001
- readonly userCard: ZodType<{
449
+ readonly userCard: zod.ZodType<{
2002
450
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2003
451
  host_mid: number;
2004
- }, unknown, $ZodTypeInternals<{
452
+ }, unknown, zod.core.$ZodTypeInternals<{
2005
453
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2006
454
  host_mid: number;
2007
455
  }, unknown>>;
2008
- readonly userDynamicList: ZodType<{
456
+ readonly userDynamicList: zod.ZodType<{
2009
457
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2010
458
  host_mid: number;
2011
- }, unknown, $ZodTypeInternals<{
459
+ }, unknown, zod.core.$ZodTypeInternals<{
2012
460
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2013
461
  host_mid: number;
2014
462
  }, unknown>>;
2015
- readonly userSpaceInfo: ZodType<{
463
+ readonly userSpaceInfo: zod.ZodType<{
2016
464
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2017
465
  host_mid: number;
2018
- }, unknown, $ZodTypeInternals<{
466
+ }, unknown, zod.core.$ZodTypeInternals<{
2019
467
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2020
468
  host_mid: number;
2021
469
  }, unknown>>;
2022
- readonly emojiList: ZodType<{
470
+ readonly emojiList: zod.ZodType<{
2023
471
  methodType: "emojiList";
2024
- }, unknown, $ZodTypeInternals<{
472
+ }, unknown, zod.core.$ZodTypeInternals<{
2025
473
  methodType: "emojiList";
2026
474
  }, unknown>>;
2027
- readonly bangumiInfo: ZodType<{
475
+ readonly bangumiInfo: zod.ZodType<{
2028
476
  methodType: "bangumiInfo";
2029
477
  season_id?: string;
2030
478
  ep_id?: string;
2031
- }, unknown, $ZodTypeInternals<{
479
+ }, unknown, zod.core.$ZodTypeInternals<{
2032
480
  methodType: "bangumiInfo";
2033
481
  season_id?: string;
2034
482
  ep_id?: string;
2035
483
  }, unknown>>;
2036
- readonly bangumiStream: ZodType<{
484
+ readonly bangumiStream: zod.ZodType<{
2037
485
  methodType: "bangumiStream";
2038
486
  cid: number;
2039
487
  ep_id: string;
2040
- }, unknown, $ZodTypeInternals<{
488
+ }, unknown, zod.core.$ZodTypeInternals<{
2041
489
  methodType: "bangumiStream";
2042
490
  cid: number;
2043
491
  ep_id: string;
2044
492
  }, unknown>>;
2045
- readonly dynamicDetail: ZodType<{
493
+ readonly dynamicDetail: zod.ZodType<{
2046
494
  methodType: "dynamicDetail" | "dynamicCard";
2047
495
  dynamic_id: string;
2048
- }, unknown, $ZodTypeInternals<{
496
+ }, unknown, zod.core.$ZodTypeInternals<{
2049
497
  methodType: "dynamicDetail" | "dynamicCard";
2050
498
  dynamic_id: string;
2051
499
  }, unknown>>;
2052
- readonly dynamicCard: ZodType<{
500
+ readonly dynamicCard: zod.ZodType<{
2053
501
  methodType: "dynamicDetail" | "dynamicCard";
2054
502
  dynamic_id: string;
2055
- }, unknown, $ZodTypeInternals<{
503
+ }, unknown, zod.core.$ZodTypeInternals<{
2056
504
  methodType: "dynamicDetail" | "dynamicCard";
2057
505
  dynamic_id: string;
2058
506
  }, unknown>>;
2059
- readonly liveRoomInfo: ZodType<{
507
+ readonly liveRoomInfo: zod.ZodType<{
2060
508
  methodType: "liveRoomInfo" | "liveRoomInit";
2061
509
  room_id: string;
2062
- }, unknown, $ZodTypeInternals<{
510
+ }, unknown, zod.core.$ZodTypeInternals<{
2063
511
  methodType: "liveRoomInfo" | "liveRoomInit";
2064
512
  room_id: string;
2065
513
  }, unknown>>;
2066
- readonly liveRoomInit: ZodType<{
514
+ readonly liveRoomInit: zod.ZodType<{
2067
515
  methodType: "liveRoomInfo" | "liveRoomInit";
2068
516
  room_id: string;
2069
- }, unknown, $ZodTypeInternals<{
517
+ }, unknown, zod.core.$ZodTypeInternals<{
2070
518
  methodType: "liveRoomInfo" | "liveRoomInit";
2071
519
  room_id: string;
2072
520
  }, unknown>>;
2073
- readonly loginStatus: ZodType<{
521
+ readonly loginStatus: zod.ZodType<{
2074
522
  methodType: "loginStatus";
2075
- }, unknown, $ZodTypeInternals<{
523
+ }, unknown, zod.core.$ZodTypeInternals<{
2076
524
  methodType: "loginStatus";
2077
525
  }, unknown>>;
2078
- readonly loginQrcode: ZodType<{
526
+ readonly loginQrcode: zod.ZodType<{
2079
527
  methodType: "loginQrcode";
2080
- }, unknown, $ZodTypeInternals<{
528
+ }, unknown, zod.core.$ZodTypeInternals<{
2081
529
  methodType: "loginQrcode";
2082
530
  }, unknown>>;
2083
- readonly qrcodeStatus: ZodType<{
531
+ readonly qrcodeStatus: zod.ZodType<{
2084
532
  methodType: "qrcodeStatus";
2085
533
  qrcode_key: string;
2086
- }, unknown, $ZodTypeInternals<{
534
+ }, unknown, zod.core.$ZodTypeInternals<{
2087
535
  methodType: "qrcodeStatus";
2088
536
  qrcode_key: string;
2089
537
  }, unknown>>;
2090
- readonly uploaderTotalViews: ZodType<{
538
+ readonly uploaderTotalViews: zod.ZodType<{
2091
539
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2092
540
  host_mid: number;
2093
- }, unknown, $ZodTypeInternals<{
541
+ }, unknown, zod.core.$ZodTypeInternals<{
2094
542
  methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo";
2095
543
  host_mid: number;
2096
544
  }, unknown>>;
2097
- readonly avToBv: ZodType<{
545
+ readonly avToBv: zod.ZodType<{
2098
546
  methodType: "avToBv";
2099
547
  avid: number;
2100
- }, unknown, $ZodTypeInternals<{
548
+ }, unknown, zod.core.$ZodTypeInternals<{
2101
549
  methodType: "avToBv";
2102
550
  avid: number;
2103
551
  }, unknown>>;
2104
- readonly bvToAv: ZodType<{
552
+ readonly bvToAv: zod.ZodType<{
2105
553
  methodType: "bvToAv";
2106
554
  bvid: string;
2107
- }, unknown, $ZodTypeInternals<{
555
+ }, unknown, zod.core.$ZodTypeInternals<{
2108
556
  methodType: "bvToAv";
2109
557
  bvid: string;
2110
558
  }, unknown>>;
2111
- readonly articleContent: ZodType<{
559
+ readonly articleContent: zod.ZodType<{
2112
560
  methodType: "articleContent";
2113
561
  id: string;
2114
- }, unknown, $ZodTypeInternals<{
562
+ }, unknown, zod.core.$ZodTypeInternals<{
2115
563
  methodType: "articleContent";
2116
564
  id: string;
2117
565
  }, unknown>>;
2118
- readonly articleCards: ZodType<{
566
+ readonly articleCards: zod.ZodType<{
2119
567
  methodType: "articleCards";
2120
568
  ids: string[] | string;
2121
- }, unknown, $ZodTypeInternals<{
569
+ }, unknown, zod.core.$ZodTypeInternals<{
2122
570
  methodType: "articleCards";
2123
571
  ids: string[] | string;
2124
572
  }, unknown>>;
2125
- readonly articleInfo: ZodType<{
573
+ readonly articleInfo: zod.ZodType<{
2126
574
  methodType: "articleInfo";
2127
575
  id: string;
2128
- }, unknown, $ZodTypeInternals<{
576
+ }, unknown, zod.core.$ZodTypeInternals<{
2129
577
  methodType: "articleInfo";
2130
578
  id: string;
2131
579
  }, unknown>>;
2132
- readonly articleListInfo: ZodType<{
580
+ readonly articleListInfo: zod.ZodType<{
2133
581
  methodType: "articleListInfo";
2134
582
  id: string;
2135
- }, unknown, $ZodTypeInternals<{
583
+ }, unknown, zod.core.$ZodTypeInternals<{
2136
584
  methodType: "articleListInfo";
2137
585
  id: string;
2138
586
  }, unknown>>;
2139
- readonly captchaFromVoucher: ZodType<{
587
+ readonly captchaFromVoucher: zod.ZodType<{
2140
588
  methodType: "captchaFromVoucher";
2141
589
  csrf?: string;
2142
590
  v_voucher: string;
2143
- }, unknown, $ZodTypeInternals<{
591
+ }, unknown, zod.core.$ZodTypeInternals<{
2144
592
  methodType: "captchaFromVoucher";
2145
593
  csrf?: string;
2146
594
  v_voucher: string;
2147
595
  }, unknown>>;
2148
- readonly validateCaptcha: ZodType<{
596
+ readonly validateCaptcha: zod.ZodType<{
2149
597
  methodType: "validateCaptcha";
2150
598
  csrf?: string;
2151
599
  challenge: string;
2152
600
  token: string;
2153
601
  validate: string;
2154
602
  seccode: string;
2155
- }, unknown, $ZodTypeInternals<{
603
+ }, unknown, zod.core.$ZodTypeInternals<{
2156
604
  methodType: "validateCaptcha";
2157
605
  csrf?: string;
2158
606
  challenge: string;
@@ -2160,11 +608,11 @@ declare const BilibiliValidationSchemas: {
2160
608
  validate: string;
2161
609
  seccode: string;
2162
610
  }, unknown>>;
2163
- readonly videoDanmaku: ZodType<{
611
+ readonly videoDanmaku: zod.ZodType<{
2164
612
  methodType: "videoDanmaku";
2165
613
  cid: number;
2166
614
  segment_index?: number;
2167
- }, unknown, $ZodTypeInternals<{
615
+ }, unknown, zod.core.$ZodTypeInternals<{
2168
616
  methodType: "videoDanmaku";
2169
617
  cid: number;
2170
618
  segment_index?: number;
@@ -2378,192 +826,192 @@ type DouyinMethodOptMap = {
2378
826
  }; //#endregion
2379
827
  //#region src/validation/douyin.d.ts
2380
828
  /** 作品参数验证 */
2381
- declare const DouyinWorkParamsSchema: ZodType<DouyinMethodOptionsMap['WorkParams']>;
829
+ declare const DouyinWorkParamsSchema: zod.ZodType<DouyinMethodOptionsMap['WorkParams']>;
2382
830
  /** 评论参数验证 */
2383
- declare const DouyinCommentParamsSchema: ZodType<DouyinMethodOptionsMap['CommentParams']>;
831
+ declare const DouyinCommentParamsSchema: zod.ZodType<DouyinMethodOptionsMap['CommentParams']>;
2384
832
  /** 热点词参数验证 */
2385
- declare const DouyinHotWordsParamsSchema: ZodType<DouyinMethodOptionsMap['HotWordsParams']>;
833
+ declare const DouyinHotWordsParamsSchema: zod.ZodType<DouyinMethodOptionsMap['HotWordsParams']>;
2386
834
  /** 搜索参数验证 */
2387
- declare const DouyinSearchParamsSchema: ZodType<DouyinMethodOptionsMap['SearchParams']>;
835
+ declare const DouyinSearchParamsSchema: zod.ZodType<DouyinMethodOptionsMap['SearchParams']>;
2388
836
  /** 评论回复参数验证 */
2389
- declare const DouyinCommentReplyParamsSchema: ZodType<DouyinMethodOptionsMap['CommentReplyParams']>;
837
+ declare const DouyinCommentReplyParamsSchema: zod.ZodType<DouyinMethodOptionsMap['CommentReplyParams']>;
2390
838
  /** 用户参数验证 */
2391
- declare const DouyinUserParamsSchema: ZodType<DouyinMethodOptionsMap['UserParams']>;
839
+ declare const DouyinUserParamsSchema: zod.ZodType<DouyinMethodOptionsMap['UserParams']>;
2392
840
  /** 用户列表参数验证(视频列表、喜欢列表、推荐列表) */
2393
- declare const DouyinUserListParamsSchema: ZodType<DouyinMethodOptionsMap['UserListParams']>;
841
+ declare const DouyinUserListParamsSchema: zod.ZodType<DouyinMethodOptionsMap['UserListParams']>;
2394
842
  /** 音乐参数验证 */
2395
- declare const DouyinMusicParamsSchema: ZodType<DouyinMethodOptionsMap['MusicParams']>;
843
+ declare const DouyinMusicParamsSchema: zod.ZodType<DouyinMethodOptionsMap['MusicParams']>;
2396
844
  /** 直播间参数验证 */
2397
- declare const DouyinLiveRoomParamsSchema: ZodType<DouyinMethodOptionsMap['LiveRoomParams']>;
845
+ declare const DouyinLiveRoomParamsSchema: zod.ZodType<DouyinMethodOptionsMap['LiveRoomParams']>;
2398
846
  /** 二维码参数验证 */
2399
- declare const DouyinQrcodeParamsSchema: ZodType<DouyinMethodOptionsMap['QrcodeParams']>;
847
+ declare const DouyinQrcodeParamsSchema: zod.ZodType<DouyinMethodOptionsMap['QrcodeParams']>;
2400
848
  /** 表情列表参数验证 */
2401
- declare const DouyinEmojiListParamsSchema: ZodType<DouyinMethodOptionsMap['EmojiListParams']>;
849
+ declare const DouyinEmojiListParamsSchema: zod.ZodType<DouyinMethodOptionsMap['EmojiListParams']>;
2402
850
  /** 动态表情参数验证 */
2403
- declare const DouyinEmojiProParamsSchema: ZodType<DouyinMethodOptionsMap['EmojiProParams']>;
851
+ declare const DouyinEmojiProParamsSchema: zod.ZodType<DouyinMethodOptionsMap['EmojiProParams']>;
2404
852
  /** 弹幕参数验证 */
2405
- declare const DouyinDanmakuParamsSchema: ZodType<DouyinMethodOptionsMap['DanmakuParams']>;
853
+ declare const DouyinDanmakuParamsSchema: zod.ZodType<DouyinMethodOptionsMap['DanmakuParams']>;
2406
854
  /** 抖音参数验证模式映射 */
2407
855
  declare const DouyinValidationSchemas: {
2408
- readonly textWork: ZodType<{
856
+ readonly textWork: zod.ZodType<{
2409
857
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2410
858
  aweme_id: string;
2411
- }, unknown, $ZodTypeInternals<{
859
+ }, unknown, zod.core.$ZodTypeInternals<{
2412
860
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2413
861
  aweme_id: string;
2414
862
  }, unknown>>;
2415
- readonly parseWork: ZodType<{
863
+ readonly parseWork: zod.ZodType<{
2416
864
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2417
865
  aweme_id: string;
2418
- }, unknown, $ZodTypeInternals<{
866
+ }, unknown, zod.core.$ZodTypeInternals<{
2419
867
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2420
868
  aweme_id: string;
2421
869
  }, unknown>>;
2422
- readonly videoWork: ZodType<{
870
+ readonly videoWork: zod.ZodType<{
2423
871
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2424
872
  aweme_id: string;
2425
- }, unknown, $ZodTypeInternals<{
873
+ }, unknown, zod.core.$ZodTypeInternals<{
2426
874
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2427
875
  aweme_id: string;
2428
876
  }, unknown>>;
2429
- readonly imageAlbumWork: ZodType<{
877
+ readonly imageAlbumWork: zod.ZodType<{
2430
878
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2431
879
  aweme_id: string;
2432
- }, unknown, $ZodTypeInternals<{
880
+ }, unknown, zod.core.$ZodTypeInternals<{
2433
881
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2434
882
  aweme_id: string;
2435
883
  }, unknown>>;
2436
- readonly slidesWork: ZodType<{
884
+ readonly slidesWork: zod.ZodType<{
2437
885
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2438
886
  aweme_id: string;
2439
- }, unknown, $ZodTypeInternals<{
887
+ }, unknown, zod.core.$ZodTypeInternals<{
2440
888
  methodType: "videoWork" | "imageAlbumWork" | "slidesWork" | "parseWork" | "textWork";
2441
889
  aweme_id: string;
2442
890
  }, unknown>>;
2443
- readonly comments: ZodType<{
891
+ readonly comments: zod.ZodType<{
2444
892
  methodType: "comments";
2445
893
  aweme_id: string;
2446
894
  number?: number;
2447
895
  cursor?: number;
2448
- }, unknown, $ZodTypeInternals<{
896
+ }, unknown, zod.core.$ZodTypeInternals<{
2449
897
  methodType: "comments";
2450
898
  aweme_id: string;
2451
899
  number?: number;
2452
900
  cursor?: number;
2453
901
  }, unknown>>;
2454
- readonly userProfile: ZodType<{
902
+ readonly userProfile: zod.ZodType<{
2455
903
  methodType: "userProfile";
2456
904
  sec_uid: string;
2457
- }, unknown, $ZodTypeInternals<{
905
+ }, unknown, zod.core.$ZodTypeInternals<{
2458
906
  methodType: "userProfile";
2459
907
  sec_uid: string;
2460
908
  }, unknown>>;
2461
- readonly userVideoList: ZodType<{
909
+ readonly userVideoList: zod.ZodType<{
2462
910
  methodType: "userVideoList" | "userFavoriteList" | "userRecommendList";
2463
911
  sec_uid: string;
2464
912
  number?: number;
2465
913
  max_cursor?: string;
2466
- }, unknown, $ZodTypeInternals<{
914
+ }, unknown, zod.core.$ZodTypeInternals<{
2467
915
  methodType: "userVideoList" | "userFavoriteList" | "userRecommendList";
2468
916
  sec_uid: string;
2469
917
  number?: number;
2470
918
  max_cursor?: string;
2471
919
  }, unknown>>;
2472
- readonly userFavoriteList: ZodType<{
920
+ readonly userFavoriteList: zod.ZodType<{
2473
921
  methodType: "userVideoList" | "userFavoriteList" | "userRecommendList";
2474
922
  sec_uid: string;
2475
923
  number?: number;
2476
924
  max_cursor?: string;
2477
- }, unknown, $ZodTypeInternals<{
925
+ }, unknown, zod.core.$ZodTypeInternals<{
2478
926
  methodType: "userVideoList" | "userFavoriteList" | "userRecommendList";
2479
927
  sec_uid: string;
2480
928
  number?: number;
2481
929
  max_cursor?: string;
2482
930
  }, unknown>>;
2483
- readonly userRecommendList: ZodType<{
931
+ readonly userRecommendList: zod.ZodType<{
2484
932
  methodType: "userVideoList" | "userFavoriteList" | "userRecommendList";
2485
933
  sec_uid: string;
2486
934
  number?: number;
2487
935
  max_cursor?: string;
2488
- }, unknown, $ZodTypeInternals<{
936
+ }, unknown, zod.core.$ZodTypeInternals<{
2489
937
  methodType: "userVideoList" | "userFavoriteList" | "userRecommendList";
2490
938
  sec_uid: string;
2491
939
  number?: number;
2492
940
  max_cursor?: string;
2493
941
  }, unknown>>;
2494
- readonly suggestWords: ZodType<{
942
+ readonly suggestWords: zod.ZodType<{
2495
943
  methodType: "suggestWords";
2496
944
  query: string;
2497
- }, unknown, $ZodTypeInternals<{
945
+ }, unknown, zod.core.$ZodTypeInternals<{
2498
946
  methodType: "suggestWords";
2499
947
  query: string;
2500
948
  }, unknown>>;
2501
- readonly search: ZodType<{
949
+ readonly search: zod.ZodType<{
2502
950
  methodType: "search";
2503
951
  query: string;
2504
952
  type?: "general" | "user" | "video";
2505
953
  number?: number;
2506
954
  search_id?: string;
2507
- }, unknown, $ZodTypeInternals<{
955
+ }, unknown, zod.core.$ZodTypeInternals<{
2508
956
  methodType: "search";
2509
957
  query: string;
2510
958
  type?: "general" | "user" | "video";
2511
959
  number?: number;
2512
960
  search_id?: string;
2513
961
  }, unknown>>;
2514
- readonly musicInfo: ZodType<{
962
+ readonly musicInfo: zod.ZodType<{
2515
963
  methodType: "musicInfo";
2516
964
  music_id: string;
2517
- }, unknown, $ZodTypeInternals<{
965
+ }, unknown, zod.core.$ZodTypeInternals<{
2518
966
  methodType: "musicInfo";
2519
967
  music_id: string;
2520
968
  }, unknown>>;
2521
- readonly liveRoomInfo: ZodType<{
969
+ readonly liveRoomInfo: zod.ZodType<{
2522
970
  methodType: "liveRoomInfo";
2523
971
  room_id: string;
2524
972
  web_rid: string;
2525
- }, unknown, $ZodTypeInternals<{
973
+ }, unknown, zod.core.$ZodTypeInternals<{
2526
974
  methodType: "liveRoomInfo";
2527
975
  room_id: string;
2528
976
  web_rid: string;
2529
977
  }, unknown>>;
2530
- readonly loginQrcode: ZodType<{
978
+ readonly loginQrcode: zod.ZodType<{
2531
979
  methodType: "loginQrcode";
2532
980
  verify_fp: string;
2533
- }, unknown, $ZodTypeInternals<{
981
+ }, unknown, zod.core.$ZodTypeInternals<{
2534
982
  methodType: "loginQrcode";
2535
983
  verify_fp: string;
2536
984
  }, unknown>>;
2537
- readonly emojiList: ZodType<{
985
+ readonly emojiList: zod.ZodType<{
2538
986
  methodType: "emojiList";
2539
- }, unknown, $ZodTypeInternals<{
987
+ }, unknown, zod.core.$ZodTypeInternals<{
2540
988
  methodType: "emojiList";
2541
989
  }, unknown>>;
2542
- readonly dynamicEmojiList: ZodType<{
990
+ readonly dynamicEmojiList: zod.ZodType<{
2543
991
  methodType: "dynamicEmojiList";
2544
- }, unknown, $ZodTypeInternals<{
992
+ }, unknown, zod.core.$ZodTypeInternals<{
2545
993
  methodType: "dynamicEmojiList";
2546
994
  }, unknown>>;
2547
- readonly commentReplies: ZodType<{
995
+ readonly commentReplies: zod.ZodType<{
2548
996
  methodType: "commentReplies";
2549
997
  aweme_id: string;
2550
998
  comment_id: string;
2551
999
  number?: number;
2552
1000
  cursor?: number;
2553
- }, unknown, $ZodTypeInternals<{
1001
+ }, unknown, zod.core.$ZodTypeInternals<{
2554
1002
  methodType: "commentReplies";
2555
1003
  aweme_id: string;
2556
1004
  comment_id: string;
2557
1005
  number?: number;
2558
1006
  cursor?: number;
2559
1007
  }, unknown>>;
2560
- readonly danmakuList: ZodType<{
1008
+ readonly danmakuList: zod.ZodType<{
2561
1009
  methodType: "danmakuList";
2562
1010
  aweme_id: string;
2563
1011
  start_time?: number;
2564
1012
  end_time?: number;
2565
1013
  duration: number;
2566
- }, unknown, $ZodTypeInternals<{
1014
+ }, unknown, zod.core.$ZodTypeInternals<{
2567
1015
  methodType: "danmakuList";
2568
1016
  aweme_id: string;
2569
1017
  start_time?: number;
@@ -2641,73 +1089,73 @@ type KuaishouMethodOptMap = {
2641
1089
  /**
2642
1090
  * 快手视频参数验证模式
2643
1091
  */
2644
- declare const KuaishouVideoParamsSchema: ZodType<KuaishouMethodOptionsMap['VideoInfoParams']>;
1092
+ declare const KuaishouVideoParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['VideoInfoParams']>;
2645
1093
  /**
2646
1094
  * 快手评论参数验证模式
2647
1095
  */
2648
- declare const KuaishouCommentParamsSchema: ZodType<KuaishouMethodOptionsMap['CommentParams']>;
1096
+ declare const KuaishouCommentParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['CommentParams']>;
2649
1097
  /**
2650
1098
  * 快手用户主页参数验证模式
2651
1099
  */
2652
- declare const KuaishouUserProfileParamsSchema: ZodType<KuaishouMethodOptionsMap['UserProfileParams']>;
1100
+ declare const KuaishouUserProfileParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['UserProfileParams']>;
2653
1101
  /**
2654
1102
  * 快手用户作品列表参数验证模式
2655
1103
  */
2656
- declare const KuaishouUserWorkListParamsSchema: ZodType<KuaishouMethodOptionsMap['UserWorkListParams']>;
1104
+ declare const KuaishouUserWorkListParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['UserWorkListParams']>;
2657
1105
  /**
2658
1106
  * 快手直播间信息参数验证模式
2659
1107
  */
2660
- declare const KuaishouLiveRoomInfoParamsSchema: ZodType<KuaishouMethodOptionsMap['LiveRoomInfoParams']>;
1108
+ declare const KuaishouLiveRoomInfoParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['LiveRoomInfoParams']>;
2661
1109
  /**
2662
1110
  * 快手表情参数验证模式
2663
1111
  */
2664
- declare const KuaishouEmojiParamsSchema: ZodType<KuaishouMethodOptionsMap['EmojiListParams']>;
1112
+ declare const KuaishouEmojiParamsSchema: zod.ZodType<KuaishouMethodOptionsMap['EmojiListParams']>;
2665
1113
  /**
2666
1114
  * 快手参数验证模式映射
2667
1115
  */
2668
1116
  declare const KuaishouValidationSchemas: {
2669
- readonly videoWork: ZodType<{
1117
+ readonly videoWork: zod.ZodType<{
2670
1118
  methodType: "videoWork";
2671
1119
  photoId: string;
2672
- }, unknown, $ZodTypeInternals<{
1120
+ }, unknown, zod.core.$ZodTypeInternals<{
2673
1121
  methodType: "videoWork";
2674
1122
  photoId: string;
2675
1123
  }, unknown>>;
2676
- readonly comments: ZodType<{
1124
+ readonly comments: zod.ZodType<{
2677
1125
  methodType: "comments";
2678
1126
  photoId: string;
2679
- }, unknown, $ZodTypeInternals<{
1127
+ }, unknown, zod.core.$ZodTypeInternals<{
2680
1128
  methodType: "comments";
2681
1129
  photoId: string;
2682
1130
  }, unknown>>;
2683
- readonly userProfile: ZodType<{
1131
+ readonly userProfile: zod.ZodType<{
2684
1132
  methodType: "userProfile";
2685
1133
  principalId: string;
2686
- }, unknown, $ZodTypeInternals<{
1134
+ }, unknown, zod.core.$ZodTypeInternals<{
2687
1135
  methodType: "userProfile";
2688
1136
  principalId: string;
2689
1137
  }, unknown>>;
2690
- readonly userWorkList: ZodType<{
1138
+ readonly userWorkList: zod.ZodType<{
2691
1139
  methodType: "userWorkList";
2692
1140
  principalId: string;
2693
1141
  pcursor?: string;
2694
1142
  count?: number;
2695
- }, unknown, $ZodTypeInternals<{
1143
+ }, unknown, zod.core.$ZodTypeInternals<{
2696
1144
  methodType: "userWorkList";
2697
1145
  principalId: string;
2698
1146
  pcursor?: string;
2699
1147
  count?: number;
2700
1148
  }, unknown>>;
2701
- readonly liveRoomInfo: ZodType<{
1149
+ readonly liveRoomInfo: zod.ZodType<{
2702
1150
  methodType: "liveRoomInfo";
2703
1151
  principalId: string;
2704
- }, unknown, $ZodTypeInternals<{
1152
+ }, unknown, zod.core.$ZodTypeInternals<{
2705
1153
  methodType: "liveRoomInfo";
2706
1154
  principalId: string;
2707
1155
  }, unknown>>;
2708
- readonly emojiList: ZodType<{
1156
+ readonly emojiList: zod.ZodType<{
2709
1157
  methodType: "emojiList";
2710
- }, unknown, $ZodTypeInternals<{
1158
+ }, unknown, zod.core.$ZodTypeInternals<{
2711
1159
  methodType: "emojiList";
2712
1160
  }, unknown>>;
2713
1161
  };
@@ -2925,7 +1373,7 @@ declare const xiaohongshuApiUrls: {
2925
1373
  * 小红书验证模式映射
2926
1374
  */
2927
1375
  declare const XiaohongshuValidationSchemas: {
2928
- readonly homeFeed: ZodType<{
1376
+ readonly homeFeed: zod.ZodType<{
2929
1377
  methodType: "homeFeed";
2930
1378
  cursor_score?: string;
2931
1379
  num?: number;
@@ -2933,7 +1381,7 @@ declare const XiaohongshuValidationSchemas: {
2933
1381
  note_index?: number;
2934
1382
  category?: string;
2935
1383
  search_key?: string;
2936
- }, unknown, $ZodTypeInternals<{
1384
+ }, unknown, zod.core.$ZodTypeInternals<{
2937
1385
  methodType: "homeFeed";
2938
1386
  cursor_score?: string;
2939
1387
  num?: number;
@@ -2942,57 +1390,57 @@ declare const XiaohongshuValidationSchemas: {
2942
1390
  category?: string;
2943
1391
  search_key?: string;
2944
1392
  }, unknown>>;
2945
- readonly noteDetail: ZodType<{
1393
+ readonly noteDetail: zod.ZodType<{
2946
1394
  methodType: "noteDetail";
2947
1395
  note_id: string;
2948
1396
  xsec_token: string;
2949
- }, unknown, $ZodTypeInternals<{
1397
+ }, unknown, zod.core.$ZodTypeInternals<{
2950
1398
  methodType: "noteDetail";
2951
1399
  note_id: string;
2952
1400
  xsec_token: string;
2953
1401
  }, unknown>>;
2954
- readonly noteComments: ZodType<{
1402
+ readonly noteComments: zod.ZodType<{
2955
1403
  methodType: "noteComments";
2956
1404
  note_id: string;
2957
1405
  cursor?: string;
2958
1406
  xsec_token: string;
2959
- }, unknown, $ZodTypeInternals<{
1407
+ }, unknown, zod.core.$ZodTypeInternals<{
2960
1408
  methodType: "noteComments";
2961
1409
  note_id: string;
2962
1410
  cursor?: string;
2963
1411
  xsec_token: string;
2964
1412
  }, unknown>>;
2965
- readonly userProfile: ZodType<{
1413
+ readonly userProfile: zod.ZodType<{
2966
1414
  methodType: "userProfile";
2967
1415
  user_id: string;
2968
- }, unknown, $ZodTypeInternals<{
1416
+ }, unknown, zod.core.$ZodTypeInternals<{
2969
1417
  methodType: "userProfile";
2970
1418
  user_id: string;
2971
1419
  }, unknown>>;
2972
- readonly userNoteList: ZodType<{
1420
+ readonly userNoteList: zod.ZodType<{
2973
1421
  methodType: "userNoteList";
2974
1422
  user_id: string;
2975
1423
  cursor?: string;
2976
1424
  num?: number;
2977
- }, unknown, $ZodTypeInternals<{
1425
+ }, unknown, zod.core.$ZodTypeInternals<{
2978
1426
  methodType: "userNoteList";
2979
1427
  user_id: string;
2980
1428
  cursor?: string;
2981
1429
  num?: number;
2982
1430
  }, unknown>>;
2983
- readonly emojiList: ZodType<{
1431
+ readonly emojiList: zod.ZodType<{
2984
1432
  methodType: "emojiList";
2985
- }, unknown, $ZodTypeInternals<{
1433
+ }, unknown, zod.core.$ZodTypeInternals<{
2986
1434
  methodType: "emojiList";
2987
1435
  }, unknown>>;
2988
- readonly searchNotes: ZodType<{
1436
+ readonly searchNotes: zod.ZodType<{
2989
1437
  methodType: "searchNotes";
2990
1438
  keyword: string;
2991
1439
  page?: number;
2992
1440
  page_size?: number;
2993
1441
  sort?: SearchSortType;
2994
1442
  note_type?: SearchNoteType;
2995
- }, unknown, $ZodTypeInternals<{
1443
+ }, unknown, zod.core.$ZodTypeInternals<{
2996
1444
  methodType: "searchNotes";
2997
1445
  keyword: string;
2998
1446
  page?: number;
@@ -3224,7 +1672,7 @@ type BaseResponse = {
3224
1672
  * 成功响应类型
3225
1673
  * @template T - 响应数据的类型,默认为any
3226
1674
  */
3227
- type SuccessResult$1<T = any> = BaseResponse & {
1675
+ type SuccessResult<T = any> = BaseResponse & {
3228
1676
  /** 响应状态 */success: true; /** 响应数据,类型由泛型 T 决定 */
3229
1677
  data: T; /** 成功响应时错误信息为空 */
3230
1678
  error: never;
@@ -3241,41 +1689,41 @@ type ErrorResult = BaseResponse & {
3241
1689
  * 通用API响应类型
3242
1690
  * @template T - 成功响应数据的类型,默认为any
3243
1691
  */
3244
- type Result$1<T> = SuccessResult$1<T> | ErrorResult;
1692
+ type Result<T> = SuccessResult<T> | ErrorResult;
3245
1693
  /**
3246
1694
  * 通用API响应类型
3247
1695
  * @template T - 成功响应数据的类型,默认为any
3248
1696
  * @deprecated 请使用 Result<T> 替代
3249
1697
  */
3250
- type ApiResponse<T> = Result$1<T>;
1698
+ type ApiResponse<T> = Result<T>;
3251
1699
  /**
3252
1700
  * 验证抖音参数
3253
1701
  * @param methodType - 抖音方法类型
3254
1702
  * @param params - 待验证的参数
3255
1703
  * @returns 验证后的参数,符合原始API期望的类型
3256
1704
  */
3257
- declare const validateDouyinParams: <T extends DouyinMethodType>(methodType: T, params: unknown) => output<(typeof DouyinValidationSchemas)[T]>;
1705
+ declare const validateDouyinParams: <T extends DouyinMethodType>(methodType: T, params: unknown) => zod.infer<(typeof DouyinValidationSchemas)[T]>;
3258
1706
  /**
3259
1707
  * 验证哔哩哔哩参数
3260
1708
  * @param methodType - 哔哩哔哩方法类型
3261
1709
  * @param params - 待验证的参数
3262
1710
  * @returns 验证后的参数,符合原始API期望的类型
3263
1711
  */
3264
- declare const validateBilibiliParams: <T extends BilibiliMethodType>(methodType: T, params: unknown) => output<(typeof BilibiliValidationSchemas)[T]>;
1712
+ declare const validateBilibiliParams: <T extends BilibiliMethodType>(methodType: T, params: unknown) => zod.infer<(typeof BilibiliValidationSchemas)[T]>;
3265
1713
  /**
3266
1714
  * 验证快手参数
3267
1715
  * @param methodType - 快手方法类型
3268
1716
  * @param params - 待验证的参数
3269
1717
  * @returns 验证后的参数,符合原始API期望的类型
3270
1718
  */
3271
- declare const validateKuaishouParams: <T extends KuaishouMethodType>(methodType: T, params: unknown) => output<(typeof KuaishouValidationSchemas)[T]>;
1719
+ declare const validateKuaishouParams: <T extends KuaishouMethodType>(methodType: T, params: unknown) => zod.infer<(typeof KuaishouValidationSchemas)[T]>;
3272
1720
  /**
3273
1721
  * 验证小红书参数
3274
1722
  * @param methodType - 小红书方法类型
3275
1723
  * @param params - 待验证的参数
3276
1724
  * @returns 验证后的参数
3277
1725
  */
3278
- declare const validateXiaohongshuParams: <T extends XiaohongshuMethodType>(methodType: T, params: unknown) => output<(typeof XiaohongshuValidationSchemas)[T]>;
1726
+ declare const validateXiaohongshuParams: <T extends XiaohongshuMethodType>(methodType: T, params: unknown) => zod.infer<(typeof XiaohongshuValidationSchemas)[T]>;
3279
1727
  /**
3280
1728
  * 创建成功响应格式
3281
1729
  * @param data - 响应数据
@@ -3283,7 +1731,7 @@ declare const validateXiaohongshuParams: <T extends XiaohongshuMethodType>(metho
3283
1731
  * @param code - 响应状态码(可选,默认200)
3284
1732
  * @returns 格式化的成功API响应对象
3285
1733
  */
3286
- declare const createSuccessResponse: <T>(data: T, message: string, code?: number) => SuccessResult$1<T>;
1734
+ declare const createSuccessResponse: <T>(data: T, message: string, code?: number) => SuccessResult<T>;
3287
1735
  /**
3288
1736
  * 创建失败响应格式
3289
1737
  * @param error - 错误信息
@@ -5216,7 +3664,7 @@ type DataData$22 = {
5216
3664
  articles: null;
5217
3665
  attention: boolean;
5218
3666
  author: Author$9;
5219
- last: Last$1;
3667
+ last: Last;
5220
3668
  list: List;
5221
3669
  [property: string]: any;
5222
3670
  };
@@ -5270,7 +3718,7 @@ type Label$8 = {
5270
3718
  text: string;
5271
3719
  [property: string]: any;
5272
3720
  };
5273
- type Last$1 = {
3721
+ type Last = {
5274
3722
  attributes: number;
5275
3723
  author_uid: number;
5276
3724
  categories: string[];
@@ -27335,7 +25783,7 @@ type DataData = {
27335
25783
  basicInfo: BasicInfo;
27336
25784
  extraInfo: ExtraInfo;
27337
25785
  interactions: Interaction[];
27338
- result: Result$1$1;
25786
+ result: Result$1;
27339
25787
  tabPublic: TabPublic;
27340
25788
  tags: Tag[];
27341
25789
  verifyInfo: VerifyInfo;
@@ -27362,7 +25810,7 @@ type Interaction = {
27362
25810
  type: string;
27363
25811
  [property: string]: any;
27364
25812
  };
27365
- type Result$1$1 = {
25813
+ type Result$1 = {
27366
25814
  code: number;
27367
25815
  message: string;
27368
25816
  success: boolean;
@@ -27765,7 +26213,7 @@ type XiaohongshuDataOptionsMap = { [K in XiaohongshuMethodType]: {
27765
26213
  data: XiaohongshuReturnTypeMap[K];
27766
26214
  } };
27767
26215
  type XiaohongshuDataOptions<T extends keyof XiaohongshuDataOptionsMap> = OmitMethodType<XiaohongshuDataOptionsMap[T]['opt'] & TypeControl>;
27768
- type DouyinDataOptions<T extends DouyinMethodType> = OmitMethodType<output<(typeof DouyinValidationSchemas)[T]> & TypeControl>;
26216
+ type DouyinDataOptions<T extends DouyinMethodType> = OmitMethodType<zod.infer<(typeof DouyinValidationSchemas)[T]> & TypeControl>;
27769
26217
  type BilibiliDataOptions<T extends keyof BilibiliDataOptionsMap> = OmitMethodType<BilibiliDataOptionsMap[T]['opt'] & TypeControl>;
27770
26218
  type KuaishouDataOptions<T extends keyof KuaishouDataOptionsMap> = OmitMethodType<KuaishouDataOptionsMap[T]['opt'] & TypeControl>;
27771
26219
  /**
@@ -28479,8 +26927,8 @@ interface FetcherConfig {
28479
26927
  type MethodOverload<TOptions, TStrictReturn, TCookie extends string | undefined = string | undefined, TRequestConfig extends RequestConfig | undefined = RequestConfig | undefined> = {
28480
26928
  (options: TOptions & {
28481
26929
  typeMode: 'strict';
28482
- }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result$1<TStrictReturn>>;
28483
- (options: TOptions, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result$1<any>>;
26930
+ }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result<TStrictReturn>>;
26931
+ (options: TOptions, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result<any>>;
28484
26932
  };
28485
26933
  /**
28486
26934
  * 为绑定 Cookie 的方法生成函数重载类型(少了 cookie 参数)
@@ -28488,8 +26936,8 @@ type MethodOverload<TOptions, TStrictReturn, TCookie extends string | undefined
28488
26936
  type BoundMethodOverload<TOptions, TStrictReturn, TRequestConfig extends RequestConfig | undefined = RequestConfig | undefined> = {
28489
26937
  (options: TOptions & {
28490
26938
  typeMode: 'strict';
28491
- }, requestConfig?: TRequestConfig): Promise<Result$1<TStrictReturn>>;
28492
- (options: TOptions, requestConfig?: TRequestConfig): Promise<Result$1<any>>;
26939
+ }, requestConfig?: TRequestConfig): Promise<Result<TStrictReturn>>;
26940
+ (options: TOptions, requestConfig?: TRequestConfig): Promise<Result<any>>;
28493
26941
  };
28494
26942
  /**
28495
26943
  * 为无参数方法生成函数重载类型
@@ -28497,10 +26945,10 @@ type BoundMethodOverload<TOptions, TStrictReturn, TRequestConfig extends Request
28497
26945
  type NoParamMethodOverload<TStrictReturn, TCookie extends string | undefined = string | undefined, TRequestConfig extends RequestConfig | undefined = RequestConfig | undefined> = {
28498
26946
  (options: {
28499
26947
  typeMode: 'strict';
28500
- }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result$1<TStrictReturn>>;
26948
+ }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result<TStrictReturn>>;
28501
26949
  (options?: {
28502
26950
  typeMode?: TypeMode;
28503
- }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result$1<any>>;
26951
+ }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result<any>>;
28504
26952
  };
28505
26953
  /**
28506
26954
  * 为绑定 Cookie 的无参数方法生成函数重载类型
@@ -28508,10 +26956,10 @@ type NoParamMethodOverload<TStrictReturn, TCookie extends string | undefined = s
28508
26956
  type BoundNoParamMethodOverload<TStrictReturn, TRequestConfig extends RequestConfig | undefined = RequestConfig | undefined> = {
28509
26957
  (options: {
28510
26958
  typeMode: 'strict';
28511
- }, requestConfig?: TRequestConfig): Promise<Result$1<TStrictReturn>>;
26959
+ }, requestConfig?: TRequestConfig): Promise<Result<TStrictReturn>>;
28512
26960
  (options?: {
28513
26961
  typeMode?: TypeMode;
28514
- }, requestConfig?: TRequestConfig): Promise<Result$1<any>>;
26962
+ }, requestConfig?: TRequestConfig): Promise<Result<any>>;
28515
26963
  };
28516
26964
  /**
28517
26965
  * 为带可选参数的方法生成函数重载类型(参数可选但可能包含额外字段)
@@ -28519,8 +26967,8 @@ type BoundNoParamMethodOverload<TStrictReturn, TRequestConfig extends RequestCon
28519
26967
  type OptionalParamMethodOverload<TOptions, TStrictReturn, TCookie extends string | undefined = string | undefined, TRequestConfig extends RequestConfig | undefined = RequestConfig | undefined> = {
28520
26968
  (options: TOptions & {
28521
26969
  typeMode: 'strict';
28522
- }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result$1<TStrictReturn>>;
28523
- (options?: TOptions, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result$1<any>>;
26970
+ }, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result<TStrictReturn>>;
26971
+ (options?: TOptions, ...args: TCookie extends undefined ? TRequestConfig extends undefined ? [] : [requestConfig?: TRequestConfig] : TRequestConfig extends undefined ? [cookie?: TCookie] : [cookie?: TCookie, requestConfig?: TRequestConfig]): Promise<Result<any>>;
28524
26972
  };
28525
26973
  /**
28526
26974
  * 为绑定 Cookie 的带可选参数方法生成函数重载类型
@@ -28528,8 +26976,8 @@ type OptionalParamMethodOverload<TOptions, TStrictReturn, TCookie extends string
28528
26976
  type BoundOptionalParamMethodOverload<TOptions, TStrictReturn, TRequestConfig extends RequestConfig | undefined = RequestConfig | undefined> = {
28529
26977
  (options: TOptions & {
28530
26978
  typeMode: 'strict';
28531
- }, requestConfig?: TRequestConfig): Promise<Result$1<TStrictReturn>>;
28532
- (options?: TOptions, requestConfig?: TRequestConfig): Promise<Result$1<any>>;
26979
+ }, requestConfig?: TRequestConfig): Promise<Result<TStrictReturn>>;
26980
+ (options?: TOptions, requestConfig?: TRequestConfig): Promise<Result<any>>;
28533
26981
  }; //#endregion
28534
26982
  //#region src/model/fetchers/bilibili/bound.d.ts
28535
26983
  /**
@@ -30119,7 +28567,7 @@ declare class ValidationError extends Error {
30119
28567
  * @param requestPath - HTTP请求路径
30120
28568
  * @returns 验证错误实例
30121
28569
  */
30122
- static fromZodError(zodError: ZodError<any>, requestPath?: string): ValidationError;
28570
+ static fromZodError(zodError: zod.ZodError<any>, requestPath?: string): ValidationError;
30123
28571
  }
30124
28572
  /**
30125
28573
  * 处理错误并返回统一格式
@@ -30485,4 +28933,4 @@ declare const amagi: typeof Client;
30485
28933
  */
30486
28934
  //#endregion
30487
28935
  //#endregion
30488
- export { APIErrorType, AdditionalType, type AmagiEventMap, type AmagiEventType, type ApiEndpoint, ApiError, type ApiErrorEventData, ApiResponse, type ApiSuccessEventData, ArticleCard, ArticleContent, ArticleInfo, ArticleWork, BaseRequestOptions, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicCard, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliProtobufDanmaku, BiliUserDynamic, BiliUserFullView, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApiRoutes, type BilibiliApplyCaptchaOptions, BilibiliApplyCaptchaParamsSchema, type BilibiliArticleCardOptions, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, type BilibiliArticleOptions, BilibiliArticleParamsSchema, type BilibiliAv2BvOptions, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoOptions, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamOptions, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvOptions, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, type BilibiliCommentRepliesOptions, BilibiliCommentReplyParamsSchema, type BilibiliCommentsOptions, type BilibiliDanmakuOptions, BilibiliDanmakuParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, type BilibiliDynamicOptions, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, type BilibiliFetcher, BilibiliFetcherMethodKey, BilibiliFetcherMethods, BilibiliInternalMethodKey, BilibiliInternalMethods, BilibiliLiveParamsSchema, type BilibiliLiveRoomOptions, BilibiliLoginParamsSchema, type BilibiliMethodKey, BilibiliMethodMapping, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, BilibiliMethodToFetcher, type BilibiliMethodType, type BilibiliMethodValue, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusOptions, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, type BilibiliUserOptions, BilibiliUserParamsSchema, type BilibiliValidateCaptchaOptions, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, type BilibiliVideoInfoOptions, BilibiliVideoParamsSchema, type BilibiliVideoStreamOptions, BoundBilibiliApi, type BoundBilibiliFetcher, BoundDouyinApi, type BoundDouyinFetcher, BoundKuaishouApi, type BoundKuaishouFetcher, BoundXiaohongshuApi, type BoundXiaohongshuFetcher, ColumnInfo, CommentReply, CommentType, ConditionalReturnType, CookieConfig, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, type DouyinCommentRepliesOptions, DouyinCommentReplyParamsSchema, type DouyinCommentsOptions, type DouyinDanmakuOptions, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, type DouyinFetcher, DouyinFetcherMethodKey, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethodKey, DouyinInternalMethods, type DouyinLiveRoomOptions, DouyinLiveRoomParamsSchema, type DouyinMethodKey, DouyinMethodMapping, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, DouyinMethodToFetcher, type DouyinMethodType, type DouyinMethodValue, type DouyinMusicOptions, DouyinMusicParamsSchema, type DouyinQrcodeOptions, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, type DouyinSearchOptions, DouyinSearchParamsSchema, type DouyinSuggestWordsOptions, type DouyinUserListOptions, DouyinUserListParamsSchema, type DouyinUserOptions, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkOptions, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, ExtractTypeMode, FetcherConfig, HomeFeed, type HttpMethod, type HttpRequestEventData, type HttpResponseEventData, type IBilibiliFetcher, type IBoundBilibiliFetcher, type IBoundDouyinFetcher, type IBoundKuaishouFetcher, type IBoundXiaohongshuFetcher, type IDouyinFetcher, type IKuaishouFetcher, type IXiaohongshuFetcher, type KsBannedStatus, KsEmojiList, KsLiveRoomInfo, KsOneWork, type KsUserHomeWork, KsUserProfile, type KsUserProfileCounts, type KsUserProfileGameInfo, type KsUserProfileLiveInfo, type KsUserProfileSensitiveInfo, type KsUserProfileUserInfo, KsUserWorkList, type KsVerifiedStatus, KsWorkComments, KuaishouApiRoutes, KuaishouCommentParamsSchema, type KuaishouCommentsOptions, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, type KuaishouFetcher, KuaishouFetcherMethodKey, KuaishouFetcherMethods, type KuaishouGraphqlRequest, KuaishouInternalMethodKey, KuaishouInternalMethods, type KuaishouLiveApiRequest, type KuaishouLiveRoomInfoOptions, KuaishouLiveRoomInfoParamsSchema, type KuaishouMethodKey, KuaishouMethodMapping, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, KuaishouMethodToFetcher, type KuaishouMethodType, type KuaishouMethodValue, KuaishouReturnTypeMap, type KuaishouUserProfileOptions, KuaishouUserProfileParamsSchema, type KuaishouUserWorkListOptions, KuaishouUserWorkListParamsSchema, KuaishouValidationSchemas, KuaishouVideoParamsSchema, type KuaishouVideoWorkOptions, type LogEventData, MajorType, MethodMaps, type NetworkErrorEventData, type NetworkRetryEventData, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, type Platform, RequestConfig, Result$1 as Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult$1 as SuccessResult, TypeControl, TypeMode, ValidationError, XiaohongshuApiRoutes, type XiaohongshuCommentsOptions, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, type XiaohongshuFetcher, XiaohongshuFetcherMethodKey, XiaohongshuFetcherMethods, type XiaohongshuHomeFeedOptions, XiaohongshuInternalMethodKey, XiaohongshuInternalMethods, type XiaohongshuMethodKey, XiaohongshuMethodMapping, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuMethodType, type XiaohongshuMethodValue, type XiaohongshuNoteDetailOptions, XiaohongshuReturnTypeMap, type XiaohongshuSearchNotesOptions, type XiaohongshuUserNotesOptions, XiaohongshuUserProfile, type XiaohongshuUserProfileOptions, XiaohongshuValidationSchemas, amagi, amagiClient, amagiEvents, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundBilibiliFetcher, createBoundDouyinApi, createBoundDouyinFetcher, createBoundKuaishouApi, createBoundKuaishouFetcher, createBoundXiaohongshuApi, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, douyin, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getBilibiliData, getDouyinData, getEnglishMethodName, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, logMiddleware, logger, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };
28936
+ export { APIErrorType, AdditionalType, type AmagiEventMap, type AmagiEventType, type ApiEndpoint, ApiError, type ApiErrorEventData, ApiResponse, type ApiSuccessEventData, ArticleCard, ArticleContent, ArticleInfo, ArticleWork, BaseRequestOptions, BaseResponse, BiliAv2Bv, BiliBangumiVideoInfo, BiliBangumiVideoPlayurlIsLogin, BiliBangumiVideoPlayurlNoLogin, BiliBiliVideoPlayurlNoLogin, BiliBv2AV, BiliCheckQrcode, BiliCommentReply, BiliDynamicCard, BiliDynamicInfo, BiliDynamicInfoUnion, BiliEmojiList, BiliLiveRoomDef, BiliLiveRoomDetail, BiliNewLoginQrcode, BiliOneWork, BiliProtobufDanmaku, BiliUserDynamic, BiliUserFullView, BiliUserProfile, BiliVideoPlayurlIsLogin, BiliWorkComments, BilibiliApiRoutes, type BilibiliApplyCaptchaOptions, BilibiliApplyCaptchaParamsSchema, type BilibiliArticleCardOptions, BilibiliArticleCardParamsSchema, BilibiliArticleInfoParamsSchema, type BilibiliArticleOptions, BilibiliArticleParamsSchema, type BilibiliAv2BvOptions, BilibiliAv2BvParamsSchema, type BilibiliBangumiInfoOptions, BilibiliBangumiInfoParamsSchema, type BilibiliBangumiStreamOptions, BilibiliBangumiStreamParamsSchema, type BilibiliBv2AvOptions, BilibiliBv2AvParamsSchema, BilibiliColumnInfoParamsSchema, BilibiliCommentParamsSchema, type BilibiliCommentRepliesOptions, BilibiliCommentReplyParamsSchema, type BilibiliCommentsOptions, type BilibiliDanmakuOptions, BilibiliDanmakuParamsSchema, BilibiliDataOptions, BilibiliDataOptionsMap, type BilibiliDynamicOptions, BilibiliDynamicParamsSchema, BilibiliEmojiParamsSchema, type BilibiliFetcher, BilibiliFetcherMethodKey, BilibiliFetcherMethods, BilibiliInternalMethodKey, BilibiliInternalMethods, BilibiliLiveParamsSchema, type BilibiliLiveRoomOptions, BilibiliLoginParamsSchema, type BilibiliMethodKey, BilibiliMethodMapping, BilibiliMethodOptMap, BilibiliMethodOptionsMap, BilibiliMethodRoutes, BilibiliMethodToFetcher, type BilibiliMethodType, type BilibiliMethodValue, BilibiliQrcodeParamsSchema, type BilibiliQrcodeStatusOptions, BilibiliQrcodeStatusParamsSchema, BilibiliReturnTypeMap, type BilibiliUserOptions, BilibiliUserParamsSchema, type BilibiliValidateCaptchaOptions, BilibiliValidateCaptchaParamsSchema, BilibiliValidationSchemas, BilibiliVideoDownloadParamsSchema, type BilibiliVideoInfoOptions, BilibiliVideoParamsSchema, type BilibiliVideoStreamOptions, BoundBilibiliApi, type BoundBilibiliFetcher, BoundDouyinApi, type BoundDouyinFetcher, BoundKuaishouApi, type BoundKuaishouFetcher, BoundXiaohongshuApi, type BoundXiaohongshuFetcher, ColumnInfo, CommentReply, CommentType, ConditionalReturnType, CookieConfig, CreateApp, DouyinApiRoutes, DouyinCommentParamsSchema, type DouyinCommentRepliesOptions, DouyinCommentReplyParamsSchema, type DouyinCommentsOptions, type DouyinDanmakuOptions, DouyinDanmakuParamsSchema, DouyinDataOptions, DouyinDataOptionsMap, DouyinEmojiListParamsSchema, DouyinEmojiProParamsSchema, type DouyinFetcher, DouyinFetcherMethodKey, DouyinFetcherMethods, DouyinHotWordsParamsSchema, DouyinInternalMethodKey, DouyinInternalMethods, type DouyinLiveRoomOptions, DouyinLiveRoomParamsSchema, type DouyinMethodKey, DouyinMethodMapping, DouyinMethodOptMap, DouyinMethodOptionsMap, DouyinMethodRoutes, DouyinMethodToFetcher, type DouyinMethodType, type DouyinMethodValue, type DouyinMusicOptions, DouyinMusicParamsSchema, type DouyinQrcodeOptions, DouyinQrcodeParamsSchema, DouyinReturnTypeMap, type DouyinSearchOptions, DouyinSearchParamsSchema, type DouyinSuggestWordsOptions, type DouyinUserListOptions, DouyinUserListParamsSchema, type DouyinUserOptions, DouyinUserParamsSchema, DouyinValidationSchemas, type DouyinWorkOptions, DouyinWorkParamsSchema, DyDanmakuList, DyEmojiList, DyEmojiProList, DyImageAlbumWork, DyMusicWork, DySearchInfo, DySlidesWork, DySuggestWords, DyUserInfo, DyUserLiveVideos, DyUserPostVideos, DyVideoWork, DyWorkComments, DynamicType, DynamicTypeAV, DynamicTypeArticle, DynamicTypeDraw, DynamicTypeForward, DynamicTypeForwardUnion, DynamicTypeLiveRcmd, DynamicTypeWord, ErrorResult, ExtractTypeMode, FetcherConfig, HomeFeed, type HttpMethod, type HttpRequestEventData, type HttpResponseEventData, type IBilibiliFetcher, type IBoundBilibiliFetcher, type IBoundDouyinFetcher, type IBoundKuaishouFetcher, type IBoundXiaohongshuFetcher, type IDouyinFetcher, type IKuaishouFetcher, type IXiaohongshuFetcher, type KsBannedStatus, KsEmojiList, KsLiveRoomInfo, KsOneWork, type KsUserHomeWork, KsUserProfile, type KsUserProfileCounts, type KsUserProfileGameInfo, type KsUserProfileLiveInfo, type KsUserProfileSensitiveInfo, type KsUserProfileUserInfo, KsUserWorkList, type KsVerifiedStatus, KsWorkComments, KuaishouApiRoutes, KuaishouCommentParamsSchema, type KuaishouCommentsOptions, KuaishouDataOptions, KuaishouDataOptionsMap, KuaishouEmojiParamsSchema, type KuaishouFetcher, KuaishouFetcherMethodKey, KuaishouFetcherMethods, type KuaishouGraphqlRequest, KuaishouInternalMethodKey, KuaishouInternalMethods, type KuaishouLiveApiRequest, type KuaishouLiveRoomInfoOptions, KuaishouLiveRoomInfoParamsSchema, type KuaishouMethodKey, KuaishouMethodMapping, KuaishouMethodOptMap, KuaishouMethodOptionsMap, KuaishouMethodRoutes, KuaishouMethodToFetcher, type KuaishouMethodType, type KuaishouMethodValue, KuaishouReturnTypeMap, type KuaishouUserProfileOptions, KuaishouUserProfileParamsSchema, type KuaishouUserWorkListOptions, KuaishouUserWorkListParamsSchema, KuaishouValidationSchemas, KuaishouVideoParamsSchema, type KuaishouVideoWorkOptions, type LogEventData, MajorType, MethodMaps, type NetworkErrorEventData, type NetworkRetryEventData, type NetworksConfigType, NoteComments, OmitMethodType, OneNote, Options, type Platform, RequestConfig, Result, SearchInfoGeneralData, SearchInfoUser, SearchInfoVideo, SearchNotes, SuccessResult, TypeControl, TypeMode, ValidationError, XiaohongshuApiRoutes, type XiaohongshuCommentsOptions, XiaohongshuDataOptions, XiaohongshuDataOptionsMap, XiaohongshuEmojiList, type XiaohongshuFetcher, XiaohongshuFetcherMethodKey, XiaohongshuFetcherMethods, type XiaohongshuHomeFeedOptions, XiaohongshuInternalMethodKey, XiaohongshuInternalMethods, type XiaohongshuMethodKey, XiaohongshuMethodMapping, XiaohongshuMethodOptMap, XiaohongshuMethodOptionsMap, XiaohongshuMethodRoutes, XiaohongshuMethodToFetcher, XiaohongshuMethodType, type XiaohongshuMethodValue, type XiaohongshuNoteDetailOptions, XiaohongshuReturnTypeMap, type XiaohongshuSearchNotesOptions, type XiaohongshuUserNotesOptions, XiaohongshuUserProfile, type XiaohongshuUserProfileOptions, XiaohongshuValidationSchemas, amagi, amagiClient, amagiEvents, av2bv, bilibili, bilibiliApiUrls, bilibiliErrorCodeMap, bilibiliFetcher, bilibiliUtils, bv2av, createAmagiClient, createBilibiliRoutes, createBilibiliRoutes as registerBilibiliRoutes, createBoundBilibiliApi, createBoundBilibiliFetcher, createBoundDouyinApi, createBoundDouyinFetcher, createBoundKuaishouApi, createBoundKuaishouFetcher, createBoundXiaohongshuApi, createBoundXiaohongshuFetcher, createDouyinRoutes, createDouyinRoutes as registerDouyinRoutes, createErrorResponse, createKuaishouRoutes, createKuaishouRoutes as registerKuaishouRoutes, createSuccessResponse, createXiaohongshuRoutes, createXiaohongshuRoutes as registerXiaohongshuRoutes, douyin, douyinApiUrls, douyinFetcher, douyinSign, douyinUtils, emitApiError, emitApiSuccess, emitHttpRequest, emitHttpResponse, emitLog, emitLogDebug, emitLogError, emitLogInfo, emitLogMark, emitLogWarn, emitNetworkError, emitNetworkRetry, fetchData, fetchResponse, getApiRoute, getBilibiliData, getDouyinData, getEnglishMethodName, getHeadersAndData, getKuaishouData, handleError, httpLogger, initLogger, isNetworkErrorResult, kuaishou, kuaishouApiUrls, kuaishouFetcher, kuaishouSign, kuaishouUtils, logMiddleware, logger, parseDmSegMobileReply, qtparam, toFetcherMethod, validateBilibiliParams, validateDouyinParams, validateKuaishouParams, validateXiaohongshuParams, wbi_sign, xiaohongshu, xiaohongshuApiUrls, xiaohongshuFetcher, xiaohongshuSign, xiaohongshuUtils };