@requence/service 1.0.0-alpha.4 → 1.0.0-alpha.40
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/CHANGELOG.md +216 -0
- package/build/{chunk-0x9092n4.js → chunk-6w7td62p.js} +5 -44
- package/build/chunk-6w7td62p.js.map +10 -0
- package/build/cli.js +19 -12
- package/build/cli.js.map +3 -3
- package/build/index.js +930 -863
- package/build/index.js.map +18 -16
- package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
- package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
- package/build/types/helpers/src/files/fileObject.d.ts +16 -0
- package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
- package/build/types/helpers/src/files/index.d.ts +7 -0
- package/build/types/helpers/src/files/index.d.ts.map +1 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
- package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
- package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
- package/build/types/helpers/src/files/streamObject.d.ts +14 -0
- package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
- package/build/types/helpers/src/files/types.d.ts +4 -0
- package/build/types/helpers/src/files/types.d.ts.map +1 -0
- package/build/types/helpers/src/index.d.ts +10 -6
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/types.d.ts +12 -0
- package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts +29 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts +12 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts +447 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/command.d.ts +471 -0
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/helpers.d.ts +5 -0
- package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/index.d.ts +8 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
- package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts +22 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts +636 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/update.d.ts +354 -0
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
- package/build/types/helpers/src/utils/clone.d.ts +3 -0
- package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
- package/build/types/helpers/src/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
- package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
- package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
- package/build/types/helpers/src/utils/isRecord.d.ts.map +1 -0
- package/build/types/helpers/src/utils/mapData.d.ts +18 -0
- package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
- package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
- package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
- package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
- package/build/types/helpers/src/utils/types.d.ts +4 -0
- package/build/types/helpers/src/utils/types.d.ts.map +1 -0
- package/build/types/service/src/createAmqpConnection.d.ts +19 -20
- package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
- package/build/types/service/src/helpers.d.ts +72 -99
- package/build/types/service/src/helpers.d.ts.map +1 -1
- package/build/types/service/src/index.d.ts +8 -4
- package/build/types/service/src/index.d.ts.map +1 -1
- package/build/types/service/src/macro.d.ts +2 -0
- package/build/types/service/src/macro.d.ts.map +1 -0
- package/build/types/service/src/mapInput.d.ts +2 -0
- package/build/types/service/src/mapInput.d.ts.map +1 -0
- package/build/types/service/src/utils.d.ts +6 -0
- package/build/types/service/src/utils.d.ts.map +1 -0
- package/package.json +7 -8
- package/build/chunk-0x9092n4.js.map +0 -12
- package/build/types/helpers/src/clone.d.ts +0 -3
- package/build/types/helpers/src/clone.d.ts.map +0 -1
- package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
- package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
- package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
- package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
- package/build/types/helpers/src/utils.d.ts.map +0 -1
- /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const ERROR: unique symbol;
|
|
3
|
+
export declare const targetNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
5
|
+
type: z.ZodLiteral<"entry">;
|
|
6
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
7
|
+
inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
8
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
10
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
11
|
+
target: z.ZodString;
|
|
12
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
13
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
14
|
+
name: string | typeof ERROR | null;
|
|
15
|
+
target: string;
|
|
16
|
+
}, string | {
|
|
17
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
18
|
+
name: string | typeof ERROR | null;
|
|
19
|
+
target: string;
|
|
20
|
+
}>>>>;
|
|
21
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
22
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
23
|
+
type: z.ZodLiteral<"service">;
|
|
24
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
25
|
+
inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"object">;
|
|
27
|
+
}, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"null">;
|
|
29
|
+
}, z.core.$strip>]>>;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
version: z.ZodString;
|
|
32
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
33
|
+
configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
34
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
retry: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
38
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
39
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
40
|
+
target: z.ZodString;
|
|
41
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
42
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
43
|
+
name: string | typeof ERROR | null;
|
|
44
|
+
target: string;
|
|
45
|
+
}, string | {
|
|
46
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
47
|
+
name: string | typeof ERROR | null;
|
|
48
|
+
target: string;
|
|
49
|
+
}>>>>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
52
|
+
type: z.ZodLiteral<"logic">;
|
|
53
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
54
|
+
script: z.ZodString;
|
|
55
|
+
concurrency: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
57
|
+
javascript: "javascript";
|
|
58
|
+
python: "python";
|
|
59
|
+
typescript: "typescript";
|
|
60
|
+
}>>;
|
|
61
|
+
maxExecutionTime: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
63
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
64
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
65
|
+
target: z.ZodString;
|
|
66
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
67
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
68
|
+
name: string | typeof ERROR | null;
|
|
69
|
+
target: string;
|
|
70
|
+
}, string | {
|
|
71
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
72
|
+
name: string | typeof ERROR | null;
|
|
73
|
+
target: string;
|
|
74
|
+
}>>>>;
|
|
75
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
76
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
77
|
+
type: z.ZodLiteral<"or">;
|
|
78
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
79
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
80
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
81
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
82
|
+
target: z.ZodString;
|
|
83
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
84
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
85
|
+
name: string | typeof ERROR | null;
|
|
86
|
+
target: string;
|
|
87
|
+
}, string | {
|
|
88
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
89
|
+
name: string | typeof ERROR | null;
|
|
90
|
+
target: string;
|
|
91
|
+
}>>>>;
|
|
92
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
93
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
94
|
+
type: z.ZodLiteral<"reference">;
|
|
95
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
96
|
+
reference: z.ZodString;
|
|
97
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
98
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
99
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
100
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
101
|
+
target: z.ZodString;
|
|
102
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
103
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
104
|
+
name: string | typeof ERROR | null;
|
|
105
|
+
target: string;
|
|
106
|
+
}, string | {
|
|
107
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
108
|
+
name: string | typeof ERROR | null;
|
|
109
|
+
target: string;
|
|
110
|
+
}>>>>;
|
|
111
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
112
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
113
|
+
type: z.ZodLiteral<"exit">;
|
|
114
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strict>]>;
|
|
116
|
+
export type TargetNode = z.infer<typeof targetNodeSchema>;
|
|
117
|
+
export declare const treeEntryNodeSchema: z.ZodObject<{
|
|
118
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
119
|
+
type: z.ZodLiteral<"entry">;
|
|
120
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
121
|
+
inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
122
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
123
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
124
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strict>;
|
|
127
|
+
export declare const treeServiceNodeSchema: z.ZodObject<{
|
|
128
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
129
|
+
type: z.ZodLiteral<"service">;
|
|
130
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
131
|
+
inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
132
|
+
type: z.ZodLiteral<"object">;
|
|
133
|
+
}, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
|
|
134
|
+
type: z.ZodLiteral<"null">;
|
|
135
|
+
}, z.core.$strip>]>>;
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
version: z.ZodString;
|
|
138
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
139
|
+
configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
140
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
retry: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
144
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
145
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
export declare const treeLogicNodeSchema: z.ZodObject<{
|
|
149
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
150
|
+
type: z.ZodLiteral<"logic">;
|
|
151
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
152
|
+
script: z.ZodString;
|
|
153
|
+
concurrency: z.ZodDefault<z.ZodBoolean>;
|
|
154
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
155
|
+
javascript: "javascript";
|
|
156
|
+
python: "python";
|
|
157
|
+
typescript: "typescript";
|
|
158
|
+
}>>;
|
|
159
|
+
maxExecutionTime: z.ZodDefault<z.ZodNumber>;
|
|
160
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
161
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
162
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
export declare const treeOrNodeSchema: z.ZodObject<{
|
|
166
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
167
|
+
type: z.ZodLiteral<"or">;
|
|
168
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
169
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
170
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
171
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
export declare const treeReferenceNodeSchema: z.ZodObject<{
|
|
175
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
176
|
+
type: z.ZodLiteral<"reference">;
|
|
177
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
178
|
+
reference: z.ZodString;
|
|
179
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
180
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
181
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
182
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
export declare const treeExitNodeSchema: z.ZodObject<{
|
|
186
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
187
|
+
type: z.ZodLiteral<"exit">;
|
|
188
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
export declare const treeNodeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
191
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
192
|
+
type: z.ZodLiteral<"entry">;
|
|
193
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
194
|
+
inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
195
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
196
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
197
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
200
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
201
|
+
type: z.ZodLiteral<"service">;
|
|
202
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
203
|
+
inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
204
|
+
type: z.ZodLiteral<"object">;
|
|
205
|
+
}, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
|
|
206
|
+
type: z.ZodLiteral<"null">;
|
|
207
|
+
}, z.core.$strip>]>>;
|
|
208
|
+
name: z.ZodString;
|
|
209
|
+
version: z.ZodString;
|
|
210
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
211
|
+
configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
212
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
retry: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
216
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
217
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
220
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
221
|
+
type: z.ZodLiteral<"logic">;
|
|
222
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
223
|
+
script: z.ZodString;
|
|
224
|
+
concurrency: z.ZodDefault<z.ZodBoolean>;
|
|
225
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
226
|
+
javascript: "javascript";
|
|
227
|
+
python: "python";
|
|
228
|
+
typescript: "typescript";
|
|
229
|
+
}>>;
|
|
230
|
+
maxExecutionTime: z.ZodDefault<z.ZodNumber>;
|
|
231
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
232
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
233
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
234
|
+
}, z.core.$strip>>;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
237
|
+
type: z.ZodLiteral<"or">;
|
|
238
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
239
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
240
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
241
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
244
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
245
|
+
type: z.ZodLiteral<"reference">;
|
|
246
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
247
|
+
reference: z.ZodString;
|
|
248
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
249
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
250
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
251
|
+
schema: z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
254
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
255
|
+
type: z.ZodLiteral<"exit">;
|
|
256
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, z.core.$strict>]>;
|
|
258
|
+
export declare const treeEdgeSchema: z.ZodObject<{
|
|
259
|
+
source: z.ZodUUID;
|
|
260
|
+
sourceHandle: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof ERROR, typeof ERROR>]>>;
|
|
261
|
+
target: z.ZodUUID;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export type TreeEdge = z.infer<typeof treeEdgeSchema>;
|
|
264
|
+
export type TreeNode = z.infer<typeof treeNodeSchema>;
|
|
265
|
+
export type EntryNode = Extract<TreeNode, {
|
|
266
|
+
type: 'entry';
|
|
267
|
+
}>;
|
|
268
|
+
export type ServiceNode = Extract<TreeNode, {
|
|
269
|
+
type: 'service';
|
|
270
|
+
}>;
|
|
271
|
+
export type LogicNode = Extract<TreeNode, {
|
|
272
|
+
type: 'logic';
|
|
273
|
+
}>;
|
|
274
|
+
export type ReferenceNode = Extract<TreeNode, {
|
|
275
|
+
type: 'reference';
|
|
276
|
+
}>;
|
|
277
|
+
export type OrNode = Extract<TreeNode, {
|
|
278
|
+
type: 'or';
|
|
279
|
+
}>;
|
|
280
|
+
export type ExitNode = Extract<TreeNode, {
|
|
281
|
+
type: 'exit';
|
|
282
|
+
}>;
|
|
283
|
+
//# sourceMappingURL=nodeType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeType.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/nodeType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,eAAO,MAAM,KAAK,eAAW,CAAA;AAoI7B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAO3B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAwBzD,eAAO,MAAM,mBAAmB;;;;;;;;;kBAA4C,CAAA;AAC5E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;kBAA8C,CAAA;AAChF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;kBAA4C,CAAA;AAC5E,eAAO,MAAM,gBAAgB;;;;;;;;kBAAyC,CAAA;AACtE,eAAO,MAAM,uBAAuB;;;;;;;;;;kBACW,CAAA;AAC/C,eAAO,MAAM,kBAAkB;;;;kBAAiB,CAAA;AAEhD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAOzB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;iBAIzB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AACrD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAErD,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,CAAA;AAC5D,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAChE,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,CAAA;AAC5D,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,CAAA;AACpE,MAAM,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AACtD,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const targetNodesSchema: z.ZodPipe<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
4
|
+
type: z.ZodLiteral<"entry">;
|
|
5
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
6
|
+
inputSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
7
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
8
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
9
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
10
|
+
target: z.ZodString;
|
|
11
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
12
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
13
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
14
|
+
target: string;
|
|
15
|
+
}, string | {
|
|
16
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
17
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
18
|
+
target: string;
|
|
19
|
+
}>>>>;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
22
|
+
type: z.ZodLiteral<"service">;
|
|
23
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
24
|
+
inputSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
25
|
+
type: z.ZodLiteral<"object">;
|
|
26
|
+
}, z.core.$strip>, z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<"null">;
|
|
28
|
+
}, z.core.$strip>]>>;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
version: z.ZodString;
|
|
31
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
32
|
+
configurationSchema: z.ZodDefault<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>;
|
|
33
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
retry: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
37
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
38
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
39
|
+
target: z.ZodString;
|
|
40
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
41
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
42
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
43
|
+
target: string;
|
|
44
|
+
}, string | {
|
|
45
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
46
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
47
|
+
target: string;
|
|
48
|
+
}>>>>;
|
|
49
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
51
|
+
type: z.ZodLiteral<"logic">;
|
|
52
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
53
|
+
script: z.ZodString;
|
|
54
|
+
concurrency: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
56
|
+
javascript: "javascript";
|
|
57
|
+
python: "python";
|
|
58
|
+
typescript: "typescript";
|
|
59
|
+
}>>;
|
|
60
|
+
maxExecutionTime: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
62
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
63
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
64
|
+
target: z.ZodString;
|
|
65
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
66
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
67
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
68
|
+
target: string;
|
|
69
|
+
}, string | {
|
|
70
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
71
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
72
|
+
target: string;
|
|
73
|
+
}>>>>;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
76
|
+
type: z.ZodLiteral<"or">;
|
|
77
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
78
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
79
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
80
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
81
|
+
target: z.ZodString;
|
|
82
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
83
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
84
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
85
|
+
target: string;
|
|
86
|
+
}, string | {
|
|
87
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
88
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
89
|
+
target: string;
|
|
90
|
+
}>>>>;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
93
|
+
type: z.ZodLiteral<"reference">;
|
|
94
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
95
|
+
reference: z.ZodString;
|
|
96
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
97
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
98
|
+
schema: z.ZodDefault<z.ZodNullable<z.ZodCustom<import("json-schema").JSONSchema7, import("json-schema").JSONSchema7>>>;
|
|
99
|
+
name: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<typeof import("./nodeType.ts").ERROR, typeof import("./nodeType.ts").ERROR>]>>;
|
|
100
|
+
target: z.ZodString;
|
|
101
|
+
}, z.core.$strict>]>, z.ZodTransform<{
|
|
102
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
103
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
104
|
+
target: string;
|
|
105
|
+
}, string | {
|
|
106
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
107
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
108
|
+
target: string;
|
|
109
|
+
}>>>>;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
id: z.ZodDefault<z.ZodUUID>;
|
|
112
|
+
type: z.ZodLiteral<"exit">;
|
|
113
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strict>]>>, z.ZodTransform<{
|
|
115
|
+
nodes: ({
|
|
116
|
+
id: string;
|
|
117
|
+
type: "exit";
|
|
118
|
+
alias?: string | undefined;
|
|
119
|
+
} | {
|
|
120
|
+
id: string;
|
|
121
|
+
type: "entry";
|
|
122
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
123
|
+
outputs: {
|
|
124
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
125
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
126
|
+
}[];
|
|
127
|
+
alias?: string | undefined;
|
|
128
|
+
} | {
|
|
129
|
+
id: string;
|
|
130
|
+
type: "service";
|
|
131
|
+
inputSchema: ({
|
|
132
|
+
type: "object";
|
|
133
|
+
} & import("json-schema").JSONSchema7) | {
|
|
134
|
+
type: "null";
|
|
135
|
+
};
|
|
136
|
+
name: string;
|
|
137
|
+
version: string;
|
|
138
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
139
|
+
outputs: {
|
|
140
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
141
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
142
|
+
}[];
|
|
143
|
+
alias?: string | undefined;
|
|
144
|
+
configuration?: any;
|
|
145
|
+
ttl?: number | undefined;
|
|
146
|
+
retry?: number | undefined;
|
|
147
|
+
retryDelay?: number | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
id: string;
|
|
150
|
+
type: "logic";
|
|
151
|
+
script: string;
|
|
152
|
+
concurrency: boolean;
|
|
153
|
+
language: "javascript" | "python" | "typescript";
|
|
154
|
+
maxExecutionTime: number;
|
|
155
|
+
outputs: {
|
|
156
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
157
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
158
|
+
}[];
|
|
159
|
+
alias?: string | undefined;
|
|
160
|
+
} | {
|
|
161
|
+
id: string;
|
|
162
|
+
type: "or";
|
|
163
|
+
outputs: {
|
|
164
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
165
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
166
|
+
}[];
|
|
167
|
+
alias?: string | undefined;
|
|
168
|
+
} | {
|
|
169
|
+
id: string;
|
|
170
|
+
type: "reference";
|
|
171
|
+
reference: string;
|
|
172
|
+
outputs: {
|
|
173
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
174
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
175
|
+
}[];
|
|
176
|
+
alias?: string | undefined;
|
|
177
|
+
configuration?: any;
|
|
178
|
+
})[];
|
|
179
|
+
edges: {
|
|
180
|
+
source: string;
|
|
181
|
+
sourceHandle: string | typeof import("./nodeType.ts").ERROR | null;
|
|
182
|
+
target: string;
|
|
183
|
+
}[];
|
|
184
|
+
}, ({
|
|
185
|
+
id: string;
|
|
186
|
+
type: "entry";
|
|
187
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
188
|
+
outputs: {
|
|
189
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
190
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
191
|
+
target: string;
|
|
192
|
+
}[];
|
|
193
|
+
alias?: string | undefined;
|
|
194
|
+
} | {
|
|
195
|
+
id: string;
|
|
196
|
+
type: "service";
|
|
197
|
+
inputSchema: ({
|
|
198
|
+
type: "object";
|
|
199
|
+
} & import("json-schema").JSONSchema7) | {
|
|
200
|
+
type: "null";
|
|
201
|
+
};
|
|
202
|
+
name: string;
|
|
203
|
+
version: string;
|
|
204
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
205
|
+
outputs: {
|
|
206
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
207
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
208
|
+
target: string;
|
|
209
|
+
}[];
|
|
210
|
+
alias?: string | undefined;
|
|
211
|
+
configuration?: any;
|
|
212
|
+
ttl?: number | undefined;
|
|
213
|
+
retry?: number | undefined;
|
|
214
|
+
retryDelay?: number | undefined;
|
|
215
|
+
} | {
|
|
216
|
+
id: string;
|
|
217
|
+
type: "logic";
|
|
218
|
+
script: string;
|
|
219
|
+
concurrency: boolean;
|
|
220
|
+
language: "javascript" | "python" | "typescript";
|
|
221
|
+
maxExecutionTime: number;
|
|
222
|
+
outputs: {
|
|
223
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
224
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
225
|
+
target: string;
|
|
226
|
+
}[];
|
|
227
|
+
alias?: string | undefined;
|
|
228
|
+
} | {
|
|
229
|
+
id: string;
|
|
230
|
+
type: "or";
|
|
231
|
+
outputs: {
|
|
232
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
233
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
234
|
+
target: string;
|
|
235
|
+
}[];
|
|
236
|
+
alias?: string | undefined;
|
|
237
|
+
} | {
|
|
238
|
+
id: string;
|
|
239
|
+
type: "reference";
|
|
240
|
+
reference: string;
|
|
241
|
+
outputs: {
|
|
242
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
243
|
+
name: string | typeof import("./nodeType.ts").ERROR | null;
|
|
244
|
+
target: string;
|
|
245
|
+
}[];
|
|
246
|
+
alias?: string | undefined;
|
|
247
|
+
configuration?: any;
|
|
248
|
+
} | {
|
|
249
|
+
id: string;
|
|
250
|
+
type: "exit";
|
|
251
|
+
alias?: string | undefined;
|
|
252
|
+
})[]>>;
|
|
253
|
+
//# sourceMappingURL=targetNodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targetNodes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/targetNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAU1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwG3B,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const taskOptionsSchema: z.ZodObject<{
|
|
3
|
+
maxExecutions: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4
|
+
compliance: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
"mcp-tool": "mcp-tool";
|
|
6
|
+
}>>>;
|
|
7
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
linear: "linear";
|
|
9
|
+
continuous: "continuous";
|
|
10
|
+
}>>;
|
|
11
|
+
priority: z.ZodDefault<z.ZodInt>;
|
|
12
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
13
|
+
streamUrl: z.ZodOptional<z.ZodString>;
|
|
14
|
+
referencedBy: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
taskId: z.ZodUUID;
|
|
16
|
+
nodeId: z.ZodUUID;
|
|
17
|
+
messageId: z.ZodUUID;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type TaskOptions = z.infer<typeof taskOptionsSchema>;
|
|
21
|
+
export type TaskOptionsInput = z.input<typeof taskOptionsSchema>;
|
|
22
|
+
//# sourceMappingURL=taskOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskOptions.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/taskOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;iBAoB3B,CAAA;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAC3D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|