likec4 1.55.1 → 1.57.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__/chunks/AIChat2.mjs +2 -0
- package/__app__/chunks/DiagramActorProvider.mjs +10 -0
- package/__app__/chunks/EmbedPage.mjs +1 -0
- package/__app__/chunks/ExportPage.mjs +2 -0
- package/__app__/chunks/LikeC4Diagram.mjs +19 -0
- package/__app__/chunks/LikeC4Styles.mjs +48 -0
- package/__app__/chunks/Markdown.mjs +1 -0
- package/__app__/chunks/NavigationPanel.mjs +1 -0
- package/__app__/chunks/ViewReact.mjs +1 -0
- package/__app__/chunks/adhoc-editor.mjs +1 -0
- package/__app__/chunks/aichat.mjs +1 -0
- package/__app__/chunks/box.mjs +1 -0
- package/__app__/chunks/create-style-context.mjs +1 -0
- package/__app__/chunks/css.mjs +1 -0
- package/__app__/chunks/factory.mjs +1 -0
- package/__app__/chunks/hooks.mjs +1 -0
- package/__app__/chunks/hstack.mjs +1 -0
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +1 -0
- package/__app__/chunks/libs/@floating-ui/core.mjs +1 -0
- package/__app__/chunks/libs/@floating-ui/dom.mjs +1 -0
- package/__app__/chunks/libs/@floating-ui/react.mjs +1 -0
- package/__app__/chunks/libs/@mantine/core.mjs +41 -0
- package/__app__/chunks/libs/@mantine/hooks.mjs +1 -0
- package/__app__/chunks/libs/@nanostores/react.mjs +1 -0
- package/__app__/chunks/libs/@react-hookz/web.mjs +1 -0
- package/__app__/chunks/libs/@tabler/icons-react.mjs +358 -0
- package/__app__/chunks/libs/@tanstack/ai-client.mjs +2 -0
- package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +1 -0
- package/__app__/chunks/libs/@tanstack/ai-react.mjs +1 -0
- package/__app__/chunks/libs/@tanstack/ai.mjs +2 -0
- package/__app__/chunks/libs/@tanstack/history.mjs +1 -0
- package/__app__/chunks/libs/@tanstack/react-router.mjs +3 -0
- package/__app__/chunks/libs/@tanstack/router-core.mjs +1 -0
- package/__app__/chunks/libs/@xstate/react.mjs +1 -0
- package/__app__/chunks/libs/@xstate/store.mjs +1 -0
- package/__app__/chunks/libs/@xyflow/react.mjs +7 -0
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +1 -0
- package/__app__/chunks/libs/@zag-js/collection.mjs +1 -0
- package/__app__/chunks/libs/@zag-js/core.mjs +1 -0
- package/__app__/chunks/libs/@zag-js/react.mjs +1 -0
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +1 -0
- package/__app__/chunks/libs/bezier-js.mjs +1 -0
- package/__app__/chunks/libs/copy-anything.mjs +1 -0
- package/__app__/chunks/libs/d3-path.mjs +1 -0
- package/__app__/chunks/libs/d3-shape.mjs +1 -0
- package/__app__/chunks/libs/fast-equals.mjs +1 -0
- package/__app__/chunks/libs/framer-motion.mjs +9 -0
- package/__app__/chunks/libs/html-to-image.mjs +2 -0
- package/__app__/chunks/libs/motion-dom.mjs +1 -0
- package/__app__/chunks/libs/nanostores.mjs +1 -0
- package/__app__/chunks/libs/react-error-boundary.mjs +1 -0
- package/__app__/chunks/libs/react-resizable-panels.mjs +1 -0
- package/__app__/chunks/libs/remeda.mjs +1 -0
- package/__app__/chunks/libs/superjson.mjs +1 -0
- package/__app__/chunks/libs/zod.mjs +64 -0
- package/__app__/chunks/rolldown-runtime.mjs +1 -0
- package/__app__/chunks/styles.css.mjs +1 -0
- package/__app__/chunks/txt.mjs +1 -0
- package/__app__/chunks/useLikeC4Project.mjs +1 -0
- package/__app__/codegen/react.mjs +11 -0
- package/__app__/codegen/webcomponent.mjs +942 -0
- package/__app__/src/aichat/index.mjs +1 -0
- package/__app__/src/fonts.css +1 -1
- package/__app__/src/main.mjs +45 -0
- package/__app__/src/pages/AdHocViewEditor.mjs +1 -0
- package/__app__/src/pages/EmbedPage.mjs +1 -0
- package/__app__/src/pages/ExportPage.mjs +1 -0
- package/__app__/src/pages/ProjectsOverview.mjs +1 -0
- package/__app__/src/pages/ViewAsD2.mjs +1 -0
- package/__app__/src/pages/ViewAsDot.mjs +1 -0
- package/__app__/src/pages/ViewAsMmd.mjs +1 -0
- package/__app__/src/pages/ViewAsPuml.mjs +1 -0
- package/__app__/src/pages/ViewEditor.mjs +1 -0
- package/__app__/src/pages/ViewReact.mjs +1 -0
- 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 +17 -0
- package/dist/{_chunks → chunks}/index.d.mts +2 -1
- package/dist/{_chunks → chunks}/index2.d.mts +639 -388
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -0
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +9 -0
- package/dist/chunks/libs/@chevrotain/utils.mjs +1 -0
- package/dist/chunks/libs/@hono/mcp.mjs +70 -0
- package/dist/chunks/libs/@hono/node-server.mjs +1 -0
- package/dist/{_chunks → chunks}/libs/@logtape/logtape.d.mts +2 -0
- package/dist/chunks/libs/@logtape/logtape.mjs +4 -0
- package/dist/chunks/libs/@lume/kiwi.mjs +1 -0
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +12 -0
- 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/ajv.mjs +1 -0
- package/dist/chunks/libs/ansi-align.mjs +2 -0
- package/dist/chunks/libs/ansi-regex.mjs +1 -0
- package/dist/chunks/libs/ansi-styles.mjs +1 -0
- package/dist/chunks/libs/atomically.mjs +1 -0
- package/dist/chunks/libs/birpc.mjs +1 -0
- package/dist/chunks/libs/boxen.mjs +22 -0
- package/dist/chunks/libs/chevrotain-allstar.mjs +2 -0
- package/dist/chunks/libs/chevrotain.mjs +58 -0
- package/dist/chunks/libs/conf.mjs +1 -0
- package/dist/chunks/libs/defu.mjs +1 -0
- package/dist/chunks/libs/destr.mjs +1 -0
- package/dist/chunks/libs/eventemitter3.mjs +1 -0
- package/dist/chunks/libs/find-up-simple.mjs +1 -0
- package/dist/chunks/libs/get-port.mjs +1 -0
- package/dist/chunks/libs/hono.mjs +1 -0
- package/dist/chunks/libs/is-docker.mjs +1 -0
- package/dist/chunks/libs/is-error-instance.mjs +1 -0
- package/dist/chunks/libs/is-inside-container.mjs +1 -0
- package/dist/chunks/libs/is-plain-obj.mjs +1 -0
- package/dist/chunks/libs/isexe.mjs +1 -0
- package/dist/chunks/libs/json5.mjs +14 -0
- package/dist/chunks/libs/khroma.mjs +1 -0
- package/dist/chunks/libs/ky.mjs +3 -0
- package/dist/{_chunks → chunks}/libs/langium.d.mts +9 -9
- package/dist/chunks/libs/langium.mjs +32 -0
- package/dist/chunks/libs/merge-error-cause.mjs +2 -0
- package/dist/chunks/libs/p-debounce.mjs +1 -0
- package/dist/chunks/libs/p-limit.mjs +1 -0
- package/dist/chunks/libs/p-queue.mjs +1 -0
- package/dist/chunks/libs/p-timeout.mjs +1 -0
- package/dist/chunks/libs/package-manager-detector.mjs +1 -0
- package/dist/chunks/libs/package-up.mjs +1 -0
- package/dist/chunks/libs/pako.mjs +3 -0
- package/dist/chunks/libs/parse-ms.mjs +1 -0
- package/dist/chunks/libs/pathe.mjs +1 -0
- package/dist/chunks/libs/picomatch.mjs +1 -0
- package/dist/chunks/libs/pretty-ms.mjs +1 -0
- package/dist/chunks/libs/remeda.mjs +1 -0
- package/dist/chunks/libs/safe-stringify.mjs +1 -0
- package/dist/chunks/libs/strip-indent.mjs +1 -0
- package/dist/chunks/libs/tinyrainbow.mjs +1 -0
- package/dist/chunks/libs/ts-graphviz.mjs +1 -0
- package/dist/chunks/libs/ufo.mjs +1 -0
- package/dist/chunks/libs/unctx.mjs +1 -0
- package/dist/chunks/libs/unstorage.mjs +1 -0
- package/dist/chunks/libs/vscode-languageserver.mjs +1 -0
- package/dist/chunks/libs/which.mjs +1 -0
- package/dist/chunks/libs/word-wrap.mjs +12 -0
- package/dist/{_chunks → chunks}/libs/zod.d.mts +62 -25
- package/dist/chunks/node.mjs +93 -0
- package/dist/chunks/plugin.mjs +593 -0
- package/dist/chunks/rolldown-runtime.mjs +1 -0
- package/dist/chunks/sequence-view.mjs +1 -0
- package/dist/cli/index.mjs +188 -59
- package/dist/config/index.d.mts +1 -2
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +2 -135
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +3 -2
- package/dist/model/index.mjs +1 -1
- package/dist/vite-plugin/index.d.mts +90 -9
- package/dist/vite-plugin/index.mjs +1 -1
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.mjs +1 -0
- package/dist/vite-plugin/internal/chunks/libs/birpc.mjs +1 -0
- package/dist/vite-plugin/internal/chunks/libs/fast-equals.mjs +1 -0
- package/dist/vite-plugin/internal/chunks/libs/nanostores.mjs +1 -0
- package/dist/vite-plugin/internal/chunks/libs/remeda.mjs +1 -0
- package/dist/vite-plugin/internal/chunks/rolldown-runtime.mjs +1 -0
- package/dist/{_chunks/libs/@nanostores/react.d.mts → vite-plugin/internal/index.d.mts} +103 -45
- package/dist/vite-plugin/internal/index.mjs +1 -0
- package/package.json +74 -80
- package/react/index.d.mts +84 -78
- package/react/index.mjs +51954 -53701
- package/vite-plugin/internal/package.json +2 -2
- package/vite-plugin-modules.d.ts +18 -0
- package/__app__/react/likec4.tsx +0 -25
- package/__app__/src/ProjectsOverview.js +0 -16
- package/__app__/src/const.js +0 -19
- package/__app__/src/likec4.js +0 -21254
- package/__app__/src/main.js +0 -7
- package/__app__/src/routes/index.js +0 -324
- package/__app__/src/routes/projects.js +0 -193
- package/__app__/src/routes/single.js +0 -1983
- package/__app__/src/vendors.js +0 -52683
- package/__app__/src/webcomponent.js +0 -68
- package/dist/THIRD-PARTY-LICENSES.md +0 -1609
- package/dist/_chunks/libs/@chevrotain/cst-dts-gen.mjs +0 -30
- package/dist/_chunks/libs/@chevrotain/regexp-to-ast.mjs +0 -9
- package/dist/_chunks/libs/@chevrotain/types.d.mts +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.mjs +0 -4
- package/dist/_chunks/libs/@lume/kiwi.mjs +0 -1
- package/dist/_chunks/libs/@modelcontextprotocol/sdk.mjs +0 -12
- package/dist/_chunks/libs/@nanostores/react.mjs +0 -1
- 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/birpc.mjs +0 -1
- package/dist/_chunks/libs/boxen.mjs +0 -22
- package/dist/_chunks/libs/chevrotain-allstar.mjs +0 -2
- package/dist/_chunks/libs/chevrotain.mjs +0 -58
- 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/esm-env.mjs +0 -1
- package/dist/_chunks/libs/eventemitter3.mjs +0 -1
- package/dist/_chunks/libs/fast-equals.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/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/json5.mjs +0 -14
- package/dist/_chunks/libs/khroma.mjs +0 -1
- package/dist/_chunks/libs/ky.mjs +0 -3
- package/dist/_chunks/libs/langium.mjs +0 -33
- package/dist/_chunks/libs/merge-error-cause.mjs +0 -2
- package/dist/_chunks/libs/p-limit.mjs +0 -1
- package/dist/_chunks/libs/p-queue.mjs +0 -1
- package/dist/_chunks/libs/p-timeout.mjs +0 -1
- package/dist/_chunks/libs/package-manager-detector.mjs +0 -1
- package/dist/_chunks/libs/package-up.mjs +0 -1
- package/dist/_chunks/libs/pako.mjs +0 -1
- package/dist/_chunks/libs/parse-ms.mjs +0 -1
- package/dist/_chunks/libs/pathe.mjs +0 -1
- package/dist/_chunks/libs/picomatch.mjs +0 -1
- package/dist/_chunks/libs/pretty-ms.mjs +0 -1
- package/dist/_chunks/libs/remeda.mjs +0 -2
- 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 -10
- package/dist/_chunks/libs/ts-graphviz.mjs +0 -4
- package/dist/_chunks/libs/ufo.mjs +0 -1
- package/dist/_chunks/libs/unstorage.mjs +0 -1
- package/dist/_chunks/libs/vscode-languageserver.mjs +0 -1
- package/dist/_chunks/libs/which.mjs +0 -1
- package/dist/_chunks/libs/word-wrap.mjs +0 -12
- package/dist/_chunks/node.mjs +0 -76
- package/dist/_chunks/rolldown-runtime.mjs +0 -1
- package/dist/_chunks/sequence.mjs +0 -1
- package/dist/_chunks/src.mjs +0 -17
- package/dist/_chunks/src2.mjs +0 -499
- package/dist/vite-plugin/internal.d.mts +0 -44
- package/dist/vite-plugin/internal.mjs +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { i as __name } from "../rolldown-runtime.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.d.cts
|
|
2
4
|
type _JSONSchema = boolean | JSONSchema;
|
|
3
5
|
type JSONSchema = {
|
|
4
6
|
[k: string]: unknown;
|
|
@@ -66,7 +68,7 @@ type JSONSchema = {
|
|
|
66
68
|
};
|
|
67
69
|
type BaseSchema = JSONSchema;
|
|
68
70
|
//#endregion
|
|
69
|
-
//#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
|
|
70
72
|
/** The Standard interface. */
|
|
71
73
|
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
72
74
|
/** The Standard properties. */
|
|
@@ -185,7 +187,7 @@ declare namespace StandardJSONSchemaV1 {
|
|
|
185
187
|
}
|
|
186
188
|
interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
|
|
187
189
|
//#endregion
|
|
188
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
190
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.d.cts
|
|
189
191
|
declare const $output: unique symbol;
|
|
190
192
|
type $output = typeof $output;
|
|
191
193
|
declare const $input: unique symbol;
|
|
@@ -212,7 +214,7 @@ interface JSONSchemaMeta {
|
|
|
212
214
|
}
|
|
213
215
|
interface GlobalMeta extends JSONSchemaMeta {}
|
|
214
216
|
//#endregion
|
|
215
|
-
//#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
|
|
216
218
|
type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
|
|
217
219
|
interface JSONSchemaGeneratorParams {
|
|
218
220
|
processors: Record<string, Processor>;
|
|
@@ -301,7 +303,7 @@ interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
|
|
|
301
303
|
"~standard": ZodStandardSchemaWithJSON$1<T>;
|
|
302
304
|
}
|
|
303
305
|
//#endregion
|
|
304
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
306
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.d.cts
|
|
305
307
|
type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
|
|
306
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 & {});
|
|
307
309
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
@@ -312,6 +314,7 @@ type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
|
312
314
|
[k: string]: unknown;
|
|
313
315
|
};
|
|
314
316
|
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
|
|
317
|
+
type Writeable<T> = { -readonly [P in keyof T]: T[P] } & {};
|
|
315
318
|
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
|
|
316
319
|
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
317
320
|
readonly [Symbol.toStringTag]: string;
|
|
@@ -341,14 +344,14 @@ declare abstract class Class {
|
|
|
341
344
|
constructor(..._args: any[]);
|
|
342
345
|
}
|
|
343
346
|
//#endregion
|
|
344
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
347
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.d.cts
|
|
345
348
|
declare const version: {
|
|
346
349
|
readonly major: 4;
|
|
347
|
-
readonly minor:
|
|
350
|
+
readonly minor: 4;
|
|
348
351
|
readonly patch: number;
|
|
349
352
|
};
|
|
350
353
|
//#endregion
|
|
351
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
354
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.d.cts
|
|
352
355
|
interface ParseContext<T extends $ZodIssueBase = never> {
|
|
353
356
|
/** Customize error messages. */
|
|
354
357
|
readonly error?: $ZodErrorMap<T>;
|
|
@@ -366,8 +369,13 @@ interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseCon
|
|
|
366
369
|
interface ParsePayload<T = unknown> {
|
|
367
370
|
value: T;
|
|
368
371
|
issues: $ZodRawIssue[];
|
|
369
|
-
/** A
|
|
372
|
+
/** A way to mark a whole payload as aborted. Used in codecs/pipes. */
|
|
370
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;
|
|
371
379
|
}
|
|
372
380
|
type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
|
|
373
381
|
interface $ZodTypeDef {
|
|
@@ -509,10 +517,25 @@ interface $ZodNanoID extends $ZodType {
|
|
|
509
517
|
_zod: $ZodNanoIDInternals;
|
|
510
518
|
}
|
|
511
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
|
+
*/
|
|
512
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
|
+
*/
|
|
513
531
|
interface $ZodCUID extends $ZodType {
|
|
514
532
|
_zod: $ZodCUIDInternals;
|
|
515
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
|
+
*/
|
|
516
539
|
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
517
540
|
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
518
541
|
interface $ZodCUID2 extends $ZodType {
|
|
@@ -1320,13 +1343,13 @@ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
|
1320
1343
|
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
1321
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;
|
|
1322
1345
|
//#endregion
|
|
1323
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1346
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.d.cts
|
|
1324
1347
|
interface $ZodCheckDef {
|
|
1325
1348
|
check: string;
|
|
1326
1349
|
error?: $ZodErrorMap<never> | undefined;
|
|
1327
1350
|
/** If true, no later checks will be executed if this check fails. Default `false`. */
|
|
1328
1351
|
abort?: boolean | undefined;
|
|
1329
|
-
/** If provided,
|
|
1352
|
+
/** If provided, the check runs only when this returns `true`. By default, it is skipped if prior parsing produced aborting issues. */
|
|
1330
1353
|
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
1331
1354
|
}
|
|
1332
1355
|
interface $ZodCheckInternals<T> {
|
|
@@ -1502,7 +1525,7 @@ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
|
|
|
1502
1525
|
}
|
|
1503
1526
|
declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
|
|
1504
1527
|
//#endregion
|
|
1505
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1528
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.d.cts
|
|
1506
1529
|
interface $ZodIssueBase {
|
|
1507
1530
|
readonly code?: string;
|
|
1508
1531
|
readonly input?: unknown;
|
|
@@ -1554,6 +1577,7 @@ interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
|
|
|
1554
1577
|
readonly errors: $ZodIssue[][];
|
|
1555
1578
|
readonly input?: unknown;
|
|
1556
1579
|
readonly discriminator?: string | undefined;
|
|
1580
|
+
readonly options?: Primitive[];
|
|
1557
1581
|
readonly inclusive?: true;
|
|
1558
1582
|
}
|
|
1559
1583
|
interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
|
|
@@ -1623,7 +1647,7 @@ type $ZodFormattedError<T, U = string> = {
|
|
|
1623
1647
|
_errors: U[];
|
|
1624
1648
|
} & Flatten<_ZodFormattedError<T, U>>;
|
|
1625
1649
|
//#endregion
|
|
1626
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1650
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.d.cts
|
|
1627
1651
|
type ZodTrait = {
|
|
1628
1652
|
_zod: {
|
|
1629
1653
|
def: any;
|
|
@@ -1666,7 +1690,7 @@ type output<T> = T extends {
|
|
|
1666
1690
|
};
|
|
1667
1691
|
} ? T["_zod"]["output"] : unknown;
|
|
1668
1692
|
//#endregion
|
|
1669
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1693
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.d.cts
|
|
1670
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] ? {} : {
|
|
1671
1695
|
error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
1672
1696
|
message?: string | undefined;
|
|
@@ -1684,6 +1708,11 @@ type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">
|
|
|
1684
1708
|
type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
|
|
1685
1709
|
type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
|
|
1686
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
|
+
*/
|
|
1687
1716
|
type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
|
|
1688
1717
|
type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
|
|
1689
1718
|
type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
|
|
@@ -1725,8 +1754,12 @@ type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T,
|
|
|
1725
1754
|
interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
|
|
1726
1755
|
addIssue(arg: string | $ZodSuperRefineIssue): void;
|
|
1727
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
|
+
}
|
|
1728
1761
|
//#endregion
|
|
1729
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1762
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.d.cts
|
|
1730
1763
|
/** An Error-like class used to store Zod validation issues. */
|
|
1731
1764
|
interface ZodError<T = unknown> extends $ZodError<T> {
|
|
1732
1765
|
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
@@ -1744,7 +1777,7 @@ interface ZodError<T = unknown> extends $ZodError<T> {
|
|
|
1744
1777
|
}
|
|
1745
1778
|
declare const ZodError: $constructor<ZodError>;
|
|
1746
1779
|
//#endregion
|
|
1747
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1780
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.d.cts
|
|
1748
1781
|
type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
|
1749
1782
|
type ZodSafeParseSuccess<T> = {
|
|
1750
1783
|
success: true;
|
|
@@ -1757,7 +1790,7 @@ type ZodSafeParseError<T> = {
|
|
|
1757
1790
|
error: ZodError<T>;
|
|
1758
1791
|
};
|
|
1759
1792
|
//#endregion
|
|
1760
|
-
//#region ../../node_modules/.pnpm/zod@4.3
|
|
1793
|
+
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.d.cts
|
|
1761
1794
|
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
1762
1795
|
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
1763
1796
|
def: Internals["def"];
|
|
@@ -1792,7 +1825,7 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
|
|
|
1792
1825
|
safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
|
|
1793
1826
|
safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1794
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;
|
|
1795
|
-
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;
|
|
1796
1829
|
overwrite(fn: (x: output<this>) => output<this>): this;
|
|
1797
1830
|
optional(): ZodOptional<this>;
|
|
1798
1831
|
exactOptional(): ZodExactOptional<this>;
|
|
@@ -1884,7 +1917,11 @@ interface ZodString extends _ZodString<$ZodStringInternals<string>> {
|
|
|
1884
1917
|
nanoid(params?: string | $ZodCheckNanoIDParams): this;
|
|
1885
1918
|
/** @deprecated Use `z.guid()` instead. */
|
|
1886
1919
|
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
1887
|
-
/**
|
|
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
|
+
*/
|
|
1888
1925
|
cuid(params?: string | $ZodCheckCUIDParams): this;
|
|
1889
1926
|
/** @deprecated Use `z.cuid2()` instead. */
|
|
1890
1927
|
cuid2(params?: string | $ZodCheckCUID2Params): this;
|
|
@@ -1985,18 +2022,18 @@ interface ZodObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape
|
|
|
1985
2022
|
strict(): ZodObject<Shape, $strict>;
|
|
1986
2023
|
/** This is the default behavior. This method call is likely unnecessary. */
|
|
1987
2024
|
strip(): ZodObject<Shape, $strip>;
|
|
1988
|
-
extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, U
|
|
1989
|
-
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>;
|
|
1990
2027
|
/**
|
|
1991
2028
|
* @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
1992
2029
|
*/
|
|
1993
2030
|
merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
|
|
1994
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>;
|
|
1995
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>;
|
|
1996
|
-
partial(): ZodObject<{ [k in keyof Shape]: ZodOptional<Shape[k]> }, Config>;
|
|
1997
|
-
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>;
|
|
1998
|
-
required(): ZodObject<{ [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config>;
|
|
1999
|
-
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>;
|
|
2000
2037
|
}
|
|
2001
2038
|
declare const ZodObject: $constructor<ZodObject>;
|
|
2002
2039
|
interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
|