likec4 1.56.0 → 1.58.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__/codegen/react.mjs +7 -8
- package/__app__/codegen/webcomponent.mjs +77 -736
- package/__app__/src/aichat/index.mjs +8 -0
- package/__app__/src/chunks/AIChat.mjs +959 -0
- package/__app__/src/chunks/DiagramActorProvider.mjs +7638 -0
- package/__app__/src/chunks/LikeC4Styles.mjs +1866 -0
- package/__app__/src/chunks/Markdown.mjs +146 -0
- package/__app__/src/chunks/NavigationPanel.mjs +61 -0
- package/__app__/src/chunks/ProjectsOverview.mjs +540 -0
- package/__app__/src/chunks/adhoc-editor.mjs +3386 -0
- package/__app__/src/chunks/es.mjs +439 -0
- package/__app__/src/chunks/hooks.mjs +145 -0
- package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +1894 -0
- package/__app__/src/chunks/libs/@floating-ui.mjs +2218 -0
- package/__app__/src/chunks/libs/@mantine.mjs +12070 -0
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +252 -0
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +1768 -0
- package/__app__/src/chunks/libs/@tanstack.mjs +2718 -0
- package/__app__/src/chunks/libs/@xstate/react.mjs +1982 -0
- package/__app__/src/chunks/libs/@xyflow/react.mjs +5256 -0
- package/__app__/src/chunks/libs/bezier-js.mjs +1003 -0
- package/__app__/src/chunks/libs/d3.mjs +2842 -0
- package/__app__/src/chunks/libs/fast-equals.mjs +268 -0
- package/__app__/src/chunks/libs/framer.mjs +5872 -0
- package/__app__/src/chunks/libs/remeda.mjs +642 -0
- package/__app__/src/chunks/libs/zod.mjs +3170 -0
- package/__app__/src/chunks/rolldown-runtime.mjs +23 -0
- package/__app__/src/chunks/styled-system.mjs +1040 -0
- package/__app__/src/fonts.css +1 -1
- package/__app__/src/main.mjs +14847 -1
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -41
- package/dist/chunks/enableServer.mjs +1 -0
- package/dist/chunks/filenames.mjs +2 -2
- package/dist/chunks/index2.d.mts +2057 -722
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -3
- package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +26 -26
- package/dist/chunks/libs/langium.d.mts +5 -5
- package/dist/chunks/libs/langium.mjs +10 -10
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +3 -1
- package/dist/chunks/libs/pretty-ms.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ufo.mjs +1 -1
- package/dist/chunks/libs/unstorage.mjs +1 -1
- package/dist/chunks/libs/which.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +60 -25
- package/dist/chunks/libs/zod.mjs +65 -0
- package/dist/chunks/node.mjs +84 -56
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +593 -0
- package/dist/cli/index.mjs +184 -141
- package/dist/index.d.mts +2 -131
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +2 -2
- package/dist/vite-plugin/index.d.mts +53 -2
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/index.d.mts +327 -4
- package/dist/vite-plugin/internal/index.mjs +946 -1
- package/package.json +85 -72
- package/react/index.d.mts +174 -73
- package/react/index.mjs +42468 -38926
- package/vite-plugin-modules.d.ts +4 -0
- package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
- package/__app__/chunks/DiagramActorProvider.mjs +0 -10
- package/__app__/chunks/Fallback.mjs +0 -1
- package/__app__/chunks/Header.mjs +0 -13
- package/__app__/chunks/IconRenderer.mjs +0 -1
- package/__app__/chunks/LikeC4Diagram.mjs +0 -19
- package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
- package/__app__/chunks/LikeC4Styles.mjs +0 -48
- package/__app__/chunks/NavigationPanel.mjs +0 -1
- package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
- package/__app__/chunks/ViewReact.mjs +0 -1
- package/__app__/chunks/__root.mjs +0 -1
- package/__app__/chunks/adhoc-editor.mjs +0 -1
- package/__app__/chunks/hooks.mjs +0 -1
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/core.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/dom.mjs +0 -1
- package/__app__/chunks/libs/@floating-ui/react.mjs +0 -1
- package/__app__/chunks/libs/@mantine/core.mjs +0 -41
- package/__app__/chunks/libs/@mantine/hooks.mjs +0 -1
- package/__app__/chunks/libs/@nanostores/react.mjs +0 -1
- package/__app__/chunks/libs/@react-hookz/web.mjs +0 -1
- package/__app__/chunks/libs/@tabler/icons-react.mjs +0 -15
- package/__app__/chunks/libs/@tanstack/history.mjs +0 -1
- package/__app__/chunks/libs/@tanstack/react-router.mjs +0 -3
- package/__app__/chunks/libs/@tanstack/router-core.mjs +0 -1
- package/__app__/chunks/libs/@xstate/react.mjs +0 -1
- package/__app__/chunks/libs/@xstate/store.mjs +0 -1
- package/__app__/chunks/libs/@xyflow/react.mjs +0 -7
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/collection.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/core.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/react.mjs +0 -1
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +0 -1
- package/__app__/chunks/libs/bezier-js.mjs +0 -1
- package/__app__/chunks/libs/d3-path.mjs +0 -1
- package/__app__/chunks/libs/d3-shape.mjs +0 -1
- package/__app__/chunks/libs/fast-equals.mjs +0 -1
- package/__app__/chunks/libs/framer-motion.mjs +0 -9
- package/__app__/chunks/libs/html-to-image.mjs +0 -2
- package/__app__/chunks/libs/motion-dom.mjs +0 -1
- package/__app__/chunks/libs/motion.mjs +0 -1
- package/__app__/chunks/libs/nanostores.mjs +0 -1
- package/__app__/chunks/libs/react-error-boundary.mjs +0 -1
- package/__app__/chunks/libs/react-resizable-panels.mjs +0 -1
- package/__app__/chunks/libs/remeda.mjs +0 -1
- package/__app__/chunks/libs/xstate.mjs +0 -1
- package/__app__/chunks/libs/zod.mjs +0 -39
- package/__app__/chunks/rolldown-runtime.mjs +0 -1
- package/__app__/chunks/safeCtx.mjs +0 -1
- package/__app__/chunks/searchParams.mjs +0 -1
- package/__app__/chunks/single-index.mjs +0 -1
- package/__app__/chunks/styled-system.mjs +0 -1
- package/__app__/chunks/styles.css.mjs +0 -1
- package/__app__/chunks/useLikeC4Project.mjs +0 -1
- package/__app__/chunks/useUpdateEffect.mjs +0 -1
- package/__app__/src/pages/AdHocViewEditor.mjs +0 -1
- package/__app__/src/pages/EmbedPage.mjs +0 -1
- package/__app__/src/pages/ExportPage.mjs +0 -1
- package/__app__/src/pages/ProjectsOverview.mjs +0 -1
- package/__app__/src/pages/ViewAsD2.mjs +0 -1
- package/__app__/src/pages/ViewAsDot.mjs +0 -1
- package/__app__/src/pages/ViewAsMmd.mjs +0 -1
- package/__app__/src/pages/ViewAsPuml.mjs +0 -1
- package/__app__/src/pages/ViewEditor.mjs +0 -1
- package/__app__/src/pages/ViewReact.mjs +0 -1
- package/__app__/src/routeTree.gen.mjs +0 -1
- package/__app__/src/routes/__root.mjs +0 -1
- package/__app__/src/routes/_single/adhoc.mjs +0 -1
- package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
- package/__app__/src/routes/_single/export._viewId.mjs +0 -1
- package/__app__/src/routes/_single/route.mjs +0 -1
- package/__app__/src/routes/_single/single-index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
- package/__app__/src/routes/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/-components.mjs +0 -1
- package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/route.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/projects.mjs +0 -1
- package/dist/chunks/libs/@chevrotain/utils.mjs +0 -1
- package/dist/chunks/libs/@hono/mcp.mjs +0 -45
- package/dist/chunks/libs/@hono/node-server.mjs +0 -1
- package/dist/chunks/libs/@logtape/logtape.d.mts +0 -1023
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
- package/dist/chunks/libs/ajv.mjs +0 -1
- package/dist/chunks/libs/ansi-align.mjs +0 -2
- package/dist/chunks/libs/ansi-regex.mjs +0 -1
- package/dist/chunks/libs/ansi-styles.mjs +0 -1
- package/dist/chunks/libs/atomically.mjs +0 -1
- package/dist/chunks/libs/boxen.mjs +0 -22
- package/dist/chunks/libs/conf.mjs +0 -1
- package/dist/chunks/libs/defu.mjs +0 -1
- package/dist/chunks/libs/destr.mjs +0 -1
- package/dist/chunks/libs/find-up-simple.mjs +0 -1
- package/dist/chunks/libs/get-port.mjs +0 -1
- package/dist/chunks/libs/hono.mjs +0 -1
- package/dist/chunks/libs/is-docker.mjs +0 -1
- package/dist/chunks/libs/is-error-instance.mjs +0 -1
- package/dist/chunks/libs/is-inside-container.mjs +0 -1
- package/dist/chunks/libs/is-plain-obj.mjs +0 -1
- package/dist/chunks/libs/isexe.mjs +0 -1
- package/dist/chunks/libs/ky.mjs +0 -3
- package/dist/chunks/libs/p-debounce.mjs +0 -1
- package/dist/chunks/libs/p-limit.mjs +0 -1
- package/dist/chunks/libs/p-timeout.mjs +0 -1
- package/dist/chunks/libs/package-up.mjs +0 -1
- package/dist/chunks/libs/parse-ms.mjs +0 -1
- package/dist/chunks/libs/safe-stringify.mjs +0 -1
- package/dist/chunks/libs/strip-indent.mjs +0 -1
- package/dist/chunks/libs/tinyrainbow.mjs +0 -1
- package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
- package/dist/chunks/libs/ts-graphviz.mjs +0 -4
- package/dist/chunks/libs/vscode-languageserver.mjs +0 -1
- package/dist/chunks/libs/word-wrap.mjs +0 -12
- package/dist/chunks/plugin.mjs +0 -400
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
- package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +0 -1
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __name } from "../rolldown-runtime.mjs";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
3
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.d.cts
|
|
4
4
|
type _JSONSchema = boolean | JSONSchema;
|
|
5
5
|
type JSONSchema = {
|
|
6
6
|
[k: string]: unknown;
|
|
@@ -68,7 +68,7 @@ type JSONSchema = {
|
|
|
68
68
|
};
|
|
69
69
|
type BaseSchema = JSONSchema;
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
71
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/standard-schema.d.cts
|
|
72
72
|
/** The Standard interface. */
|
|
73
73
|
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
74
74
|
/** The Standard properties. */
|
|
@@ -187,7 +187,7 @@ declare namespace StandardJSONSchemaV1 {
|
|
|
187
187
|
}
|
|
188
188
|
interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
|
|
189
189
|
//#endregion
|
|
190
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
190
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.d.cts
|
|
191
191
|
declare const $output: unique symbol;
|
|
192
192
|
type $output = typeof $output;
|
|
193
193
|
declare const $input: unique symbol;
|
|
@@ -214,7 +214,7 @@ interface JSONSchemaMeta {
|
|
|
214
214
|
}
|
|
215
215
|
interface GlobalMeta extends JSONSchemaMeta {}
|
|
216
216
|
//#endregion
|
|
217
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
217
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.d.cts
|
|
218
218
|
type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
|
|
219
219
|
interface JSONSchemaGeneratorParams {
|
|
220
220
|
processors: Record<string, Processor>;
|
|
@@ -303,7 +303,7 @@ interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
|
|
|
303
303
|
"~standard": ZodStandardSchemaWithJSON$1<T>;
|
|
304
304
|
}
|
|
305
305
|
//#endregion
|
|
306
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
306
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.d.cts
|
|
307
307
|
type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
|
|
308
308
|
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 & {});
|
|
309
309
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
@@ -314,6 +314,7 @@ type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
|
314
314
|
[k: string]: unknown;
|
|
315
315
|
};
|
|
316
316
|
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
|
|
317
|
+
type Writeable<T> = { -readonly [P in keyof T]: T[P] } & {};
|
|
317
318
|
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
|
|
318
319
|
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
319
320
|
readonly [Symbol.toStringTag]: string;
|
|
@@ -343,14 +344,14 @@ declare abstract class Class {
|
|
|
343
344
|
constructor(..._args: any[]);
|
|
344
345
|
}
|
|
345
346
|
//#endregion
|
|
346
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
347
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.d.cts
|
|
347
348
|
declare const version: {
|
|
348
349
|
readonly major: 4;
|
|
349
|
-
readonly minor:
|
|
350
|
+
readonly minor: 4;
|
|
350
351
|
readonly patch: number;
|
|
351
352
|
};
|
|
352
353
|
//#endregion
|
|
353
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
354
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.d.cts
|
|
354
355
|
interface ParseContext<T extends $ZodIssueBase = never> {
|
|
355
356
|
/** Customize error messages. */
|
|
356
357
|
readonly error?: $ZodErrorMap<T>;
|
|
@@ -368,8 +369,13 @@ interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseCon
|
|
|
368
369
|
interface ParsePayload<T = unknown> {
|
|
369
370
|
value: T;
|
|
370
371
|
issues: $ZodRawIssue[];
|
|
371
|
-
/** A
|
|
372
|
+
/** A way to mark a whole payload as aborted. Used in codecs/pipes. */
|
|
372
373
|
aborted?: boolean;
|
|
374
|
+
/** @internal Marks a value as a fallback that an outer wrapper (e.g.
|
|
375
|
+
* $ZodOptional) may override with its own interpretation when input was
|
|
376
|
+
* undefined. Set by $ZodCatch when catchValue substitutes and by every
|
|
377
|
+
* $ZodTransform invocation. */
|
|
378
|
+
fallback?: boolean | undefined;
|
|
373
379
|
}
|
|
374
380
|
type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
|
|
375
381
|
interface $ZodTypeDef {
|
|
@@ -511,10 +517,25 @@ interface $ZodNanoID extends $ZodType {
|
|
|
511
517
|
_zod: $ZodNanoIDInternals;
|
|
512
518
|
}
|
|
513
519
|
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
520
|
+
/**
|
|
521
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
522
|
+
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
523
|
+
* See https://github.com/paralleldrive/cuid.
|
|
524
|
+
*/
|
|
514
525
|
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
526
|
+
/**
|
|
527
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
528
|
+
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
529
|
+
* See https://github.com/paralleldrive/cuid.
|
|
530
|
+
*/
|
|
515
531
|
interface $ZodCUID extends $ZodType {
|
|
516
532
|
_zod: $ZodCUIDInternals;
|
|
517
533
|
}
|
|
534
|
+
/**
|
|
535
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
536
|
+
* (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
|
|
537
|
+
* See https://github.com/paralleldrive/cuid.
|
|
538
|
+
*/
|
|
518
539
|
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
519
540
|
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
520
541
|
interface $ZodCUID2 extends $ZodType {
|
|
@@ -1322,13 +1343,13 @@ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
|
1322
1343
|
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
1323
1344
|
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;
|
|
1324
1345
|
//#endregion
|
|
1325
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1346
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.d.cts
|
|
1326
1347
|
interface $ZodCheckDef {
|
|
1327
1348
|
check: string;
|
|
1328
1349
|
error?: $ZodErrorMap<never> | undefined;
|
|
1329
1350
|
/** If true, no later checks will be executed if this check fails. Default `false`. */
|
|
1330
1351
|
abort?: boolean | undefined;
|
|
1331
|
-
/** If provided,
|
|
1352
|
+
/** If provided, the check runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
|
|
1332
1353
|
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
1333
1354
|
}
|
|
1334
1355
|
interface $ZodCheckInternals<T> {
|
|
@@ -1504,7 +1525,7 @@ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
|
|
|
1504
1525
|
}
|
|
1505
1526
|
declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
|
|
1506
1527
|
//#endregion
|
|
1507
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1528
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.d.cts
|
|
1508
1529
|
interface $ZodIssueBase {
|
|
1509
1530
|
readonly code?: string;
|
|
1510
1531
|
readonly input?: unknown;
|
|
@@ -1556,6 +1577,7 @@ interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
|
|
|
1556
1577
|
readonly errors: $ZodIssue[][];
|
|
1557
1578
|
readonly input?: unknown;
|
|
1558
1579
|
readonly discriminator?: string | undefined;
|
|
1580
|
+
readonly options?: Primitive[];
|
|
1559
1581
|
readonly inclusive?: true;
|
|
1560
1582
|
}
|
|
1561
1583
|
interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
|
|
@@ -1625,7 +1647,7 @@ type $ZodFormattedError<T, U = string> = {
|
|
|
1625
1647
|
_errors: U[];
|
|
1626
1648
|
} & Flatten<_ZodFormattedError<T, U>>;
|
|
1627
1649
|
//#endregion
|
|
1628
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1650
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.d.cts
|
|
1629
1651
|
type ZodTrait = {
|
|
1630
1652
|
_zod: {
|
|
1631
1653
|
def: any;
|
|
@@ -1668,7 +1690,7 @@ type output<T> = T extends {
|
|
|
1668
1690
|
};
|
|
1669
1691
|
} ? T["_zod"]["output"] : unknown;
|
|
1670
1692
|
//#endregion
|
|
1671
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1693
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.d.cts
|
|
1672
1694
|
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] ? {} : {
|
|
1673
1695
|
error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
1674
1696
|
message?: string | undefined;
|
|
@@ -1686,6 +1708,11 @@ type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">
|
|
|
1686
1708
|
type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
|
|
1687
1709
|
type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
|
|
1688
1710
|
type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
|
|
1711
|
+
/**
|
|
1712
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
1713
|
+
* (timestamps embedded in the id). Use {@link _cuid2} instead.
|
|
1714
|
+
* See https://github.com/paralleldrive/cuid.
|
|
1715
|
+
*/
|
|
1689
1716
|
type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
|
|
1690
1717
|
type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
|
|
1691
1718
|
type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
|
|
@@ -1727,8 +1754,12 @@ type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T,
|
|
|
1727
1754
|
interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
|
|
1728
1755
|
addIssue(arg: string | $ZodSuperRefineIssue): void;
|
|
1729
1756
|
}
|
|
1757
|
+
interface $ZodSuperRefineParams {
|
|
1758
|
+
/** If provided, the refinement runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
|
|
1759
|
+
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
1760
|
+
}
|
|
1730
1761
|
//#endregion
|
|
1731
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1762
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.d.cts
|
|
1732
1763
|
/** An Error-like class used to store Zod validation issues. */
|
|
1733
1764
|
interface ZodError<T = unknown> extends $ZodError<T> {
|
|
1734
1765
|
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
@@ -1746,7 +1777,7 @@ interface ZodError<T = unknown> extends $ZodError<T> {
|
|
|
1746
1777
|
}
|
|
1747
1778
|
declare const ZodError: $constructor<ZodError>;
|
|
1748
1779
|
//#endregion
|
|
1749
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1780
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.d.cts
|
|
1750
1781
|
type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
|
1751
1782
|
type ZodSafeParseSuccess<T> = {
|
|
1752
1783
|
success: true;
|
|
@@ -1759,7 +1790,7 @@ type ZodSafeParseError<T> = {
|
|
|
1759
1790
|
error: ZodError<T>;
|
|
1760
1791
|
};
|
|
1761
1792
|
//#endregion
|
|
1762
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1793
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.d.cts
|
|
1763
1794
|
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
1764
1795
|
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
1765
1796
|
def: Internals["def"];
|
|
@@ -1794,7 +1825,7 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
|
|
|
1794
1825
|
safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
|
|
1795
1826
|
safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1796
1827
|
refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R, input<this>> : this;
|
|
1797
|
-
superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void
|
|
1828
|
+
superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
|
|
1798
1829
|
overwrite(fn: (x: output<this>) => output<this>): this;
|
|
1799
1830
|
optional(): ZodOptional<this>;
|
|
1800
1831
|
exactOptional(): ZodExactOptional<this>;
|
|
@@ -1886,7 +1917,11 @@ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
|
|
|
1886
1917
|
nanoid(params?: string | $ZodCheckNanoIDParams): this;
|
|
1887
1918
|
/** @deprecated Use `z.guid()` instead. */
|
|
1888
1919
|
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
1889
|
-
/**
|
|
1920
|
+
/**
|
|
1921
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
1922
|
+
* (timestamps embedded in the id). Use `z.cuid2()` instead.
|
|
1923
|
+
* See https://github.com/paralleldrive/cuid.
|
|
1924
|
+
*/
|
|
1890
1925
|
cuid(params?: string | $ZodCheckCUIDParams): this;
|
|
1891
1926
|
/** @deprecated Use `z.cuid2()` instead. */
|
|
1892
1927
|
cuid2(params?: string | $ZodCheckCUID2Params): this;
|
|
@@ -1987,18 +2022,18 @@ interface ZodObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape
|
|
|
1987
2022
|
strict(): ZodObject<Shape, $strict>;
|
|
1988
2023
|
/** This is the default behavior. This method call is likely unnecessary. */
|
|
1989
2024
|
strip(): ZodObject<Shape, $strip>;
|
|
1990
|
-
extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, U
|
|
1991
|
-
safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, U
|
|
2025
|
+
extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, Writeable<U>>, Config>;
|
|
2026
|
+
safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, Writeable<U>>, Config>;
|
|
1992
2027
|
/**
|
|
1993
2028
|
* @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
1994
2029
|
*/
|
|
1995
2030
|
merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
|
|
1996
2031
|
pick<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
1997
2032
|
omit<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
1998
|
-
partial(): ZodObject<{ [k in keyof Shape]: ZodOptional<Shape[k]> }, Config>;
|
|
1999
|
-
partial<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k] }, Config>;
|
|
2000
|
-
required(): ZodObject<{ [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config>;
|
|
2001
|
-
required<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k] }, Config>;
|
|
2033
|
+
partial(): ZodObject<{ -readonly [k in keyof Shape]: ZodOptional<Shape[k]> }, Config>;
|
|
2034
|
+
partial<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k] }, Config>;
|
|
2035
|
+
required(): ZodObject<{ -readonly [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config>;
|
|
2036
|
+
required<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ -readonly [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k] }, Config>;
|
|
2002
2037
|
}
|
|
2003
2038
|
declare const ZodObject: $constructor<ZodObject>;
|
|
2004
2039
|
interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
|