likec4 1.58.0 → 1.59.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/webcomponent.mjs +14 -14
- package/__app__/src/chunks/AIChat.mjs +153 -156
- package/__app__/src/chunks/LikeC4Styles.mjs +1553 -1255
- package/__app__/src/chunks/ProjectsOverview.mjs +127 -130
- package/__app__/src/chunks/hooks.mjs +419 -106
- package/__app__/src/chunks/libs/@floating-ui.mjs +8 -8
- package/__app__/src/chunks/libs/@mantine.mjs +3039 -2135
- package/__app__/src/chunks/libs/@tanstack-ai.mjs +4 -4
- package/__app__/src/chunks/libs/@tanstack.mjs +93 -118
- package/__app__/src/chunks/libs/@xstate/react.mjs +30 -16
- package/__app__/src/chunks/libs/@xyflow/react.mjs +50 -26
- package/__app__/src/chunks/libs/bezier-js.mjs +11 -8
- package/__app__/src/chunks/libs/framer.mjs +1188 -1155
- package/__app__/src/chunks/libs/zod.mjs +191 -188
- package/__app__/src/chunks/rolldown-runtime.mjs +8 -1
- package/__app__/src/chunks/styled-system.mjs +23 -16
- package/__app__/src/main.mjs +22275 -9432
- package/__app__/src/style.css +1 -1
- package/dist/chunks/dist.mjs +10 -0
- package/dist/chunks/enableServer.mjs +1 -1
- package/dist/chunks/index.d.mts +9 -9
- package/dist/chunks/index2.d.mts +386 -229
- package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
- package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +1 -1
- package/dist/chunks/libs/@logtape/logtape.mjs +3 -3
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +1 -2
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -1
- package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
- package/dist/chunks/libs/chevrotain.mjs +4 -4
- package/dist/chunks/libs/json5.mjs +1 -1
- package/dist/chunks/libs/langium.d.mts +2940 -2914
- package/dist/chunks/libs/langium.mjs +9 -9
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/p-queue.mjs +1 -1
- package/dist/chunks/libs/package-manager-detector.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +1 -1
- package/dist/chunks/libs/picomatch.mjs +1 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/unstorage.d.mts +1 -0
- package/dist/chunks/libs/which.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +48 -36
- package/dist/chunks/libs/zod.mjs +4 -4
- package/dist/chunks/logger.mjs +1 -0
- package/dist/chunks/node.mjs +57 -66
- package/dist/chunks/rolldown-runtime.mjs +1 -1
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/chunks/vite-plugin.mjs +43 -43
- package/dist/cli/index.mjs +159 -157
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +1 -1
- package/dist/model/index.d.mts +5 -4
- package/dist/vite-plugin/index.d.mts +6 -9
- package/dist/vite-plugin/internal/index.d.mts +15 -10
- package/package.json +37 -37
- package/react/index.d.mts +761 -111
- package/react/index.mjs +13974 -10232
- package/__app__/src/chunks/DiagramActorProvider.mjs +0 -7638
- package/__app__/src/chunks/Markdown.mjs +0 -146
- package/__app__/src/chunks/NavigationPanel.mjs +0 -61
- package/__app__/src/chunks/adhoc-editor.mjs +0 -3386
- package/__app__/src/chunks/libs/@dagrejs/dagre.mjs +0 -1894
- package/__app__/src/chunks/libs/@tabler/icons-react.mjs +0 -252
- package/__app__/src/chunks/libs/remeda.mjs +0 -642
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,n as t,o as n,r,s as i,t as a}from"../rolldown-runtime.mjs";import{
|
|
1
|
+
import{i as e,n as t,o as n,r,s as i,t as a}from"../rolldown-runtime.mjs";import{stat as o}from"node:fs/promises";import{statSync as s}from"node:fs";var c=r({isexe:()=>l,sync:()=>u}),l,u,d,checkMode,f=t((()=>{l=e(async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return d(await o(e),t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`isexe`),u=e((e,t={})=>{let{ignoreErrors:n=!1}=t;try{return d(s(e),t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`sync`),d=e((e,t)=>e.isFile()&&checkMode(e,t),`checkStat`),checkMode=(e,t)=>{let n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??r[0];if(n===void 0||i===void 0)throw Error(`cannot get uid or gid`);let a=new Set([i,...r]),o=e.mode,s=e.uid,c=e.gid;return!!(o&1||o&8&&a.has(c)||o&64&&s===n||o&72&&n===0)}})),p=r({isexe:()=>m,sync:()=>h}),m,h,checkPathExt,checkStat,g=t((()=>{m=e(async(e,t={})=>{let{ignoreErrors:n=!1}=t;try{return checkStat(await o(e),e,t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`isexe`),h=e((e,t={})=>{let{ignoreErrors:n=!1}=t;try{return checkStat(s(e),e,t)}catch(e){let t=e;if(n||t.code===`EACCES`)return!1;throw t}},`sync`),checkPathExt=(e,t)=>{let{pathExt:n=process.env.PATHEXT||``}=t,r=n.split(`;`);if(r.indexOf(``)!==-1)return!0;for(let t=0;t<r.length;t++){let n=r[t].toLowerCase(),i=e.substring(e.length-n.length).toLowerCase();if(n&&i===n)return!0}return!1},checkStat=(e,t,n)=>e.isFile()&&checkPathExt(t,n)})),_=t((()=>{})),v=r({isexe:()=>b,posix:()=>c,sync:()=>x,win32:()=>p}),y,b,x,S=t((()=>{f(),g(),_(),y=(process.env._ISEXE_TEST_PLATFORM_||process.platform)===`win32`?p:c,b=y.isexe,x=y.sync})),C=a(((e,t)=>{let{isexe:r,sync:a}=(S(),i(v)),{join:o,delimiter:s,sep:c,posix:l}=n(`node:path`),u=process.platform===`win32`,d=new RegExp(`[${l.sep}${c===l.sep?``:c}]`.replace(/(\\)/g,`\\$1`)),f=RegExp(`^\\.${d.source}`),getNotFoundError=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),getPathInfo=(e,{path:t=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:r=s})=>{let i=e.match(d)?[``]:[...u?[process.cwd()]:[],...(t||``).split(r)];if(u){let t=n||[`.EXE`,`.CMD`,`.BAT`,`.COM`].join(r),a=t.split(r).flatMap(e=>[e,e.toLowerCase()]);return e.includes(`.`)&&a[0]!==``&&a.unshift(``),{pathEnv:i,pathExt:a,pathExtExe:t}}return{pathEnv:i,pathExt:[``]}},getPathPart=(e,t)=>{let n=/^".*"$/.test(e)?e.slice(1,-1):e;return(!n&&f.test(t)?t.slice(0,2):``)+o(n,t)},which=async(e,t={})=>{let{pathEnv:n,pathExt:i,pathExtExe:a}=getPathInfo(e,t),o=[];for(let s of n){let n=getPathPart(s,e);for(let e of i){let i=n+e;if(await r(i,{pathExt:a,ignoreErrors:!0})){if(!t.all)return i;o.push(i)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw getNotFoundError(e)},whichSync=(e,t={})=>{let{pathEnv:n,pathExt:r,pathExtExe:i}=getPathInfo(e,t),o=[];for(let s of n){let n=getPathPart(s,e);for(let e of r){let r=n+e;if(a(r,{pathExt:i,ignoreErrors:!0})){if(!t.all)return r;o.push(r)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw getNotFoundError(e)};t.exports=which,which.sync=whichSync}));export{C as t};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { i as __name } from "../rolldown-runtime.mjs";
|
|
2
|
-
|
|
3
2
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.d.cts
|
|
4
3
|
type _JSONSchema = boolean | JSONSchema;
|
|
5
4
|
type JSONSchema = {
|
|
@@ -192,7 +191,7 @@ declare const $output: unique symbol;
|
|
|
192
191
|
type $output = typeof $output;
|
|
193
192
|
declare const $input: unique symbol;
|
|
194
193
|
type $input = typeof $input;
|
|
195
|
-
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: { [K in keyof P]: $replace<P[K], S
|
|
194
|
+
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: { [K in keyof P]: $replace<P[K], S>; }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S>; } : Meta;
|
|
196
195
|
type MetadataType = object | undefined;
|
|
197
196
|
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
198
197
|
_meta: Meta;
|
|
@@ -313,24 +312,24 @@ type NoUndefined<T> = T extends undefined ? never : T;
|
|
|
313
312
|
type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
314
313
|
[k: string]: unknown;
|
|
315
314
|
};
|
|
316
|
-
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
|
|
317
|
-
type Writeable<T> = { -readonly [P in keyof T]: T[P] } & {};
|
|
318
|
-
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
|
|
315
|
+
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true; };
|
|
316
|
+
type Writeable<T> = { -readonly [P in keyof T]: T[P]; } & {};
|
|
317
|
+
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined; };
|
|
319
318
|
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
320
319
|
readonly [Symbol.toStringTag]: string;
|
|
321
320
|
} | Date | Error | Generator | Promise<unknown> | RegExp;
|
|
322
321
|
type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
|
|
323
322
|
type SomeObject = Record<PropertyKey, any>;
|
|
324
323
|
type Identity<T> = T;
|
|
325
|
-
type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
|
|
326
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
327
|
-
type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }>;
|
|
324
|
+
type Flatten<T> = Identity<{ [k in keyof T]: T[k]; }>;
|
|
325
|
+
type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
326
|
+
type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K]; } & { [K in keyof B]: B[K]; }>;
|
|
328
327
|
type TupleItems = ReadonlyArray<SomeType>;
|
|
329
328
|
type AnyFunc = (...args: any[]) => any;
|
|
330
329
|
type MaybeAsync<T> = T | Promise<T>;
|
|
331
330
|
type EnumValue = string | number;
|
|
332
331
|
type EnumLike = Readonly<Record<string, EnumValue>>;
|
|
333
|
-
type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k }>;
|
|
332
|
+
type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k; }>;
|
|
334
333
|
type Literal = string | number | bigint | boolean | null | undefined;
|
|
335
334
|
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
336
335
|
type HasLength = {
|
|
@@ -835,8 +834,8 @@ type OptionalInSchema = {
|
|
|
835
834
|
optin: "optional";
|
|
836
835
|
};
|
|
837
836
|
};
|
|
838
|
-
type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"] } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"] } & Extra>;
|
|
839
|
-
type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"] } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"] } & Extra>;
|
|
837
|
+
type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"]; } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"]; } & Extra>;
|
|
838
|
+
type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"]; } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"]; } & Extra>;
|
|
840
839
|
type $ZodObjectConfig = {
|
|
841
840
|
out: Record<string, unknown>;
|
|
842
841
|
in: Record<string, unknown>;
|
|
@@ -869,7 +868,9 @@ interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef
|
|
|
869
868
|
shape: Shape;
|
|
870
869
|
catchall?: $ZodType | undefined;
|
|
871
870
|
}
|
|
872
|
-
interface $ZodObjectInternals<
|
|
871
|
+
interface $ZodObjectInternals<
|
|
872
|
+
/** @ts-ignore Cast variance */
|
|
873
|
+
out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
873
874
|
def: $ZodObjectDef<Shape>;
|
|
874
875
|
config: Config;
|
|
875
876
|
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
@@ -880,7 +881,9 @@ interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends
|
|
|
880
881
|
optout?: "optional" | undefined;
|
|
881
882
|
}
|
|
882
883
|
type $ZodLooseShape = Record<string, any>;
|
|
883
|
-
interface $ZodObject<
|
|
884
|
+
interface $ZodObject<
|
|
885
|
+
/** @ts-ignore Cast variance */
|
|
886
|
+
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
|
|
884
887
|
declare const $ZodObject: $constructor<$ZodObject>;
|
|
885
888
|
type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
|
|
886
889
|
type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
|
|
@@ -928,10 +931,10 @@ interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends
|
|
|
928
931
|
rest: Rest;
|
|
929
932
|
}
|
|
930
933
|
type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
|
|
931
|
-
type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]
|
|
934
|
+
type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]>; };
|
|
932
935
|
type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
|
|
933
936
|
type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
|
|
934
|
-
type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]
|
|
937
|
+
type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]>; };
|
|
935
938
|
type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
|
|
936
939
|
interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
|
|
937
940
|
def: $ZodTupleDef<T, Rest>;
|
|
@@ -1001,7 +1004,9 @@ interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
|
1001
1004
|
type: "enum";
|
|
1002
1005
|
entries: T;
|
|
1003
1006
|
}
|
|
1004
|
-
interface $ZodEnumInternals<
|
|
1007
|
+
interface $ZodEnumInternals<
|
|
1008
|
+
/** @ts-ignore Cast variance */
|
|
1009
|
+
out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
|
|
1005
1010
|
def: $ZodEnumDef<T>;
|
|
1006
1011
|
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
1007
1012
|
values: PrimitiveSet;
|
|
@@ -1027,9 +1032,6 @@ interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
|
|
|
1027
1032
|
_zod: $ZodLiteralInternals<T>;
|
|
1028
1033
|
}
|
|
1029
1034
|
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
1030
|
-
type _File = typeof globalThis extends {
|
|
1031
|
-
File: infer F extends new (...args: any[]) => any;
|
|
1032
|
-
} ? InstanceType<F> : {};
|
|
1033
1035
|
/** Do not reference this directly. */
|
|
1034
1036
|
interface File extends _File {
|
|
1035
1037
|
readonly type: string;
|
|
@@ -1614,8 +1616,11 @@ interface $ZodIssueCustom extends $ZodIssueBase {
|
|
|
1614
1616
|
type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
|
|
1615
1617
|
type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
|
|
1616
1618
|
type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
|
|
1617
|
-
/** The input data */
|
|
1618
|
-
readonly
|
|
1619
|
+
/** The input data */
|
|
1620
|
+
readonly input: unknown;
|
|
1621
|
+
/** The schema or check that originated this issue. */
|
|
1622
|
+
readonly inst?: $ZodType | $ZodCheck;
|
|
1623
|
+
/** If `true`, Zod will continue executing checks/refinements after this issue. */
|
|
1619
1624
|
readonly continue?: boolean | undefined;
|
|
1620
1625
|
} & Record<string, unknown>> : never;
|
|
1621
1626
|
type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
|
|
@@ -1638,11 +1643,11 @@ declare const $ZodError: $constructor<$ZodError>;
|
|
|
1638
1643
|
type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
|
|
1639
1644
|
type _FlattenedError<T, U = string> = {
|
|
1640
1645
|
formErrors: U[];
|
|
1641
|
-
fieldErrors: { [P in keyof T]?: U[] };
|
|
1646
|
+
fieldErrors: { [P in keyof T]?: U[]; };
|
|
1642
1647
|
};
|
|
1643
|
-
type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U
|
|
1648
|
+
type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U>; } : T extends any[] ? {
|
|
1644
1649
|
[k: number]: $ZodFormattedError<T[number], U>;
|
|
1645
|
-
} : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U
|
|
1650
|
+
} : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U>; }> : any;
|
|
1646
1651
|
type $ZodFormattedError<T, U = string> = {
|
|
1647
1652
|
_errors: U[];
|
|
1648
1653
|
} & Flatten<_ZodFormattedError<T, U>>;
|
|
@@ -1663,7 +1668,7 @@ declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: st
|
|
|
1663
1668
|
}): $constructor<T, D>;
|
|
1664
1669
|
declare const $brand: unique symbol;
|
|
1665
1670
|
type $brand<T extends string | number | symbol = string | number | symbol> = {
|
|
1666
|
-
[$brand]: { [k in T]: true };
|
|
1671
|
+
[$brand]: { [k in T]: true; };
|
|
1667
1672
|
};
|
|
1668
1673
|
type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
|
|
1669
1674
|
_zod: {
|
|
@@ -1692,14 +1697,15 @@ type output<T> = T extends {
|
|
|
1692
1697
|
//#endregion
|
|
1693
1698
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.d.cts
|
|
1694
1699
|
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] ? {} : {
|
|
1695
|
-
error?: string | $ZodErrorMap<IssueTypes> | undefined;
|
|
1700
|
+
error?: string | $ZodErrorMap<IssueTypes> | undefined;
|
|
1701
|
+
/** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
1696
1702
|
message?: string | undefined;
|
|
1697
1703
|
})>>>;
|
|
1698
1704
|
type TypeParams<T extends $ZodType = $ZodType & {
|
|
1699
1705
|
_isst: never;
|
|
1700
1706
|
}, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
|
|
1701
|
-
type CheckParams<T extends $ZodCheck = $ZodCheck
|
|
1702
|
-
AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
|
|
1707
|
+
type CheckParams<T extends $ZodCheck = $ZodCheck // & { _issc: never },
|
|
1708
|
+
, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
|
|
1703
1709
|
type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
|
|
1704
1710
|
type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
|
|
1705
1711
|
type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
|
|
@@ -1748,7 +1754,9 @@ type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
|
|
|
1748
1754
|
type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
|
|
1749
1755
|
type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
|
|
1750
1756
|
type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
|
|
1751
|
-
/** The schema or check that originated this issue. */
|
|
1757
|
+
/** The schema or check that originated this issue. */
|
|
1758
|
+
readonly inst?: $ZodType | $ZodCheck;
|
|
1759
|
+
/** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
|
|
1752
1760
|
readonly continue?: boolean | undefined;
|
|
1753
1761
|
} & Record<string, unknown>> : never;
|
|
1754
1762
|
interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
|
|
@@ -2007,8 +2015,10 @@ interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInte
|
|
|
2007
2015
|
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2008
2016
|
}
|
|
2009
2017
|
declare const ZodArray: $constructor<ZodArray>;
|
|
2010
|
-
type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K] };
|
|
2011
|
-
interface ZodObject<
|
|
2018
|
+
type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K]; };
|
|
2019
|
+
interface ZodObject<
|
|
2020
|
+
/** @ts-ignore Cast variance */
|
|
2021
|
+
out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
|
|
2012
2022
|
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2013
2023
|
shape: Shape;
|
|
2014
2024
|
keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
|
|
@@ -2030,10 +2040,10 @@ interface ZodObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape
|
|
|
2030
2040
|
merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
|
|
2031
2041
|
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>;
|
|
2032
2042
|
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>;
|
|
2033
|
-
partial(): ZodObject<{ -readonly [k in keyof Shape]: ZodOptional<Shape[k]
|
|
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]
|
|
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>;
|
|
2043
|
+
partial(): ZodObject<{ -readonly [k in keyof Shape]: ZodOptional<Shape[k]>; }, Config>;
|
|
2044
|
+
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>;
|
|
2045
|
+
required(): ZodObject<{ -readonly [k in keyof Shape]: ZodNonOptional<Shape[k]>; }, Config>;
|
|
2046
|
+
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>;
|
|
2037
2047
|
}
|
|
2038
2048
|
declare const ZodObject: $constructor<ZodObject>;
|
|
2039
2049
|
interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
|
|
@@ -2051,7 +2061,9 @@ interface ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends Som
|
|
|
2051
2061
|
valueType: Value;
|
|
2052
2062
|
}
|
|
2053
2063
|
declare const ZodRecord: $constructor<ZodRecord>;
|
|
2054
|
-
interface ZodEnum<
|
|
2064
|
+
interface ZodEnum<
|
|
2065
|
+
/** @ts-ignore Cast variance */
|
|
2066
|
+
out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
|
|
2055
2067
|
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2056
2068
|
enum: T;
|
|
2057
2069
|
options: Array<T[keyof T]>;
|