@read-frog/api-contract 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +474 -2373
- package/package.json +6 -5
- package/LICENSE +0 -674
package/dist/index.d.ts
CHANGED
|
@@ -1,2387 +1,488 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
type
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
type
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
type EnumValue = string | number;
|
|
81
|
-
type EnumLike = Readonly<Record<string, EnumValue>>;
|
|
82
|
-
type ToEnum<T$1 extends EnumValue> = Flatten<{ [k in T$1]: k }>;
|
|
83
|
-
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
84
|
-
type HasLength = {
|
|
85
|
-
length: number;
|
|
86
|
-
};
|
|
87
|
-
type Numeric = number | bigint | Date;
|
|
88
|
-
type PropValues = Record<string, Set<Primitive>>;
|
|
89
|
-
type PrimitiveSet = Set<Primitive>;
|
|
90
|
-
type EmptyToNever<T$1> = keyof T$1 extends never ? never : T$1;
|
|
91
|
-
declare abstract class Class {
|
|
92
|
-
constructor(..._args: any[]);
|
|
93
|
-
}
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.d.cts
|
|
96
|
-
declare const version: {
|
|
97
|
-
readonly major: 4;
|
|
98
|
-
readonly minor: 1;
|
|
99
|
-
readonly patch: number;
|
|
100
|
-
};
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.d.cts
|
|
103
|
-
interface ParseContext<T$1 extends $ZodIssueBase = never> {
|
|
104
|
-
/** Customize error messages. */
|
|
105
|
-
readonly error?: $ZodErrorMap<T$1>;
|
|
106
|
-
/** Include the `input` field in issue objects. Default `false`. */
|
|
107
|
-
readonly reportInput?: boolean;
|
|
108
|
-
/** Skip eval-based fast path. Default `false`. */
|
|
109
|
-
readonly jitless?: boolean;
|
|
110
|
-
}
|
|
111
|
-
/** @internal */
|
|
112
|
-
interface ParseContextInternal<T$1 extends $ZodIssueBase = never> extends ParseContext<T$1> {
|
|
113
|
-
readonly async?: boolean | undefined;
|
|
114
|
-
readonly direction?: "forward" | "backward";
|
|
115
|
-
readonly skipChecks?: boolean;
|
|
116
|
-
}
|
|
117
|
-
interface ParsePayload<T$1 = unknown> {
|
|
118
|
-
value: T$1;
|
|
119
|
-
issues: $ZodRawIssue[];
|
|
120
|
-
/** A may to mark a whole payload as aborted. Used in codecs/pipes. */
|
|
121
|
-
aborted?: boolean;
|
|
122
|
-
}
|
|
123
|
-
type CheckFn<T$1> = (input: ParsePayload<T$1>) => MaybeAsync<void>;
|
|
124
|
-
interface $ZodTypeDef {
|
|
125
|
-
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";
|
|
126
|
-
error?: $ZodErrorMap<never> | undefined;
|
|
127
|
-
checks?: $ZodCheck<never>[];
|
|
128
|
-
}
|
|
129
|
-
interface _$ZodTypeInternals {
|
|
130
|
-
/** The `@zod/core` version of this schema */
|
|
131
|
-
version: typeof version;
|
|
132
|
-
/** Schema definition. */
|
|
133
|
-
def: $ZodTypeDef;
|
|
134
|
-
/** @internal Randomly generated ID for this schema. */
|
|
135
|
-
/** @internal List of deferred initializers. */
|
|
136
|
-
deferred: AnyFunc[] | undefined;
|
|
137
|
-
/** @internal Parses input and runs all checks (refinements). */
|
|
138
|
-
run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
139
|
-
/** @internal Parses input, doesn't run checks. */
|
|
140
|
-
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
141
|
-
/** @internal Stores identifiers for the set of traits implemented by this schema. */
|
|
142
|
-
traits: Set<string>;
|
|
143
|
-
/** @internal Indicates that a schema output type should be considered optional inside objects.
|
|
144
|
-
* @default Required
|
|
145
|
-
*/
|
|
146
|
-
/** @internal */
|
|
147
|
-
optin?: "optional" | undefined;
|
|
148
|
-
/** @internal */
|
|
149
|
-
optout?: "optional" | undefined;
|
|
150
|
-
/** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
|
|
151
|
-
*
|
|
152
|
-
* Defined on: enum, const, literal, null, undefined
|
|
153
|
-
* Passthrough: optional, nullable, branded, default, catch, pipe
|
|
154
|
-
* Todo: unions?
|
|
155
|
-
*/
|
|
156
|
-
values?: PrimitiveSet | undefined;
|
|
157
|
-
/** Default value bubbled up from */
|
|
158
|
-
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
159
|
-
propValues?: PropValues | undefined;
|
|
160
|
-
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
161
|
-
pattern: RegExp | undefined;
|
|
162
|
-
/** @internal The constructor function of this schema. */
|
|
163
|
-
constr: new (def: any) => $ZodType;
|
|
164
|
-
/** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
|
|
165
|
-
bag: Record<string, unknown>;
|
|
166
|
-
/** @internal The set of issues this schema might throw during type checking. */
|
|
167
|
-
isst: $ZodIssueBase;
|
|
168
|
-
/** An optional method used to override `toJSONSchema` logic. */
|
|
169
|
-
toJSONSchema?: () => unknown;
|
|
170
|
-
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
171
|
-
parent?: $ZodType | undefined;
|
|
172
|
-
}
|
|
173
|
-
/** @internal */
|
|
174
|
-
interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
|
|
175
|
-
/** @internal The inferred output type */
|
|
176
|
-
output: O;
|
|
177
|
-
/** @internal The inferred input type */
|
|
178
|
-
input: I;
|
|
179
|
-
}
|
|
180
|
-
type $ZodStandardSchema<T$1> = StandardSchemaV1$1.Props<input<T$1>, output<T$1>>;
|
|
181
|
-
type SomeType = {
|
|
182
|
-
_zod: _$ZodTypeInternals;
|
|
183
|
-
};
|
|
184
|
-
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
|
|
185
|
-
_zod: Internals;
|
|
186
|
-
"~standard": $ZodStandardSchema<this>;
|
|
187
|
-
}
|
|
188
|
-
declare const $ZodType: $constructor<$ZodType>;
|
|
189
|
-
interface $ZodStringDef extends $ZodTypeDef {
|
|
190
|
-
type: "string";
|
|
191
|
-
coerce?: boolean;
|
|
192
|
-
checks?: $ZodCheck<string>[];
|
|
193
|
-
}
|
|
194
|
-
interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
|
195
|
-
def: $ZodStringDef;
|
|
196
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
197
|
-
pattern: RegExp;
|
|
198
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
199
|
-
isst: $ZodIssueInvalidType;
|
|
200
|
-
bag: LoosePartial<{
|
|
201
|
-
minimum: number;
|
|
202
|
-
maximum: number;
|
|
203
|
-
patterns: Set<RegExp>;
|
|
204
|
-
format: string;
|
|
205
|
-
contentEncoding: string;
|
|
206
|
-
}>;
|
|
207
|
-
}
|
|
208
|
-
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
|
|
209
|
-
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
210
|
-
def: $ZodStringFormatDef<Format>;
|
|
211
|
-
}
|
|
212
|
-
interface $ZodStringFormat<Format extends string = string> extends $ZodType {
|
|
213
|
-
_zod: $ZodStringFormatInternals<Format>;
|
|
214
|
-
}
|
|
215
|
-
declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
|
|
216
|
-
interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
|
|
217
|
-
interface $ZodGUID extends $ZodType {
|
|
218
|
-
_zod: $ZodGUIDInternals;
|
|
219
|
-
}
|
|
220
|
-
declare const $ZodGUID: $constructor<$ZodGUID>;
|
|
221
|
-
interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
|
222
|
-
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
|
223
|
-
}
|
|
224
|
-
interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
|
225
|
-
def: $ZodUUIDDef;
|
|
226
|
-
}
|
|
227
|
-
interface $ZodUUID extends $ZodType {
|
|
228
|
-
_zod: $ZodUUIDInternals;
|
|
229
|
-
}
|
|
230
|
-
declare const $ZodUUID: $constructor<$ZodUUID>;
|
|
231
|
-
interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
|
|
232
|
-
interface $ZodEmail extends $ZodType {
|
|
233
|
-
_zod: $ZodEmailInternals;
|
|
234
|
-
}
|
|
235
|
-
declare const $ZodEmail: $constructor<$ZodEmail>;
|
|
236
|
-
interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
237
|
-
hostname?: RegExp | undefined;
|
|
238
|
-
protocol?: RegExp | undefined;
|
|
239
|
-
normalize?: boolean | undefined;
|
|
240
|
-
}
|
|
241
|
-
interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
242
|
-
def: $ZodURLDef;
|
|
243
|
-
}
|
|
244
|
-
interface $ZodURL extends $ZodType {
|
|
245
|
-
_zod: $ZodURLInternals;
|
|
246
|
-
}
|
|
247
|
-
declare const $ZodURL: $constructor<$ZodURL>;
|
|
248
|
-
interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
|
|
249
|
-
interface $ZodEmoji extends $ZodType {
|
|
250
|
-
_zod: $ZodEmojiInternals;
|
|
251
|
-
}
|
|
252
|
-
declare const $ZodEmoji: $constructor<$ZodEmoji>;
|
|
253
|
-
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
|
|
254
|
-
interface $ZodNanoID extends $ZodType {
|
|
255
|
-
_zod: $ZodNanoIDInternals;
|
|
256
|
-
}
|
|
257
|
-
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
258
|
-
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
259
|
-
interface $ZodCUID extends $ZodType {
|
|
260
|
-
_zod: $ZodCUIDInternals;
|
|
261
|
-
}
|
|
262
|
-
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
263
|
-
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
264
|
-
interface $ZodCUID2 extends $ZodType {
|
|
265
|
-
_zod: $ZodCUID2Internals;
|
|
266
|
-
}
|
|
267
|
-
declare const $ZodCUID2: $constructor<$ZodCUID2>;
|
|
268
|
-
interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
|
|
269
|
-
interface $ZodULID extends $ZodType {
|
|
270
|
-
_zod: $ZodULIDInternals;
|
|
271
|
-
}
|
|
272
|
-
declare const $ZodULID: $constructor<$ZodULID>;
|
|
273
|
-
interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
|
|
274
|
-
interface $ZodXID extends $ZodType {
|
|
275
|
-
_zod: $ZodXIDInternals;
|
|
276
|
-
}
|
|
277
|
-
declare const $ZodXID: $constructor<$ZodXID>;
|
|
278
|
-
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
|
|
279
|
-
interface $ZodKSUID extends $ZodType {
|
|
280
|
-
_zod: $ZodKSUIDInternals;
|
|
281
|
-
}
|
|
282
|
-
declare const $ZodKSUID: $constructor<$ZodKSUID>;
|
|
283
|
-
interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
|
284
|
-
precision: number | null;
|
|
285
|
-
offset: boolean;
|
|
286
|
-
local: boolean;
|
|
287
|
-
}
|
|
288
|
-
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
|
289
|
-
def: $ZodISODateTimeDef;
|
|
290
|
-
}
|
|
291
|
-
interface $ZodISODateTime extends $ZodType {
|
|
292
|
-
_zod: $ZodISODateTimeInternals;
|
|
293
|
-
}
|
|
294
|
-
declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
|
|
295
|
-
interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
|
|
296
|
-
interface $ZodISODate extends $ZodType {
|
|
297
|
-
_zod: $ZodISODateInternals;
|
|
298
|
-
}
|
|
299
|
-
declare const $ZodISODate: $constructor<$ZodISODate>;
|
|
300
|
-
interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
|
301
|
-
precision?: number | null;
|
|
302
|
-
}
|
|
303
|
-
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
|
304
|
-
def: $ZodISOTimeDef;
|
|
305
|
-
}
|
|
306
|
-
interface $ZodISOTime extends $ZodType {
|
|
307
|
-
_zod: $ZodISOTimeInternals;
|
|
308
|
-
}
|
|
309
|
-
declare const $ZodISOTime: $constructor<$ZodISOTime>;
|
|
310
|
-
interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
|
|
311
|
-
interface $ZodISODuration extends $ZodType {
|
|
312
|
-
_zod: $ZodISODurationInternals;
|
|
313
|
-
}
|
|
314
|
-
declare const $ZodISODuration: $constructor<$ZodISODuration>;
|
|
315
|
-
interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
|
316
|
-
version?: "v4";
|
|
317
|
-
}
|
|
318
|
-
interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
|
319
|
-
def: $ZodIPv4Def;
|
|
320
|
-
}
|
|
321
|
-
interface $ZodIPv4 extends $ZodType {
|
|
322
|
-
_zod: $ZodIPv4Internals;
|
|
323
|
-
}
|
|
324
|
-
declare const $ZodIPv4: $constructor<$ZodIPv4>;
|
|
325
|
-
interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
|
326
|
-
version?: "v6";
|
|
327
|
-
}
|
|
328
|
-
interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
|
329
|
-
def: $ZodIPv6Def;
|
|
330
|
-
}
|
|
331
|
-
interface $ZodIPv6 extends $ZodType {
|
|
332
|
-
_zod: $ZodIPv6Internals;
|
|
333
|
-
}
|
|
334
|
-
declare const $ZodIPv6: $constructor<$ZodIPv6>;
|
|
335
|
-
interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
|
336
|
-
version?: "v4";
|
|
337
|
-
}
|
|
338
|
-
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
|
339
|
-
def: $ZodCIDRv4Def;
|
|
340
|
-
}
|
|
341
|
-
interface $ZodCIDRv4 extends $ZodType {
|
|
342
|
-
_zod: $ZodCIDRv4Internals;
|
|
343
|
-
}
|
|
344
|
-
declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
|
|
345
|
-
interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
|
346
|
-
version?: "v6";
|
|
347
|
-
}
|
|
348
|
-
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
|
349
|
-
def: $ZodCIDRv6Def;
|
|
350
|
-
}
|
|
351
|
-
interface $ZodCIDRv6 extends $ZodType {
|
|
352
|
-
_zod: $ZodCIDRv6Internals;
|
|
353
|
-
}
|
|
354
|
-
declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
|
|
355
|
-
interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
|
|
356
|
-
interface $ZodBase64 extends $ZodType {
|
|
357
|
-
_zod: $ZodBase64Internals;
|
|
358
|
-
}
|
|
359
|
-
declare const $ZodBase64: $constructor<$ZodBase64>;
|
|
360
|
-
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
|
|
361
|
-
interface $ZodBase64URL extends $ZodType {
|
|
362
|
-
_zod: $ZodBase64URLInternals;
|
|
363
|
-
}
|
|
364
|
-
declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
|
|
365
|
-
interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
|
|
366
|
-
interface $ZodE164 extends $ZodType {
|
|
367
|
-
_zod: $ZodE164Internals;
|
|
368
|
-
}
|
|
369
|
-
declare const $ZodE164: $constructor<$ZodE164>;
|
|
370
|
-
interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
|
371
|
-
alg?: JWTAlgorithm | undefined;
|
|
372
|
-
}
|
|
373
|
-
interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
|
374
|
-
def: $ZodJWTDef;
|
|
375
|
-
}
|
|
376
|
-
interface $ZodJWT extends $ZodType {
|
|
377
|
-
_zod: $ZodJWTInternals;
|
|
378
|
-
}
|
|
379
|
-
declare const $ZodJWT: $constructor<$ZodJWT>;
|
|
380
|
-
interface $ZodNumberDef extends $ZodTypeDef {
|
|
381
|
-
type: "number";
|
|
382
|
-
coerce?: boolean;
|
|
383
|
-
}
|
|
384
|
-
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
|
385
|
-
def: $ZodNumberDef;
|
|
386
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
387
|
-
pattern: RegExp;
|
|
388
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
389
|
-
isst: $ZodIssueInvalidType;
|
|
390
|
-
bag: LoosePartial<{
|
|
391
|
-
minimum: number;
|
|
392
|
-
maximum: number;
|
|
393
|
-
exclusiveMinimum: number;
|
|
394
|
-
exclusiveMaximum: number;
|
|
395
|
-
format: string;
|
|
396
|
-
pattern: RegExp;
|
|
397
|
-
}>;
|
|
398
|
-
}
|
|
399
|
-
interface $ZodArrayDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
400
|
-
type: "array";
|
|
401
|
-
element: T$1;
|
|
402
|
-
}
|
|
403
|
-
interface $ZodArrayInternals<T$1 extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
404
|
-
def: $ZodArrayDef<T$1>;
|
|
405
|
-
isst: $ZodIssueInvalidType;
|
|
406
|
-
output: output<T$1>[];
|
|
407
|
-
input: input<T$1>[];
|
|
408
|
-
}
|
|
409
|
-
interface $ZodArray<T$1 extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T$1>> {}
|
|
410
|
-
declare const $ZodArray: $constructor<$ZodArray>;
|
|
411
|
-
type OptionalOutSchema = {
|
|
412
|
-
_zod: {
|
|
413
|
-
optout: "optional";
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
type OptionalInSchema = {
|
|
417
|
-
_zod: {
|
|
418
|
-
optin: "optional";
|
|
419
|
-
};
|
|
420
|
-
};
|
|
421
|
-
type $InferObjectOutput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, output<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>;
|
|
422
|
-
type $InferObjectInput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, input<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>;
|
|
423
|
-
type $ZodObjectConfig = {
|
|
424
|
-
out: Record<string, unknown>;
|
|
425
|
-
in: Record<string, unknown>;
|
|
426
|
-
};
|
|
427
|
-
type $loose = {
|
|
428
|
-
out: Record<string, unknown>;
|
|
429
|
-
in: Record<string, unknown>;
|
|
430
|
-
};
|
|
431
|
-
type $strict = {
|
|
432
|
-
out: {};
|
|
433
|
-
in: {};
|
|
434
|
-
};
|
|
435
|
-
type $strip = {
|
|
436
|
-
out: {};
|
|
437
|
-
in: {};
|
|
438
|
-
};
|
|
439
|
-
type $catchall<T$1 extends SomeType> = {
|
|
440
|
-
out: {
|
|
441
|
-
[k: string]: output<T$1>;
|
|
442
|
-
};
|
|
443
|
-
in: {
|
|
444
|
-
[k: string]: input<T$1>;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
447
|
-
type $ZodShape = Readonly<{
|
|
448
|
-
[k: string]: $ZodType;
|
|
449
|
-
}>;
|
|
450
|
-
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
|
451
|
-
type: "object";
|
|
452
|
-
shape: Shape;
|
|
453
|
-
catchall?: $ZodType | undefined;
|
|
454
|
-
}
|
|
455
|
-
interface $ZodObjectInternals< /** @ts-ignore Cast variance */
|
|
456
|
-
out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
457
|
-
def: $ZodObjectDef<Shape>;
|
|
458
|
-
config: Config;
|
|
459
|
-
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
460
|
-
propValues: PropValues;
|
|
461
|
-
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
462
|
-
input: $InferObjectInput<Shape, Config["in"]>;
|
|
463
|
-
optin?: "optional" | undefined;
|
|
464
|
-
optout?: "optional" | undefined;
|
|
465
|
-
}
|
|
466
|
-
type $ZodLooseShape = Record<string, any>;
|
|
467
|
-
interface $ZodObject< /** @ts-ignore Cast variance */
|
|
468
|
-
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params$1 extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params$1>> {
|
|
469
|
-
"~standard": $ZodStandardSchema<this>;
|
|
470
|
-
}
|
|
471
|
-
declare const $ZodObject: $constructor<$ZodObject>;
|
|
472
|
-
type $InferUnionOutput<T$1 extends SomeType> = T$1 extends any ? output<T$1> : never;
|
|
473
|
-
type $InferUnionInput<T$1 extends SomeType> = T$1 extends any ? input<T$1> : never;
|
|
474
|
-
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
475
|
-
type: "union";
|
|
476
|
-
options: Options;
|
|
477
|
-
}
|
|
478
|
-
type IsOptionalIn<T$1 extends SomeType> = T$1 extends OptionalInSchema ? true : false;
|
|
479
|
-
type IsOptionalOut<T$1 extends SomeType> = T$1 extends OptionalOutSchema ? true : false;
|
|
480
|
-
interface $ZodUnionInternals<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
|
|
481
|
-
def: $ZodUnionDef<T$1>;
|
|
482
|
-
isst: $ZodIssueInvalidUnion;
|
|
483
|
-
pattern: T$1[number]["_zod"]["pattern"];
|
|
484
|
-
values: T$1[number]["_zod"]["values"];
|
|
485
|
-
output: $InferUnionOutput<T$1[number]>;
|
|
486
|
-
input: $InferUnionInput<T$1[number]>;
|
|
487
|
-
optin: IsOptionalIn<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
488
|
-
optout: IsOptionalOut<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
489
|
-
}
|
|
490
|
-
interface $ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T$1>> {
|
|
491
|
-
_zod: $ZodUnionInternals<T$1>;
|
|
492
|
-
}
|
|
493
|
-
declare const $ZodUnion: $constructor<$ZodUnion>;
|
|
494
|
-
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
495
|
-
type: "intersection";
|
|
496
|
-
left: Left;
|
|
497
|
-
right: Right;
|
|
498
|
-
}
|
|
499
|
-
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
500
|
-
def: $ZodIntersectionDef<A, B>;
|
|
501
|
-
isst: never;
|
|
502
|
-
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
503
|
-
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
504
|
-
output: output<A> & output<B>;
|
|
505
|
-
input: input<A> & input<B>;
|
|
506
|
-
}
|
|
507
|
-
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
508
|
-
_zod: $ZodIntersectionInternals<A, B>;
|
|
509
|
-
}
|
|
510
|
-
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
511
|
-
type $InferEnumOutput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
512
|
-
type $InferEnumInput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
513
|
-
interface $ZodEnumDef<T$1 extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
514
|
-
type: "enum";
|
|
515
|
-
entries: T$1;
|
|
516
|
-
}
|
|
517
|
-
interface $ZodEnumInternals< /** @ts-ignore Cast variance */
|
|
518
|
-
out T$1 extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T$1>, $InferEnumInput<T$1>> {
|
|
519
|
-
def: $ZodEnumDef<T$1>;
|
|
520
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
521
|
-
values: PrimitiveSet;
|
|
522
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
523
|
-
pattern: RegExp;
|
|
524
|
-
isst: $ZodIssueInvalidValue;
|
|
525
|
-
}
|
|
526
|
-
interface $ZodEnum<T$1 extends EnumLike = EnumLike> extends $ZodType {
|
|
527
|
-
_zod: $ZodEnumInternals<T$1>;
|
|
528
|
-
}
|
|
529
|
-
declare const $ZodEnum: $constructor<$ZodEnum>;
|
|
530
|
-
interface $ZodTransformDef extends $ZodTypeDef {
|
|
531
|
-
type: "transform";
|
|
532
|
-
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
533
|
-
}
|
|
534
|
-
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
|
535
|
-
def: $ZodTransformDef;
|
|
536
|
-
isst: never;
|
|
537
|
-
}
|
|
538
|
-
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
|
539
|
-
_zod: $ZodTransformInternals<O, I>;
|
|
540
|
-
}
|
|
541
|
-
declare const $ZodTransform: $constructor<$ZodTransform>;
|
|
542
|
-
interface $ZodOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
543
|
-
type: "optional";
|
|
544
|
-
innerType: T$1;
|
|
545
|
-
}
|
|
546
|
-
interface $ZodOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | undefined, input<T$1> | undefined> {
|
|
547
|
-
def: $ZodOptionalDef<T$1>;
|
|
548
|
-
optin: "optional";
|
|
549
|
-
optout: "optional";
|
|
550
|
-
isst: never;
|
|
551
|
-
values: T$1["_zod"]["values"];
|
|
552
|
-
pattern: T$1["_zod"]["pattern"];
|
|
553
|
-
}
|
|
554
|
-
interface $ZodOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
555
|
-
_zod: $ZodOptionalInternals<T$1>;
|
|
556
|
-
}
|
|
557
|
-
declare const $ZodOptional: $constructor<$ZodOptional>;
|
|
558
|
-
interface $ZodNullableDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
559
|
-
type: "nullable";
|
|
560
|
-
innerType: T$1;
|
|
561
|
-
}
|
|
562
|
-
interface $ZodNullableInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | null, input<T$1> | null> {
|
|
563
|
-
def: $ZodNullableDef<T$1>;
|
|
564
|
-
optin: T$1["_zod"]["optin"];
|
|
565
|
-
optout: T$1["_zod"]["optout"];
|
|
566
|
-
isst: never;
|
|
567
|
-
values: T$1["_zod"]["values"];
|
|
568
|
-
pattern: T$1["_zod"]["pattern"];
|
|
569
|
-
}
|
|
570
|
-
interface $ZodNullable<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
571
|
-
_zod: $ZodNullableInternals<T$1>;
|
|
572
|
-
}
|
|
573
|
-
declare const $ZodNullable: $constructor<$ZodNullable>;
|
|
574
|
-
interface $ZodDefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
575
|
-
type: "default";
|
|
576
|
-
innerType: T$1;
|
|
577
|
-
/** The default value. May be a getter. */
|
|
578
|
-
defaultValue: NoUndefined<output<T$1>>;
|
|
579
|
-
}
|
|
580
|
-
interface $ZodDefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
581
|
-
def: $ZodDefaultDef<T$1>;
|
|
582
|
-
optin: "optional";
|
|
583
|
-
optout?: "optional" | undefined;
|
|
584
|
-
isst: never;
|
|
585
|
-
values: T$1["_zod"]["values"];
|
|
586
|
-
}
|
|
587
|
-
interface $ZodDefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
588
|
-
_zod: $ZodDefaultInternals<T$1>;
|
|
589
|
-
}
|
|
590
|
-
declare const $ZodDefault: $constructor<$ZodDefault>;
|
|
591
|
-
interface $ZodPrefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
592
|
-
type: "prefault";
|
|
593
|
-
innerType: T$1;
|
|
594
|
-
/** The default value. May be a getter. */
|
|
595
|
-
defaultValue: input<T$1>;
|
|
596
|
-
}
|
|
597
|
-
interface $ZodPrefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
598
|
-
def: $ZodPrefaultDef<T$1>;
|
|
599
|
-
optin: "optional";
|
|
600
|
-
optout?: "optional" | undefined;
|
|
601
|
-
isst: never;
|
|
602
|
-
values: T$1["_zod"]["values"];
|
|
603
|
-
}
|
|
604
|
-
interface $ZodPrefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
605
|
-
_zod: $ZodPrefaultInternals<T$1>;
|
|
606
|
-
}
|
|
607
|
-
declare const $ZodPrefault: $constructor<$ZodPrefault>;
|
|
608
|
-
interface $ZodNonOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
609
|
-
type: "nonoptional";
|
|
610
|
-
innerType: T$1;
|
|
611
|
-
}
|
|
612
|
-
interface $ZodNonOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, NoUndefined<input<T$1>>> {
|
|
613
|
-
def: $ZodNonOptionalDef<T$1>;
|
|
614
|
-
isst: $ZodIssueInvalidType;
|
|
615
|
-
values: T$1["_zod"]["values"];
|
|
616
|
-
optin: "optional" | undefined;
|
|
617
|
-
optout: "optional" | undefined;
|
|
618
|
-
}
|
|
619
|
-
interface $ZodNonOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
620
|
-
_zod: $ZodNonOptionalInternals<T$1>;
|
|
621
|
-
}
|
|
622
|
-
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
623
|
-
interface $ZodCatchCtx extends ParsePayload {
|
|
624
|
-
/** @deprecated Use `ctx.issues` */
|
|
625
|
-
error: {
|
|
626
|
-
issues: $ZodIssue[];
|
|
627
|
-
};
|
|
628
|
-
/** @deprecated Use `ctx.value` */
|
|
629
|
-
input: unknown;
|
|
630
|
-
}
|
|
631
|
-
interface $ZodCatchDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
632
|
-
type: "catch";
|
|
633
|
-
innerType: T$1;
|
|
634
|
-
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
635
|
-
}
|
|
636
|
-
interface $ZodCatchInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
|
|
637
|
-
def: $ZodCatchDef<T$1>;
|
|
638
|
-
optin: T$1["_zod"]["optin"];
|
|
639
|
-
optout: T$1["_zod"]["optout"];
|
|
640
|
-
isst: never;
|
|
641
|
-
values: T$1["_zod"]["values"];
|
|
642
|
-
}
|
|
643
|
-
interface $ZodCatch<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
644
|
-
_zod: $ZodCatchInternals<T$1>;
|
|
645
|
-
}
|
|
646
|
-
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
647
|
-
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
648
|
-
type: "pipe";
|
|
649
|
-
in: A;
|
|
650
|
-
out: B;
|
|
651
|
-
/** Only defined inside $ZodCodec instances. */
|
|
652
|
-
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
653
|
-
/** Only defined inside $ZodCodec instances. */
|
|
654
|
-
reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
655
|
-
}
|
|
656
|
-
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
657
|
-
def: $ZodPipeDef<A, B>;
|
|
658
|
-
isst: never;
|
|
659
|
-
values: A["_zod"]["values"];
|
|
660
|
-
optin: A["_zod"]["optin"];
|
|
661
|
-
optout: B["_zod"]["optout"];
|
|
662
|
-
propValues: A["_zod"]["propValues"];
|
|
663
|
-
}
|
|
664
|
-
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
665
|
-
_zod: $ZodPipeInternals<A, B>;
|
|
666
|
-
}
|
|
667
|
-
declare const $ZodPipe: $constructor<$ZodPipe>;
|
|
668
|
-
interface $ZodReadonlyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
669
|
-
type: "readonly";
|
|
670
|
-
innerType: T$1;
|
|
671
|
-
}
|
|
672
|
-
interface $ZodReadonlyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T$1>>, MakeReadonly<input<T$1>>> {
|
|
673
|
-
def: $ZodReadonlyDef<T$1>;
|
|
674
|
-
optin: T$1["_zod"]["optin"];
|
|
675
|
-
optout: T$1["_zod"]["optout"];
|
|
676
|
-
isst: never;
|
|
677
|
-
propValues: T$1["_zod"]["propValues"];
|
|
678
|
-
values: T$1["_zod"]["values"];
|
|
679
|
-
}
|
|
680
|
-
interface $ZodReadonly<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
681
|
-
_zod: $ZodReadonlyInternals<T$1>;
|
|
682
|
-
}
|
|
683
|
-
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
684
|
-
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
685
|
-
type: "custom";
|
|
686
|
-
check: "custom";
|
|
687
|
-
path?: PropertyKey[] | undefined;
|
|
688
|
-
error?: $ZodErrorMap | undefined;
|
|
689
|
-
params?: Record<string, any> | undefined;
|
|
690
|
-
fn: (arg: O) => unknown;
|
|
691
|
-
}
|
|
692
|
-
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
|
|
693
|
-
def: $ZodCustomDef;
|
|
694
|
-
issc: $ZodIssue;
|
|
695
|
-
isst: never;
|
|
696
|
-
bag: LoosePartial<{
|
|
697
|
-
Class: typeof Class;
|
|
698
|
-
}>;
|
|
699
|
-
}
|
|
700
|
-
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
701
|
-
_zod: $ZodCustomInternals<O, I>;
|
|
702
|
-
}
|
|
703
|
-
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
704
|
-
//#endregion
|
|
705
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.d.cts
|
|
706
|
-
interface $ZodCheckDef {
|
|
707
|
-
check: string;
|
|
708
|
-
error?: $ZodErrorMap<never> | undefined;
|
|
709
|
-
/** If true, no later checks will be executed if this check fails. Default `false`. */
|
|
710
|
-
abort?: boolean | undefined;
|
|
711
|
-
/** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
|
|
712
|
-
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
713
|
-
}
|
|
714
|
-
interface $ZodCheckInternals<T$1> {
|
|
715
|
-
def: $ZodCheckDef;
|
|
716
|
-
/** The set of issues this check might throw. */
|
|
717
|
-
issc?: $ZodIssueBase;
|
|
718
|
-
check(payload: ParsePayload<T$1>): MaybeAsync<void>;
|
|
719
|
-
onattach: ((schema: $ZodType) => void)[];
|
|
720
|
-
}
|
|
721
|
-
interface $ZodCheck<in T$1 = never> {
|
|
722
|
-
_zod: $ZodCheckInternals<T$1>;
|
|
723
|
-
}
|
|
724
|
-
declare const $ZodCheck: $constructor<$ZodCheck<any>>;
|
|
725
|
-
interface $ZodCheckLessThanDef extends $ZodCheckDef {
|
|
726
|
-
check: "less_than";
|
|
727
|
-
value: Numeric;
|
|
728
|
-
inclusive: boolean;
|
|
729
|
-
}
|
|
730
|
-
interface $ZodCheckLessThanInternals<T$1 extends Numeric = Numeric> extends $ZodCheckInternals<T$1> {
|
|
731
|
-
def: $ZodCheckLessThanDef;
|
|
732
|
-
issc: $ZodIssueTooBig<T$1>;
|
|
733
|
-
}
|
|
734
|
-
interface $ZodCheckLessThan<T$1 extends Numeric = Numeric> extends $ZodCheck<T$1> {
|
|
735
|
-
_zod: $ZodCheckLessThanInternals<T$1>;
|
|
736
|
-
}
|
|
737
|
-
declare const $ZodCheckLessThan: $constructor<$ZodCheckLessThan>;
|
|
738
|
-
interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
|
|
739
|
-
check: "greater_than";
|
|
740
|
-
value: Numeric;
|
|
741
|
-
inclusive: boolean;
|
|
742
|
-
}
|
|
743
|
-
interface $ZodCheckGreaterThanInternals<T$1 extends Numeric = Numeric> extends $ZodCheckInternals<T$1> {
|
|
744
|
-
def: $ZodCheckGreaterThanDef;
|
|
745
|
-
issc: $ZodIssueTooSmall<T$1>;
|
|
746
|
-
}
|
|
747
|
-
interface $ZodCheckGreaterThan<T$1 extends Numeric = Numeric> extends $ZodCheck<T$1> {
|
|
748
|
-
_zod: $ZodCheckGreaterThanInternals<T$1>;
|
|
749
|
-
}
|
|
750
|
-
declare const $ZodCheckGreaterThan: $constructor<$ZodCheckGreaterThan>;
|
|
751
|
-
interface $ZodCheckMultipleOfDef<T$1 extends number | bigint = number | bigint> extends $ZodCheckDef {
|
|
752
|
-
check: "multiple_of";
|
|
753
|
-
value: T$1;
|
|
754
|
-
}
|
|
755
|
-
interface $ZodCheckMultipleOfInternals<T$1 extends number | bigint = number | bigint> extends $ZodCheckInternals<T$1> {
|
|
756
|
-
def: $ZodCheckMultipleOfDef<T$1>;
|
|
757
|
-
issc: $ZodIssueNotMultipleOf;
|
|
758
|
-
}
|
|
759
|
-
interface $ZodCheckMultipleOf<T$1 extends number | bigint = number | bigint> extends $ZodCheck<T$1> {
|
|
760
|
-
_zod: $ZodCheckMultipleOfInternals<T$1>;
|
|
761
|
-
}
|
|
762
|
-
declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
|
|
763
|
-
type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
|
|
764
|
-
interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
|
|
765
|
-
check: "number_format";
|
|
766
|
-
format: $ZodNumberFormats;
|
|
767
|
-
}
|
|
768
|
-
interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
|
|
769
|
-
def: $ZodCheckNumberFormatDef;
|
|
770
|
-
issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
|
|
771
|
-
}
|
|
772
|
-
interface $ZodCheckNumberFormat extends $ZodCheck<number> {
|
|
773
|
-
_zod: $ZodCheckNumberFormatInternals;
|
|
774
|
-
}
|
|
775
|
-
declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
|
|
776
|
-
interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
|
|
777
|
-
check: "max_length";
|
|
778
|
-
maximum: number;
|
|
779
|
-
}
|
|
780
|
-
interface $ZodCheckMaxLengthInternals<T$1 extends HasLength = HasLength> extends $ZodCheckInternals<T$1> {
|
|
781
|
-
def: $ZodCheckMaxLengthDef;
|
|
782
|
-
issc: $ZodIssueTooBig<T$1>;
|
|
783
|
-
}
|
|
784
|
-
interface $ZodCheckMaxLength<T$1 extends HasLength = HasLength> extends $ZodCheck<T$1> {
|
|
785
|
-
_zod: $ZodCheckMaxLengthInternals<T$1>;
|
|
786
|
-
}
|
|
787
|
-
declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
|
|
788
|
-
interface $ZodCheckMinLengthDef extends $ZodCheckDef {
|
|
789
|
-
check: "min_length";
|
|
790
|
-
minimum: number;
|
|
791
|
-
}
|
|
792
|
-
interface $ZodCheckMinLengthInternals<T$1 extends HasLength = HasLength> extends $ZodCheckInternals<T$1> {
|
|
793
|
-
def: $ZodCheckMinLengthDef;
|
|
794
|
-
issc: $ZodIssueTooSmall<T$1>;
|
|
795
|
-
}
|
|
796
|
-
interface $ZodCheckMinLength<T$1 extends HasLength = HasLength> extends $ZodCheck<T$1> {
|
|
797
|
-
_zod: $ZodCheckMinLengthInternals<T$1>;
|
|
798
|
-
}
|
|
799
|
-
declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
|
|
800
|
-
interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
|
|
801
|
-
check: "length_equals";
|
|
802
|
-
length: number;
|
|
803
|
-
}
|
|
804
|
-
interface $ZodCheckLengthEqualsInternals<T$1 extends HasLength = HasLength> extends $ZodCheckInternals<T$1> {
|
|
805
|
-
def: $ZodCheckLengthEqualsDef;
|
|
806
|
-
issc: $ZodIssueTooBig<T$1> | $ZodIssueTooSmall<T$1>;
|
|
807
|
-
}
|
|
808
|
-
interface $ZodCheckLengthEquals<T$1 extends HasLength = HasLength> extends $ZodCheck<T$1> {
|
|
809
|
-
_zod: $ZodCheckLengthEqualsInternals<T$1>;
|
|
810
|
-
}
|
|
811
|
-
declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
|
|
812
|
-
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";
|
|
813
|
-
interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
|
|
814
|
-
check: "string_format";
|
|
815
|
-
format: Format;
|
|
816
|
-
pattern?: RegExp | undefined;
|
|
817
|
-
}
|
|
818
|
-
interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
|
|
819
|
-
def: $ZodCheckStringFormatDef;
|
|
820
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
821
|
-
}
|
|
822
|
-
interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
|
|
823
|
-
format: "regex";
|
|
824
|
-
pattern: RegExp;
|
|
825
|
-
}
|
|
826
|
-
interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
|
|
827
|
-
def: $ZodCheckRegexDef;
|
|
828
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
829
|
-
}
|
|
830
|
-
interface $ZodCheckRegex extends $ZodCheck<string> {
|
|
831
|
-
_zod: $ZodCheckRegexInternals;
|
|
832
|
-
}
|
|
833
|
-
declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
|
|
834
|
-
interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
|
|
835
|
-
interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
|
|
836
|
-
def: $ZodCheckLowerCaseDef;
|
|
837
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
838
|
-
}
|
|
839
|
-
interface $ZodCheckLowerCase extends $ZodCheck<string> {
|
|
840
|
-
_zod: $ZodCheckLowerCaseInternals;
|
|
841
|
-
}
|
|
842
|
-
declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
|
|
843
|
-
interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
|
|
844
|
-
interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
|
|
845
|
-
def: $ZodCheckUpperCaseDef;
|
|
846
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
847
|
-
}
|
|
848
|
-
interface $ZodCheckUpperCase extends $ZodCheck<string> {
|
|
849
|
-
_zod: $ZodCheckUpperCaseInternals;
|
|
850
|
-
}
|
|
851
|
-
declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
|
|
852
|
-
interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
|
|
853
|
-
includes: string;
|
|
854
|
-
position?: number | undefined;
|
|
855
|
-
}
|
|
856
|
-
interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
|
|
857
|
-
def: $ZodCheckIncludesDef;
|
|
858
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
859
|
-
}
|
|
860
|
-
interface $ZodCheckIncludes extends $ZodCheck<string> {
|
|
861
|
-
_zod: $ZodCheckIncludesInternals;
|
|
862
|
-
}
|
|
863
|
-
declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
|
|
864
|
-
interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
|
|
865
|
-
prefix: string;
|
|
866
|
-
}
|
|
867
|
-
interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
|
|
868
|
-
def: $ZodCheckStartsWithDef;
|
|
869
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
870
|
-
}
|
|
871
|
-
interface $ZodCheckStartsWith extends $ZodCheck<string> {
|
|
872
|
-
_zod: $ZodCheckStartsWithInternals;
|
|
873
|
-
}
|
|
874
|
-
declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
|
|
875
|
-
interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
|
|
876
|
-
suffix: string;
|
|
877
|
-
}
|
|
878
|
-
interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
|
|
879
|
-
def: $ZodCheckEndsWithDef;
|
|
880
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
881
|
-
}
|
|
882
|
-
interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
|
|
883
|
-
_zod: $ZodCheckEndsWithInternals;
|
|
884
|
-
}
|
|
885
|
-
declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
|
|
886
|
-
//#endregion
|
|
887
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.d.cts
|
|
888
|
-
interface $ZodIssueBase {
|
|
889
|
-
readonly code?: string;
|
|
890
|
-
readonly input?: unknown;
|
|
891
|
-
readonly path: PropertyKey[];
|
|
892
|
-
readonly message: string;
|
|
893
|
-
}
|
|
894
|
-
interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
|
|
895
|
-
readonly code: "invalid_type";
|
|
896
|
-
readonly expected: $ZodType["_zod"]["def"]["type"];
|
|
897
|
-
readonly input?: Input;
|
|
898
|
-
}
|
|
899
|
-
interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
|
|
900
|
-
readonly code: "too_big";
|
|
901
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
902
|
-
readonly maximum: number | bigint;
|
|
903
|
-
readonly inclusive?: boolean;
|
|
904
|
-
readonly exact?: boolean;
|
|
905
|
-
readonly input?: Input;
|
|
906
|
-
}
|
|
907
|
-
interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
|
|
908
|
-
readonly code: "too_small";
|
|
909
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
910
|
-
readonly minimum: number | bigint;
|
|
911
|
-
/** True if the allowable range includes the minimum */
|
|
912
|
-
readonly inclusive?: boolean;
|
|
913
|
-
/** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
|
|
914
|
-
readonly exact?: boolean;
|
|
915
|
-
readonly input?: Input;
|
|
916
|
-
}
|
|
917
|
-
interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
|
|
918
|
-
readonly code: "invalid_format";
|
|
919
|
-
readonly format: $ZodStringFormats | (string & {});
|
|
920
|
-
readonly pattern?: string;
|
|
921
|
-
readonly input?: string;
|
|
922
|
-
}
|
|
923
|
-
interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
|
|
924
|
-
readonly code: "not_multiple_of";
|
|
925
|
-
readonly divisor: number;
|
|
926
|
-
readonly input?: Input;
|
|
927
|
-
}
|
|
928
|
-
interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
|
|
929
|
-
readonly code: "unrecognized_keys";
|
|
930
|
-
readonly keys: string[];
|
|
931
|
-
readonly input?: Record<string, unknown>;
|
|
932
|
-
}
|
|
933
|
-
interface $ZodIssueInvalidUnion extends $ZodIssueBase {
|
|
934
|
-
readonly code: "invalid_union";
|
|
935
|
-
readonly errors: $ZodIssue[][];
|
|
936
|
-
readonly input?: unknown;
|
|
937
|
-
readonly discriminator?: string | undefined;
|
|
938
|
-
}
|
|
939
|
-
interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
|
|
940
|
-
readonly code: "invalid_key";
|
|
941
|
-
readonly origin: "map" | "record";
|
|
942
|
-
readonly issues: $ZodIssue[];
|
|
943
|
-
readonly input?: Input;
|
|
944
|
-
}
|
|
945
|
-
interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
|
|
946
|
-
readonly code: "invalid_element";
|
|
947
|
-
readonly origin: "map" | "set";
|
|
948
|
-
readonly key: unknown;
|
|
949
|
-
readonly issues: $ZodIssue[];
|
|
950
|
-
readonly input?: Input;
|
|
951
|
-
}
|
|
952
|
-
interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
|
|
953
|
-
readonly code: "invalid_value";
|
|
954
|
-
readonly values: Primitive[];
|
|
955
|
-
readonly input?: Input;
|
|
956
|
-
}
|
|
957
|
-
interface $ZodIssueCustom extends $ZodIssueBase {
|
|
958
|
-
readonly code: "custom";
|
|
959
|
-
readonly params?: Record<string, any> | undefined;
|
|
960
|
-
readonly input?: unknown;
|
|
961
|
-
}
|
|
962
|
-
type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
|
|
963
|
-
type $ZodInternalIssue<T$1 extends $ZodIssueBase = $ZodIssue> = T$1 extends any ? RawIssue$1<T$1> : never;
|
|
964
|
-
type RawIssue$1<T$1 extends $ZodIssueBase> = T$1 extends any ? Flatten<MakePartial<T$1, "message" | "path"> & {
|
|
965
|
-
/** The input data */
|
|
966
|
-
readonly input: unknown;
|
|
967
|
-
/** The schema or check that originated this issue. */
|
|
968
|
-
readonly inst?: $ZodType | $ZodCheck;
|
|
969
|
-
/** If `true`, Zod will continue executing checks/refinements after this issue. */
|
|
970
|
-
readonly continue?: boolean | undefined;
|
|
971
|
-
} & Record<string, unknown>> : never;
|
|
972
|
-
type $ZodRawIssue<T$1 extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T$1>;
|
|
973
|
-
interface $ZodErrorMap<T$1 extends $ZodIssueBase = $ZodIssue> {
|
|
974
|
-
(issue: $ZodRawIssue<T$1>): {
|
|
975
|
-
message: string;
|
|
976
|
-
} | string | undefined | null;
|
|
977
|
-
}
|
|
978
|
-
interface $ZodError<T$1 = unknown> extends Error {
|
|
979
|
-
type: T$1;
|
|
980
|
-
issues: $ZodIssue[];
|
|
981
|
-
_zod: {
|
|
982
|
-
output: T$1;
|
|
983
|
-
def: $ZodIssue[];
|
|
984
|
-
};
|
|
985
|
-
stack?: string;
|
|
986
|
-
name: string;
|
|
987
|
-
}
|
|
988
|
-
declare const $ZodError: $constructor<$ZodError>;
|
|
989
|
-
type $ZodFlattenedError<T$1, U$1 = string> = _FlattenedError<T$1, U$1>;
|
|
990
|
-
type _FlattenedError<T$1, U$1 = string> = {
|
|
991
|
-
formErrors: U$1[];
|
|
992
|
-
fieldErrors: { [P in keyof T$1]?: U$1[] };
|
|
993
|
-
};
|
|
994
|
-
type _ZodFormattedError<T$1, U$1 = string> = T$1 extends [any, ...any[]] ? { [K in keyof T$1]?: $ZodFormattedError<T$1[K], U$1> } : T$1 extends any[] ? {
|
|
995
|
-
[k: number]: $ZodFormattedError<T$1[number], U$1>;
|
|
996
|
-
} : T$1 extends object ? Flatten<{ [K in keyof T$1]?: $ZodFormattedError<T$1[K], U$1> }> : any;
|
|
997
|
-
type $ZodFormattedError<T$1, U$1 = string> = {
|
|
998
|
-
_errors: U$1[];
|
|
999
|
-
} & Flatten<_ZodFormattedError<T$1, U$1>>;
|
|
1000
|
-
//#endregion
|
|
1001
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.d.cts
|
|
1002
|
-
type ZodTrait = {
|
|
1003
|
-
_zod: {
|
|
1004
|
-
def: any;
|
|
1005
|
-
[k: string]: any;
|
|
1006
|
-
};
|
|
1007
|
-
};
|
|
1008
|
-
interface $constructor<T$1 extends ZodTrait, D = T$1["_zod"]["def"]> {
|
|
1009
|
-
new (def: D): T$1;
|
|
1010
|
-
init(inst: T$1, def: D): asserts inst is T$1;
|
|
1011
|
-
}
|
|
1012
|
-
declare function $constructor<T$1 extends ZodTrait, D = T$1["_zod"]["def"]>(name: string, initializer: (inst: T$1, def: D) => void, params?: {
|
|
1013
|
-
Parent?: typeof Class;
|
|
1014
|
-
}): $constructor<T$1, D>;
|
|
1015
|
-
declare const $brand: unique symbol;
|
|
1016
|
-
type $brand<T$1 extends string | number | symbol = string | number | symbol> = {
|
|
1017
|
-
[$brand]: { [k in T$1]: true };
|
|
1018
|
-
};
|
|
1019
|
-
type $ZodBranded<T$1 extends SomeType, Brand extends string | number | symbol> = T$1 & Record<"_zod", Record<"output", output<T$1> & $brand<Brand>>>;
|
|
1020
|
-
type input<T$1> = T$1 extends {
|
|
1021
|
-
_zod: {
|
|
1022
|
-
input: any;
|
|
1023
|
-
};
|
|
1024
|
-
} ? T$1["_zod"]["input"] : unknown;
|
|
1025
|
-
type output<T$1> = T$1 extends {
|
|
1026
|
-
_zod: {
|
|
1027
|
-
output: any;
|
|
1028
|
-
};
|
|
1029
|
-
} ? T$1["_zod"]["output"] : unknown;
|
|
1030
|
-
//#endregion
|
|
1031
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.d.cts
|
|
1032
|
-
declare const $output: unique symbol;
|
|
1033
|
-
type $output = typeof $output;
|
|
1034
|
-
declare const $input: unique symbol;
|
|
1035
|
-
type $input = typeof $input;
|
|
1036
|
-
type $replace<Meta$1, S extends $ZodType> = Meta$1 extends $output ? output<S> : Meta$1 extends $input ? input<S> : Meta$1 extends (infer M)[] ? $replace<M, S>[] : Meta$1 extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta$1 extends object ? { [K in keyof Meta$1]: $replace<Meta$1[K], S> } : Meta$1;
|
|
1037
|
-
type MetadataType = object | undefined;
|
|
1038
|
-
declare class $ZodRegistry<Meta$1 extends MetadataType = MetadataType, Schema$2 extends $ZodType = $ZodType> {
|
|
1039
|
-
_meta: Meta$1;
|
|
1040
|
-
_schema: Schema$2;
|
|
1041
|
-
_map: WeakMap<Schema$2, $replace<Meta$1, Schema$2>>;
|
|
1042
|
-
_idmap: Map<string, Schema$2>;
|
|
1043
|
-
add<S extends Schema$2>(schema: S, ..._meta: undefined extends Meta$1 ? [$replace<Meta$1, S>?] : [$replace<Meta$1, S>]): this;
|
|
1044
|
-
clear(): this;
|
|
1045
|
-
remove(schema: Schema$2): this;
|
|
1046
|
-
get<S extends Schema$2>(schema: S): $replace<Meta$1, S> | undefined;
|
|
1047
|
-
has(schema: Schema$2): boolean;
|
|
1048
|
-
}
|
|
1049
|
-
interface JSONSchemaMeta {
|
|
1050
|
-
id?: string | undefined;
|
|
1051
|
-
title?: string | undefined;
|
|
1052
|
-
description?: string | undefined;
|
|
1053
|
-
deprecated?: boolean | undefined;
|
|
1054
|
-
[k: string]: unknown;
|
|
1055
|
-
}
|
|
1056
|
-
interface GlobalMeta extends JSONSchemaMeta {}
|
|
1057
|
-
//#endregion
|
|
1058
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.d.cts
|
|
1059
|
-
type Params<T$1 extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T$1["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T$1["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
1060
|
-
error?: string | $ZodErrorMap<IssueTypes> | undefined;
|
|
1061
|
-
/** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
1062
|
-
message?: string | undefined;
|
|
1063
|
-
})>>>;
|
|
1064
|
-
type TypeParams<T$1 extends $ZodType = $ZodType & {
|
|
1065
|
-
_isst: never;
|
|
1066
|
-
}, AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T$1, NonNullable<T$1["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
|
|
1067
|
-
type CheckParams<T$1 extends $ZodCheck = $ZodCheck,
|
|
1068
|
-
// & { _issc: never },
|
|
1069
|
-
AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "check" | "error"> = never> = Params<T$1, NonNullable<T$1["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
|
|
1070
|
-
type CheckStringFormatParams<T$1 extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T$1, NonNullable<T$1["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
|
|
1071
|
-
type CheckTypeParams<T$1 extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T$1["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T$1, NonNullable<T$1["_zod"]["isst"] | T$1["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
|
|
1072
|
-
type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
|
|
1073
|
-
type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
|
|
1074
|
-
type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
1075
|
-
type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
|
|
1076
|
-
type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
|
|
1077
|
-
type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
|
|
1078
|
-
type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
|
|
1079
|
-
type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
|
|
1080
|
-
type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
|
|
1081
|
-
type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
|
|
1082
|
-
type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
|
|
1083
|
-
type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
|
|
1084
|
-
type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
|
|
1085
|
-
type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
|
|
1086
|
-
type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
|
|
1087
|
-
type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
|
|
1088
|
-
type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
|
|
1089
|
-
type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
|
|
1090
|
-
type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
|
|
1091
|
-
type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
|
|
1092
|
-
type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
|
|
1093
|
-
type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
|
|
1094
|
-
type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
|
|
1095
|
-
type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
|
|
1096
|
-
type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
|
|
1097
|
-
type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
|
|
1098
|
-
type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
|
|
1099
|
-
type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
|
|
1100
|
-
type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
|
|
1101
|
-
type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
|
|
1102
|
-
type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
|
|
1103
|
-
type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
|
|
1104
|
-
type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
|
|
1105
|
-
type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
|
|
1106
|
-
type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
|
|
1107
|
-
type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
|
|
1108
|
-
type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
|
|
1109
|
-
type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
|
|
1110
|
-
type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
|
|
1111
|
-
type $ZodSuperRefineIssue<T$1 extends $ZodIssueBase = $ZodIssue> = T$1 extends any ? RawIssue<T$1> : never;
|
|
1112
|
-
type RawIssue<T$1 extends $ZodIssueBase> = T$1 extends any ? Flatten<MakePartial<T$1, "message" | "path"> & {
|
|
1113
|
-
/** The schema or check that originated this issue. */
|
|
1114
|
-
readonly inst?: $ZodType | $ZodCheck;
|
|
1115
|
-
/** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
|
|
1116
|
-
readonly continue?: boolean | undefined;
|
|
1117
|
-
} & Record<string, unknown>> : never;
|
|
1118
|
-
interface $RefinementCtx<T$1 = unknown> extends ParsePayload<T$1> {
|
|
1119
|
-
addIssue(arg: string | $ZodSuperRefineIssue): void;
|
|
1120
|
-
}
|
|
1121
|
-
//#endregion
|
|
1122
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.d.cts
|
|
1123
|
-
/** An Error-like class used to store Zod validation issues. */
|
|
1124
|
-
interface ZodError<T$1 = unknown> extends $ZodError<T$1> {
|
|
1125
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
1126
|
-
format(): $ZodFormattedError<T$1>;
|
|
1127
|
-
format<U$1>(mapper: (issue: $ZodIssue) => U$1): $ZodFormattedError<T$1, U$1>;
|
|
1128
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
1129
|
-
flatten(): $ZodFlattenedError<T$1>;
|
|
1130
|
-
flatten<U$1>(mapper: (issue: $ZodIssue) => U$1): $ZodFlattenedError<T$1, U$1>;
|
|
1131
|
-
/** @deprecated Push directly to `.issues` instead. */
|
|
1132
|
-
addIssue(issue: $ZodIssue): void;
|
|
1133
|
-
/** @deprecated Push directly to `.issues` instead. */
|
|
1134
|
-
addIssues(issues: $ZodIssue[]): void;
|
|
1135
|
-
/** @deprecated Check `err.issues.length === 0` instead. */
|
|
1136
|
-
isEmpty: boolean;
|
|
1137
|
-
}
|
|
1138
|
-
declare const ZodError: $constructor<ZodError>;
|
|
1139
|
-
//#endregion
|
|
1140
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.d.cts
|
|
1141
|
-
type ZodSafeParseResult<T$1> = ZodSafeParseSuccess<T$1> | ZodSafeParseError<T$1>;
|
|
1142
|
-
type ZodSafeParseSuccess<T$1> = {
|
|
1143
|
-
success: true;
|
|
1144
|
-
data: T$1;
|
|
1145
|
-
error?: never;
|
|
1146
|
-
};
|
|
1147
|
-
type ZodSafeParseError<T$1> = {
|
|
1148
|
-
success: false;
|
|
1149
|
-
data?: never;
|
|
1150
|
-
error: ZodError<T$1>;
|
|
1151
|
-
};
|
|
1152
|
-
//#endregion
|
|
1153
|
-
//#region ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.d.cts
|
|
1154
|
-
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
1155
|
-
def: Internals["def"];
|
|
1156
|
-
type: Internals["def"]["type"];
|
|
1157
|
-
/** @deprecated Use `.def` instead. */
|
|
1158
|
-
_def: Internals["def"];
|
|
1159
|
-
/** @deprecated Use `z.output<typeof schema>` instead. */
|
|
1160
|
-
_output: Internals["output"];
|
|
1161
|
-
/** @deprecated Use `z.input<typeof schema>` instead. */
|
|
1162
|
-
_input: Internals["input"];
|
|
1163
|
-
check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
|
|
1164
|
-
clone(def?: Internals["def"], params?: {
|
|
1165
|
-
parent: boolean;
|
|
1166
|
-
}): this;
|
|
1167
|
-
register<R$1 extends $ZodRegistry>(registry: R$1, ...meta: this extends R$1["_schema"] ? undefined extends R$1["_meta"] ? [$replace<R$1["_meta"], this>?] : [$replace<R$1["_meta"], this>] : ["Incompatible schema"]): this;
|
|
1168
|
-
brand<T$1 extends PropertyKey = PropertyKey>(value?: T$1): PropertyKey extends T$1 ? this : $ZodBranded<this, T$1>;
|
|
1169
|
-
parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
|
|
1170
|
-
safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
1171
|
-
parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
1172
|
-
safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1173
|
-
spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
|
|
1174
|
-
encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
|
|
1175
|
-
decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
|
|
1176
|
-
encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
|
|
1177
|
-
decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
1178
|
-
safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
|
|
1179
|
-
safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
1180
|
-
safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
|
|
1181
|
-
safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1182
|
-
refine(check: (arg: output<this>) => unknown | Promise<unknown>, params?: string | $ZodCustomParams): this;
|
|
1183
|
-
superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>): this;
|
|
1184
|
-
overwrite(fn: (x: output<this>) => output<this>): this;
|
|
1185
|
-
optional(): ZodOptional<this>;
|
|
1186
|
-
nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
|
|
1187
|
-
nullable(): ZodNullable<this>;
|
|
1188
|
-
nullish(): ZodOptional<ZodNullable<this>>;
|
|
1189
|
-
default(def: NoUndefined<output<this>>): ZodDefault<this>;
|
|
1190
|
-
default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
|
|
1191
|
-
prefault(def: () => input<this>): ZodPrefault<this>;
|
|
1192
|
-
prefault(def: input<this>): ZodPrefault<this>;
|
|
1193
|
-
array(): ZodArray<this>;
|
|
1194
|
-
or<T$1 extends SomeType>(option: T$1): ZodUnion<[this, T$1]>;
|
|
1195
|
-
and<T$1 extends SomeType>(incoming: T$1): ZodIntersection<this, T$1>;
|
|
1196
|
-
transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
|
|
1197
|
-
catch(def: output<this>): ZodCatch<this>;
|
|
1198
|
-
catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
|
|
1199
|
-
pipe<T$1 extends $ZodType<any, output<this>>>(target: T$1 | $ZodType<any, output<this>>): ZodPipe<this, T$1>;
|
|
1200
|
-
readonly(): ZodReadonly<this>;
|
|
1201
|
-
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
|
|
1202
|
-
describe(description: string): this;
|
|
1203
|
-
description?: string;
|
|
1204
|
-
/** Returns the metadata associated with this instance in `z.globalRegistry` */
|
|
1205
|
-
meta(): $replace<GlobalMeta, this> | undefined;
|
|
1206
|
-
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
|
|
1207
|
-
meta(data: $replace<GlobalMeta, this>): this;
|
|
1208
|
-
/** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
|
|
1209
|
-
*
|
|
1210
|
-
* ```ts
|
|
1211
|
-
* const schema = z.string().optional();
|
|
1212
|
-
* const isOptional = schema.safeParse(undefined).success; // true
|
|
1213
|
-
* ```
|
|
1214
|
-
*/
|
|
1215
|
-
isOptional(): boolean;
|
|
1216
|
-
/**
|
|
1217
|
-
* @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
|
|
1218
|
-
*
|
|
1219
|
-
* ```ts
|
|
1220
|
-
* const schema = z.string().nullable();
|
|
1221
|
-
* const isNullable = schema.safeParse(null).success; // true
|
|
1222
|
-
* ```
|
|
1223
|
-
*/
|
|
1224
|
-
isNullable(): boolean;
|
|
1225
|
-
}
|
|
1226
|
-
interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
|
|
1227
|
-
declare const ZodType: $constructor<ZodType>;
|
|
1228
|
-
interface _ZodString<T$1 extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T$1> {
|
|
1229
|
-
format: string | null;
|
|
1230
|
-
minLength: number | null;
|
|
1231
|
-
maxLength: number | null;
|
|
1232
|
-
regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
|
|
1233
|
-
includes(value: string, params?: $ZodCheckIncludesParams): this;
|
|
1234
|
-
startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
|
|
1235
|
-
endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
|
|
1236
|
-
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
1237
|
-
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
1238
|
-
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
1239
|
-
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
1240
|
-
lowercase(params?: string | $ZodCheckLowerCaseParams): this;
|
|
1241
|
-
uppercase(params?: string | $ZodCheckUpperCaseParams): this;
|
|
1242
|
-
trim(): this;
|
|
1243
|
-
normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
|
|
1244
|
-
toLowerCase(): this;
|
|
1245
|
-
toUpperCase(): this;
|
|
1246
|
-
}
|
|
1247
|
-
/** @internal */
|
|
1248
|
-
declare const _ZodString: $constructor<_ZodString>;
|
|
1249
|
-
interface ZodString extends _ZodString<$ZodStringInternals<string>> {
|
|
1250
|
-
/** @deprecated Use `z.email()` instead. */
|
|
1251
|
-
email(params?: string | $ZodCheckEmailParams): this;
|
|
1252
|
-
/** @deprecated Use `z.url()` instead. */
|
|
1253
|
-
url(params?: string | $ZodCheckURLParams): this;
|
|
1254
|
-
/** @deprecated Use `z.jwt()` instead. */
|
|
1255
|
-
jwt(params?: string | $ZodCheckJWTParams): this;
|
|
1256
|
-
/** @deprecated Use `z.emoji()` instead. */
|
|
1257
|
-
emoji(params?: string | $ZodCheckEmojiParams): this;
|
|
1258
|
-
/** @deprecated Use `z.guid()` instead. */
|
|
1259
|
-
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
1260
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
1261
|
-
uuid(params?: string | $ZodCheckUUIDParams): this;
|
|
1262
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
1263
|
-
uuidv4(params?: string | $ZodCheckUUIDParams): this;
|
|
1264
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
1265
|
-
uuidv6(params?: string | $ZodCheckUUIDParams): this;
|
|
1266
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
1267
|
-
uuidv7(params?: string | $ZodCheckUUIDParams): this;
|
|
1268
|
-
/** @deprecated Use `z.nanoid()` instead. */
|
|
1269
|
-
nanoid(params?: string | $ZodCheckNanoIDParams): this;
|
|
1270
|
-
/** @deprecated Use `z.guid()` instead. */
|
|
1271
|
-
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
1272
|
-
/** @deprecated Use `z.cuid()` instead. */
|
|
1273
|
-
cuid(params?: string | $ZodCheckCUIDParams): this;
|
|
1274
|
-
/** @deprecated Use `z.cuid2()` instead. */
|
|
1275
|
-
cuid2(params?: string | $ZodCheckCUID2Params): this;
|
|
1276
|
-
/** @deprecated Use `z.ulid()` instead. */
|
|
1277
|
-
ulid(params?: string | $ZodCheckULIDParams): this;
|
|
1278
|
-
/** @deprecated Use `z.base64()` instead. */
|
|
1279
|
-
base64(params?: string | $ZodCheckBase64Params): this;
|
|
1280
|
-
/** @deprecated Use `z.base64url()` instead. */
|
|
1281
|
-
base64url(params?: string | $ZodCheckBase64URLParams): this;
|
|
1282
|
-
/** @deprecated Use `z.xid()` instead. */
|
|
1283
|
-
xid(params?: string | $ZodCheckXIDParams): this;
|
|
1284
|
-
/** @deprecated Use `z.ksuid()` instead. */
|
|
1285
|
-
ksuid(params?: string | $ZodCheckKSUIDParams): this;
|
|
1286
|
-
/** @deprecated Use `z.ipv4()` instead. */
|
|
1287
|
-
ipv4(params?: string | $ZodCheckIPv4Params): this;
|
|
1288
|
-
/** @deprecated Use `z.ipv6()` instead. */
|
|
1289
|
-
ipv6(params?: string | $ZodCheckIPv6Params): this;
|
|
1290
|
-
/** @deprecated Use `z.cidrv4()` instead. */
|
|
1291
|
-
cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
|
|
1292
|
-
/** @deprecated Use `z.cidrv6()` instead. */
|
|
1293
|
-
cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
|
|
1294
|
-
/** @deprecated Use `z.e164()` instead. */
|
|
1295
|
-
e164(params?: string | $ZodCheckE164Params): this;
|
|
1296
|
-
/** @deprecated Use `z.iso.datetime()` instead. */
|
|
1297
|
-
datetime(params?: string | $ZodCheckISODateTimeParams): this;
|
|
1298
|
-
/** @deprecated Use `z.iso.date()` instead. */
|
|
1299
|
-
date(params?: string | $ZodCheckISODateParams): this;
|
|
1300
|
-
/** @deprecated Use `z.iso.time()` instead. */
|
|
1301
|
-
time(params?: string | $ZodCheckISOTimeParams): this;
|
|
1302
|
-
/** @deprecated Use `z.iso.duration()` instead. */
|
|
1303
|
-
duration(params?: string | $ZodCheckISODurationParams): this;
|
|
1304
|
-
}
|
|
1305
|
-
declare const ZodString: $constructor<ZodString>;
|
|
1306
|
-
interface ZodStringFormat<Format extends string = string> extends _ZodString<$ZodStringFormatInternals<Format>> {}
|
|
1307
|
-
declare const ZodStringFormat: $constructor<ZodStringFormat>;
|
|
1308
|
-
interface ZodUUID extends ZodStringFormat<"uuid"> {
|
|
1309
|
-
_zod: $ZodUUIDInternals;
|
|
1310
|
-
}
|
|
1311
|
-
declare const ZodUUID: $constructor<ZodUUID>;
|
|
1312
|
-
interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
|
|
1313
|
-
gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
1314
|
-
/** Identical to .min() */
|
|
1315
|
-
gte(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
1316
|
-
min(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
1317
|
-
lt(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
1318
|
-
/** Identical to .max() */
|
|
1319
|
-
lte(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
1320
|
-
max(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
1321
|
-
/** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
|
|
1322
|
-
int(params?: string | $ZodCheckNumberFormatParams): this;
|
|
1323
|
-
/** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
|
|
1324
|
-
safe(params?: string | $ZodCheckNumberFormatParams): this;
|
|
1325
|
-
positive(params?: string | $ZodCheckGreaterThanParams): this;
|
|
1326
|
-
nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
|
|
1327
|
-
negative(params?: string | $ZodCheckLessThanParams): this;
|
|
1328
|
-
nonpositive(params?: string | $ZodCheckLessThanParams): this;
|
|
1329
|
-
multipleOf(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
1330
|
-
/** @deprecated Use `.multipleOf()` instead. */
|
|
1331
|
-
step(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
1332
|
-
/** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
|
|
1333
|
-
finite(params?: unknown): this;
|
|
1334
|
-
minValue: number | null;
|
|
1335
|
-
maxValue: number | null;
|
|
1336
|
-
/** @deprecated Check the `format` property instead. */
|
|
1337
|
-
isInt: boolean;
|
|
1338
|
-
/** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
|
|
1339
|
-
isFinite: boolean;
|
|
1340
|
-
format: string | null;
|
|
1341
|
-
}
|
|
1342
|
-
interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
|
|
1343
|
-
declare const ZodNumber: $constructor<ZodNumber>;
|
|
1344
|
-
interface ZodArray<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T$1>>, $ZodArray<T$1> {
|
|
1345
|
-
element: T$1;
|
|
1346
|
-
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
1347
|
-
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
1348
|
-
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
1349
|
-
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
1350
|
-
unwrap(): T$1;
|
|
1351
|
-
}
|
|
1352
|
-
declare const ZodArray: $constructor<ZodArray>;
|
|
1353
|
-
type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K] };
|
|
1354
|
-
interface ZodObject< /** @ts-ignore Cast variance */
|
|
1355
|
-
out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
|
|
1356
|
-
shape: Shape;
|
|
1357
|
-
keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
|
|
1358
|
-
/** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
|
|
1359
|
-
catchall<T$1 extends SomeType>(schema: T$1): ZodObject<Shape, $catchall<T$1>>;
|
|
1360
|
-
/** @deprecated Use `z.looseObject()` or `.loose()` instead. */
|
|
1361
|
-
passthrough(): ZodObject<Shape, $loose>;
|
|
1362
|
-
/** Consider `z.looseObject(A.shape)` instead */
|
|
1363
|
-
loose(): ZodObject<Shape, $loose>;
|
|
1364
|
-
/** Consider `z.strictObject(A.shape)` instead */
|
|
1365
|
-
strict(): ZodObject<Shape, $strict>;
|
|
1366
|
-
/** This is the default behavior. This method call is likely unnecessary. */
|
|
1367
|
-
strip(): ZodObject<Shape, $strip>;
|
|
1368
|
-
extend<U$1 extends $ZodLooseShape>(shape: U$1): ZodObject<Extend<Shape, U$1>, Config>;
|
|
1369
|
-
safeExtend<U$1 extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U$1> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, U$1>, Config>;
|
|
1370
|
-
/**
|
|
1371
|
-
* @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
1372
|
-
*/
|
|
1373
|
-
merge<U$1 extends ZodObject>(other: U$1): ZodObject<Extend<Shape, U$1["shape"]>, U$1["_zod"]["config"]>;
|
|
1374
|
-
pick<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M$1>>>, Config>;
|
|
1375
|
-
omit<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M$1>>>, Config>;
|
|
1376
|
-
partial(): ZodObject<{ [k in keyof Shape]: ZodOptional<Shape[k]> }, Config>;
|
|
1377
|
-
partial<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<{ [k in keyof Shape]: k extends keyof M$1 ? ZodOptional<Shape[k]> : Shape[k] }, Config>;
|
|
1378
|
-
required(): ZodObject<{ [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config>;
|
|
1379
|
-
required<M$1 extends Mask<keyof Shape>>(mask: M$1): ZodObject<{ [k in keyof Shape]: k extends keyof M$1 ? ZodNonOptional<Shape[k]> : Shape[k] }, Config>;
|
|
1380
|
-
}
|
|
1381
|
-
declare const ZodObject: $constructor<ZodObject>;
|
|
1382
|
-
interface ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T$1>>, $ZodUnion<T$1> {
|
|
1383
|
-
options: T$1;
|
|
1384
|
-
}
|
|
1385
|
-
declare const ZodUnion: $constructor<ZodUnion>;
|
|
1386
|
-
interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {}
|
|
1387
|
-
declare const ZodIntersection: $constructor<ZodIntersection>;
|
|
1388
|
-
interface ZodEnum< /** @ts-ignore Cast variance */
|
|
1389
|
-
out T$1 extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T$1>>, $ZodEnum<T$1> {
|
|
1390
|
-
enum: T$1;
|
|
1391
|
-
options: Array<T$1[keyof T$1]>;
|
|
1392
|
-
extract<const U$1 extends readonly (keyof T$1)[]>(values: U$1, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T$1, U$1[number]>>>;
|
|
1393
|
-
exclude<const U$1 extends readonly (keyof T$1)[]>(values: U$1, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T$1, U$1[number]>>>;
|
|
1394
|
-
}
|
|
1395
|
-
declare const ZodEnum: $constructor<ZodEnum>;
|
|
1396
|
-
interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {}
|
|
1397
|
-
declare const ZodTransform: $constructor<ZodTransform>;
|
|
1398
|
-
interface ZodOptional<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T$1>>, $ZodOptional<T$1> {
|
|
1399
|
-
unwrap(): T$1;
|
|
1400
|
-
}
|
|
1401
|
-
declare const ZodOptional: $constructor<ZodOptional>;
|
|
1402
|
-
interface ZodNullable<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T$1>>, $ZodNullable<T$1> {
|
|
1403
|
-
unwrap(): T$1;
|
|
1404
|
-
}
|
|
1405
|
-
declare const ZodNullable: $constructor<ZodNullable>;
|
|
1406
|
-
interface ZodDefault<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T$1>>, $ZodDefault<T$1> {
|
|
1407
|
-
unwrap(): T$1;
|
|
1408
|
-
/** @deprecated Use `.unwrap()` instead. */
|
|
1409
|
-
removeDefault(): T$1;
|
|
1410
|
-
}
|
|
1411
|
-
declare const ZodDefault: $constructor<ZodDefault>;
|
|
1412
|
-
interface ZodPrefault<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T$1>>, $ZodPrefault<T$1> {
|
|
1413
|
-
unwrap(): T$1;
|
|
1414
|
-
}
|
|
1415
|
-
declare const ZodPrefault: $constructor<ZodPrefault>;
|
|
1416
|
-
interface ZodNonOptional<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T$1>>, $ZodNonOptional<T$1> {
|
|
1417
|
-
unwrap(): T$1;
|
|
1418
|
-
}
|
|
1419
|
-
declare const ZodNonOptional: $constructor<ZodNonOptional>;
|
|
1420
|
-
interface ZodCatch<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T$1>>, $ZodCatch<T$1> {
|
|
1421
|
-
unwrap(): T$1;
|
|
1422
|
-
/** @deprecated Use `.unwrap()` instead. */
|
|
1423
|
-
removeCatch(): T$1;
|
|
1424
|
-
}
|
|
1425
|
-
declare const ZodCatch: $constructor<ZodCatch>;
|
|
1426
|
-
interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
|
|
1427
|
-
in: A;
|
|
1428
|
-
out: B;
|
|
1429
|
-
}
|
|
1430
|
-
declare const ZodPipe: $constructor<ZodPipe>;
|
|
1431
|
-
interface ZodReadonly<T$1 extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T$1>>, $ZodReadonly<T$1> {
|
|
1432
|
-
unwrap(): T$1;
|
|
1433
|
-
}
|
|
1434
|
-
declare const ZodReadonly: $constructor<ZodReadonly>;
|
|
1435
|
-
//#endregion
|
|
1436
|
-
//#region ../../node_modules/.pnpm/@orpc+shared@1.12.2_@opentelemetry+api@1.9.0/node_modules/@orpc/shared/dist/index.d.mts
|
|
1437
|
-
type MaybeOptionalOptions<TOptions> = Record<never, never> extends TOptions ? [options?: TOptions] : [options: TOptions];
|
|
1438
|
-
type PromiseWithError<T$1, TError> = Promise<T$1> & {
|
|
1439
|
-
__error?: {
|
|
1440
|
-
type: TError;
|
|
1441
|
-
};
|
|
1442
|
-
};
|
|
1443
|
-
/**
|
|
1444
|
-
* The place where you can config the orpc types.
|
|
1445
|
-
*
|
|
1446
|
-
* - `throwableError` the error type that represent throwable errors should be `Error` or `null | undefined | {}` if you want more strict.
|
|
1447
|
-
*/
|
|
1448
|
-
interface Registry {}
|
|
1449
|
-
type ThrowableError = Registry extends {
|
|
1450
|
-
throwableError: infer T;
|
|
1451
|
-
} ? T : Error;
|
|
1452
|
-
//#endregion
|
|
1453
|
-
//#region ../../node_modules/.pnpm/@orpc+client@1.12.2_@opentelemetry+api@1.9.0/node_modules/@orpc/client/dist/shared/client.i2uoJbEp.d.mts
|
|
1454
|
-
type HTTPPath = `/${string}`;
|
|
1455
|
-
type HTTPMethod = 'HEAD' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
1456
|
-
type ClientContext = Record<PropertyKey, any>;
|
|
1457
|
-
interface ClientOptions<T$1 extends ClientContext> {
|
|
1458
|
-
signal?: AbortSignal;
|
|
1459
|
-
lastEventId?: string | undefined;
|
|
1460
|
-
context: T$1;
|
|
1461
|
-
}
|
|
1462
|
-
type FriendlyClientOptions<T$1 extends ClientContext> = Omit<ClientOptions<T$1>, 'context'> & (Record<never, never> extends T$1 ? {
|
|
1463
|
-
context?: T$1;
|
|
1464
|
-
} : {
|
|
1465
|
-
context: T$1;
|
|
1466
|
-
});
|
|
1467
|
-
type ClientRest<TClientContext extends ClientContext, TInput> = Record<never, never> extends TClientContext ? undefined extends TInput ? [input?: TInput, options?: FriendlyClientOptions<TClientContext>] : [input: TInput, options?: FriendlyClientOptions<TClientContext>] : [input: TInput, options: FriendlyClientOptions<TClientContext>];
|
|
1468
|
-
type ClientPromiseResult<TOutput, TError> = PromiseWithError<TOutput, TError>;
|
|
1469
|
-
interface Client<TClientContext extends ClientContext, TInput, TOutput, TError> {
|
|
1470
|
-
(...rest: ClientRest<TClientContext, TInput>): ClientPromiseResult<TOutput, TError>;
|
|
1471
|
-
}
|
|
1472
|
-
//#endregion
|
|
1473
|
-
//#region ../../node_modules/.pnpm/@orpc+client@1.12.2_@opentelemetry+api@1.9.0/node_modules/@orpc/client/dist/index.d.mts
|
|
1474
|
-
declare const COMMON_ORPC_ERROR_DEFS: {
|
|
1475
|
-
readonly BAD_REQUEST: {
|
|
1476
|
-
readonly status: 400;
|
|
1477
|
-
readonly message: "Bad Request";
|
|
1478
|
-
};
|
|
1479
|
-
readonly UNAUTHORIZED: {
|
|
1480
|
-
readonly status: 401;
|
|
1481
|
-
readonly message: "Unauthorized";
|
|
1482
|
-
};
|
|
1483
|
-
readonly FORBIDDEN: {
|
|
1484
|
-
readonly status: 403;
|
|
1485
|
-
readonly message: "Forbidden";
|
|
1486
|
-
};
|
|
1487
|
-
readonly NOT_FOUND: {
|
|
1488
|
-
readonly status: 404;
|
|
1489
|
-
readonly message: "Not Found";
|
|
1490
|
-
};
|
|
1491
|
-
readonly METHOD_NOT_SUPPORTED: {
|
|
1492
|
-
readonly status: 405;
|
|
1493
|
-
readonly message: "Method Not Supported";
|
|
1494
|
-
};
|
|
1495
|
-
readonly NOT_ACCEPTABLE: {
|
|
1496
|
-
readonly status: 406;
|
|
1497
|
-
readonly message: "Not Acceptable";
|
|
1498
|
-
};
|
|
1499
|
-
readonly TIMEOUT: {
|
|
1500
|
-
readonly status: 408;
|
|
1501
|
-
readonly message: "Request Timeout";
|
|
1502
|
-
};
|
|
1503
|
-
readonly CONFLICT: {
|
|
1504
|
-
readonly status: 409;
|
|
1505
|
-
readonly message: "Conflict";
|
|
1506
|
-
};
|
|
1507
|
-
readonly PRECONDITION_FAILED: {
|
|
1508
|
-
readonly status: 412;
|
|
1509
|
-
readonly message: "Precondition Failed";
|
|
1510
|
-
};
|
|
1511
|
-
readonly PAYLOAD_TOO_LARGE: {
|
|
1512
|
-
readonly status: 413;
|
|
1513
|
-
readonly message: "Payload Too Large";
|
|
1514
|
-
};
|
|
1515
|
-
readonly UNSUPPORTED_MEDIA_TYPE: {
|
|
1516
|
-
readonly status: 415;
|
|
1517
|
-
readonly message: "Unsupported Media Type";
|
|
1518
|
-
};
|
|
1519
|
-
readonly UNPROCESSABLE_CONTENT: {
|
|
1520
|
-
readonly status: 422;
|
|
1521
|
-
readonly message: "Unprocessable Content";
|
|
1522
|
-
};
|
|
1523
|
-
readonly TOO_MANY_REQUESTS: {
|
|
1524
|
-
readonly status: 429;
|
|
1525
|
-
readonly message: "Too Many Requests";
|
|
1526
|
-
};
|
|
1527
|
-
readonly CLIENT_CLOSED_REQUEST: {
|
|
1528
|
-
readonly status: 499;
|
|
1529
|
-
readonly message: "Client Closed Request";
|
|
1530
|
-
};
|
|
1531
|
-
readonly INTERNAL_SERVER_ERROR: {
|
|
1532
|
-
readonly status: 500;
|
|
1533
|
-
readonly message: "Internal Server Error";
|
|
1534
|
-
};
|
|
1535
|
-
readonly NOT_IMPLEMENTED: {
|
|
1536
|
-
readonly status: 501;
|
|
1537
|
-
readonly message: "Not Implemented";
|
|
1538
|
-
};
|
|
1539
|
-
readonly BAD_GATEWAY: {
|
|
1540
|
-
readonly status: 502;
|
|
1541
|
-
readonly message: "Bad Gateway";
|
|
1542
|
-
};
|
|
1543
|
-
readonly SERVICE_UNAVAILABLE: {
|
|
1544
|
-
readonly status: 503;
|
|
1545
|
-
readonly message: "Service Unavailable";
|
|
1546
|
-
};
|
|
1547
|
-
readonly GATEWAY_TIMEOUT: {
|
|
1548
|
-
readonly status: 504;
|
|
1549
|
-
readonly message: "Gateway Timeout";
|
|
1550
|
-
};
|
|
1551
|
-
};
|
|
1552
|
-
type CommonORPCErrorCode = keyof typeof COMMON_ORPC_ERROR_DEFS;
|
|
1553
|
-
type ORPCErrorCode = CommonORPCErrorCode | (string & {});
|
|
1554
|
-
type ORPCErrorOptions<TData> = ErrorOptions & {
|
|
1555
|
-
defined?: boolean;
|
|
1556
|
-
status?: number;
|
|
1557
|
-
message?: string;
|
|
1558
|
-
} & (undefined extends TData ? {
|
|
1559
|
-
data?: TData;
|
|
1560
|
-
} : {
|
|
1561
|
-
data: TData;
|
|
1562
|
-
});
|
|
1563
|
-
declare class ORPCError<TCode extends ORPCErrorCode, TData> extends Error {
|
|
1564
|
-
readonly defined: boolean;
|
|
1565
|
-
readonly code: TCode;
|
|
1566
|
-
readonly status: number;
|
|
1567
|
-
readonly data: TData;
|
|
1568
|
-
constructor(code: TCode, ...rest: MaybeOptionalOptions<ORPCErrorOptions<TData>>);
|
|
1569
|
-
toJSON(): ORPCErrorJSON<TCode, TData>;
|
|
1570
|
-
/**
|
|
1571
|
-
* Workaround for Next.js where different contexts use separate
|
|
1572
|
-
* dependency graphs, causing multiple ORPCError constructors existing and breaking
|
|
1573
|
-
* `instanceof` checks across contexts.
|
|
1574
|
-
*
|
|
1575
|
-
* This is particularly problematic with "Optimized SSR", where orpc-client
|
|
1576
|
-
* executes in one context but is invoked from another. When an error is thrown
|
|
1577
|
-
* in the execution context, `instanceof ORPCError` checks fail in the
|
|
1578
|
-
* invocation context due to separate class constructors.
|
|
1579
|
-
*
|
|
1580
|
-
* @todo Remove this and related code if Next.js resolves the multiple dependency graph issue.
|
|
1581
|
-
*/
|
|
1582
|
-
static [Symbol.hasInstance](instance: unknown): boolean;
|
|
1583
|
-
}
|
|
1584
|
-
type ORPCErrorJSON<TCode extends string, TData> = Pick<ORPCError<TCode, TData>, 'defined' | 'code' | 'status' | 'message' | 'data'>;
|
|
1585
|
-
//#endregion
|
|
1586
|
-
//#region ../../node_modules/.pnpm/@standard-schema+spec@1.0.0/node_modules/@standard-schema/spec/dist/index.d.ts
|
|
1587
|
-
/** The Standard Schema interface. */
|
|
1588
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
1589
|
-
/** The Standard Schema properties. */
|
|
1590
|
-
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
1591
|
-
}
|
|
1592
|
-
declare namespace StandardSchemaV1 {
|
|
1593
|
-
/** The Standard Schema properties interface. */
|
|
1594
|
-
export interface Props<Input = unknown, Output = Input> {
|
|
1595
|
-
/** The version number of the standard. */
|
|
1596
|
-
readonly version: 1;
|
|
1597
|
-
/** The vendor name of the schema library. */
|
|
1598
|
-
readonly vendor: string;
|
|
1599
|
-
/** Validates unknown input values. */
|
|
1600
|
-
readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
|
|
1601
|
-
/** Inferred types associated with the schema. */
|
|
1602
|
-
readonly types?: Types<Input, Output> | undefined;
|
|
1603
|
-
}
|
|
1604
|
-
/** The result interface of the validate function. */
|
|
1605
|
-
export type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
1606
|
-
/** The result interface if validation succeeds. */
|
|
1607
|
-
export interface SuccessResult<Output> {
|
|
1608
|
-
/** The typed output value. */
|
|
1609
|
-
readonly value: Output;
|
|
1610
|
-
/** The non-existent issues. */
|
|
1611
|
-
readonly issues?: undefined;
|
|
1612
|
-
}
|
|
1613
|
-
/** The result interface if validation fails. */
|
|
1614
|
-
export interface FailureResult {
|
|
1615
|
-
/** The issues of failed validation. */
|
|
1616
|
-
readonly issues: ReadonlyArray<Issue>;
|
|
1617
|
-
}
|
|
1618
|
-
/** The issue interface of the failure output. */
|
|
1619
|
-
export interface Issue {
|
|
1620
|
-
/** The error message of the issue. */
|
|
1621
|
-
readonly message: string;
|
|
1622
|
-
/** The path of the issue, if any. */
|
|
1623
|
-
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
1624
|
-
}
|
|
1625
|
-
/** The path segment interface of the issue. */
|
|
1626
|
-
export interface PathSegment {
|
|
1627
|
-
/** The key representing a path segment. */
|
|
1628
|
-
readonly key: PropertyKey;
|
|
1629
|
-
}
|
|
1630
|
-
/** The Standard Schema types interface. */
|
|
1631
|
-
export interface Types<Input = unknown, Output = Input> {
|
|
1632
|
-
/** The input type of the schema. */
|
|
1633
|
-
readonly input: Input;
|
|
1634
|
-
/** The output type of the schema. */
|
|
1635
|
-
readonly output: Output;
|
|
1636
|
-
}
|
|
1637
|
-
/** Infers the input type of a Standard Schema. */
|
|
1638
|
-
export type InferInput<Schema$2 extends StandardSchemaV1> = NonNullable<Schema$2["~standard"]["types"]>["input"];
|
|
1639
|
-
/** Infers the output type of a Standard Schema. */
|
|
1640
|
-
export type InferOutput<Schema$2 extends StandardSchemaV1> = NonNullable<Schema$2["~standard"]["types"]>["output"];
|
|
1641
|
-
export {};
|
|
1642
|
-
}
|
|
1643
|
-
//#endregion
|
|
1644
|
-
//#region ../../node_modules/.pnpm/openapi-types@12.1.3/node_modules/openapi-types/dist/index.d.ts
|
|
1645
|
-
declare namespace OpenAPIV3_1 {
|
|
1646
|
-
type Modify<T$1, R$1> = Omit<T$1, keyof R$1> & R$1;
|
|
1647
|
-
type PathsWebhooksComponents<T$1 extends {} = {}> = {
|
|
1648
|
-
paths: PathsObject<T$1>;
|
|
1649
|
-
webhooks: Record<string, PathItemObject | ReferenceObject>;
|
|
1650
|
-
components: ComponentsObject;
|
|
1651
|
-
};
|
|
1652
|
-
export type Document<T$1 extends {} = {}> = Modify<Omit<OpenAPIV3.Document<T$1>, 'paths' | 'components'>, {
|
|
1653
|
-
info: InfoObject;
|
|
1654
|
-
jsonSchemaDialect?: string;
|
|
1655
|
-
servers?: ServerObject[];
|
|
1656
|
-
} & ((Pick<PathsWebhooksComponents<T$1>, 'paths'> & Omit<Partial<PathsWebhooksComponents<T$1>>, 'paths'>) | (Pick<PathsWebhooksComponents<T$1>, 'webhooks'> & Omit<Partial<PathsWebhooksComponents<T$1>>, 'webhooks'>) | (Pick<PathsWebhooksComponents<T$1>, 'components'> & Omit<Partial<PathsWebhooksComponents<T$1>>, 'components'>))>;
|
|
1657
|
-
export type InfoObject = Modify<OpenAPIV3.InfoObject, {
|
|
1658
|
-
summary?: string;
|
|
1659
|
-
license?: LicenseObject;
|
|
1660
|
-
}>;
|
|
1661
|
-
export type ContactObject = OpenAPIV3.ContactObject;
|
|
1662
|
-
export type LicenseObject = Modify<OpenAPIV3.LicenseObject, {
|
|
1663
|
-
identifier?: string;
|
|
1664
|
-
}>;
|
|
1665
|
-
export type ServerObject = Modify<OpenAPIV3.ServerObject, {
|
|
1666
|
-
url: string;
|
|
1667
|
-
description?: string;
|
|
1668
|
-
variables?: Record<string, ServerVariableObject>;
|
|
1669
|
-
}>;
|
|
1670
|
-
export type ServerVariableObject = Modify<OpenAPIV3.ServerVariableObject, {
|
|
1671
|
-
enum?: [string, ...string[]];
|
|
1672
|
-
}>;
|
|
1673
|
-
export type PathsObject<T$1 extends {} = {}, P$1 extends {} = {}> = Record<string, (PathItemObject<T$1> & P$1) | undefined>;
|
|
1674
|
-
export type HttpMethods = OpenAPIV3.HttpMethods;
|
|
1675
|
-
export type PathItemObject<T$1 extends {} = {}> = Modify<OpenAPIV3.PathItemObject<T$1>, {
|
|
1676
|
-
servers?: ServerObject[];
|
|
1677
|
-
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1678
|
-
}> & { [method in HttpMethods]?: OperationObject<T$1> };
|
|
1679
|
-
export type OperationObject<T$1 extends {} = {}> = Modify<OpenAPIV3.OperationObject<T$1>, {
|
|
1680
|
-
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1681
|
-
requestBody?: ReferenceObject | RequestBodyObject;
|
|
1682
|
-
responses?: ResponsesObject;
|
|
1683
|
-
callbacks?: Record<string, ReferenceObject | CallbackObject>;
|
|
1684
|
-
servers?: ServerObject[];
|
|
1685
|
-
}> & T$1;
|
|
1686
|
-
export type ExternalDocumentationObject = OpenAPIV3.ExternalDocumentationObject;
|
|
1687
|
-
export type ParameterObject = OpenAPIV3.ParameterObject;
|
|
1688
|
-
export type HeaderObject = OpenAPIV3.HeaderObject;
|
|
1689
|
-
export type ParameterBaseObject = OpenAPIV3.ParameterBaseObject;
|
|
1690
|
-
export type NonArraySchemaObjectType = OpenAPIV3.NonArraySchemaObjectType | 'null';
|
|
1691
|
-
export type ArraySchemaObjectType = OpenAPIV3.ArraySchemaObjectType;
|
|
1692
|
-
/**
|
|
1693
|
-
* There is no way to tell typescript to require items when type is either 'array' or array containing 'array' type
|
|
1694
|
-
* 'items' will be always visible as optional
|
|
1695
|
-
* Casting schema object to ArraySchemaObject or NonArraySchemaObject will work fine
|
|
1696
|
-
*/
|
|
1697
|
-
export type SchemaObject = ArraySchemaObject | NonArraySchemaObject | MixedSchemaObject;
|
|
1698
|
-
export interface ArraySchemaObject extends BaseSchemaObject {
|
|
1699
|
-
type: ArraySchemaObjectType;
|
|
1700
|
-
items: ReferenceObject | SchemaObject;
|
|
1701
|
-
}
|
|
1702
|
-
export interface NonArraySchemaObject extends BaseSchemaObject {
|
|
1703
|
-
type?: NonArraySchemaObjectType;
|
|
1704
|
-
}
|
|
1705
|
-
interface MixedSchemaObject extends BaseSchemaObject {
|
|
1706
|
-
type?: (ArraySchemaObjectType | NonArraySchemaObjectType)[];
|
|
1707
|
-
items?: ReferenceObject | SchemaObject;
|
|
1708
|
-
}
|
|
1709
|
-
export type BaseSchemaObject = Modify<Omit<OpenAPIV3.BaseSchemaObject, 'nullable'>, {
|
|
1710
|
-
examples?: OpenAPIV3.BaseSchemaObject['example'][];
|
|
1711
|
-
exclusiveMinimum?: boolean | number;
|
|
1712
|
-
exclusiveMaximum?: boolean | number;
|
|
1713
|
-
contentMediaType?: string;
|
|
1714
|
-
$schema?: string;
|
|
1715
|
-
additionalProperties?: boolean | ReferenceObject | SchemaObject;
|
|
1716
|
-
properties?: {
|
|
1717
|
-
[name: string]: ReferenceObject | SchemaObject;
|
|
1718
|
-
};
|
|
1719
|
-
allOf?: (ReferenceObject | SchemaObject)[];
|
|
1720
|
-
oneOf?: (ReferenceObject | SchemaObject)[];
|
|
1721
|
-
anyOf?: (ReferenceObject | SchemaObject)[];
|
|
1722
|
-
not?: ReferenceObject | SchemaObject;
|
|
1723
|
-
discriminator?: DiscriminatorObject;
|
|
1724
|
-
externalDocs?: ExternalDocumentationObject;
|
|
1725
|
-
xml?: XMLObject;
|
|
1726
|
-
const?: any;
|
|
1727
|
-
}>;
|
|
1728
|
-
export type DiscriminatorObject = OpenAPIV3.DiscriminatorObject;
|
|
1729
|
-
export type XMLObject = OpenAPIV3.XMLObject;
|
|
1730
|
-
export type ReferenceObject = Modify<OpenAPIV3.ReferenceObject, {
|
|
1731
|
-
summary?: string;
|
|
1732
|
-
description?: string;
|
|
1733
|
-
}>;
|
|
1734
|
-
export type ExampleObject = OpenAPIV3.ExampleObject;
|
|
1735
|
-
export type MediaTypeObject = Modify<OpenAPIV3.MediaTypeObject, {
|
|
1736
|
-
schema?: SchemaObject | ReferenceObject;
|
|
1737
|
-
examples?: Record<string, ReferenceObject | ExampleObject>;
|
|
1738
|
-
}>;
|
|
1739
|
-
export type EncodingObject = OpenAPIV3.EncodingObject;
|
|
1740
|
-
export type RequestBodyObject = Modify<OpenAPIV3.RequestBodyObject, {
|
|
1741
|
-
content: {
|
|
1742
|
-
[media: string]: MediaTypeObject;
|
|
1743
|
-
};
|
|
1744
|
-
}>;
|
|
1745
|
-
export type ResponsesObject = Record<string, ReferenceObject | ResponseObject>;
|
|
1746
|
-
export type ResponseObject = Modify<OpenAPIV3.ResponseObject, {
|
|
1747
|
-
headers?: {
|
|
1748
|
-
[header: string]: ReferenceObject | HeaderObject;
|
|
1749
|
-
};
|
|
1750
|
-
content?: {
|
|
1751
|
-
[media: string]: MediaTypeObject;
|
|
1752
|
-
};
|
|
1753
|
-
links?: {
|
|
1754
|
-
[link: string]: ReferenceObject | LinkObject;
|
|
1755
|
-
};
|
|
1756
|
-
}>;
|
|
1757
|
-
export type LinkObject = Modify<OpenAPIV3.LinkObject, {
|
|
1758
|
-
server?: ServerObject;
|
|
1759
|
-
}>;
|
|
1760
|
-
export type CallbackObject = Record<string, PathItemObject | ReferenceObject>;
|
|
1761
|
-
export type SecurityRequirementObject = OpenAPIV3.SecurityRequirementObject;
|
|
1762
|
-
export type ComponentsObject = Modify<OpenAPIV3.ComponentsObject, {
|
|
1763
|
-
schemas?: Record<string, SchemaObject>;
|
|
1764
|
-
responses?: Record<string, ReferenceObject | ResponseObject>;
|
|
1765
|
-
parameters?: Record<string, ReferenceObject | ParameterObject>;
|
|
1766
|
-
examples?: Record<string, ReferenceObject | ExampleObject>;
|
|
1767
|
-
requestBodies?: Record<string, ReferenceObject | RequestBodyObject>;
|
|
1768
|
-
headers?: Record<string, ReferenceObject | HeaderObject>;
|
|
1769
|
-
securitySchemes?: Record<string, ReferenceObject | SecuritySchemeObject>;
|
|
1770
|
-
links?: Record<string, ReferenceObject | LinkObject>;
|
|
1771
|
-
callbacks?: Record<string, ReferenceObject | CallbackObject>;
|
|
1772
|
-
pathItems?: Record<string, ReferenceObject | PathItemObject>;
|
|
1773
|
-
}>;
|
|
1774
|
-
export type SecuritySchemeObject = OpenAPIV3.SecuritySchemeObject;
|
|
1775
|
-
export type HttpSecurityScheme = OpenAPIV3.HttpSecurityScheme;
|
|
1776
|
-
export type ApiKeySecurityScheme = OpenAPIV3.ApiKeySecurityScheme;
|
|
1777
|
-
export type OAuth2SecurityScheme = OpenAPIV3.OAuth2SecurityScheme;
|
|
1778
|
-
export type OpenIdSecurityScheme = OpenAPIV3.OpenIdSecurityScheme;
|
|
1779
|
-
export type TagObject = OpenAPIV3.TagObject;
|
|
1780
|
-
export {};
|
|
1781
|
-
}
|
|
1782
|
-
declare namespace OpenAPIV3 {
|
|
1783
|
-
interface Document<T$1 extends {} = {}> {
|
|
1784
|
-
openapi: string;
|
|
1785
|
-
info: InfoObject;
|
|
1786
|
-
servers?: ServerObject[];
|
|
1787
|
-
paths: PathsObject<T$1>;
|
|
1788
|
-
components?: ComponentsObject;
|
|
1789
|
-
security?: SecurityRequirementObject[];
|
|
1790
|
-
tags?: TagObject[];
|
|
1791
|
-
externalDocs?: ExternalDocumentationObject;
|
|
1792
|
-
'x-express-openapi-additional-middleware'?: (((request: any, response: any, next: any) => Promise<void>) | ((request: any, response: any, next: any) => void))[];
|
|
1793
|
-
'x-express-openapi-validation-strict'?: boolean;
|
|
1794
|
-
}
|
|
1795
|
-
interface InfoObject {
|
|
1796
|
-
title: string;
|
|
1797
|
-
description?: string;
|
|
1798
|
-
termsOfService?: string;
|
|
1799
|
-
contact?: ContactObject;
|
|
1800
|
-
license?: LicenseObject;
|
|
1801
|
-
version: string;
|
|
1802
|
-
}
|
|
1803
|
-
interface ContactObject {
|
|
1804
|
-
name?: string;
|
|
1805
|
-
url?: string;
|
|
1806
|
-
email?: string;
|
|
1807
|
-
}
|
|
1808
|
-
interface LicenseObject {
|
|
1809
|
-
name: string;
|
|
1810
|
-
url?: string;
|
|
1811
|
-
}
|
|
1812
|
-
interface ServerObject {
|
|
1813
|
-
url: string;
|
|
1814
|
-
description?: string;
|
|
1815
|
-
variables?: {
|
|
1816
|
-
[variable: string]: ServerVariableObject;
|
|
1817
|
-
};
|
|
1818
|
-
}
|
|
1819
|
-
interface ServerVariableObject {
|
|
1820
|
-
enum?: string[];
|
|
1821
|
-
default: string;
|
|
1822
|
-
description?: string;
|
|
1823
|
-
}
|
|
1824
|
-
interface PathsObject<T$1 extends {} = {}, P$1 extends {} = {}> {
|
|
1825
|
-
[pattern: string]: (PathItemObject<T$1> & P$1) | undefined;
|
|
1826
|
-
}
|
|
1827
|
-
enum HttpMethods {
|
|
1828
|
-
GET = "get",
|
|
1829
|
-
PUT = "put",
|
|
1830
|
-
POST = "post",
|
|
1831
|
-
DELETE = "delete",
|
|
1832
|
-
OPTIONS = "options",
|
|
1833
|
-
HEAD = "head",
|
|
1834
|
-
PATCH = "patch",
|
|
1835
|
-
TRACE = "trace",
|
|
1836
|
-
}
|
|
1837
|
-
type PathItemObject<T$1 extends {} = {}> = {
|
|
1838
|
-
$ref?: string;
|
|
1839
|
-
summary?: string;
|
|
1840
|
-
description?: string;
|
|
1841
|
-
servers?: ServerObject[];
|
|
1842
|
-
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1843
|
-
} & { [method in HttpMethods]?: OperationObject<T$1> };
|
|
1844
|
-
type OperationObject<T$1 extends {} = {}> = {
|
|
1845
|
-
tags?: string[];
|
|
1846
|
-
summary?: string;
|
|
1847
|
-
description?: string;
|
|
1848
|
-
externalDocs?: ExternalDocumentationObject;
|
|
1849
|
-
operationId?: string;
|
|
1850
|
-
parameters?: (ReferenceObject | ParameterObject)[];
|
|
1851
|
-
requestBody?: ReferenceObject | RequestBodyObject;
|
|
1852
|
-
responses: ResponsesObject;
|
|
1853
|
-
callbacks?: {
|
|
1854
|
-
[callback: string]: ReferenceObject | CallbackObject;
|
|
1855
|
-
};
|
|
1856
|
-
deprecated?: boolean;
|
|
1857
|
-
security?: SecurityRequirementObject[];
|
|
1858
|
-
servers?: ServerObject[];
|
|
1859
|
-
} & T$1;
|
|
1860
|
-
interface ExternalDocumentationObject {
|
|
1861
|
-
description?: string;
|
|
1862
|
-
url: string;
|
|
1863
|
-
}
|
|
1864
|
-
interface ParameterObject extends ParameterBaseObject {
|
|
1865
|
-
name: string;
|
|
1866
|
-
in: string;
|
|
1867
|
-
}
|
|
1868
|
-
interface HeaderObject extends ParameterBaseObject {}
|
|
1869
|
-
interface ParameterBaseObject {
|
|
1870
|
-
description?: string;
|
|
1871
|
-
required?: boolean;
|
|
1872
|
-
deprecated?: boolean;
|
|
1873
|
-
allowEmptyValue?: boolean;
|
|
1874
|
-
style?: string;
|
|
1875
|
-
explode?: boolean;
|
|
1876
|
-
allowReserved?: boolean;
|
|
1877
|
-
schema?: ReferenceObject | SchemaObject;
|
|
1878
|
-
example?: any;
|
|
1879
|
-
examples?: {
|
|
1880
|
-
[media: string]: ReferenceObject | ExampleObject;
|
|
1881
|
-
};
|
|
1882
|
-
content?: {
|
|
1883
|
-
[media: string]: MediaTypeObject;
|
|
1884
|
-
};
|
|
1885
|
-
}
|
|
1886
|
-
type NonArraySchemaObjectType = 'boolean' | 'object' | 'number' | 'string' | 'integer';
|
|
1887
|
-
type ArraySchemaObjectType = 'array';
|
|
1888
|
-
type SchemaObject = ArraySchemaObject | NonArraySchemaObject;
|
|
1889
|
-
interface ArraySchemaObject extends BaseSchemaObject {
|
|
1890
|
-
type: ArraySchemaObjectType;
|
|
1891
|
-
items: ReferenceObject | SchemaObject;
|
|
1892
|
-
}
|
|
1893
|
-
interface NonArraySchemaObject extends BaseSchemaObject {
|
|
1894
|
-
type?: NonArraySchemaObjectType;
|
|
1895
|
-
}
|
|
1896
|
-
interface BaseSchemaObject {
|
|
1897
|
-
title?: string;
|
|
1898
|
-
description?: string;
|
|
1899
|
-
format?: string;
|
|
1900
|
-
default?: any;
|
|
1901
|
-
multipleOf?: number;
|
|
1902
|
-
maximum?: number;
|
|
1903
|
-
exclusiveMaximum?: boolean;
|
|
1904
|
-
minimum?: number;
|
|
1905
|
-
exclusiveMinimum?: boolean;
|
|
1906
|
-
maxLength?: number;
|
|
1907
|
-
minLength?: number;
|
|
1908
|
-
pattern?: string;
|
|
1909
|
-
additionalProperties?: boolean | ReferenceObject | SchemaObject;
|
|
1910
|
-
maxItems?: number;
|
|
1911
|
-
minItems?: number;
|
|
1912
|
-
uniqueItems?: boolean;
|
|
1913
|
-
maxProperties?: number;
|
|
1914
|
-
minProperties?: number;
|
|
1915
|
-
required?: string[];
|
|
1916
|
-
enum?: any[];
|
|
1917
|
-
properties?: {
|
|
1918
|
-
[name: string]: ReferenceObject | SchemaObject;
|
|
1919
|
-
};
|
|
1920
|
-
allOf?: (ReferenceObject | SchemaObject)[];
|
|
1921
|
-
oneOf?: (ReferenceObject | SchemaObject)[];
|
|
1922
|
-
anyOf?: (ReferenceObject | SchemaObject)[];
|
|
1923
|
-
not?: ReferenceObject | SchemaObject;
|
|
1924
|
-
nullable?: boolean;
|
|
1925
|
-
discriminator?: DiscriminatorObject;
|
|
1926
|
-
readOnly?: boolean;
|
|
1927
|
-
writeOnly?: boolean;
|
|
1928
|
-
xml?: XMLObject;
|
|
1929
|
-
externalDocs?: ExternalDocumentationObject;
|
|
1930
|
-
example?: any;
|
|
1931
|
-
deprecated?: boolean;
|
|
1932
|
-
}
|
|
1933
|
-
interface DiscriminatorObject {
|
|
1934
|
-
propertyName: string;
|
|
1935
|
-
mapping?: {
|
|
1936
|
-
[value: string]: string;
|
|
1937
|
-
};
|
|
1938
|
-
}
|
|
1939
|
-
interface XMLObject {
|
|
1940
|
-
name?: string;
|
|
1941
|
-
namespace?: string;
|
|
1942
|
-
prefix?: string;
|
|
1943
|
-
attribute?: boolean;
|
|
1944
|
-
wrapped?: boolean;
|
|
1945
|
-
}
|
|
1946
|
-
interface ReferenceObject {
|
|
1947
|
-
$ref: string;
|
|
1948
|
-
}
|
|
1949
|
-
interface ExampleObject {
|
|
1950
|
-
summary?: string;
|
|
1951
|
-
description?: string;
|
|
1952
|
-
value?: any;
|
|
1953
|
-
externalValue?: string;
|
|
1954
|
-
}
|
|
1955
|
-
interface MediaTypeObject {
|
|
1956
|
-
schema?: ReferenceObject | SchemaObject;
|
|
1957
|
-
example?: any;
|
|
1958
|
-
examples?: {
|
|
1959
|
-
[media: string]: ReferenceObject | ExampleObject;
|
|
1960
|
-
};
|
|
1961
|
-
encoding?: {
|
|
1962
|
-
[media: string]: EncodingObject;
|
|
1963
|
-
};
|
|
1964
|
-
}
|
|
1965
|
-
interface EncodingObject {
|
|
1966
|
-
contentType?: string;
|
|
1967
|
-
headers?: {
|
|
1968
|
-
[header: string]: ReferenceObject | HeaderObject;
|
|
1969
|
-
};
|
|
1970
|
-
style?: string;
|
|
1971
|
-
explode?: boolean;
|
|
1972
|
-
allowReserved?: boolean;
|
|
1973
|
-
}
|
|
1974
|
-
interface RequestBodyObject {
|
|
1975
|
-
description?: string;
|
|
1976
|
-
content: {
|
|
1977
|
-
[media: string]: MediaTypeObject;
|
|
1978
|
-
};
|
|
1979
|
-
required?: boolean;
|
|
1980
|
-
}
|
|
1981
|
-
interface ResponsesObject {
|
|
1982
|
-
[code: string]: ReferenceObject | ResponseObject;
|
|
1983
|
-
}
|
|
1984
|
-
interface ResponseObject {
|
|
1985
|
-
description: string;
|
|
1986
|
-
headers?: {
|
|
1987
|
-
[header: string]: ReferenceObject | HeaderObject;
|
|
1988
|
-
};
|
|
1989
|
-
content?: {
|
|
1990
|
-
[media: string]: MediaTypeObject;
|
|
1991
|
-
};
|
|
1992
|
-
links?: {
|
|
1993
|
-
[link: string]: ReferenceObject | LinkObject;
|
|
1994
|
-
};
|
|
1995
|
-
}
|
|
1996
|
-
interface LinkObject {
|
|
1997
|
-
operationRef?: string;
|
|
1998
|
-
operationId?: string;
|
|
1999
|
-
parameters?: {
|
|
2000
|
-
[parameter: string]: any;
|
|
2001
|
-
};
|
|
2002
|
-
requestBody?: any;
|
|
2003
|
-
description?: string;
|
|
2004
|
-
server?: ServerObject;
|
|
2005
|
-
}
|
|
2006
|
-
interface CallbackObject {
|
|
2007
|
-
[url: string]: PathItemObject;
|
|
2008
|
-
}
|
|
2009
|
-
interface SecurityRequirementObject {
|
|
2010
|
-
[name: string]: string[];
|
|
2011
|
-
}
|
|
2012
|
-
interface ComponentsObject {
|
|
2013
|
-
schemas?: {
|
|
2014
|
-
[key: string]: ReferenceObject | SchemaObject;
|
|
2015
|
-
};
|
|
2016
|
-
responses?: {
|
|
2017
|
-
[key: string]: ReferenceObject | ResponseObject;
|
|
2018
|
-
};
|
|
2019
|
-
parameters?: {
|
|
2020
|
-
[key: string]: ReferenceObject | ParameterObject;
|
|
2021
|
-
};
|
|
2022
|
-
examples?: {
|
|
2023
|
-
[key: string]: ReferenceObject | ExampleObject;
|
|
2024
|
-
};
|
|
2025
|
-
requestBodies?: {
|
|
2026
|
-
[key: string]: ReferenceObject | RequestBodyObject;
|
|
2027
|
-
};
|
|
2028
|
-
headers?: {
|
|
2029
|
-
[key: string]: ReferenceObject | HeaderObject;
|
|
2030
|
-
};
|
|
2031
|
-
securitySchemes?: {
|
|
2032
|
-
[key: string]: ReferenceObject | SecuritySchemeObject;
|
|
2033
|
-
};
|
|
2034
|
-
links?: {
|
|
2035
|
-
[key: string]: ReferenceObject | LinkObject;
|
|
2036
|
-
};
|
|
2037
|
-
callbacks?: {
|
|
2038
|
-
[key: string]: ReferenceObject | CallbackObject;
|
|
2039
|
-
};
|
|
2040
|
-
}
|
|
2041
|
-
type SecuritySchemeObject = HttpSecurityScheme | ApiKeySecurityScheme | OAuth2SecurityScheme | OpenIdSecurityScheme;
|
|
2042
|
-
interface HttpSecurityScheme {
|
|
2043
|
-
type: 'http';
|
|
2044
|
-
description?: string;
|
|
2045
|
-
scheme: string;
|
|
2046
|
-
bearerFormat?: string;
|
|
2047
|
-
}
|
|
2048
|
-
interface ApiKeySecurityScheme {
|
|
2049
|
-
type: 'apiKey';
|
|
2050
|
-
description?: string;
|
|
2051
|
-
name: string;
|
|
2052
|
-
in: string;
|
|
2053
|
-
}
|
|
2054
|
-
interface OAuth2SecurityScheme {
|
|
2055
|
-
type: 'oauth2';
|
|
2056
|
-
description?: string;
|
|
2057
|
-
flows: {
|
|
2058
|
-
implicit?: {
|
|
2059
|
-
authorizationUrl: string;
|
|
2060
|
-
refreshUrl?: string;
|
|
2061
|
-
scopes: {
|
|
2062
|
-
[scope: string]: string;
|
|
2063
|
-
};
|
|
2064
|
-
};
|
|
2065
|
-
password?: {
|
|
2066
|
-
tokenUrl: string;
|
|
2067
|
-
refreshUrl?: string;
|
|
2068
|
-
scopes: {
|
|
2069
|
-
[scope: string]: string;
|
|
2070
|
-
};
|
|
2071
|
-
};
|
|
2072
|
-
clientCredentials?: {
|
|
2073
|
-
tokenUrl: string;
|
|
2074
|
-
refreshUrl?: string;
|
|
2075
|
-
scopes: {
|
|
2076
|
-
[scope: string]: string;
|
|
2077
|
-
};
|
|
2078
|
-
};
|
|
2079
|
-
authorizationCode?: {
|
|
2080
|
-
authorizationUrl: string;
|
|
2081
|
-
tokenUrl: string;
|
|
2082
|
-
refreshUrl?: string;
|
|
2083
|
-
scopes: {
|
|
2084
|
-
[scope: string]: string;
|
|
2085
|
-
};
|
|
2086
|
-
};
|
|
2087
|
-
};
|
|
2088
|
-
}
|
|
2089
|
-
interface OpenIdSecurityScheme {
|
|
2090
|
-
type: 'openIdConnect';
|
|
2091
|
-
description?: string;
|
|
2092
|
-
openIdConnectUrl: string;
|
|
2093
|
-
}
|
|
2094
|
-
interface TagObject {
|
|
2095
|
-
name: string;
|
|
2096
|
-
description?: string;
|
|
2097
|
-
externalDocs?: ExternalDocumentationObject;
|
|
2098
|
-
}
|
|
2099
|
-
}
|
|
2100
|
-
//#endregion
|
|
2101
|
-
//#region ../../node_modules/.pnpm/@orpc+contract@1.12.2_@opentelemetry+api@1.9.0/node_modules/@orpc/contract/dist/shared/contract.TuRtB1Ca.d.mts
|
|
2102
|
-
type Schema$1<TInput, TOutput> = StandardSchemaV1<TInput, TOutput>;
|
|
2103
|
-
type AnySchema = Schema$1<any, any>;
|
|
2104
|
-
type InferSchemaInput<T$1 extends AnySchema> = T$1 extends StandardSchemaV1<infer UInput, any> ? UInput : never;
|
|
2105
|
-
type InferSchemaOutput<T$1 extends AnySchema> = T$1 extends StandardSchemaV1<any, infer UOutput> ? UOutput : never;
|
|
2106
|
-
interface ErrorMapItem<TDataSchema$1 extends AnySchema> {
|
|
2107
|
-
status?: number;
|
|
2108
|
-
message?: string;
|
|
2109
|
-
data?: TDataSchema$1;
|
|
2110
|
-
}
|
|
2111
|
-
type ErrorMap = { [key in ORPCErrorCode]?: ErrorMapItem<AnySchema> };
|
|
2112
|
-
type MergedErrorMap<T1 extends ErrorMap, T2 extends ErrorMap> = Omit<T1, keyof T2> & T2;
|
|
2113
|
-
type ORPCErrorFromErrorMap<TErrorMap extends ErrorMap> = { [K in keyof TErrorMap]: K extends string ? TErrorMap[K] extends ErrorMapItem<infer TDataSchema extends Schema$1<unknown, unknown>> ? ORPCError<K, InferSchemaOutput<TDataSchema>> : never : never }[keyof TErrorMap];
|
|
2114
|
-
type ErrorFromErrorMap<TErrorMap extends ErrorMap> = ORPCErrorFromErrorMap<TErrorMap> | ThrowableError;
|
|
2115
|
-
type Meta = Record<string, any>;
|
|
2116
|
-
type InputStructure = 'compact' | 'detailed';
|
|
2117
|
-
type OutputStructure = 'compact' | 'detailed';
|
|
2118
|
-
interface Route {
|
|
2119
|
-
/**
|
|
2120
|
-
* The HTTP method of the procedure.
|
|
2121
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2122
|
-
*
|
|
2123
|
-
* @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
|
|
2124
|
-
*/
|
|
2125
|
-
method?: HTTPMethod;
|
|
2126
|
-
/**
|
|
2127
|
-
* The HTTP path of the procedure.
|
|
2128
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2129
|
-
*
|
|
2130
|
-
* @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
|
|
2131
|
-
*/
|
|
2132
|
-
path?: HTTPPath;
|
|
2133
|
-
/**
|
|
2134
|
-
* The operation ID of the endpoint.
|
|
2135
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2136
|
-
*
|
|
2137
|
-
* @default Concatenation of router segments
|
|
2138
|
-
*/
|
|
2139
|
-
operationId?: string;
|
|
2140
|
-
/**
|
|
2141
|
-
* The summary of the procedure.
|
|
2142
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2143
|
-
*
|
|
2144
|
-
* @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
|
|
2145
|
-
*/
|
|
2146
|
-
summary?: string;
|
|
2147
|
-
/**
|
|
2148
|
-
* The description of the procedure.
|
|
2149
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2150
|
-
*
|
|
2151
|
-
* @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
|
|
2152
|
-
*/
|
|
2153
|
-
description?: string;
|
|
2154
|
-
/**
|
|
2155
|
-
* Marks the procedure as deprecated.
|
|
2156
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2157
|
-
*
|
|
2158
|
-
* @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
|
|
2159
|
-
*/
|
|
2160
|
-
deprecated?: boolean;
|
|
2161
|
-
/**
|
|
2162
|
-
* The tags of the procedure.
|
|
2163
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2164
|
-
*
|
|
2165
|
-
* @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
|
|
2166
|
-
*/
|
|
2167
|
-
tags?: readonly string[];
|
|
2168
|
-
/**
|
|
2169
|
-
* The status code of the response when the procedure is successful.
|
|
2170
|
-
* The status code must be in the 200-399 range.
|
|
2171
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2172
|
-
*
|
|
2173
|
-
* @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
|
|
2174
|
-
* @default 200
|
|
2175
|
-
*/
|
|
2176
|
-
successStatus?: number;
|
|
2177
|
-
/**
|
|
2178
|
-
* The description of the response when the procedure is successful.
|
|
2179
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2180
|
-
*
|
|
2181
|
-
* @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata OpenAPI Operation Metadata Docs}
|
|
2182
|
-
* @default 'OK'
|
|
2183
|
-
*/
|
|
2184
|
-
successDescription?: string;
|
|
2185
|
-
/**
|
|
2186
|
-
* Determines how the input should be structured based on `params`, `query`, `headers`, and `body`.
|
|
2187
|
-
*
|
|
2188
|
-
* @option 'compact'
|
|
2189
|
-
* Combines `params` and either `query` or `body` (depending on the HTTP method) into a single object.
|
|
2190
|
-
*
|
|
2191
|
-
* @option 'detailed'
|
|
2192
|
-
* Keeps each part of the request (`params`, `query`, `headers`, and `body`) as separate fields in the input object.
|
|
2193
|
-
*
|
|
2194
|
-
* Example:
|
|
2195
|
-
* ```ts
|
|
2196
|
-
* const input = {
|
|
2197
|
-
* params: { id: 1 },
|
|
2198
|
-
* query: { search: 'hello' },
|
|
2199
|
-
* headers: { 'Content-Type': 'application/json' },
|
|
2200
|
-
* body: { name: 'John' },
|
|
2201
|
-
* }
|
|
2202
|
-
* ```
|
|
2203
|
-
*
|
|
2204
|
-
* @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
|
|
2205
|
-
* @default 'compact'
|
|
2206
|
-
*/
|
|
2207
|
-
inputStructure?: InputStructure;
|
|
2208
|
-
/**
|
|
2209
|
-
* Determines how the response should be structured based on the output.
|
|
2210
|
-
*
|
|
2211
|
-
* @option 'compact'
|
|
2212
|
-
* The output data is directly returned as the response body.
|
|
2213
|
-
*
|
|
2214
|
-
* @option 'detailed'
|
|
2215
|
-
* Return an object with optional properties:
|
|
2216
|
-
* - `status`: The response status (must be in 200-399 range) if not set fallback to `successStatus`.
|
|
2217
|
-
* - `headers`: Custom headers to merge with the response headers (`Record<string, string | string[] | undefined>`)
|
|
2218
|
-
* - `body`: The response body.
|
|
2219
|
-
*
|
|
2220
|
-
* Example:
|
|
2221
|
-
* ```ts
|
|
2222
|
-
* const output = {
|
|
2223
|
-
* status: 201,
|
|
2224
|
-
* headers: { 'x-custom-header': 'value' },
|
|
2225
|
-
* body: { message: 'Hello, world!' },
|
|
2226
|
-
* };
|
|
2227
|
-
* ```
|
|
2228
|
-
*
|
|
2229
|
-
* @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
|
|
2230
|
-
* @default 'compact'
|
|
2231
|
-
*/
|
|
2232
|
-
outputStructure?: OutputStructure;
|
|
2233
|
-
/**
|
|
2234
|
-
* Override entire auto-generated OpenAPI Operation Object Specification.
|
|
2235
|
-
*
|
|
2236
|
-
* @see {@link https://orpc.dev/docs/openapi/openapi-specification#operation-metadata Operation Metadata Docs}
|
|
2237
|
-
*/
|
|
2238
|
-
spec?: OpenAPIV3_1.OperationObject | ((current: OpenAPIV3_1.OperationObject) => OpenAPIV3_1.OperationObject);
|
|
2239
|
-
}
|
|
2240
|
-
interface ContractProcedureDef<TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> {
|
|
2241
|
-
meta: TMeta;
|
|
2242
|
-
route: Route;
|
|
2243
|
-
inputSchema?: TInputSchema;
|
|
2244
|
-
outputSchema?: TOutputSchema;
|
|
2245
|
-
errorMap: TErrorMap;
|
|
2246
|
-
}
|
|
2247
|
-
/**
|
|
2248
|
-
* This class represents a contract procedure.
|
|
2249
|
-
*
|
|
2250
|
-
* @see {@link https://orpc.dev/docs/contract-first/define-contract#procedure-contract Contract Procedure Docs}
|
|
2251
|
-
*/
|
|
2252
|
-
declare class ContractProcedure<TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> {
|
|
2253
|
-
/**
|
|
2254
|
-
* This property holds the defined options for the contract procedure.
|
|
2255
|
-
*/
|
|
2256
|
-
'~orpc': ContractProcedureDef<TInputSchema, TOutputSchema, TErrorMap, TMeta>;
|
|
2257
|
-
constructor(def: ContractProcedureDef<TInputSchema, TOutputSchema, TErrorMap, TMeta>);
|
|
2258
|
-
}
|
|
2259
|
-
/**
|
|
2260
|
-
* Represents a contract router, which defines a hierarchical structure of contract procedures.
|
|
2261
|
-
*
|
|
2262
|
-
* @info A contract procedure is a contract router too.
|
|
2263
|
-
* @see {@link https://orpc.dev/docs/contract-first/define-contract#contract-router Contract Router Docs}
|
|
2264
|
-
*/
|
|
2265
|
-
type ContractRouter<TMeta extends Meta> = ContractProcedure<any, any, any, TMeta> | {
|
|
2266
|
-
[k: string]: ContractRouter<TMeta>;
|
|
2267
|
-
};
|
|
2268
|
-
type AnyContractRouter = ContractRouter<any>;
|
|
2269
|
-
/**
|
|
2270
|
-
* Infer all inputs of the contract router.
|
|
2271
|
-
*
|
|
2272
|
-
* @info A contract procedure is a contract router too.
|
|
2273
|
-
* @see {@link https://orpc.dev/docs/contract-first/define-contract#utilities Contract Utilities Docs}
|
|
2274
|
-
*/
|
|
2275
|
-
//#endregion
|
|
2276
|
-
//#region ../../node_modules/.pnpm/@orpc+contract@1.12.2_@opentelemetry+api@1.9.0/node_modules/@orpc/contract/dist/index.d.mts
|
|
2277
|
-
interface ContractProcedureBuilderWithInputOutput<TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap, TMeta extends Meta> extends ContractProcedure<TInputSchema, TOutputSchema, TErrorMap, TMeta> {
|
|
2278
|
-
/**
|
|
2279
|
-
* Adds type-safe custom errors to the contract.
|
|
2280
|
-
* The provided errors are spared-merged with any existing errors in the contract.
|
|
2281
|
-
*
|
|
2282
|
-
* @see {@link https://orpc.dev/docs/error-handling#type%E2%80%90safe-error-handling Type-Safe Error Handling Docs}
|
|
2283
|
-
*/
|
|
2284
|
-
errors<U$1 extends ErrorMap>(errors: U$1): ContractProcedureBuilderWithInputOutput<TInputSchema, TOutputSchema, MergedErrorMap<TErrorMap, U$1>, TMeta>;
|
|
2285
|
-
/**
|
|
2286
|
-
* Sets or updates the metadata for the contract.
|
|
2287
|
-
* The provided metadata is spared-merged with any existing metadata in the contract.
|
|
2288
|
-
*
|
|
2289
|
-
* @see {@link https://orpc.dev/docs/metadata Metadata Docs}
|
|
2290
|
-
*/
|
|
2291
|
-
meta(meta: TMeta): ContractProcedureBuilderWithInputOutput<TInputSchema, TOutputSchema, TErrorMap, TMeta>;
|
|
2292
|
-
/**
|
|
2293
|
-
* Sets or updates the route definition for the contract.
|
|
2294
|
-
* The provided route is spared-merged with any existing route in the contract.
|
|
2295
|
-
* This option is typically relevant when integrating with OpenAPI.
|
|
2296
|
-
*
|
|
2297
|
-
* @see {@link https://orpc.dev/docs/openapi/routing OpenAPI Routing Docs}
|
|
2298
|
-
* @see {@link https://orpc.dev/docs/openapi/input-output-structure OpenAPI Input/Output Structure Docs}
|
|
2299
|
-
*/
|
|
2300
|
-
route(route: Route): ContractProcedureBuilderWithInputOutput<TInputSchema, TOutputSchema, TErrorMap, TMeta>;
|
|
2301
|
-
}
|
|
2302
|
-
type ContractProcedureClient<TClientContext extends ClientContext, TInputSchema extends AnySchema, TOutputSchema extends AnySchema, TErrorMap extends ErrorMap> = Client<TClientContext, InferSchemaInput<TInputSchema>, InferSchemaOutput<TOutputSchema>, ErrorFromErrorMap<TErrorMap>>;
|
|
2303
|
-
type ContractRouterClient<TRouter extends AnyContractRouter, TClientContext extends ClientContext = Record<never, never>> = TRouter extends ContractProcedure<infer UInputSchema, infer UOutputSchema, infer UErrorMap, any> ? ContractProcedureClient<TClientContext, UInputSchema, UOutputSchema, UErrorMap> : { [K in keyof TRouter]: TRouter[K] extends AnyContractRouter ? ContractRouterClient<TRouter[K], TClientContext> : never };
|
|
1
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
2
|
+
import * as z$1 from "zod";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import * as _orpc_contract0 from "@orpc/contract";
|
|
5
|
+
import { ContractRouterClient } from "@orpc/contract";
|
|
6
|
+
|
|
7
|
+
//#region src/schemas/column.d.ts
|
|
8
|
+
declare const ColumnAddInputSchema: z.ZodObject<{
|
|
9
|
+
tableId: z.ZodUUID;
|
|
10
|
+
data: z.ZodObject<{
|
|
11
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"string">;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"number">;
|
|
17
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
19
|
+
number: "number";
|
|
20
|
+
currency: "currency";
|
|
21
|
+
percent: "percent";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"boolean">;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"date">;
|
|
27
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"select">;
|
|
30
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
value: z.ZodString;
|
|
33
|
+
color: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
}, z.core.$strip>], "type">;
|
|
36
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strict>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const ColumnAddOutputSchema: z.ZodObject<{
|
|
40
|
+
txid: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
declare const ColumnUpdateInputSchema: z.ZodObject<{
|
|
43
|
+
columnId: z.ZodUUID;
|
|
44
|
+
data: z.ZodObject<{
|
|
45
|
+
name: z.ZodOptional<z.ZodString>;
|
|
46
|
+
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<"string">;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<"number">;
|
|
50
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
number: "number";
|
|
53
|
+
currency: "currency";
|
|
54
|
+
percent: "percent";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"boolean">;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"date">;
|
|
60
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"select">;
|
|
63
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
color: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
}, z.core.$strip>], "type">>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const ColumnUpdateOutputSchema: z.ZodObject<{
|
|
72
|
+
txid: z.ZodNumber;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
declare const ColumnDeleteInputSchema: z.ZodObject<{
|
|
75
|
+
columnId: z.ZodUUID;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
declare const ColumnDeleteOutputSchema: z.ZodObject<{
|
|
78
|
+
txid: z.ZodNumber;
|
|
79
|
+
}, z.core.$strip>;
|
|
2304
80
|
//#endregion
|
|
2305
81
|
//#region src/schemas/custom-table.d.ts
|
|
2306
|
-
declare const CustomTableListInputSchema: ZodObject<{},
|
|
2307
|
-
declare const CustomTableListItemSchema: ZodObject<{
|
|
2308
|
-
id: ZodString;
|
|
2309
|
-
name: ZodString;
|
|
2310
|
-
},
|
|
2311
|
-
declare const CustomTableListOutputSchema: ZodArray<ZodObject<{
|
|
2312
|
-
id: ZodString;
|
|
2313
|
-
name: ZodString;
|
|
2314
|
-
},
|
|
2315
|
-
declare const CustomTableCreateInputSchema: ZodObject<{
|
|
2316
|
-
id: ZodOptional<ZodUUID>;
|
|
2317
|
-
name: ZodString;
|
|
2318
|
-
},
|
|
2319
|
-
declare const CustomTableCreateOutputSchema: ZodObject<{
|
|
2320
|
-
txid: ZodNumber;
|
|
2321
|
-
},
|
|
2322
|
-
declare const CustomTableUpdateInputSchema: ZodObject<{
|
|
2323
|
-
id: ZodUUID;
|
|
2324
|
-
name: ZodOptional<ZodString>;
|
|
2325
|
-
},
|
|
2326
|
-
declare const CustomTableUpdateOutputSchema: ZodObject<{
|
|
2327
|
-
txid: ZodNumber;
|
|
2328
|
-
},
|
|
2329
|
-
declare const CustomTableDeleteInputSchema: ZodObject<{
|
|
2330
|
-
id: ZodUUID;
|
|
2331
|
-
},
|
|
2332
|
-
declare const CustomTableDeleteOutputSchema: ZodObject<{
|
|
2333
|
-
txid: ZodNumber;
|
|
2334
|
-
},
|
|
82
|
+
declare const CustomTableListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
83
|
+
declare const CustomTableListItemSchema: z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
declare const CustomTableListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
declare const CustomTableCreateInputSchema: z.ZodObject<{
|
|
92
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
93
|
+
name: z.ZodString;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
declare const CustomTableCreateOutputSchema: z.ZodObject<{
|
|
96
|
+
txid: z.ZodNumber;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
declare const CustomTableUpdateInputSchema: z.ZodObject<{
|
|
99
|
+
id: z.ZodUUID;
|
|
100
|
+
name: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
declare const CustomTableUpdateOutputSchema: z.ZodObject<{
|
|
103
|
+
txid: z.ZodNumber;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
declare const CustomTableDeleteInputSchema: z.ZodObject<{
|
|
106
|
+
id: z.ZodUUID;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
declare const CustomTableDeleteOutputSchema: z.ZodObject<{
|
|
109
|
+
txid: z.ZodNumber;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
declare const CustomTableGetInputSchema: z.ZodObject<{
|
|
112
|
+
id: z.ZodUUID;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
declare const TableColumnSchema: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
tableId: z.ZodString;
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<"string">;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
type: z.ZodLiteral<"number">;
|
|
122
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
123
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
124
|
+
number: "number";
|
|
125
|
+
currency: "currency";
|
|
126
|
+
percent: "percent";
|
|
127
|
+
}>>;
|
|
128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
+
type: z.ZodLiteral<"boolean">;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"date">;
|
|
132
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
type: z.ZodLiteral<"select">;
|
|
135
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
value: z.ZodString;
|
|
138
|
+
color: z.ZodString;
|
|
139
|
+
}, z.core.$strip>>>;
|
|
140
|
+
}, z.core.$strip>], "type">;
|
|
141
|
+
position: z.ZodNumber;
|
|
142
|
+
isPrimary: z.ZodBoolean;
|
|
143
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
144
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
declare const TableRowSchema: z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
tableId: z.ZodString;
|
|
149
|
+
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
150
|
+
position: z.ZodNullable<z.ZodNumber>;
|
|
151
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
152
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
declare const TableViewSchema: z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
tableId: z.ZodString;
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
type: z.ZodEnum<{
|
|
159
|
+
table: "table";
|
|
160
|
+
kanban: "kanban";
|
|
161
|
+
gallery: "gallery";
|
|
162
|
+
}>;
|
|
163
|
+
config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
164
|
+
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
165
|
+
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
166
|
+
position: z.ZodNumber;
|
|
167
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
168
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
userId: z.ZodString;
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
175
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
176
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
tableId: z.ZodString;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
+
type: z.ZodLiteral<"string">;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
type: z.ZodLiteral<"number">;
|
|
184
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
185
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
186
|
+
number: "number";
|
|
187
|
+
currency: "currency";
|
|
188
|
+
percent: "percent";
|
|
189
|
+
}>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
type: z.ZodLiteral<"boolean">;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
type: z.ZodLiteral<"date">;
|
|
194
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
196
|
+
type: z.ZodLiteral<"select">;
|
|
197
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
198
|
+
id: z.ZodString;
|
|
199
|
+
value: z.ZodString;
|
|
200
|
+
color: z.ZodString;
|
|
201
|
+
}, z.core.$strip>>>;
|
|
202
|
+
}, z.core.$strip>], "type">;
|
|
203
|
+
position: z.ZodNumber;
|
|
204
|
+
isPrimary: z.ZodBoolean;
|
|
205
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
206
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
tableId: z.ZodString;
|
|
211
|
+
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
212
|
+
position: z.ZodNullable<z.ZodNumber>;
|
|
213
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
214
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
215
|
+
}, z.core.$strip>>;
|
|
216
|
+
views: z.ZodArray<z.ZodObject<{
|
|
217
|
+
id: z.ZodString;
|
|
218
|
+
tableId: z.ZodString;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
type: z.ZodEnum<{
|
|
221
|
+
table: "table";
|
|
222
|
+
kanban: "kanban";
|
|
223
|
+
gallery: "gallery";
|
|
224
|
+
}>;
|
|
225
|
+
config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
226
|
+
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
227
|
+
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
228
|
+
position: z.ZodNumber;
|
|
229
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
230
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
}, z.core.$strip>;
|
|
2335
233
|
//#endregion
|
|
2336
234
|
//#region src/schemas/echo.d.ts
|
|
2337
|
-
declare const EchoInputSchema: ZodObject<{
|
|
2338
|
-
message: ZodString;
|
|
2339
|
-
}, $strip>;
|
|
2340
|
-
declare const EchoOutputSchema: ZodObject<{
|
|
2341
|
-
echoedMessage: ZodString;
|
|
2342
|
-
}, $strip>;
|
|
2343
|
-
declare const EchoTwiceOutputSchema: ZodObject<{
|
|
2344
|
-
echoedTwiceMessage: ZodString;
|
|
2345
|
-
}, $strip>;
|
|
235
|
+
declare const EchoInputSchema: z$1.ZodObject<{
|
|
236
|
+
message: z$1.ZodString;
|
|
237
|
+
}, z$1.core.$strip>;
|
|
238
|
+
declare const EchoOutputSchema: z$1.ZodObject<{
|
|
239
|
+
echoedMessage: z$1.ZodString;
|
|
240
|
+
}, z$1.core.$strip>;
|
|
241
|
+
declare const EchoTwiceOutputSchema: z$1.ZodObject<{
|
|
242
|
+
echoedTwiceMessage: z$1.ZodString;
|
|
243
|
+
}, z$1.core.$strip>;
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/schemas/row.d.ts
|
|
246
|
+
declare const RowAddInputSchema: z.ZodObject<{
|
|
247
|
+
tableId: z.ZodUUID;
|
|
248
|
+
data: z.ZodObject<{
|
|
249
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
250
|
+
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
251
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
}, z.core.$strict>;
|
|
253
|
+
}, z.core.$strip>;
|
|
254
|
+
declare const RowAddOutputSchema: z.ZodObject<{
|
|
255
|
+
txid: z.ZodNumber;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
declare const RowUpdateInputSchema: z.ZodObject<{
|
|
258
|
+
rowId: z.ZodUUID;
|
|
259
|
+
data: z.ZodObject<{
|
|
260
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
261
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
}, z.core.$strict>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
declare const RowUpdateOutputSchema: z.ZodObject<{
|
|
265
|
+
id: z.ZodUUID;
|
|
266
|
+
tableId: z.ZodUUID;
|
|
267
|
+
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
268
|
+
position: z.ZodNullable<z.ZodNumber>;
|
|
269
|
+
createdAt: z.ZodDate;
|
|
270
|
+
updatedAt: z.ZodDate;
|
|
271
|
+
txid: z.ZodNumber;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
declare const RowDeleteInputSchema: z.ZodObject<{
|
|
274
|
+
rowId: z.ZodUUID;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
declare const RowDeleteOutputSchema: z.ZodObject<{
|
|
277
|
+
txid: z.ZodNumber;
|
|
278
|
+
}, z.core.$strip>;
|
|
2346
279
|
//#endregion
|
|
2347
280
|
//#region src/index.d.ts
|
|
2348
281
|
declare const contract: {
|
|
2349
282
|
customTable: {
|
|
2350
|
-
list: ContractProcedureBuilderWithInputOutput<ZodObject<{},
|
|
2351
|
-
id: ZodString;
|
|
2352
|
-
name: ZodString;
|
|
2353
|
-
},
|
|
2354
|
-
|
|
2355
|
-
id:
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
283
|
+
list: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{}, zod_v4_core0.$strip>, z$1.ZodArray<z$1.ZodObject<{
|
|
284
|
+
id: z$1.ZodString;
|
|
285
|
+
name: z$1.ZodString;
|
|
286
|
+
}, zod_v4_core0.$strip>>, Record<never, never>, Record<never, never>>;
|
|
287
|
+
get: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
288
|
+
id: z$1.ZodUUID;
|
|
289
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
290
|
+
id: z$1.ZodString;
|
|
291
|
+
userId: z$1.ZodString;
|
|
292
|
+
name: z$1.ZodString;
|
|
293
|
+
createdAt: z$1.ZodCoercedDate<unknown>;
|
|
294
|
+
updatedAt: z$1.ZodCoercedDate<unknown>;
|
|
295
|
+
columns: z$1.ZodArray<z$1.ZodObject<{
|
|
296
|
+
id: z$1.ZodString;
|
|
297
|
+
tableId: z$1.ZodString;
|
|
298
|
+
name: z$1.ZodString;
|
|
299
|
+
config: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
300
|
+
type: z$1.ZodLiteral<"string">;
|
|
301
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
302
|
+
type: z$1.ZodLiteral<"number">;
|
|
303
|
+
decimal: z$1.ZodDefault<z$1.ZodNumber>;
|
|
304
|
+
format: z$1.ZodDefault<z$1.ZodEnum<{
|
|
305
|
+
number: "number";
|
|
306
|
+
currency: "currency";
|
|
307
|
+
percent: "percent";
|
|
308
|
+
}>>;
|
|
309
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
310
|
+
type: z$1.ZodLiteral<"boolean">;
|
|
311
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
312
|
+
type: z$1.ZodLiteral<"date">;
|
|
313
|
+
dateFormat: z$1.ZodOptional<z$1.ZodString>;
|
|
314
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
315
|
+
type: z$1.ZodLiteral<"select">;
|
|
316
|
+
options: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
317
|
+
id: z$1.ZodString;
|
|
318
|
+
value: z$1.ZodString;
|
|
319
|
+
color: z$1.ZodString;
|
|
320
|
+
}, zod_v4_core0.$strip>>>;
|
|
321
|
+
}, zod_v4_core0.$strip>], "type">;
|
|
322
|
+
position: z$1.ZodNumber;
|
|
323
|
+
isPrimary: z$1.ZodBoolean;
|
|
324
|
+
createdAt: z$1.ZodCoercedDate<unknown>;
|
|
325
|
+
updatedAt: z$1.ZodCoercedDate<unknown>;
|
|
326
|
+
}, zod_v4_core0.$strip>>;
|
|
327
|
+
rows: z$1.ZodArray<z$1.ZodObject<{
|
|
328
|
+
id: z$1.ZodString;
|
|
329
|
+
tableId: z$1.ZodString;
|
|
330
|
+
cells: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
331
|
+
position: z$1.ZodNullable<z$1.ZodNumber>;
|
|
332
|
+
createdAt: z$1.ZodCoercedDate<unknown>;
|
|
333
|
+
updatedAt: z$1.ZodCoercedDate<unknown>;
|
|
334
|
+
}, zod_v4_core0.$strip>>;
|
|
335
|
+
views: z$1.ZodArray<z$1.ZodObject<{
|
|
336
|
+
id: z$1.ZodString;
|
|
337
|
+
tableId: z$1.ZodString;
|
|
338
|
+
name: z$1.ZodString;
|
|
339
|
+
type: z$1.ZodEnum<{
|
|
340
|
+
table: "table";
|
|
341
|
+
kanban: "kanban";
|
|
342
|
+
gallery: "gallery";
|
|
343
|
+
}>;
|
|
344
|
+
config: z$1.ZodNullable<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
345
|
+
filters: z$1.ZodNullable<z$1.ZodArray<z$1.ZodUnknown>>;
|
|
346
|
+
sorts: z$1.ZodNullable<z$1.ZodArray<z$1.ZodUnknown>>;
|
|
347
|
+
position: z$1.ZodNumber;
|
|
348
|
+
createdAt: z$1.ZodCoercedDate<unknown>;
|
|
349
|
+
updatedAt: z$1.ZodCoercedDate<unknown>;
|
|
350
|
+
}, zod_v4_core0.$strip>>;
|
|
351
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
352
|
+
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
353
|
+
id: z$1.ZodOptional<z$1.ZodUUID>;
|
|
354
|
+
name: z$1.ZodString;
|
|
355
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
356
|
+
txid: z$1.ZodNumber;
|
|
357
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
358
|
+
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
359
|
+
id: z$1.ZodUUID;
|
|
360
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
361
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
362
|
+
txid: z$1.ZodNumber;
|
|
363
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
364
|
+
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
365
|
+
id: z$1.ZodUUID;
|
|
366
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
367
|
+
txid: z$1.ZodNumber;
|
|
368
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
369
|
+
};
|
|
370
|
+
column: {
|
|
371
|
+
add: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
372
|
+
tableId: z$1.ZodUUID;
|
|
373
|
+
data: z$1.ZodObject<{
|
|
374
|
+
id: z$1.ZodOptional<z$1.ZodUUID>;
|
|
375
|
+
name: z$1.ZodString;
|
|
376
|
+
config: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
377
|
+
type: z$1.ZodLiteral<"string">;
|
|
378
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
379
|
+
type: z$1.ZodLiteral<"number">;
|
|
380
|
+
decimal: z$1.ZodDefault<z$1.ZodNumber>;
|
|
381
|
+
format: z$1.ZodDefault<z$1.ZodEnum<{
|
|
382
|
+
number: "number";
|
|
383
|
+
currency: "currency";
|
|
384
|
+
percent: "percent";
|
|
385
|
+
}>>;
|
|
386
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
387
|
+
type: z$1.ZodLiteral<"boolean">;
|
|
388
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
389
|
+
type: z$1.ZodLiteral<"date">;
|
|
390
|
+
dateFormat: z$1.ZodOptional<z$1.ZodString>;
|
|
391
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
392
|
+
type: z$1.ZodLiteral<"select">;
|
|
393
|
+
options: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
394
|
+
id: z$1.ZodString;
|
|
395
|
+
value: z$1.ZodString;
|
|
396
|
+
color: z$1.ZodString;
|
|
397
|
+
}, zod_v4_core0.$strip>>>;
|
|
398
|
+
}, zod_v4_core0.$strip>], "type">;
|
|
399
|
+
position: z$1.ZodOptional<z$1.ZodNumber>;
|
|
400
|
+
}, zod_v4_core0.$strict>;
|
|
401
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
402
|
+
txid: z$1.ZodNumber;
|
|
403
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
404
|
+
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
405
|
+
columnId: z$1.ZodUUID;
|
|
406
|
+
data: z$1.ZodObject<{
|
|
407
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
408
|
+
config: z$1.ZodOptional<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
409
|
+
type: z$1.ZodLiteral<"string">;
|
|
410
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
411
|
+
type: z$1.ZodLiteral<"number">;
|
|
412
|
+
decimal: z$1.ZodDefault<z$1.ZodNumber>;
|
|
413
|
+
format: z$1.ZodDefault<z$1.ZodEnum<{
|
|
414
|
+
number: "number";
|
|
415
|
+
currency: "currency";
|
|
416
|
+
percent: "percent";
|
|
417
|
+
}>>;
|
|
418
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
419
|
+
type: z$1.ZodLiteral<"boolean">;
|
|
420
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
421
|
+
type: z$1.ZodLiteral<"date">;
|
|
422
|
+
dateFormat: z$1.ZodOptional<z$1.ZodString>;
|
|
423
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
424
|
+
type: z$1.ZodLiteral<"select">;
|
|
425
|
+
options: z$1.ZodDefault<z$1.ZodArray<z$1.ZodObject<{
|
|
426
|
+
id: z$1.ZodString;
|
|
427
|
+
value: z$1.ZodString;
|
|
428
|
+
color: z$1.ZodString;
|
|
429
|
+
}, zod_v4_core0.$strip>>>;
|
|
430
|
+
}, zod_v4_core0.$strip>], "type">>;
|
|
431
|
+
}, zod_v4_core0.$strict>;
|
|
432
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
433
|
+
txid: z$1.ZodNumber;
|
|
434
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
435
|
+
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
436
|
+
columnId: z$1.ZodUUID;
|
|
437
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
438
|
+
txid: z$1.ZodNumber;
|
|
439
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
440
|
+
};
|
|
441
|
+
row: {
|
|
442
|
+
add: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
443
|
+
tableId: z$1.ZodUUID;
|
|
444
|
+
data: z$1.ZodObject<{
|
|
445
|
+
id: z$1.ZodOptional<z$1.ZodUUID>;
|
|
446
|
+
cells: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
447
|
+
position: z$1.ZodOptional<z$1.ZodNumber>;
|
|
448
|
+
}, zod_v4_core0.$strict>;
|
|
449
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
450
|
+
txid: z$1.ZodNumber;
|
|
451
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
452
|
+
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
453
|
+
rowId: z$1.ZodUUID;
|
|
454
|
+
data: z$1.ZodObject<{
|
|
455
|
+
cells: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
456
|
+
position: z$1.ZodOptional<z$1.ZodNumber>;
|
|
457
|
+
}, zod_v4_core0.$strict>;
|
|
458
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
459
|
+
id: z$1.ZodUUID;
|
|
460
|
+
tableId: z$1.ZodUUID;
|
|
461
|
+
cells: z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>;
|
|
462
|
+
position: z$1.ZodNullable<z$1.ZodNumber>;
|
|
463
|
+
createdAt: z$1.ZodDate;
|
|
464
|
+
updatedAt: z$1.ZodDate;
|
|
465
|
+
txid: z$1.ZodNumber;
|
|
466
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
467
|
+
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
468
|
+
rowId: z$1.ZodUUID;
|
|
469
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
470
|
+
txid: z$1.ZodNumber;
|
|
471
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
2371
472
|
};
|
|
2372
473
|
echo: {
|
|
2373
|
-
once: ContractProcedureBuilderWithInputOutput<ZodObject<{
|
|
2374
|
-
message: ZodString;
|
|
2375
|
-
},
|
|
2376
|
-
echoedMessage: ZodString;
|
|
2377
|
-
},
|
|
2378
|
-
twice: ContractProcedureBuilderWithInputOutput<ZodObject<{
|
|
2379
|
-
message: ZodString;
|
|
2380
|
-
},
|
|
2381
|
-
echoedTwiceMessage: ZodString;
|
|
2382
|
-
},
|
|
474
|
+
once: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
475
|
+
message: z$1.ZodString;
|
|
476
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
477
|
+
echoedMessage: z$1.ZodString;
|
|
478
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
479
|
+
twice: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z$1.ZodObject<{
|
|
480
|
+
message: z$1.ZodString;
|
|
481
|
+
}, zod_v4_core0.$strip>, z$1.ZodObject<{
|
|
482
|
+
echoedTwiceMessage: z$1.ZodString;
|
|
483
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
2383
484
|
};
|
|
2384
485
|
};
|
|
2385
486
|
type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
2386
487
|
//#endregion
|
|
2387
|
-
export { CustomTableCreateInputSchema, CustomTableCreateOutputSchema, CustomTableDeleteInputSchema, CustomTableDeleteOutputSchema, CustomTableListInputSchema, CustomTableListItemSchema, CustomTableListOutputSchema, CustomTableUpdateInputSchema, CustomTableUpdateOutputSchema, EchoInputSchema, EchoOutputSchema, EchoTwiceOutputSchema, ORPCRouterClient, contract };
|
|
488
|
+
export { ColumnAddInputSchema, ColumnAddOutputSchema, ColumnDeleteInputSchema, ColumnDeleteOutputSchema, ColumnUpdateInputSchema, ColumnUpdateOutputSchema, CustomTableCreateInputSchema, CustomTableCreateOutputSchema, CustomTableDeleteInputSchema, CustomTableDeleteOutputSchema, CustomTableGetInputSchema, CustomTableGetOutputSchema, CustomTableListInputSchema, CustomTableListItemSchema, CustomTableListOutputSchema, CustomTableUpdateInputSchema, CustomTableUpdateOutputSchema, EchoInputSchema, EchoOutputSchema, EchoTwiceOutputSchema, ORPCRouterClient, RowAddInputSchema, RowAddOutputSchema, RowDeleteInputSchema, RowDeleteOutputSchema, RowUpdateInputSchema, RowUpdateOutputSchema, TableColumnSchema, TableRowSchema, TableViewSchema, contract };
|