likec4 1.46.4 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__app__/src/ProjectsOverview.js +16 -0
- package/__app__/src/likec4.js +1301 -502
- package/__app__/src/main.js +249 -219
- package/__app__/src/style.css +1 -1
- package/__app__/src/vendors.js +2690 -2349
- package/__app__/src/webcomponent.js +1 -1
- package/config/schema.json +3 -1
- package/dist/cli/index.mjs +339 -339
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +13 -4
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +1 -0
- package/dist/shared/likec4.CDVXAxDx.mjs +3573 -0
- package/dist/shared/likec4.CRP-WAuw.mjs +330 -0
- package/dist/shared/likec4.CXTvqtC-.mjs +207 -0
- package/dist/shared/{likec4.6kvTI22o.d.mts → likec4.DqDU0qex.d.mts} +648 -57
- package/dist/shared/{likec4.DobqFzmV.d.mts → likec4.iedqayBZ.d.mts} +6958 -11665
- package/dist/vite-plugin/index.d.mts +3 -3
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +17 -20
- package/react/index.d.ts +41 -5
- package/react/index.js +1441 -497
- package/vite-plugin-modules.d.ts +8 -0
- package/dist/shared/likec4.BJupup6Q.mjs +0 -4211
- package/dist/shared/likec4.DASl7M77.mjs +0 -183
- package/dist/shared/likec4.DwZEQeLv.mjs +0 -272
|
@@ -146,32 +146,124 @@ interface UriComponents {
|
|
|
146
146
|
fragment: string;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
type _JSONSchema = boolean | JSONSchema;
|
|
150
|
+
type JSONSchema = {
|
|
151
|
+
[k: string]: unknown;
|
|
152
|
+
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
153
|
+
$id?: string;
|
|
154
|
+
$anchor?: string;
|
|
155
|
+
$ref?: string;
|
|
156
|
+
$dynamicRef?: string;
|
|
157
|
+
$dynamicAnchor?: string;
|
|
158
|
+
$vocabulary?: Record<string, boolean>;
|
|
159
|
+
$comment?: string;
|
|
160
|
+
$defs?: Record<string, JSONSchema>;
|
|
161
|
+
type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
|
|
162
|
+
additionalItems?: _JSONSchema;
|
|
163
|
+
unevaluatedItems?: _JSONSchema;
|
|
164
|
+
prefixItems?: _JSONSchema[];
|
|
165
|
+
items?: _JSONSchema | _JSONSchema[];
|
|
166
|
+
contains?: _JSONSchema;
|
|
167
|
+
additionalProperties?: _JSONSchema;
|
|
168
|
+
unevaluatedProperties?: _JSONSchema;
|
|
169
|
+
properties?: Record<string, _JSONSchema>;
|
|
170
|
+
patternProperties?: Record<string, _JSONSchema>;
|
|
171
|
+
dependentSchemas?: Record<string, _JSONSchema>;
|
|
172
|
+
propertyNames?: _JSONSchema;
|
|
173
|
+
if?: _JSONSchema;
|
|
174
|
+
then?: _JSONSchema;
|
|
175
|
+
else?: _JSONSchema;
|
|
176
|
+
allOf?: JSONSchema[];
|
|
177
|
+
anyOf?: JSONSchema[];
|
|
178
|
+
oneOf?: JSONSchema[];
|
|
179
|
+
not?: _JSONSchema;
|
|
180
|
+
multipleOf?: number;
|
|
181
|
+
maximum?: number;
|
|
182
|
+
exclusiveMaximum?: number | boolean;
|
|
183
|
+
minimum?: number;
|
|
184
|
+
exclusiveMinimum?: number | boolean;
|
|
185
|
+
maxLength?: number;
|
|
186
|
+
minLength?: number;
|
|
187
|
+
pattern?: string;
|
|
188
|
+
maxItems?: number;
|
|
189
|
+
minItems?: number;
|
|
190
|
+
uniqueItems?: boolean;
|
|
191
|
+
maxContains?: number;
|
|
192
|
+
minContains?: number;
|
|
193
|
+
maxProperties?: number;
|
|
194
|
+
minProperties?: number;
|
|
195
|
+
required?: string[];
|
|
196
|
+
dependentRequired?: Record<string, string[]>;
|
|
197
|
+
enum?: Array<string | number | boolean | null>;
|
|
198
|
+
const?: string | number | boolean | null;
|
|
199
|
+
id?: string;
|
|
200
|
+
title?: string;
|
|
201
|
+
description?: string;
|
|
202
|
+
default?: unknown;
|
|
203
|
+
deprecated?: boolean;
|
|
204
|
+
readOnly?: boolean;
|
|
205
|
+
writeOnly?: boolean;
|
|
206
|
+
nullable?: boolean;
|
|
207
|
+
examples?: unknown[];
|
|
208
|
+
format?: string;
|
|
209
|
+
contentMediaType?: string;
|
|
210
|
+
contentEncoding?: string;
|
|
211
|
+
contentSchema?: JSONSchema;
|
|
212
|
+
_prefault?: unknown;
|
|
213
|
+
};
|
|
214
|
+
type BaseSchema = JSONSchema;
|
|
215
|
+
|
|
216
|
+
/** The Standard interface. */
|
|
217
|
+
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
218
|
+
/** The Standard properties. */
|
|
219
|
+
readonly "~standard": StandardTypedV1.Props<Input, Output>;
|
|
153
220
|
}
|
|
154
|
-
declare namespace
|
|
155
|
-
/** The Standard
|
|
221
|
+
declare namespace StandardTypedV1 {
|
|
222
|
+
/** The Standard properties interface. */
|
|
156
223
|
interface Props<Input = unknown, Output = Input> {
|
|
157
224
|
/** The version number of the standard. */
|
|
158
225
|
readonly version: 1;
|
|
159
226
|
/** The vendor name of the schema library. */
|
|
160
227
|
readonly vendor: string;
|
|
161
|
-
/** Validates unknown input values. */
|
|
162
|
-
readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
|
|
163
228
|
/** Inferred types associated with the schema. */
|
|
164
229
|
readonly types?: Types<Input, Output> | undefined;
|
|
165
230
|
}
|
|
231
|
+
/** The Standard types interface. */
|
|
232
|
+
interface Types<Input = unknown, Output = Input> {
|
|
233
|
+
/** The input type of the schema. */
|
|
234
|
+
readonly input: Input;
|
|
235
|
+
/** The output type of the schema. */
|
|
236
|
+
readonly output: Output;
|
|
237
|
+
}
|
|
238
|
+
/** Infers the input type of a Standard. */
|
|
239
|
+
type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
240
|
+
/** Infers the output type of a Standard. */
|
|
241
|
+
type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
242
|
+
}
|
|
243
|
+
/** The Standard Schema interface. */
|
|
244
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
245
|
+
/** The Standard Schema properties. */
|
|
246
|
+
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
247
|
+
}
|
|
248
|
+
declare namespace StandardSchemaV1 {
|
|
249
|
+
/** The Standard Schema properties interface. */
|
|
250
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
251
|
+
/** Validates unknown input values. */
|
|
252
|
+
readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
253
|
+
}
|
|
166
254
|
/** The result interface of the validate function. */
|
|
167
255
|
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
168
256
|
/** The result interface if validation succeeds. */
|
|
169
257
|
interface SuccessResult<Output> {
|
|
170
258
|
/** The typed output value. */
|
|
171
259
|
readonly value: Output;
|
|
172
|
-
/** The
|
|
260
|
+
/** The absence of issues indicates success. */
|
|
173
261
|
readonly issues?: undefined;
|
|
174
262
|
}
|
|
263
|
+
interface Options {
|
|
264
|
+
/** Implicit support for additional vendor-specific parameters, if needed. */
|
|
265
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
266
|
+
}
|
|
175
267
|
/** The result interface if validation fails. */
|
|
176
268
|
interface FailureResult {
|
|
177
269
|
/** The issues of failed validation. */
|
|
@@ -189,20 +281,179 @@ declare namespace StandardSchemaV1 {
|
|
|
189
281
|
/** The key representing a path segment. */
|
|
190
282
|
readonly key: PropertyKey;
|
|
191
283
|
}
|
|
192
|
-
/** The Standard
|
|
193
|
-
interface Types<Input = unknown, Output = Input> {
|
|
194
|
-
/** The input type of the schema. */
|
|
195
|
-
readonly input: Input;
|
|
196
|
-
/** The output type of the schema. */
|
|
197
|
-
readonly output: Output;
|
|
284
|
+
/** The Standard types interface. */
|
|
285
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
198
286
|
}
|
|
199
|
-
/** Infers the input type of a Standard
|
|
200
|
-
type InferInput<Schema extends
|
|
201
|
-
/** Infers the output type of a Standard
|
|
202
|
-
type InferOutput<Schema extends
|
|
287
|
+
/** Infers the input type of a Standard. */
|
|
288
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
289
|
+
/** Infers the output type of a Standard. */
|
|
290
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
291
|
+
}
|
|
292
|
+
/** The Standard JSON Schema interface. */
|
|
293
|
+
interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
|
|
294
|
+
/** The Standard JSON Schema properties. */
|
|
295
|
+
readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
|
|
296
|
+
}
|
|
297
|
+
declare namespace StandardJSONSchemaV1 {
|
|
298
|
+
/** The Standard JSON Schema properties interface. */
|
|
299
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
300
|
+
/** Methods for generating the input/output JSON Schema. */
|
|
301
|
+
readonly jsonSchema: Converter;
|
|
302
|
+
}
|
|
303
|
+
/** The Standard JSON Schema converter interface. */
|
|
304
|
+
interface Converter {
|
|
305
|
+
/** Converts the input type to JSON Schema. May throw if conversion is not supported. */
|
|
306
|
+
readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
307
|
+
/** Converts the output type to JSON Schema. May throw if conversion is not supported. */
|
|
308
|
+
readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
309
|
+
}
|
|
310
|
+
/** The target version of the generated JSON Schema.
|
|
311
|
+
*
|
|
312
|
+
* It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use.
|
|
313
|
+
*
|
|
314
|
+
* The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
|
|
315
|
+
*
|
|
316
|
+
* All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
|
|
317
|
+
*/
|
|
318
|
+
type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
|
|
319
|
+
/** The options for the input/output methods. */
|
|
320
|
+
interface Options {
|
|
321
|
+
/** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
|
|
322
|
+
readonly target: Target;
|
|
323
|
+
/** Implicit support for additional vendor-specific parameters, if needed. */
|
|
324
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
325
|
+
}
|
|
326
|
+
/** The Standard types interface. */
|
|
327
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
328
|
+
}
|
|
329
|
+
/** Infers the input type of a Standard. */
|
|
330
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
331
|
+
/** Infers the output type of a Standard. */
|
|
332
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
333
|
+
}
|
|
334
|
+
interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
declare const $output: unique symbol;
|
|
338
|
+
type $output = typeof $output;
|
|
339
|
+
declare const $input: unique symbol;
|
|
340
|
+
type $input = typeof $input;
|
|
341
|
+
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends (...args: infer P) => infer R ? (...args: {
|
|
342
|
+
[K in keyof P]: $replace<P[K], S>;
|
|
343
|
+
}) => $replace<R, S> : Meta extends object ? {
|
|
344
|
+
[K in keyof Meta]: $replace<Meta[K], S>;
|
|
345
|
+
} : Meta;
|
|
346
|
+
type MetadataType = object | undefined;
|
|
347
|
+
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
348
|
+
_meta: Meta;
|
|
349
|
+
_schema: Schema;
|
|
350
|
+
_map: WeakMap<Schema, $replace<Meta, Schema>>;
|
|
351
|
+
_idmap: Map<string, Schema>;
|
|
352
|
+
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
|
353
|
+
clear(): this;
|
|
354
|
+
remove(schema: Schema): this;
|
|
355
|
+
get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
|
|
356
|
+
has(schema: Schema): boolean;
|
|
357
|
+
}
|
|
358
|
+
interface JSONSchemaMeta {
|
|
359
|
+
id?: string | undefined;
|
|
360
|
+
title?: string | undefined;
|
|
361
|
+
description?: string | undefined;
|
|
362
|
+
deprecated?: boolean | undefined;
|
|
363
|
+
[k: string]: unknown;
|
|
364
|
+
}
|
|
365
|
+
interface GlobalMeta extends JSONSchemaMeta {
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
|
|
369
|
+
interface JSONSchemaGeneratorParams {
|
|
370
|
+
processors: Record<string, Processor>;
|
|
371
|
+
/** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
|
|
372
|
+
* @default globalRegistry */
|
|
373
|
+
metadata?: $ZodRegistry<Record<string, any>>;
|
|
374
|
+
/** The JSON Schema version to target.
|
|
375
|
+
* - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
|
|
376
|
+
* - `"draft-07"` — JSON Schema Draft 7
|
|
377
|
+
* - `"draft-04"` — JSON Schema Draft 4
|
|
378
|
+
* - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
|
|
379
|
+
target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
|
|
380
|
+
/** How to handle unrepresentable types.
|
|
381
|
+
* - `"throw"` — Default. Unrepresentable types throw an error
|
|
382
|
+
* - `"any"` — Unrepresentable types become `{}` */
|
|
383
|
+
unrepresentable?: "throw" | "any";
|
|
384
|
+
/** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
|
|
385
|
+
override?: (ctx: {
|
|
386
|
+
zodSchema: $ZodTypes;
|
|
387
|
+
jsonSchema: BaseSchema;
|
|
388
|
+
path: (string | number)[];
|
|
389
|
+
}) => void;
|
|
390
|
+
/** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
|
|
391
|
+
* - `"output"` — Default. Convert the output schema.
|
|
392
|
+
* - `"input"` — Convert the input schema. */
|
|
393
|
+
io?: "input" | "output";
|
|
394
|
+
cycles?: "ref" | "throw";
|
|
395
|
+
reused?: "ref" | "inline";
|
|
396
|
+
external?: {
|
|
397
|
+
registry: $ZodRegistry<{
|
|
398
|
+
id?: string | undefined;
|
|
399
|
+
}>;
|
|
400
|
+
uri?: ((id: string) => string) | undefined;
|
|
401
|
+
defs: Record<string, BaseSchema>;
|
|
402
|
+
} | undefined;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Parameters for the toJSONSchema function.
|
|
406
|
+
*/
|
|
407
|
+
type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
|
|
408
|
+
interface ProcessParams {
|
|
409
|
+
schemaPath: $ZodType[];
|
|
410
|
+
path: (string | number)[];
|
|
411
|
+
}
|
|
412
|
+
interface Seen {
|
|
413
|
+
/** JSON Schema result for this Zod schema */
|
|
414
|
+
schema: BaseSchema;
|
|
415
|
+
/** A cached version of the schema that doesn't get overwritten during ref resolution */
|
|
416
|
+
def?: BaseSchema;
|
|
417
|
+
defId?: string | undefined;
|
|
418
|
+
/** Number of times this schema was encountered during traversal */
|
|
419
|
+
count: number;
|
|
420
|
+
/** Cycle path */
|
|
421
|
+
cycle?: (string | number)[] | undefined;
|
|
422
|
+
isParent?: boolean | undefined;
|
|
423
|
+
ref?: $ZodType | undefined | null;
|
|
424
|
+
/** JSON Schema property path for this schema */
|
|
425
|
+
path?: (string | number)[] | undefined;
|
|
426
|
+
}
|
|
427
|
+
interface ToJSONSchemaContext {
|
|
428
|
+
processors: Record<string, Processor>;
|
|
429
|
+
metadataRegistry: $ZodRegistry<Record<string, any>>;
|
|
430
|
+
target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
|
|
431
|
+
unrepresentable: "throw" | "any";
|
|
432
|
+
override: (ctx: {
|
|
433
|
+
zodSchema: $ZodType;
|
|
434
|
+
jsonSchema: BaseSchema;
|
|
435
|
+
path: (string | number)[];
|
|
436
|
+
}) => void;
|
|
437
|
+
io: "input" | "output";
|
|
438
|
+
counter: number;
|
|
439
|
+
seen: Map<$ZodType, Seen>;
|
|
440
|
+
cycles: "ref" | "throw";
|
|
441
|
+
reused: "ref" | "inline";
|
|
442
|
+
external?: {
|
|
443
|
+
registry: $ZodRegistry<{
|
|
444
|
+
id?: string | undefined;
|
|
445
|
+
}>;
|
|
446
|
+
uri?: ((id: string) => string) | undefined;
|
|
447
|
+
defs: Record<string, BaseSchema>;
|
|
448
|
+
} | undefined;
|
|
449
|
+
}
|
|
450
|
+
type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
451
|
+
interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
|
|
452
|
+
"~standard": ZodStandardSchemaWithJSON$1<T>;
|
|
203
453
|
}
|
|
204
454
|
|
|
205
455
|
type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
|
|
456
|
+
type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
|
|
206
457
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
207
458
|
type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
208
459
|
type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
|
|
@@ -233,6 +484,7 @@ type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyo
|
|
|
233
484
|
} & {
|
|
234
485
|
[K in keyof B]: B[K];
|
|
235
486
|
}>;
|
|
487
|
+
type TupleItems = ReadonlyArray<SomeType>;
|
|
236
488
|
type AnyFunc = (...args: any[]) => any;
|
|
237
489
|
type MaybeAsync<T> = T | Promise<T>;
|
|
238
490
|
type EnumValue = string | number;
|
|
@@ -255,7 +507,7 @@ declare abstract class Class {
|
|
|
255
507
|
|
|
256
508
|
declare const version: {
|
|
257
509
|
readonly major: 4;
|
|
258
|
-
readonly minor:
|
|
510
|
+
readonly minor: 2;
|
|
259
511
|
readonly patch: number;
|
|
260
512
|
};
|
|
261
513
|
|
|
@@ -324,6 +576,8 @@ interface _$ZodTypeInternals {
|
|
|
324
576
|
bag: Record<string, unknown>;
|
|
325
577
|
/** @internal The set of issues this schema might throw during type checking. */
|
|
326
578
|
isst: $ZodIssueBase;
|
|
579
|
+
/** @internal Subject to change, not a public API. */
|
|
580
|
+
processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
|
|
327
581
|
/** An optional method used to override `toJSONSchema` logic. */
|
|
328
582
|
toJSONSchema?: () => unknown;
|
|
329
583
|
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
@@ -340,6 +594,8 @@ type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
|
|
|
340
594
|
type SomeType = {
|
|
341
595
|
_zod: _$ZodTypeInternals;
|
|
342
596
|
};
|
|
597
|
+
interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {
|
|
598
|
+
}
|
|
343
599
|
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
|
|
344
600
|
_zod: Internals;
|
|
345
601
|
"~standard": $ZodStandardSchema<this>;
|
|
@@ -365,6 +621,9 @@ interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
|
|
365
621
|
contentEncoding: string;
|
|
366
622
|
}>;
|
|
367
623
|
}
|
|
624
|
+
interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {
|
|
625
|
+
}
|
|
626
|
+
declare const $ZodString: $constructor<$ZodString>;
|
|
368
627
|
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {
|
|
369
628
|
}
|
|
370
629
|
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
@@ -571,12 +830,147 @@ interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number,
|
|
|
571
830
|
pattern: RegExp;
|
|
572
831
|
}>;
|
|
573
832
|
}
|
|
833
|
+
interface $ZodNumber<Input = unknown> extends $ZodType {
|
|
834
|
+
_zod: $ZodNumberInternals<Input>;
|
|
835
|
+
}
|
|
836
|
+
declare const $ZodNumber: $constructor<$ZodNumber>;
|
|
574
837
|
interface $ZodNumberFormatDef extends $ZodNumberDef, $ZodCheckNumberFormatDef {
|
|
575
838
|
}
|
|
576
839
|
interface $ZodNumberFormatInternals extends $ZodNumberInternals<number>, $ZodCheckNumberFormatInternals {
|
|
577
840
|
def: $ZodNumberFormatDef;
|
|
578
841
|
isst: $ZodIssueInvalidType;
|
|
579
842
|
}
|
|
843
|
+
interface $ZodBooleanDef extends $ZodTypeDef {
|
|
844
|
+
type: "boolean";
|
|
845
|
+
coerce?: boolean;
|
|
846
|
+
checks?: $ZodCheck<boolean>[];
|
|
847
|
+
}
|
|
848
|
+
interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
|
|
849
|
+
pattern: RegExp;
|
|
850
|
+
def: $ZodBooleanDef;
|
|
851
|
+
isst: $ZodIssueInvalidType;
|
|
852
|
+
}
|
|
853
|
+
interface $ZodBoolean<T = unknown> extends $ZodType {
|
|
854
|
+
_zod: $ZodBooleanInternals<T>;
|
|
855
|
+
}
|
|
856
|
+
declare const $ZodBoolean: $constructor<$ZodBoolean>;
|
|
857
|
+
interface $ZodBigIntDef extends $ZodTypeDef {
|
|
858
|
+
type: "bigint";
|
|
859
|
+
coerce?: boolean;
|
|
860
|
+
}
|
|
861
|
+
interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
|
|
862
|
+
pattern: RegExp;
|
|
863
|
+
/** @internal Internal API, use with caution */
|
|
864
|
+
def: $ZodBigIntDef;
|
|
865
|
+
isst: $ZodIssueInvalidType;
|
|
866
|
+
bag: LoosePartial<{
|
|
867
|
+
minimum: bigint;
|
|
868
|
+
maximum: bigint;
|
|
869
|
+
format: string;
|
|
870
|
+
}>;
|
|
871
|
+
}
|
|
872
|
+
interface $ZodBigInt<T = unknown> extends $ZodType {
|
|
873
|
+
_zod: $ZodBigIntInternals<T>;
|
|
874
|
+
}
|
|
875
|
+
declare const $ZodBigInt: $constructor<$ZodBigInt>;
|
|
876
|
+
interface $ZodSymbolDef extends $ZodTypeDef {
|
|
877
|
+
type: "symbol";
|
|
878
|
+
}
|
|
879
|
+
interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
|
|
880
|
+
def: $ZodSymbolDef;
|
|
881
|
+
isst: $ZodIssueInvalidType;
|
|
882
|
+
}
|
|
883
|
+
interface $ZodSymbol extends $ZodType {
|
|
884
|
+
_zod: $ZodSymbolInternals;
|
|
885
|
+
}
|
|
886
|
+
declare const $ZodSymbol: $constructor<$ZodSymbol>;
|
|
887
|
+
interface $ZodUndefinedDef extends $ZodTypeDef {
|
|
888
|
+
type: "undefined";
|
|
889
|
+
}
|
|
890
|
+
interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
|
|
891
|
+
pattern: RegExp;
|
|
892
|
+
def: $ZodUndefinedDef;
|
|
893
|
+
values: PrimitiveSet;
|
|
894
|
+
isst: $ZodIssueInvalidType;
|
|
895
|
+
}
|
|
896
|
+
interface $ZodUndefined extends $ZodType {
|
|
897
|
+
_zod: $ZodUndefinedInternals;
|
|
898
|
+
}
|
|
899
|
+
declare const $ZodUndefined: $constructor<$ZodUndefined>;
|
|
900
|
+
interface $ZodNullDef extends $ZodTypeDef {
|
|
901
|
+
type: "null";
|
|
902
|
+
}
|
|
903
|
+
interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
|
|
904
|
+
pattern: RegExp;
|
|
905
|
+
def: $ZodNullDef;
|
|
906
|
+
values: PrimitiveSet;
|
|
907
|
+
isst: $ZodIssueInvalidType;
|
|
908
|
+
}
|
|
909
|
+
interface $ZodNull extends $ZodType {
|
|
910
|
+
_zod: $ZodNullInternals;
|
|
911
|
+
}
|
|
912
|
+
declare const $ZodNull: $constructor<$ZodNull>;
|
|
913
|
+
interface $ZodAnyDef extends $ZodTypeDef {
|
|
914
|
+
type: "any";
|
|
915
|
+
}
|
|
916
|
+
interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
|
|
917
|
+
def: $ZodAnyDef;
|
|
918
|
+
isst: never;
|
|
919
|
+
}
|
|
920
|
+
interface $ZodAny extends $ZodType {
|
|
921
|
+
_zod: $ZodAnyInternals;
|
|
922
|
+
}
|
|
923
|
+
declare const $ZodAny: $constructor<$ZodAny>;
|
|
924
|
+
interface $ZodUnknownDef extends $ZodTypeDef {
|
|
925
|
+
type: "unknown";
|
|
926
|
+
}
|
|
927
|
+
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
|
928
|
+
def: $ZodUnknownDef;
|
|
929
|
+
isst: never;
|
|
930
|
+
}
|
|
931
|
+
interface $ZodUnknown extends $ZodType {
|
|
932
|
+
_zod: $ZodUnknownInternals;
|
|
933
|
+
}
|
|
934
|
+
declare const $ZodUnknown: $constructor<$ZodUnknown>;
|
|
935
|
+
interface $ZodNeverDef extends $ZodTypeDef {
|
|
936
|
+
type: "never";
|
|
937
|
+
}
|
|
938
|
+
interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
|
|
939
|
+
def: $ZodNeverDef;
|
|
940
|
+
isst: $ZodIssueInvalidType;
|
|
941
|
+
}
|
|
942
|
+
interface $ZodNever extends $ZodType {
|
|
943
|
+
_zod: $ZodNeverInternals;
|
|
944
|
+
}
|
|
945
|
+
declare const $ZodNever: $constructor<$ZodNever>;
|
|
946
|
+
interface $ZodVoidDef extends $ZodTypeDef {
|
|
947
|
+
type: "void";
|
|
948
|
+
}
|
|
949
|
+
interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
|
|
950
|
+
def: $ZodVoidDef;
|
|
951
|
+
isst: $ZodIssueInvalidType;
|
|
952
|
+
}
|
|
953
|
+
interface $ZodVoid extends $ZodType {
|
|
954
|
+
_zod: $ZodVoidInternals;
|
|
955
|
+
}
|
|
956
|
+
declare const $ZodVoid: $constructor<$ZodVoid>;
|
|
957
|
+
interface $ZodDateDef extends $ZodTypeDef {
|
|
958
|
+
type: "date";
|
|
959
|
+
coerce?: boolean;
|
|
960
|
+
}
|
|
961
|
+
interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
|
|
962
|
+
def: $ZodDateDef;
|
|
963
|
+
isst: $ZodIssueInvalidType;
|
|
964
|
+
bag: LoosePartial<{
|
|
965
|
+
minimum: Date;
|
|
966
|
+
maximum: Date;
|
|
967
|
+
format: string;
|
|
968
|
+
}>;
|
|
969
|
+
}
|
|
970
|
+
interface $ZodDate<T = unknown> extends $ZodType {
|
|
971
|
+
_zod: $ZodDateInternals<T>;
|
|
972
|
+
}
|
|
973
|
+
declare const $ZodDate: $constructor<$ZodDate>;
|
|
580
974
|
interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
581
975
|
type: "array";
|
|
582
976
|
element: T;
|
|
@@ -658,7 +1052,6 @@ type $ZodLooseShape = Record<string, any>;
|
|
|
658
1052
|
interface $ZodObject<
|
|
659
1053
|
/** @ts-ignore Cast variance */
|
|
660
1054
|
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {
|
|
661
|
-
"~standard": $ZodStandardSchema<this>;
|
|
662
1055
|
}
|
|
663
1056
|
declare const $ZodObject: $constructor<$ZodObject>;
|
|
664
1057
|
type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
|
|
@@ -666,6 +1059,7 @@ type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
|
|
|
666
1059
|
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
667
1060
|
type: "union";
|
|
668
1061
|
options: Options;
|
|
1062
|
+
inclusive?: boolean;
|
|
669
1063
|
}
|
|
670
1064
|
type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
|
|
671
1065
|
type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
|
|
@@ -700,11 +1094,50 @@ interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $
|
|
|
700
1094
|
_zod: $ZodIntersectionInternals<A, B>;
|
|
701
1095
|
}
|
|
702
1096
|
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
1097
|
+
interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
|
|
1098
|
+
type: "tuple";
|
|
1099
|
+
items: T;
|
|
1100
|
+
rest: Rest;
|
|
1101
|
+
}
|
|
1102
|
+
type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [
|
|
1103
|
+
...TupleInputTypeWithOptionals<T>,
|
|
1104
|
+
...(Rest extends SomeType ? input<Rest>[] : [])
|
|
1105
|
+
];
|
|
1106
|
+
type TupleInputTypeNoOptionals<T extends TupleItems> = {
|
|
1107
|
+
[k in keyof T]: input<T[k]>;
|
|
1108
|
+
};
|
|
1109
|
+
type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [
|
|
1110
|
+
...infer Prefix extends SomeType[],
|
|
1111
|
+
infer Tail extends SomeType
|
|
1112
|
+
] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
|
|
1113
|
+
type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [
|
|
1114
|
+
...TupleOutputTypeWithOptionals<T>,
|
|
1115
|
+
...(Rest extends SomeType ? output<Rest>[] : [])
|
|
1116
|
+
];
|
|
1117
|
+
type TupleOutputTypeNoOptionals<T extends TupleItems> = {
|
|
1118
|
+
[k in keyof T]: output<T[k]>;
|
|
1119
|
+
};
|
|
1120
|
+
type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [
|
|
1121
|
+
...infer Prefix extends SomeType[],
|
|
1122
|
+
infer Tail extends SomeType
|
|
1123
|
+
] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
|
|
1124
|
+
interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
|
|
1125
|
+
def: $ZodTupleDef<T, Rest>;
|
|
1126
|
+
isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
|
|
1127
|
+
output: $InferTupleOutputType<T, Rest>;
|
|
1128
|
+
input: $InferTupleInputType<T, Rest>;
|
|
1129
|
+
}
|
|
1130
|
+
interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
|
|
1131
|
+
_zod: $ZodTupleInternals<T, Rest>;
|
|
1132
|
+
}
|
|
1133
|
+
declare const $ZodTuple: $constructor<$ZodTuple>;
|
|
703
1134
|
type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol>;
|
|
704
1135
|
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
705
1136
|
type: "record";
|
|
706
1137
|
keyType: Key;
|
|
707
1138
|
valueType: Value;
|
|
1139
|
+
/** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
|
|
1140
|
+
mode?: "strict" | "loose";
|
|
708
1141
|
}
|
|
709
1142
|
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
710
1143
|
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key>, input<Value>>> : Record<input<Key>, input<Value>>;
|
|
@@ -721,6 +1154,35 @@ interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends So
|
|
|
721
1154
|
_zod: $ZodRecordInternals<Key, Value>;
|
|
722
1155
|
}
|
|
723
1156
|
declare const $ZodRecord: $constructor<$ZodRecord>;
|
|
1157
|
+
interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1158
|
+
type: "map";
|
|
1159
|
+
keyType: Key;
|
|
1160
|
+
valueType: Value;
|
|
1161
|
+
}
|
|
1162
|
+
interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
|
|
1163
|
+
def: $ZodMapDef<Key, Value>;
|
|
1164
|
+
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
|
|
1165
|
+
optin?: "optional" | undefined;
|
|
1166
|
+
optout?: "optional" | undefined;
|
|
1167
|
+
}
|
|
1168
|
+
interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
|
|
1169
|
+
_zod: $ZodMapInternals<Key, Value>;
|
|
1170
|
+
}
|
|
1171
|
+
declare const $ZodMap: $constructor<$ZodMap>;
|
|
1172
|
+
interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1173
|
+
type: "set";
|
|
1174
|
+
valueType: T;
|
|
1175
|
+
}
|
|
1176
|
+
interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
|
|
1177
|
+
def: $ZodSetDef<T>;
|
|
1178
|
+
isst: $ZodIssueInvalidType;
|
|
1179
|
+
optin?: "optional" | undefined;
|
|
1180
|
+
optout?: "optional" | undefined;
|
|
1181
|
+
}
|
|
1182
|
+
interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
|
|
1183
|
+
_zod: $ZodSetInternals<T>;
|
|
1184
|
+
}
|
|
1185
|
+
declare const $ZodSet: $constructor<$ZodSet>;
|
|
724
1186
|
type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
|
|
725
1187
|
type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
|
|
726
1188
|
interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
@@ -755,6 +1217,30 @@ interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
|
|
|
755
1217
|
_zod: $ZodLiteralInternals<T>;
|
|
756
1218
|
}
|
|
757
1219
|
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
1220
|
+
type _File = typeof globalThis extends {
|
|
1221
|
+
File: infer F extends new (...args: any[]) => any;
|
|
1222
|
+
} ? InstanceType<F> : {};
|
|
1223
|
+
/** Do not reference this directly. */
|
|
1224
|
+
interface File extends _File {
|
|
1225
|
+
readonly type: string;
|
|
1226
|
+
readonly size: number;
|
|
1227
|
+
}
|
|
1228
|
+
interface $ZodFileDef extends $ZodTypeDef {
|
|
1229
|
+
type: "file";
|
|
1230
|
+
}
|
|
1231
|
+
interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
|
|
1232
|
+
def: $ZodFileDef;
|
|
1233
|
+
isst: $ZodIssueInvalidType;
|
|
1234
|
+
bag: LoosePartial<{
|
|
1235
|
+
minimum: number;
|
|
1236
|
+
maximum: number;
|
|
1237
|
+
mime: MimeTypes[];
|
|
1238
|
+
}>;
|
|
1239
|
+
}
|
|
1240
|
+
interface $ZodFile extends $ZodType {
|
|
1241
|
+
_zod: $ZodFileInternals;
|
|
1242
|
+
}
|
|
1243
|
+
declare const $ZodFile: $constructor<$ZodFile>;
|
|
758
1244
|
interface $ZodTransformDef extends $ZodTypeDef {
|
|
759
1245
|
type: "transform";
|
|
760
1246
|
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
@@ -848,6 +1334,20 @@ interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
|
848
1334
|
_zod: $ZodNonOptionalInternals<T>;
|
|
849
1335
|
}
|
|
850
1336
|
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
1337
|
+
interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1338
|
+
type: "success";
|
|
1339
|
+
innerType: T;
|
|
1340
|
+
}
|
|
1341
|
+
interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
|
|
1342
|
+
def: $ZodSuccessDef<T>;
|
|
1343
|
+
isst: never;
|
|
1344
|
+
optin: T["_zod"]["optin"];
|
|
1345
|
+
optout: "optional" | undefined;
|
|
1346
|
+
}
|
|
1347
|
+
interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
|
|
1348
|
+
_zod: $ZodSuccessInternals<T>;
|
|
1349
|
+
}
|
|
1350
|
+
declare const $ZodSuccess: $constructor<$ZodSuccess>;
|
|
851
1351
|
interface $ZodCatchCtx extends ParsePayload {
|
|
852
1352
|
/** @deprecated Use `ctx.issues` */
|
|
853
1353
|
error: {
|
|
@@ -872,6 +1372,17 @@ interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
|
|
|
872
1372
|
_zod: $ZodCatchInternals<T>;
|
|
873
1373
|
}
|
|
874
1374
|
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
1375
|
+
interface $ZodNaNDef extends $ZodTypeDef {
|
|
1376
|
+
type: "nan";
|
|
1377
|
+
}
|
|
1378
|
+
interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
|
|
1379
|
+
def: $ZodNaNDef;
|
|
1380
|
+
isst: $ZodIssueInvalidType;
|
|
1381
|
+
}
|
|
1382
|
+
interface $ZodNaN extends $ZodType {
|
|
1383
|
+
_zod: $ZodNaNInternals;
|
|
1384
|
+
}
|
|
1385
|
+
declare const $ZodNaN: $constructor<$ZodNaN>;
|
|
875
1386
|
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
876
1387
|
type: "pipe";
|
|
877
1388
|
in: A;
|
|
@@ -909,6 +1420,87 @@ interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
|
|
|
909
1420
|
_zod: $ZodReadonlyInternals<T>;
|
|
910
1421
|
}
|
|
911
1422
|
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
1423
|
+
interface $ZodTemplateLiteralDef extends $ZodTypeDef {
|
|
1424
|
+
type: "template_literal";
|
|
1425
|
+
parts: $ZodTemplateLiteralPart[];
|
|
1426
|
+
format?: string | undefined;
|
|
1427
|
+
}
|
|
1428
|
+
interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
|
|
1429
|
+
pattern: RegExp;
|
|
1430
|
+
def: $ZodTemplateLiteralDef;
|
|
1431
|
+
isst: $ZodIssueInvalidType;
|
|
1432
|
+
}
|
|
1433
|
+
type LiteralPart = Exclude<Literal, symbol>;
|
|
1434
|
+
interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
|
|
1435
|
+
pattern: RegExp;
|
|
1436
|
+
}
|
|
1437
|
+
interface SchemaPart extends $ZodType {
|
|
1438
|
+
_zod: SchemaPartInternals;
|
|
1439
|
+
}
|
|
1440
|
+
type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
|
|
1441
|
+
interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
|
|
1442
|
+
_zod: $ZodTemplateLiteralInternals<Template>;
|
|
1443
|
+
}
|
|
1444
|
+
declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
|
|
1445
|
+
type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
|
|
1446
|
+
type $ZodFunctionIn = $ZodFunctionArgs;
|
|
1447
|
+
type $ZodFunctionOut = $ZodType;
|
|
1448
|
+
type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
|
|
1449
|
+
type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
|
|
1450
|
+
type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
|
|
1451
|
+
type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => MaybeAsync<output<Returns>>;
|
|
1452
|
+
interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
|
|
1453
|
+
type: "function";
|
|
1454
|
+
input: In;
|
|
1455
|
+
output: Out;
|
|
1456
|
+
}
|
|
1457
|
+
interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
|
|
1458
|
+
def: $ZodFunctionDef<Args, Returns>;
|
|
1459
|
+
isst: $ZodIssueInvalidType;
|
|
1460
|
+
}
|
|
1461
|
+
interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
|
|
1462
|
+
/** @deprecated */
|
|
1463
|
+
_def: $ZodFunctionDef<Args, Returns>;
|
|
1464
|
+
_input: $InferInnerFunctionType<Args, Returns>;
|
|
1465
|
+
_output: $InferOuterFunctionType<Args, Returns>;
|
|
1466
|
+
implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
|
|
1467
|
+
implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
|
|
1468
|
+
input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
|
|
1469
|
+
input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
|
|
1470
|
+
input(...args: any[]): $ZodFunction<any, Returns>;
|
|
1471
|
+
output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
|
|
1472
|
+
}
|
|
1473
|
+
declare const $ZodFunction: $constructor<$ZodFunction>;
|
|
1474
|
+
interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1475
|
+
type: "promise";
|
|
1476
|
+
innerType: T;
|
|
1477
|
+
}
|
|
1478
|
+
interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
|
|
1479
|
+
def: $ZodPromiseDef<T>;
|
|
1480
|
+
isst: never;
|
|
1481
|
+
}
|
|
1482
|
+
interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
|
|
1483
|
+
_zod: $ZodPromiseInternals<T>;
|
|
1484
|
+
}
|
|
1485
|
+
declare const $ZodPromise: $constructor<$ZodPromise>;
|
|
1486
|
+
interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1487
|
+
type: "lazy";
|
|
1488
|
+
getter: () => T;
|
|
1489
|
+
}
|
|
1490
|
+
interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
1491
|
+
def: $ZodLazyDef<T>;
|
|
1492
|
+
isst: never;
|
|
1493
|
+
/** Auto-cached way to retrieve the inner schema */
|
|
1494
|
+
innerType: T;
|
|
1495
|
+
pattern: T["_zod"]["pattern"];
|
|
1496
|
+
propValues: T["_zod"]["propValues"];
|
|
1497
|
+
optin: T["_zod"]["optin"];
|
|
1498
|
+
optout: T["_zod"]["optout"];
|
|
1499
|
+
}
|
|
1500
|
+
interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
|
|
1501
|
+
_zod: $ZodLazyInternals<T>;
|
|
1502
|
+
}
|
|
1503
|
+
declare const $ZodLazy: $constructor<$ZodLazy>;
|
|
912
1504
|
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
913
1505
|
type: "custom";
|
|
914
1506
|
check: "custom";
|
|
@@ -929,6 +1521,7 @@ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
|
929
1521
|
_zod: $ZodCustomInternals<O, I>;
|
|
930
1522
|
}
|
|
931
1523
|
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
1524
|
+
type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
|
|
932
1525
|
|
|
933
1526
|
interface $ZodCheckDef {
|
|
934
1527
|
check: string;
|
|
@@ -1158,12 +1751,21 @@ interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
|
|
|
1158
1751
|
readonly keys: string[];
|
|
1159
1752
|
readonly input?: Record<string, unknown>;
|
|
1160
1753
|
}
|
|
1161
|
-
interface $
|
|
1754
|
+
interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
|
|
1162
1755
|
readonly code: "invalid_union";
|
|
1163
1756
|
readonly errors: $ZodIssue[][];
|
|
1164
1757
|
readonly input?: unknown;
|
|
1165
1758
|
readonly discriminator?: string | undefined;
|
|
1759
|
+
readonly inclusive?: true;
|
|
1166
1760
|
}
|
|
1761
|
+
interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
|
|
1762
|
+
readonly code: "invalid_union";
|
|
1763
|
+
readonly errors: [];
|
|
1764
|
+
readonly input?: unknown;
|
|
1765
|
+
readonly discriminator?: string | undefined;
|
|
1766
|
+
readonly inclusive: false;
|
|
1767
|
+
}
|
|
1768
|
+
type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
|
|
1167
1769
|
interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
|
|
1168
1770
|
readonly code: "invalid_key";
|
|
1169
1771
|
readonly origin: "map" | "record";
|
|
@@ -1263,37 +1865,6 @@ type output<T> = T extends {
|
|
|
1263
1865
|
};
|
|
1264
1866
|
} ? T["_zod"]["output"] : unknown;
|
|
1265
1867
|
|
|
1266
|
-
declare const $output: unique symbol;
|
|
1267
|
-
type $output = typeof $output;
|
|
1268
|
-
declare const $input: unique symbol;
|
|
1269
|
-
type $input = typeof $input;
|
|
1270
|
-
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends (...args: infer P) => infer R ? (...args: {
|
|
1271
|
-
[K in keyof P]: $replace<P[K], S>;
|
|
1272
|
-
}) => $replace<R, S> : Meta extends object ? {
|
|
1273
|
-
[K in keyof Meta]: $replace<Meta[K], S>;
|
|
1274
|
-
} : Meta;
|
|
1275
|
-
type MetadataType = object | undefined;
|
|
1276
|
-
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
1277
|
-
_meta: Meta;
|
|
1278
|
-
_schema: Schema;
|
|
1279
|
-
_map: WeakMap<Schema, $replace<Meta, Schema>>;
|
|
1280
|
-
_idmap: Map<string, Schema>;
|
|
1281
|
-
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
|
1282
|
-
clear(): this;
|
|
1283
|
-
remove(schema: Schema): this;
|
|
1284
|
-
get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
|
|
1285
|
-
has(schema: Schema): boolean;
|
|
1286
|
-
}
|
|
1287
|
-
interface JSONSchemaMeta {
|
|
1288
|
-
id?: string | undefined;
|
|
1289
|
-
title?: string | undefined;
|
|
1290
|
-
description?: string | undefined;
|
|
1291
|
-
deprecated?: boolean | undefined;
|
|
1292
|
-
[k: string]: unknown;
|
|
1293
|
-
}
|
|
1294
|
-
interface GlobalMeta extends JSONSchemaMeta {
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
1868
|
type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
1298
1869
|
error?: string | $ZodErrorMap<IssueTypes> | undefined;
|
|
1299
1870
|
/** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
@@ -1385,6 +1956,7 @@ type ZodSafeParseError<T> = {
|
|
|
1385
1956
|
error: ZodError<T>;
|
|
1386
1957
|
};
|
|
1387
1958
|
|
|
1959
|
+
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
1388
1960
|
interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {
|
|
1389
1961
|
}
|
|
1390
1962
|
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
@@ -1396,6 +1968,9 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
|
|
|
1396
1968
|
_output: Internals["output"];
|
|
1397
1969
|
/** @deprecated Use `z.input<typeof schema>` instead. */
|
|
1398
1970
|
_input: Internals["input"];
|
|
1971
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1972
|
+
/** Converts this schema to a JSON Schema representation. */
|
|
1973
|
+
toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
|
|
1399
1974
|
check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
|
|
1400
1975
|
clone(def?: Internals["def"], params?: {
|
|
1401
1976
|
parent: boolean;
|
|
@@ -1585,6 +2160,7 @@ interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInte
|
|
|
1585
2160
|
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
1586
2161
|
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
1587
2162
|
unwrap(): T;
|
|
2163
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1588
2164
|
}
|
|
1589
2165
|
declare const ZodArray: $constructor<ZodArray>;
|
|
1590
2166
|
type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = {
|
|
@@ -1593,6 +2169,7 @@ type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = {
|
|
|
1593
2169
|
interface ZodObject<
|
|
1594
2170
|
/** @ts-ignore Cast variance */
|
|
1595
2171
|
out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
|
|
2172
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1596
2173
|
shape: Shape;
|
|
1597
2174
|
keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
|
|
1598
2175
|
/** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
|
|
@@ -1628,13 +2205,16 @@ out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfi
|
|
|
1628
2205
|
}
|
|
1629
2206
|
declare const ZodObject: $constructor<ZodObject>;
|
|
1630
2207
|
interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
|
|
2208
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1631
2209
|
options: T;
|
|
1632
2210
|
}
|
|
1633
2211
|
declare const ZodUnion: $constructor<ZodUnion>;
|
|
1634
2212
|
interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
|
|
2213
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1635
2214
|
}
|
|
1636
2215
|
declare const ZodIntersection: $constructor<ZodIntersection>;
|
|
1637
2216
|
interface ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends _ZodType<$ZodRecordInternals<Key, Value>>, $ZodRecord<Key, Value> {
|
|
2217
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1638
2218
|
keyType: Key;
|
|
1639
2219
|
valueType: Value;
|
|
1640
2220
|
}
|
|
@@ -1642,6 +2222,7 @@ declare const ZodRecord: $constructor<ZodRecord>;
|
|
|
1642
2222
|
interface ZodEnum<
|
|
1643
2223
|
/** @ts-ignore Cast variance */
|
|
1644
2224
|
out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
|
|
2225
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1645
2226
|
enum: T;
|
|
1646
2227
|
options: Array<T[keyof T]>;
|
|
1647
2228
|
extract<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T, U[number]>>>;
|
|
@@ -1649,48 +2230,58 @@ out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodE
|
|
|
1649
2230
|
}
|
|
1650
2231
|
declare const ZodEnum: $constructor<ZodEnum>;
|
|
1651
2232
|
interface ZodLiteral<T extends Literal = Literal> extends _ZodType<$ZodLiteralInternals<T>>, $ZodLiteral<T> {
|
|
2233
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1652
2234
|
values: Set<T>;
|
|
1653
2235
|
/** @legacy Use `.values` instead. Accessing this property will throw an error if the literal accepts multiple values. */
|
|
1654
2236
|
value: T;
|
|
1655
2237
|
}
|
|
1656
2238
|
declare const ZodLiteral: $constructor<ZodLiteral>;
|
|
1657
2239
|
interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
|
|
2240
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1658
2241
|
}
|
|
1659
2242
|
declare const ZodTransform: $constructor<ZodTransform>;
|
|
1660
2243
|
interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
|
|
2244
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1661
2245
|
unwrap(): T;
|
|
1662
2246
|
}
|
|
1663
2247
|
declare const ZodOptional: $constructor<ZodOptional>;
|
|
1664
2248
|
interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
|
|
2249
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1665
2250
|
unwrap(): T;
|
|
1666
2251
|
}
|
|
1667
2252
|
declare const ZodNullable: $constructor<ZodNullable>;
|
|
1668
2253
|
interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
|
|
2254
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1669
2255
|
unwrap(): T;
|
|
1670
2256
|
/** @deprecated Use `.unwrap()` instead. */
|
|
1671
2257
|
removeDefault(): T;
|
|
1672
2258
|
}
|
|
1673
2259
|
declare const ZodDefault: $constructor<ZodDefault>;
|
|
1674
2260
|
interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
|
|
2261
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1675
2262
|
unwrap(): T;
|
|
1676
2263
|
}
|
|
1677
2264
|
declare const ZodPrefault: $constructor<ZodPrefault>;
|
|
1678
2265
|
interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
|
|
2266
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1679
2267
|
unwrap(): T;
|
|
1680
2268
|
}
|
|
1681
2269
|
declare const ZodNonOptional: $constructor<ZodNonOptional>;
|
|
1682
2270
|
interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
|
|
2271
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1683
2272
|
unwrap(): T;
|
|
1684
2273
|
/** @deprecated Use `.unwrap()` instead. */
|
|
1685
2274
|
removeCatch(): T;
|
|
1686
2275
|
}
|
|
1687
2276
|
declare const ZodCatch: $constructor<ZodCatch>;
|
|
1688
2277
|
interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
|
|
2278
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1689
2279
|
in: A;
|
|
1690
2280
|
out: B;
|
|
1691
2281
|
}
|
|
1692
2282
|
declare const ZodPipe: $constructor<ZodPipe>;
|
|
1693
2283
|
interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
|
|
2284
|
+
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1694
2285
|
unwrap(): T;
|
|
1695
2286
|
}
|
|
1696
2287
|
declare const ZodReadonly: $constructor<ZodReadonly>;
|
|
@@ -2254,7 +2845,7 @@ declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
|
|
|
2254
2845
|
opacity: ZodOptional<ZodInt>;
|
|
2255
2846
|
border: ZodOptional<ZodLiteral<"none" | "solid" | "dashed" | "dotted">>;
|
|
2256
2847
|
size: ZodOptional<ZodLiteral<"xs" | "sm" | "md" | "lg" | "xl">>;
|
|
2257
|
-
shape: ZodOptional<ZodLiteral<"rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue">>;
|
|
2848
|
+
shape: ZodOptional<ZodLiteral<"rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue" | "bucket" | "document">>;
|
|
2258
2849
|
group: ZodOptional<ZodObject<{
|
|
2259
2850
|
color: ZodOptional<ZodPipe<ZodUnion<readonly [ZodLiteral<"amber" | "blue" | "gray" | "slate" | "green" | "indigo" | "muted" | "primary" | "red" | "secondary" | "sky">, ZodString]>, ZodTransform<"amber" | "blue" | "gray" | "slate" | "green" | "indigo" | "muted" | "primary" | "red" | "secondary" | "sky", string>>>;
|
|
2260
2851
|
opacity: ZodOptional<ZodInt>;
|
|
@@ -2455,7 +3046,7 @@ declare const LikeC4ProjectJsonConfigSchema: ZodObject<{
|
|
|
2455
3046
|
opacity?: number | undefined;
|
|
2456
3047
|
border?: "none" | "solid" | "dashed" | "dotted" | undefined;
|
|
2457
3048
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
2458
|
-
shape?: "rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue" | undefined;
|
|
3049
|
+
shape?: "rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue" | "bucket" | "document" | undefined;
|
|
2459
3050
|
group?: {
|
|
2460
3051
|
color?: "amber" | "blue" | "gray" | "slate" | "green" | "indigo" | "muted" | "primary" | "red" | "secondary" | "sky" | undefined;
|
|
2461
3052
|
opacity?: number | undefined;
|
|
@@ -3726,7 +4317,7 @@ declare const LikeC4StylesConfigSchema: ZodPipe<ZodObject<{
|
|
|
3726
4317
|
opacity: ZodOptional<ZodInt>;
|
|
3727
4318
|
border: ZodOptional<ZodLiteral<"none" | "solid" | "dashed" | "dotted">>;
|
|
3728
4319
|
size: ZodOptional<ZodLiteral<"xs" | "sm" | "md" | "lg" | "xl">>;
|
|
3729
|
-
shape: ZodOptional<ZodLiteral<"rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue">>;
|
|
4320
|
+
shape: ZodOptional<ZodLiteral<"rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue" | "bucket" | "document">>;
|
|
3730
4321
|
group: ZodOptional<ZodObject<{
|
|
3731
4322
|
color: ZodOptional<ZodPipe<ZodUnion<readonly [ZodLiteral<"amber" | "blue" | "gray" | "slate" | "green" | "indigo" | "muted" | "primary" | "red" | "secondary" | "sky">, ZodString]>, ZodTransform<"amber" | "blue" | "gray" | "slate" | "green" | "indigo" | "muted" | "primary" | "red" | "secondary" | "sky", string>>>;
|
|
3732
4323
|
opacity: ZodOptional<ZodInt>;
|
|
@@ -3927,7 +4518,7 @@ declare const LikeC4StylesConfigSchema: ZodPipe<ZodObject<{
|
|
|
3927
4518
|
opacity?: number | undefined;
|
|
3928
4519
|
border?: "none" | "solid" | "dashed" | "dotted" | undefined;
|
|
3929
4520
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
3930
|
-
shape?: "rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue" | undefined;
|
|
4521
|
+
shape?: "rectangle" | "person" | "browser" | "mobile" | "cylinder" | "storage" | "queue" | "bucket" | "document" | undefined;
|
|
3931
4522
|
group?: {
|
|
3932
4523
|
color?: "amber" | "blue" | "gray" | "slate" | "green" | "indigo" | "muted" | "primary" | "red" | "secondary" | "sky" | undefined;
|
|
3933
4524
|
opacity?: number | undefined;
|