@statelyai/sdk 0.39.1 → 0.41.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/README.md +10 -0
- package/dist/assetStorage.d.mts +1 -1
- package/dist/chunk-D1OLi6Wq.mjs +46 -0
- package/dist/editorHostProtocol.d.mts +3 -3
- package/dist/embed.d.mts +4 -3
- package/dist/embed.mjs +10 -3
- package/dist/{graph-CfWCJS4m.d.mts → graph-DbZdSisK.d.mts} +1 -1
- package/dist/graph.d.mts +1 -1
- package/dist/{index-DfMkVP94.d.mts → index-DqF1xP8P.d.mts} +50 -406
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +3 -3
- package/dist/{inspect-DXtP_tPO.mjs → inspect-CDjr4saL.mjs} +1 -1
- package/dist/{inspect-JNvMtuzC.d.mts → inspect-ruD95iBM.d.mts} +1 -1
- package/dist/inspect.d.mts +2 -2
- package/dist/inspect.mjs +2 -2
- package/dist/machineGraph-DYtFKHlq-BpWpGU22.mjs +3 -0
- package/dist/machineGraph-DYtFKHlq-ChbeTHlv.mjs +1023 -0
- package/dist/patchTypes.d.mts +1 -1
- package/dist/{protocol-D3XQmmmv.d.mts → protocol-BvElOcXs.d.mts} +17 -5
- package/dist/protocol.d.mts +1 -1
- package/dist/relay.d.mts +1 -1
- package/dist/rolldown-runtime-95iHPtFO-Bo6l7CbO.mjs +114 -0
- package/dist/{studio-DL0yj2Pi.mjs → schemas-DsQ8UYlM.mjs} +36 -1642
- package/dist/sourceCoverage.d.mts +101 -0
- package/dist/sourceCoverage.mjs +3572 -0
- package/dist/studio-DH7OeLao.mjs +1604 -0
- package/dist/{studio-ClBs4caM.d.mts → studio-DRw9sxCm.d.mts} +20 -2
- package/dist/studio.d.mts +1 -1
- package/dist/studio.mjs +1 -1
- package/dist/{version-gEUUpYtd.mjs → version-eag6cuvm.mjs} +1 -1
- package/dist/xstateSource-BUCx2xA4-CWteIFJn.d.mts +451 -0
- package/dist/xstateSource-JvwXWv6G-KnMMoZlG.mjs +151753 -0
- package/package.json +9 -5
- /package/dist/{editor-sync-types-Ch5P5XRj.d.mts → editor-sync-types-BjgSBGxf.d.mts} +0 -0
- /package/dist/{patchTypes-BZ7gzwAP.d.mts → patchTypes-BFlvJTDJ.d.mts} +0 -0
|
@@ -190,7 +190,7 @@ declare const $output: unique symbol;
|
|
|
190
190
|
type $output = typeof $output;
|
|
191
191
|
declare const $input: unique symbol;
|
|
192
192
|
type $input = typeof $input;
|
|
193
|
-
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input
|
|
193
|
+
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;
|
|
194
194
|
type MetadataType = object | undefined;
|
|
195
195
|
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
196
196
|
_meta: Meta;
|
|
@@ -296,7 +296,7 @@ interface ToJSONSchemaContext {
|
|
|
296
296
|
defs: Record<string, BaseSchema>;
|
|
297
297
|
} | undefined;
|
|
298
298
|
}
|
|
299
|
-
type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input
|
|
299
|
+
type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
300
300
|
interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
|
|
301
301
|
"~standard": ZodStandardSchemaWithJSON$1<T>;
|
|
302
302
|
}
|
|
@@ -434,7 +434,7 @@ interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeI
|
|
|
434
434
|
/** @internal The inferred input type */
|
|
435
435
|
input: I;
|
|
436
436
|
}
|
|
437
|
-
type $ZodStandardSchema<T> = StandardSchemaV1.Props<input
|
|
437
|
+
type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
|
|
438
438
|
type SomeType = {
|
|
439
439
|
_zod: _$ZodTypeInternals;
|
|
440
440
|
};
|
|
@@ -814,7 +814,7 @@ interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInt
|
|
|
814
814
|
def: $ZodArrayDef<T>;
|
|
815
815
|
isst: $ZodIssueInvalidType;
|
|
816
816
|
output: output<T>[];
|
|
817
|
-
input: input
|
|
817
|
+
input: input<T>[];
|
|
818
818
|
}
|
|
819
819
|
interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
|
|
820
820
|
declare const $ZodArray: $constructor<$ZodArray>;
|
|
@@ -829,7 +829,7 @@ type OptionalInSchema = {
|
|
|
829
829
|
};
|
|
830
830
|
};
|
|
831
831
|
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>;
|
|
832
|
-
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
|
|
832
|
+
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>;
|
|
833
833
|
type $ZodObjectConfig = {
|
|
834
834
|
out: Record<string, unknown>;
|
|
835
835
|
in: Record<string, unknown>;
|
|
@@ -851,7 +851,7 @@ type $catchall<T extends SomeType> = {
|
|
|
851
851
|
[k: string]: output<T>;
|
|
852
852
|
};
|
|
853
853
|
in: {
|
|
854
|
-
[k: string]: input
|
|
854
|
+
[k: string]: input<T>;
|
|
855
855
|
};
|
|
856
856
|
};
|
|
857
857
|
type $ZodShape = Readonly<{
|
|
@@ -876,7 +876,7 @@ type $ZodLooseShape = Record<string, any>;
|
|
|
876
876
|
interface $ZodObject< /** @ts-ignore Cast variance */out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
|
|
877
877
|
declare const $ZodObject: $constructor<$ZodObject>;
|
|
878
878
|
type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
|
|
879
|
-
type $InferUnionInput<T extends SomeType> = T extends any ? input
|
|
879
|
+
type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
|
|
880
880
|
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
881
881
|
type: "union";
|
|
882
882
|
options: Options;
|
|
@@ -921,7 +921,7 @@ interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends Som
|
|
|
921
921
|
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
922
922
|
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
923
923
|
output: output<A> & output<B>;
|
|
924
|
-
input: input
|
|
924
|
+
input: input<A> & input<B>;
|
|
925
925
|
}
|
|
926
926
|
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
927
927
|
_zod: $ZodIntersectionInternals<A, B>;
|
|
@@ -932,9 +932,9 @@ interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends
|
|
|
932
932
|
items: T;
|
|
933
933
|
rest: Rest;
|
|
934
934
|
}
|
|
935
|
-
type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input
|
|
936
|
-
type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input
|
|
937
|
-
type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input
|
|
935
|
+
type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
|
|
936
|
+
type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]> };
|
|
937
|
+
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> : [];
|
|
938
938
|
type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
|
|
939
939
|
type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]> };
|
|
940
940
|
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> : [];
|
|
@@ -957,7 +957,7 @@ interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends
|
|
|
957
957
|
mode?: "strict" | "loose";
|
|
958
958
|
}
|
|
959
959
|
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
960
|
-
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input
|
|
960
|
+
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key> & PropertyKey, input<Value>>> : Record<input<Key> & PropertyKey, input<Value>>;
|
|
961
961
|
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
|
962
962
|
def: $ZodRecordDef<Key, Value>;
|
|
963
963
|
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
|
@@ -976,7 +976,7 @@ interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $
|
|
|
976
976
|
keyType: Key;
|
|
977
977
|
valueType: Value;
|
|
978
978
|
}
|
|
979
|
-
interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input
|
|
979
|
+
interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
|
|
980
980
|
def: $ZodMapDef<Key, Value>;
|
|
981
981
|
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
|
|
982
982
|
optin?: "optional" | undefined;
|
|
@@ -990,7 +990,7 @@ interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
990
990
|
type: "set";
|
|
991
991
|
valueType: T;
|
|
992
992
|
}
|
|
993
|
-
interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input
|
|
993
|
+
interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
|
|
994
994
|
def: $ZodSetDef<T>;
|
|
995
995
|
isst: $ZodIssueInvalidType;
|
|
996
996
|
optin?: "optional" | undefined;
|
|
@@ -1072,7 +1072,7 @@ interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1072
1072
|
type: "optional";
|
|
1073
1073
|
innerType: T;
|
|
1074
1074
|
}
|
|
1075
|
-
interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input
|
|
1075
|
+
interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
|
|
1076
1076
|
def: $ZodOptionalDef<T>;
|
|
1077
1077
|
optin: "optional";
|
|
1078
1078
|
optout: "optional";
|
|
@@ -1088,7 +1088,7 @@ interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOption
|
|
|
1088
1088
|
interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
|
|
1089
1089
|
def: $ZodExactOptionalDef<T>;
|
|
1090
1090
|
output: output<T>;
|
|
1091
|
-
input: input
|
|
1091
|
+
input: input<T>;
|
|
1092
1092
|
}
|
|
1093
1093
|
interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
1094
1094
|
_zod: $ZodExactOptionalInternals<T>;
|
|
@@ -1098,7 +1098,7 @@ interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1098
1098
|
type: "nullable";
|
|
1099
1099
|
innerType: T;
|
|
1100
1100
|
}
|
|
1101
|
-
interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input
|
|
1101
|
+
interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
|
|
1102
1102
|
def: $ZodNullableDef<T>;
|
|
1103
1103
|
optin: T["_zod"]["optin"];
|
|
1104
1104
|
optout: T["_zod"]["optout"];
|
|
@@ -1116,7 +1116,7 @@ interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1116
1116
|
/** The default value. May be a getter. */
|
|
1117
1117
|
defaultValue: NoUndefined<output<T>>;
|
|
1118
1118
|
}
|
|
1119
|
-
interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input
|
|
1119
|
+
interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
1120
1120
|
def: $ZodDefaultDef<T>;
|
|
1121
1121
|
optin: "optional";
|
|
1122
1122
|
optout?: "optional" | undefined;
|
|
@@ -1131,9 +1131,9 @@ interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1131
1131
|
type: "prefault";
|
|
1132
1132
|
innerType: T;
|
|
1133
1133
|
/** The default value. May be a getter. */
|
|
1134
|
-
defaultValue: input
|
|
1134
|
+
defaultValue: input<T>;
|
|
1135
1135
|
}
|
|
1136
|
-
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input
|
|
1136
|
+
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
1137
1137
|
def: $ZodPrefaultDef<T>;
|
|
1138
1138
|
optin: "optional";
|
|
1139
1139
|
optout?: "optional" | undefined;
|
|
@@ -1148,7 +1148,7 @@ interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef
|
|
|
1148
1148
|
type: "nonoptional";
|
|
1149
1149
|
innerType: T;
|
|
1150
1150
|
}
|
|
1151
|
-
interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input
|
|
1151
|
+
interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
|
|
1152
1152
|
def: $ZodNonOptionalDef<T>;
|
|
1153
1153
|
isst: $ZodIssueInvalidType;
|
|
1154
1154
|
values: T["_zod"]["values"];
|
|
@@ -1163,7 +1163,7 @@ interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1163
1163
|
type: "success";
|
|
1164
1164
|
innerType: T;
|
|
1165
1165
|
}
|
|
1166
|
-
interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input
|
|
1166
|
+
interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
|
|
1167
1167
|
def: $ZodSuccessDef<T>;
|
|
1168
1168
|
isst: never;
|
|
1169
1169
|
optin: T["_zod"]["optin"];
|
|
@@ -1186,7 +1186,7 @@ interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1186
1186
|
innerType: T;
|
|
1187
1187
|
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
1188
1188
|
}
|
|
1189
|
-
interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input
|
|
1189
|
+
interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
1190
1190
|
def: $ZodCatchDef<T>;
|
|
1191
1191
|
optin: T["_zod"]["optin"];
|
|
1192
1192
|
optout: T["_zod"]["optout"];
|
|
@@ -1213,11 +1213,11 @@ interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodTy
|
|
|
1213
1213
|
in: A;
|
|
1214
1214
|
out: B;
|
|
1215
1215
|
/** Only defined inside $ZodCodec instances. */
|
|
1216
|
-
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input
|
|
1216
|
+
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
1217
1217
|
/** Only defined inside $ZodCodec instances. */
|
|
1218
|
-
reverseTransform?: (value: input
|
|
1218
|
+
reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
1219
1219
|
}
|
|
1220
|
-
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input
|
|
1220
|
+
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
1221
1221
|
def: $ZodPipeDef<A, B>;
|
|
1222
1222
|
isst: never;
|
|
1223
1223
|
values: A["_zod"]["values"];
|
|
@@ -1233,7 +1233,7 @@ interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1233
1233
|
type: "readonly";
|
|
1234
1234
|
innerType: T;
|
|
1235
1235
|
}
|
|
1236
|
-
interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input
|
|
1236
|
+
interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
|
|
1237
1237
|
def: $ZodReadonlyDef<T>;
|
|
1238
1238
|
optin: T["_zod"]["optin"];
|
|
1239
1239
|
optout: T["_zod"]["optout"];
|
|
@@ -1270,10 +1270,10 @@ declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
|
|
|
1270
1270
|
type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
|
|
1271
1271
|
type $ZodFunctionIn = $ZodFunctionArgs;
|
|
1272
1272
|
type $ZodFunctionOut = $ZodType;
|
|
1273
|
-
type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input
|
|
1274
|
-
type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input
|
|
1275
|
-
type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input
|
|
1276
|
-
type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input
|
|
1273
|
+
type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
|
|
1274
|
+
type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
|
|
1275
|
+
type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
|
|
1276
|
+
type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
|
|
1277
1277
|
interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
|
|
1278
1278
|
type: "function";
|
|
1279
1279
|
input: In;
|
|
@@ -1300,7 +1300,7 @@ interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1300
1300
|
type: "promise";
|
|
1301
1301
|
innerType: T;
|
|
1302
1302
|
}
|
|
1303
|
-
interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input
|
|
1303
|
+
interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
|
|
1304
1304
|
def: $ZodPromiseDef<T>;
|
|
1305
1305
|
isst: never;
|
|
1306
1306
|
}
|
|
@@ -1312,7 +1312,7 @@ interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1312
1312
|
type: "lazy";
|
|
1313
1313
|
getter: () => T;
|
|
1314
1314
|
}
|
|
1315
|
-
interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input
|
|
1315
|
+
interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
1316
1316
|
def: $ZodLazyDef<T>;
|
|
1317
1317
|
isst: never;
|
|
1318
1318
|
/** Auto-cached way to retrieve the inner schema */
|
|
@@ -1672,19 +1672,19 @@ type $brand<T extends string | number | symbol = string | number | symbol> = {
|
|
|
1672
1672
|
};
|
|
1673
1673
|
type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
|
|
1674
1674
|
_zod: {
|
|
1675
|
-
input: input
|
|
1675
|
+
input: input<T> & $brand<Brand>;
|
|
1676
1676
|
output: output<T> & $brand<Brand>;
|
|
1677
1677
|
};
|
|
1678
1678
|
} : Dir extends "in" ? {
|
|
1679
1679
|
_zod: {
|
|
1680
|
-
input: input
|
|
1680
|
+
input: input<T> & $brand<Brand>;
|
|
1681
1681
|
};
|
|
1682
1682
|
} : {
|
|
1683
1683
|
_zod: {
|
|
1684
1684
|
output: output<T> & $brand<Brand>;
|
|
1685
1685
|
};
|
|
1686
1686
|
});
|
|
1687
|
-
type input
|
|
1687
|
+
type input<T> = T extends {
|
|
1688
1688
|
_zod: {
|
|
1689
1689
|
input: any;
|
|
1690
1690
|
};
|
|
@@ -1796,7 +1796,7 @@ type ZodSafeParseError<T> = {
|
|
|
1796
1796
|
};
|
|
1797
1797
|
//#endregion
|
|
1798
1798
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.d.cts
|
|
1799
|
-
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input
|
|
1799
|
+
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
1800
1800
|
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
1801
1801
|
def: Internals["def"];
|
|
1802
1802
|
type: Internals["def"]["type"];
|
|
@@ -1821,15 +1821,15 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
|
|
|
1821
1821
|
parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
1822
1822
|
safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1823
1823
|
spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
|
|
1824
|
-
encode(data: output<this>, params?: ParseContext<$ZodIssue>): input
|
|
1825
|
-
decode(data: input
|
|
1826
|
-
encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input
|
|
1827
|
-
decodeAsync(data: input
|
|
1828
|
-
safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input
|
|
1829
|
-
safeDecode(data: input
|
|
1830
|
-
safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input
|
|
1831
|
-
safeDecodeAsync(data: input
|
|
1832
|
-
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
|
|
1824
|
+
encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
|
|
1825
|
+
decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
|
|
1826
|
+
encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
|
|
1827
|
+
decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
1828
|
+
safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
|
|
1829
|
+
safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
1830
|
+
safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
|
|
1831
|
+
safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1832
|
+
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;
|
|
1833
1833
|
superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>, params?: $ZodSuperRefineParams): this;
|
|
1834
1834
|
overwrite(fn: (x: output<this>) => output<this>): this;
|
|
1835
1835
|
optional(): ZodOptional<this>;
|
|
@@ -1839,8 +1839,8 @@ interface ZodType<out Output = unknown, out Input = unknown, out Internals exten
|
|
|
1839
1839
|
nullish(): ZodOptional<ZodNullable<this>>;
|
|
1840
1840
|
default(def: NoUndefined<output<this>>): ZodDefault<this>;
|
|
1841
1841
|
default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
|
|
1842
|
-
prefault(def: () => input
|
|
1843
|
-
prefault(def: input
|
|
1842
|
+
prefault(def: () => input<this>): ZodPrefault<this>;
|
|
1843
|
+
prefault(def: input<this>): ZodPrefault<this>;
|
|
1844
1844
|
array(): ZodArray<this>;
|
|
1845
1845
|
or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
|
|
1846
1846
|
and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
|
|
@@ -2007,7 +2007,7 @@ interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInte
|
|
|
2007
2007
|
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2008
2008
|
}
|
|
2009
2009
|
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
|
|
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
2011
|
interface ZodObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
|
|
2012
2012
|
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2013
2013
|
shape: Shape;
|
|
@@ -2551,360 +2551,4 @@ declare const graphPatchSchema: ZodDiscriminatedUnion<[ZodObject<{
|
|
|
2551
2551
|
type GraphPatch = output<typeof graphPatchSchema>;
|
|
2552
2552
|
/** AI-only schema: semantic ops + shared ops (no generic graph ops) */
|
|
2553
2553
|
//#endregion
|
|
2554
|
-
|
|
2555
|
-
declare global {
|
|
2556
|
-
interface SymbolConstructor {
|
|
2557
|
-
readonly observable: symbol;
|
|
2558
|
-
}
|
|
2559
|
-
}
|
|
2560
|
-
//#endregion
|
|
2561
|
-
//#region ../../node_modules/.pnpm/xstate@6.0.0-alpha.65/node_modules/xstate/dist/declarations/src/base.types.d.ts
|
|
2562
|
-
declare global {
|
|
2563
|
-
interface SymbolConstructor {
|
|
2564
|
-
readonly observable: symbol;
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
/**
|
|
2568
|
-
* The full definition of an event, with a string `type`.
|
|
2569
|
-
*
|
|
2570
|
-
* @public
|
|
2571
|
-
*/
|
|
2572
|
-
//#endregion
|
|
2573
|
-
//#region ../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
|
|
2574
|
-
// ==================================================================================================
|
|
2575
|
-
// JSON Schema Draft 07
|
|
2576
|
-
// ==================================================================================================
|
|
2577
|
-
// https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
2578
|
-
// --------------------------------------------------------------------------------------------------
|
|
2579
|
-
/**
|
|
2580
|
-
* Primitive type
|
|
2581
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
2582
|
-
*/
|
|
2583
|
-
type JSONSchema7TypeName = "string" //
|
|
2584
|
-
| "number" | "integer" | "boolean" | "object" | "array" | "null";
|
|
2585
|
-
/**
|
|
2586
|
-
* Primitive type
|
|
2587
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
2588
|
-
*/
|
|
2589
|
-
type JSONSchema7Type = string //
|
|
2590
|
-
| number | boolean | JSONSchema7Object | JSONSchema7Array | null;
|
|
2591
|
-
// Workaround for infinite type recursion
|
|
2592
|
-
interface JSONSchema7Object {
|
|
2593
|
-
[key: string]: JSONSchema7Type;
|
|
2594
|
-
}
|
|
2595
|
-
// Workaround for infinite type recursion
|
|
2596
|
-
// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540
|
|
2597
|
-
interface JSONSchema7Array extends Array<JSONSchema7Type> {}
|
|
2598
|
-
/**
|
|
2599
|
-
* Meta schema
|
|
2600
|
-
*
|
|
2601
|
-
* Recommended values:
|
|
2602
|
-
* - 'http://json-schema.org/schema#'
|
|
2603
|
-
* - 'http://json-schema.org/hyper-schema#'
|
|
2604
|
-
* - 'http://json-schema.org/draft-07/schema#'
|
|
2605
|
-
* - 'http://json-schema.org/draft-07/hyper-schema#'
|
|
2606
|
-
*
|
|
2607
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
2608
|
-
*/
|
|
2609
|
-
type JSONSchema7Version = string;
|
|
2610
|
-
/**
|
|
2611
|
-
* JSON Schema v7
|
|
2612
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
2613
|
-
*/
|
|
2614
|
-
type JSONSchema7Definition = JSONSchema7 | boolean;
|
|
2615
|
-
interface JSONSchema7 {
|
|
2616
|
-
$id?: string | undefined;
|
|
2617
|
-
$ref?: string | undefined;
|
|
2618
|
-
$schema?: JSONSchema7Version | undefined;
|
|
2619
|
-
$comment?: string | undefined;
|
|
2620
|
-
/**
|
|
2621
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
|
|
2622
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
|
|
2623
|
-
*/
|
|
2624
|
-
$defs?: {
|
|
2625
|
-
[key: string]: JSONSchema7Definition;
|
|
2626
|
-
} | undefined;
|
|
2627
|
-
/**
|
|
2628
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
2629
|
-
*/
|
|
2630
|
-
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
|
|
2631
|
-
enum?: JSONSchema7Type[] | undefined;
|
|
2632
|
-
const?: JSONSchema7Type | undefined;
|
|
2633
|
-
/**
|
|
2634
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
2635
|
-
*/
|
|
2636
|
-
multipleOf?: number | undefined;
|
|
2637
|
-
maximum?: number | undefined;
|
|
2638
|
-
exclusiveMaximum?: number | undefined;
|
|
2639
|
-
minimum?: number | undefined;
|
|
2640
|
-
exclusiveMinimum?: number | undefined;
|
|
2641
|
-
/**
|
|
2642
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
2643
|
-
*/
|
|
2644
|
-
maxLength?: number | undefined;
|
|
2645
|
-
minLength?: number | undefined;
|
|
2646
|
-
pattern?: string | undefined;
|
|
2647
|
-
/**
|
|
2648
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
2649
|
-
*/
|
|
2650
|
-
items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
|
|
2651
|
-
additionalItems?: JSONSchema7Definition | undefined;
|
|
2652
|
-
maxItems?: number | undefined;
|
|
2653
|
-
minItems?: number | undefined;
|
|
2654
|
-
uniqueItems?: boolean | undefined;
|
|
2655
|
-
contains?: JSONSchema7Definition | undefined;
|
|
2656
|
-
/**
|
|
2657
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
2658
|
-
*/
|
|
2659
|
-
maxProperties?: number | undefined;
|
|
2660
|
-
minProperties?: number | undefined;
|
|
2661
|
-
required?: string[] | undefined;
|
|
2662
|
-
properties?: {
|
|
2663
|
-
[key: string]: JSONSchema7Definition;
|
|
2664
|
-
} | undefined;
|
|
2665
|
-
patternProperties?: {
|
|
2666
|
-
[key: string]: JSONSchema7Definition;
|
|
2667
|
-
} | undefined;
|
|
2668
|
-
additionalProperties?: JSONSchema7Definition | undefined;
|
|
2669
|
-
dependencies?: {
|
|
2670
|
-
[key: string]: JSONSchema7Definition | string[];
|
|
2671
|
-
} | undefined;
|
|
2672
|
-
propertyNames?: JSONSchema7Definition | undefined;
|
|
2673
|
-
/**
|
|
2674
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
2675
|
-
*/
|
|
2676
|
-
if?: JSONSchema7Definition | undefined;
|
|
2677
|
-
then?: JSONSchema7Definition | undefined;
|
|
2678
|
-
else?: JSONSchema7Definition | undefined;
|
|
2679
|
-
/**
|
|
2680
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
2681
|
-
*/
|
|
2682
|
-
allOf?: JSONSchema7Definition[] | undefined;
|
|
2683
|
-
anyOf?: JSONSchema7Definition[] | undefined;
|
|
2684
|
-
oneOf?: JSONSchema7Definition[] | undefined;
|
|
2685
|
-
not?: JSONSchema7Definition | undefined;
|
|
2686
|
-
/**
|
|
2687
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
2688
|
-
*/
|
|
2689
|
-
format?: string | undefined;
|
|
2690
|
-
/**
|
|
2691
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
2692
|
-
*/
|
|
2693
|
-
contentMediaType?: string | undefined;
|
|
2694
|
-
contentEncoding?: string | undefined;
|
|
2695
|
-
/**
|
|
2696
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
2697
|
-
*/
|
|
2698
|
-
definitions?: {
|
|
2699
|
-
[key: string]: JSONSchema7Definition;
|
|
2700
|
-
} | undefined;
|
|
2701
|
-
/**
|
|
2702
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
2703
|
-
*/
|
|
2704
|
-
title?: string | undefined;
|
|
2705
|
-
description?: string | undefined;
|
|
2706
|
-
default?: JSONSchema7Type | undefined;
|
|
2707
|
-
readOnly?: boolean | undefined;
|
|
2708
|
-
writeOnly?: boolean | undefined;
|
|
2709
|
-
examples?: JSONSchema7Type | undefined;
|
|
2710
|
-
}
|
|
2711
|
-
//#endregion
|
|
2712
|
-
//#region ../graph-tools/dist/index.d.mts
|
|
2713
|
-
//#endregion
|
|
2714
|
-
//#region src/profiles/profileRefs.d.ts
|
|
2715
|
-
type ProfileName = `@${string}/${string}`;
|
|
2716
|
-
type ProfileSpecifier = `${ProfileName}@${string}`;
|
|
2717
|
-
type ResolvedProfileRef = ProfileSpecifier;
|
|
2718
|
-
/**
|
|
2719
|
-
* Serialized inline expression directive.
|
|
2720
|
-
*
|
|
2721
|
-
* Code generation treats this object as JavaScript/TypeScript source, not as a
|
|
2722
|
-
* machine config object. It is used for fields such as invoke `input` and
|
|
2723
|
-
* `output` where XState accepts mapper expressions.
|
|
2724
|
-
*/
|
|
2725
|
-
interface CodeExpression {
|
|
2726
|
-
'@type': 'code';
|
|
2727
|
-
lang: 'js' | 'ts';
|
|
2728
|
-
expr: string;
|
|
2729
|
-
imports?: CodeImport[];
|
|
2730
|
-
}
|
|
2731
|
-
interface CodeImport {
|
|
2732
|
-
package: string;
|
|
2733
|
-
import: string;
|
|
2734
|
-
/** Local binding name when it differs from the imported name. */
|
|
2735
|
-
local?: string;
|
|
2736
|
-
importKind?: 'named' | 'default' | 'namespace';
|
|
2737
|
-
version?: string;
|
|
2738
|
-
}
|
|
2739
|
-
/**
|
|
2740
|
-
* A scalar `context`/`input`/`output` literal, kept verbatim from the source
|
|
2741
|
-
* instead of being wrapped as a code expression.
|
|
2742
|
-
*/
|
|
2743
|
-
//#endregion
|
|
2744
|
-
//#region src/profiles/types.d.ts
|
|
2745
|
-
/**
|
|
2746
|
-
* The profile boundary only relies on XGraph's stable structural fields. This
|
|
2747
|
-
* keeps profile packages independent from a particular editor's richer graph
|
|
2748
|
-
* types while still allowing them to own semantic projection.
|
|
2749
|
-
*/
|
|
2750
|
-
type ProfileGraph = {
|
|
2751
|
-
data: Record<string, unknown> & {
|
|
2752
|
-
profile?: ProfileSpecifier;
|
|
2753
|
-
schemas?: Record<string, unknown> | null;
|
|
2754
|
-
importMetadata?: (Record<string, unknown> & {
|
|
2755
|
-
warnings?: string[];
|
|
2756
|
-
}) | null;
|
|
2757
|
-
};
|
|
2758
|
-
nodes: Array<{
|
|
2759
|
-
id: string;
|
|
2760
|
-
parentId: string | null;
|
|
2761
|
-
initialNodeId?: string;
|
|
2762
|
-
data: Record<string, unknown> & {
|
|
2763
|
-
key?: string;
|
|
2764
|
-
kind?: string;
|
|
2765
|
-
type?: string | null;
|
|
2766
|
-
initialId?: string | null;
|
|
2767
|
-
meta?: Record<string, unknown> | null;
|
|
2768
|
-
};
|
|
2769
|
-
}>;
|
|
2770
|
-
edges: Array<{
|
|
2771
|
-
id: string;
|
|
2772
|
-
sourceId: string;
|
|
2773
|
-
targetId: string | null;
|
|
2774
|
-
data: Record<string, unknown> & {
|
|
2775
|
-
kind?: string;
|
|
2776
|
-
eventType?: string;
|
|
2777
|
-
transitionType?: string;
|
|
2778
|
-
guard?: {
|
|
2779
|
-
type?: string;
|
|
2780
|
-
} | null;
|
|
2781
|
-
meta?: Record<string, unknown> | null;
|
|
2782
|
-
};
|
|
2783
|
-
}>;
|
|
2784
|
-
[key: string]: unknown;
|
|
2785
|
-
};
|
|
2786
|
-
type ProfileCompatibilityIssue = {
|
|
2787
|
-
level: 'info' | 'warning' | 'error';
|
|
2788
|
-
message: string; /** Canonical data paths that remain stored but must not be authored here. */
|
|
2789
|
-
readOnlyPaths?: string[];
|
|
2790
|
-
nodeIds?: string[];
|
|
2791
|
-
edgeIds?: string[];
|
|
2792
|
-
};
|
|
2793
|
-
/** Additive data written only inside the target profile namespace. */
|
|
2794
|
-
type ProfileDataSet = {
|
|
2795
|
-
graph?: Record<string, unknown>;
|
|
2796
|
-
nodes?: Record<string, Record<string, unknown>>;
|
|
2797
|
-
edges?: Record<string, Record<string, unknown>>;
|
|
2798
|
-
};
|
|
2799
|
-
type ProfileProjectionResult = {
|
|
2800
|
-
data?: ProfileDataSet;
|
|
2801
|
-
warnings?: string[];
|
|
2802
|
-
};
|
|
2803
|
-
type ProfileProjectionContext = {
|
|
2804
|
-
sourceProfile: ResolvedProfileRef;
|
|
2805
|
-
targetProfile: ResolvedProfileRef;
|
|
2806
|
-
};
|
|
2807
|
-
type ProfileProjection = {
|
|
2808
|
-
/** Canonical paths this profile cannot author. `*` matches one path segment. */readOnlyPaths?: readonly string[]; /** Derive additive target-namespaced data without rewriting canonical data. */
|
|
2809
|
-
adapt?: (graph: Readonly<ProfileGraph>, context: ProfileProjectionContext) => ProfileProjectionResult; /** Report retained canonical fields this target cannot safely author. */
|
|
2810
|
-
analyzeCompatibility?: (graph: ProfileGraph) => ProfileCompatibilityIssue[];
|
|
2811
|
-
};
|
|
2812
|
-
type ProfileMigration = {
|
|
2813
|
-
/** Exact earlier profile version in the same lineage. */from: ResolvedProfileRef; /** Adapt source-namespaced data into target-namespaced data. */
|
|
2814
|
-
migrate: (data: Readonly<ProfileDataSet>, context: ProfileProjectionContext) => ProfileProjectionResult;
|
|
2815
|
-
};
|
|
2816
|
-
type FormatId = string;
|
|
2817
|
-
type ProfileCodeLocation = {
|
|
2818
|
-
graph: Readonly<ProfileGraph>;
|
|
2819
|
-
path: readonly (string | number)[];
|
|
2820
|
-
parent: unknown;
|
|
2821
|
-
ancestors: readonly unknown[];
|
|
2822
|
-
};
|
|
2823
|
-
type ProfileCodeTarget = {
|
|
2824
|
-
kind: 'entity';
|
|
2825
|
-
id: string;
|
|
2826
|
-
label: string;
|
|
2827
|
-
} | {
|
|
2828
|
-
kind: 'source';
|
|
2829
|
-
id: string;
|
|
2830
|
-
label: string;
|
|
2831
|
-
sourceType: string;
|
|
2832
|
-
};
|
|
2833
|
-
type ProfileCodeBlock = {
|
|
2834
|
-
name: string;
|
|
2835
|
-
matches: (location: ProfileCodeLocation) => boolean;
|
|
2836
|
-
isValid: (code: string) => boolean;
|
|
2837
|
-
exportInvalid: (invalidCode: string) => string; /** Editor destination used to surface and navigate code diagnostics. */
|
|
2838
|
-
getTarget?: (location: ProfileCodeLocation) => ProfileCodeTarget | undefined; /** Object used by source generation to locate this block in a full document. */
|
|
2839
|
-
getSourceValue?: (location: ProfileCodeLocation) => object | undefined;
|
|
2840
|
-
};
|
|
2841
|
-
type ProfileFormatManifest = {
|
|
2842
|
-
format: FormatId;
|
|
2843
|
-
import?: boolean;
|
|
2844
|
-
export?: boolean;
|
|
2845
|
-
sourcePreserving?: boolean;
|
|
2846
|
-
warning?: string;
|
|
2847
|
-
};
|
|
2848
|
-
type ProfileEntityType = {
|
|
2849
|
-
kind: string;
|
|
2850
|
-
label: string;
|
|
2851
|
-
description?: string;
|
|
2852
|
-
authorable?: boolean;
|
|
2853
|
-
terminal?: boolean;
|
|
2854
|
-
canContain?: boolean; /** Logical, unnamespaced profile data stored canonically under the profile namespace. */
|
|
2855
|
-
dataSchema?: JSONSchema7;
|
|
2856
|
-
children?: {
|
|
2857
|
-
types: readonly string[];
|
|
2858
|
-
min?: number;
|
|
2859
|
-
max?: number;
|
|
2860
|
-
};
|
|
2861
|
-
};
|
|
2862
|
-
type ProfileValidationDefinition = {
|
|
2863
|
-
name: string;
|
|
2864
|
-
description: string;
|
|
2865
|
-
};
|
|
2866
|
-
type ProfileAuthoringManifest = {
|
|
2867
|
-
terminology: {
|
|
2868
|
-
node: string;
|
|
2869
|
-
edge: string;
|
|
2870
|
-
graph: string;
|
|
2871
|
-
};
|
|
2872
|
-
nodeTypes: readonly ProfileEntityType[];
|
|
2873
|
-
edgeTypes: readonly ProfileEntityType[];
|
|
2874
|
-
attachments?: Partial<Record<'actions' | 'guards' | 'invokes' | 'tags', boolean>>;
|
|
2875
|
-
supportsInitialNode?: boolean;
|
|
2876
|
-
supportsTargetlessEdges?: boolean;
|
|
2877
|
-
supportsReenterEdges?: boolean;
|
|
2878
|
-
};
|
|
2879
|
-
type ProfileManifest = {
|
|
2880
|
-
profile: ResolvedProfileRef;
|
|
2881
|
-
name: string;
|
|
2882
|
-
description?: string; /** Namespace for canonical profile data, for example `@mastra`. */
|
|
2883
|
-
namespace?: `@${string}`;
|
|
2884
|
-
extends?: ProfileSpecifier; /** Stable semantic family. Migrations may only run within this lineage. */
|
|
2885
|
-
lineage?: string;
|
|
2886
|
-
projection?: ProfileProjection;
|
|
2887
|
-
migrations?: readonly ProfileMigration[]; /** Whether the built-in editor profile picker should offer this profile. */
|
|
2888
|
-
selectable?: boolean;
|
|
2889
|
-
formats: ProfileFormatManifest[];
|
|
2890
|
-
defaultFormat?: FormatId;
|
|
2891
|
-
graph?: {
|
|
2892
|
-
dataSchema?: JSONSchema7;
|
|
2893
|
-
}; /** Profile-owned editor vocabulary. The canvas itself only assumes a graph. */
|
|
2894
|
-
authoring?: ProfileAuthoringManifest; /** Profile-owned authored code locations and syntax-safe export fallbacks. */
|
|
2895
|
-
code?: {
|
|
2896
|
-
blocks: readonly ProfileCodeBlock[];
|
|
2897
|
-
};
|
|
2898
|
-
operations?: Partial<Record<'simulate' | 'validate' | 'export', boolean>>;
|
|
2899
|
-
restrictFormatsToListed?: boolean;
|
|
2900
|
-
features?: Record<string, boolean | Record<string, unknown>>;
|
|
2901
|
-
implementations?: Partial<Record<'actions' | 'guards' | 'actors' | 'delays', {
|
|
2902
|
-
mode: 'allowlist' | 'any';
|
|
2903
|
-
items: Record<string, Record<string, unknown>>;
|
|
2904
|
-
}>>;
|
|
2905
|
-
rules?: Array<Record<string, unknown>>;
|
|
2906
|
-
validation?: ProfileValidationDefinition[];
|
|
2907
|
-
editorDefaults?: Record<string, unknown>;
|
|
2908
|
-
};
|
|
2909
|
-
//#endregion
|
|
2910
|
-
export { $strip as S, ZodString as _, EditorStateType as a, output as b, ZodArray as c, ZodLiteral as d, ZodNullable as f, ZodRecord as g, ZodOptional as h, CanvasColor as i, ZodBoolean as l, ZodObject as m, ProfileManifest as n, GraphPatch as o, ZodNumber as p, ActionLocation as r, ImplementationSourceType as s, CodeExpression as t, ZodEnum as u, ZodUnion as v, $loose as x, ZodUnknown as y };
|
|
2554
|
+
export { ZodUnknown as _, ImplementationSourceType as a, $strip as b, ZodEnum as c, ZodNumber as d, ZodObject as f, ZodUnion as g, ZodString as h, GraphPatch as i, ZodLiteral as l, ZodRecord as m, CanvasColor as n, ZodArray as o, ZodOptional as p, EditorStateType as r, ZodBoolean as s, ActionLocation as t, ZodNullable as u, output as v, $loose as y };
|