likec4 1.56.0 → 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.
Files changed (154) hide show
  1. package/__app__/chunks/AIChat2.mjs +2 -0
  2. package/__app__/chunks/DiagramActorProvider.mjs +4 -4
  3. package/__app__/chunks/EmbedPage.mjs +1 -0
  4. package/__app__/chunks/ExportPage.mjs +2 -0
  5. package/__app__/chunks/LikeC4Diagram.mjs +5 -5
  6. package/__app__/chunks/LikeC4Styles.mjs +11 -11
  7. package/__app__/chunks/Markdown.mjs +1 -0
  8. package/__app__/chunks/NavigationPanel.mjs +1 -1
  9. package/__app__/chunks/ViewReact.mjs +1 -1
  10. package/__app__/chunks/adhoc-editor.mjs +1 -1
  11. package/__app__/chunks/aichat.mjs +1 -0
  12. package/__app__/chunks/box.mjs +1 -0
  13. package/__app__/chunks/create-style-context.mjs +1 -0
  14. package/__app__/chunks/css.mjs +1 -0
  15. package/__app__/chunks/factory.mjs +1 -0
  16. package/__app__/chunks/hooks.mjs +1 -1
  17. package/__app__/chunks/hstack.mjs +1 -0
  18. package/__app__/chunks/libs/@dagrejs/dagre.mjs +1 -1
  19. package/__app__/chunks/libs/@floating-ui/core.mjs +1 -1
  20. package/__app__/chunks/libs/@floating-ui/dom.mjs +1 -1
  21. package/__app__/chunks/libs/@floating-ui/react.mjs +1 -1
  22. package/__app__/chunks/libs/@mantine/core.mjs +24 -24
  23. package/__app__/chunks/libs/@mantine/hooks.mjs +1 -1
  24. package/__app__/chunks/libs/@nanostores/react.mjs +1 -1
  25. package/__app__/chunks/libs/@react-hookz/web.mjs +1 -1
  26. package/__app__/chunks/libs/@tabler/icons-react.mjs +347 -4
  27. package/__app__/chunks/libs/@tanstack/ai-client.mjs +2 -0
  28. package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +1 -0
  29. package/__app__/chunks/libs/@tanstack/ai-react.mjs +1 -0
  30. package/__app__/chunks/libs/@tanstack/ai.mjs +2 -0
  31. package/__app__/chunks/libs/@tanstack/history.mjs +1 -1
  32. package/__app__/chunks/libs/@tanstack/react-router.mjs +3 -3
  33. package/__app__/chunks/libs/@tanstack/router-core.mjs +1 -1
  34. package/__app__/chunks/libs/@xstate/react.mjs +1 -1
  35. package/__app__/chunks/libs/@xstate/store.mjs +1 -1
  36. package/__app__/chunks/libs/@xyflow/react.mjs +3 -3
  37. package/__app__/chunks/libs/@zag-js/anatomy.mjs +1 -1
  38. package/__app__/chunks/libs/@zag-js/collection.mjs +1 -1
  39. package/__app__/chunks/libs/@zag-js/core.mjs +1 -1
  40. package/__app__/chunks/libs/@zag-js/react.mjs +1 -1
  41. package/__app__/chunks/libs/@zag-js/tree-view.mjs +1 -1
  42. package/__app__/chunks/libs/bezier-js.mjs +1 -1
  43. package/__app__/chunks/libs/copy-anything.mjs +1 -0
  44. package/__app__/chunks/libs/d3-path.mjs +1 -1
  45. package/__app__/chunks/libs/d3-shape.mjs +1 -1
  46. package/__app__/chunks/libs/fast-equals.mjs +1 -1
  47. package/__app__/chunks/libs/framer-motion.mjs +3 -3
  48. package/__app__/chunks/libs/html-to-image.mjs +2 -2
  49. package/__app__/chunks/libs/motion-dom.mjs +1 -1
  50. package/__app__/chunks/libs/nanostores.mjs +1 -1
  51. package/__app__/chunks/libs/react-error-boundary.mjs +1 -1
  52. package/__app__/chunks/libs/react-resizable-panels.mjs +1 -1
  53. package/__app__/chunks/libs/remeda.mjs +1 -1
  54. package/__app__/chunks/libs/superjson.mjs +1 -0
  55. package/__app__/chunks/libs/zod.mjs +39 -14
  56. package/__app__/chunks/rolldown-runtime.mjs +1 -1
  57. package/__app__/chunks/styles.css.mjs +1 -1
  58. package/__app__/chunks/txt.mjs +1 -0
  59. package/__app__/chunks/useLikeC4Project.mjs +1 -1
  60. package/__app__/codegen/webcomponent.mjs +221 -69
  61. package/__app__/src/aichat/index.mjs +1 -0
  62. package/__app__/src/main.mjs +45 -1
  63. package/__app__/src/pages/AdHocViewEditor.mjs +1 -1
  64. package/__app__/src/pages/EmbedPage.mjs +1 -1
  65. package/__app__/src/pages/ExportPage.mjs +1 -1
  66. package/__app__/src/pages/ProjectsOverview.mjs +1 -1
  67. package/__app__/src/pages/ViewAsD2.mjs +1 -1
  68. package/__app__/src/pages/ViewAsDot.mjs +1 -1
  69. package/__app__/src/pages/ViewAsMmd.mjs +1 -1
  70. package/__app__/src/pages/ViewAsPuml.mjs +1 -1
  71. package/__app__/src/pages/ViewEditor.mjs +1 -1
  72. package/__app__/src/style.css +1 -1
  73. package/config/schema.json +14 -41
  74. package/dist/chunks/enableServer.mjs +1 -0
  75. package/dist/chunks/index2.d.mts +569 -377
  76. package/dist/chunks/libs/@hono/mcp.mjs +33 -8
  77. package/dist/chunks/libs/@hono/node-server.mjs +1 -1
  78. package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +7 -7
  79. package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
  80. package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
  81. package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
  82. package/dist/chunks/libs/ajv.mjs +1 -1
  83. package/dist/chunks/libs/ansi-styles.mjs +1 -1
  84. package/dist/chunks/libs/boxen.mjs +2 -2
  85. package/dist/chunks/libs/chevrotain.mjs +2 -2
  86. package/dist/chunks/libs/conf.mjs +1 -1
  87. package/dist/chunks/libs/langium.d.mts +5 -5
  88. package/dist/chunks/libs/langium.mjs +10 -10
  89. package/dist/chunks/libs/merge-error-cause.mjs +1 -1
  90. package/dist/chunks/libs/pako.mjs +3 -1
  91. package/dist/chunks/libs/remeda.mjs +1 -1
  92. package/dist/chunks/libs/ts-graphviz.mjs +1 -4
  93. package/dist/chunks/libs/unctx.mjs +1 -0
  94. package/dist/chunks/libs/vscode-languageserver.mjs +1 -1
  95. package/dist/chunks/libs/zod.d.mts +60 -25
  96. package/dist/chunks/node.mjs +62 -45
  97. package/dist/chunks/plugin.mjs +234 -41
  98. package/dist/chunks/sequence-view.mjs +1 -1
  99. package/dist/cli/index.mjs +142 -139
  100. package/dist/index.d.mts +1 -130
  101. package/dist/model/index.d.mts +1 -1
  102. package/dist/vite-plugin/index.d.mts +53 -2
  103. package/dist/vite-plugin/internal/index.d.mts +331 -3
  104. package/dist/vite-plugin/internal/index.mjs +1 -1
  105. package/package.json +65 -51
  106. package/react/index.d.mts +82 -50
  107. package/react/index.mjs +34017 -32421
  108. package/vite-plugin-modules.d.ts +4 -0
  109. package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
  110. package/__app__/chunks/Fallback.mjs +0 -1
  111. package/__app__/chunks/Header.mjs +0 -13
  112. package/__app__/chunks/IconRenderer.mjs +0 -1
  113. package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
  114. package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
  115. package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
  116. package/__app__/chunks/__root.mjs +0 -1
  117. package/__app__/chunks/libs/motion.mjs +0 -1
  118. package/__app__/chunks/libs/xstate.mjs +0 -1
  119. package/__app__/chunks/safeCtx.mjs +0 -1
  120. package/__app__/chunks/searchParams.mjs +0 -1
  121. package/__app__/chunks/single-index.mjs +0 -1
  122. package/__app__/chunks/styled-system.mjs +0 -1
  123. package/__app__/chunks/useUpdateEffect.mjs +0 -1
  124. package/__app__/src/routeTree.gen.mjs +0 -1
  125. package/__app__/src/routes/__root.mjs +0 -1
  126. package/__app__/src/routes/_single/adhoc.mjs +0 -1
  127. package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
  128. package/__app__/src/routes/_single/export._viewId.mjs +0 -1
  129. package/__app__/src/routes/_single/route.mjs +0 -1
  130. package/__app__/src/routes/_single/single-index.mjs +0 -1
  131. package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
  132. package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
  133. package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
  134. package/__app__/src/routes/_single/view._viewId.mjs +0 -1
  135. package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
  136. package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
  137. package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
  138. package/__app__/src/routes/index.mjs +0 -1
  139. package/__app__/src/routes/project._projectId/-components.mjs +0 -1
  140. package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
  141. package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
  142. package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
  143. package/__app__/src/routes/project._projectId/index.mjs +0 -1
  144. package/__app__/src/routes/project._projectId/route.mjs +0 -1
  145. package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
  146. package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
  147. package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
  148. package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
  149. package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
  150. package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
  151. package/__app__/src/routes/projects.mjs +0 -1
  152. package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
  153. package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
  154. package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
@@ -1,6 +1,6 @@
1
1
  import { i as __name } from "../rolldown-runtime.mjs";
2
2
 
3
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.cts
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.6/node_modules/zod/v4/core/standard-schema.d.cts
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.6/node_modules/zod/v4/core/registries.d.cts
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.6/node_modules/zod/v4/core/to-json-schema.d.cts
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.6/node_modules/zod/v4/core/util.d.cts
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.6/node_modules/zod/v4/core/versions.d.cts
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: 3;
350
+ readonly minor: 4;
350
351
  readonly patch: number;
351
352
  };
352
353
  //#endregion
353
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.d.cts
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 may to mark a whole payload as aborted. Used in codecs/pipes. */
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.6/node_modules/zod/v4/core/checks.d.cts
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, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
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.6/node_modules/zod/v4/core/errors.d.cts
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.6/node_modules/zod/v4/core/core.d.cts
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.6/node_modules/zod/v4/core/api.d.cts
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.6/node_modules/zod/v4/classic/errors.d.cts
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.6/node_modules/zod/v4/classic/parse.d.cts
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.6/node_modules/zod/v4/classic/schemas.d.cts
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>): this;
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
- /** @deprecated Use `z.cuid()` instead. */
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>, Config>;
1991
- safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, U>, Config>;
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> {