@loopstack/contracts 0.16.2 → 0.18.0-rc.1
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/dist/enums/registry.enum.d.ts +1 -2
- package/dist/enums/registry.enum.js +0 -1
- package/dist/schemas/assignment.schema.d.ts +2 -2
- package/dist/schemas/assignment.schema.js +2 -2
- package/dist/schemas/block.schema.d.ts +1 -1
- package/dist/schemas/document.schema.d.ts +111 -742
- package/dist/schemas/json-schema.schema.d.ts +42 -1
- package/dist/schemas/json-schema.schema.js +6 -6
- package/dist/schemas/main.schema.d.ts +88 -1019
- package/dist/schemas/pipeline.schema.d.ts +62 -827
- package/dist/schemas/startup.schema.d.ts +23 -544
- package/dist/schemas/tool-call.schema.d.ts +4 -24
- package/dist/schemas/tool-config.schema.d.ts +10 -160
- package/dist/schemas/transition-payload.schema.d.ts +1 -11
- package/dist/schemas/ui-form-element.schema.d.ts +4 -64
- package/dist/schemas/ui-form.schema.d.ts +25 -249
- package/dist/schemas/ui-form.schema.js +3 -3
- package/dist/schemas/ui-properties-schema.js +1 -1
- package/dist/schemas/workflow-transition.schema.d.ts +18 -84
- package/dist/schemas/workflow.schema.d.ts +30 -398
- package/dist/schemas/workspace.schema.d.ts +1 -9
- package/dist/types/interfaces/namespace-create.interface.d.ts +3 -1
- package/dist/types/types/main.type.d.ts +1 -1
- package/package.json +14 -35
- package/.github/workflows/publish-npm.yml +0 -83
- package/.husky/pre-commit +0 -3
- package/.prettierignore +0 -15
- package/LICENSE +0 -43
- package/README.md +0 -7
- package/eslint.config.mjs +0 -21
- package/prettier.config.mjs +0 -19
|
@@ -1,101 +1,35 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const WorkflowTransitionConfigSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
from: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
4
|
+
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
5
5
|
to: z.ZodString;
|
|
6
|
-
if: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
7
|
-
trigger: z.ZodOptional<z.ZodUnion<[z.ZodEnum<
|
|
6
|
+
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
7
|
+
trigger: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
8
|
+
manual: "manual";
|
|
9
|
+
onEntry: "onEntry";
|
|
10
|
+
}>, z.ZodString]>>;
|
|
8
11
|
call: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
12
|
id: z.ZodOptional<z.ZodString>;
|
|
10
13
|
tool: z.ZodString;
|
|
11
14
|
args: z.ZodOptional<z.ZodAny>;
|
|
12
|
-
assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
|
|
13
|
-
},
|
|
14
|
-
tool: string;
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
args?: any;
|
|
17
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
tool: string;
|
|
20
|
-
id?: string | undefined;
|
|
21
|
-
args?: any;
|
|
22
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
23
|
-
}>, "many">>;
|
|
15
|
+
assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
24
17
|
onError: z.ZodOptional<z.ZodString>;
|
|
25
|
-
},
|
|
26
|
-
id: string;
|
|
27
|
-
from: string | string[];
|
|
28
|
-
to: string;
|
|
29
|
-
if?: string | undefined;
|
|
30
|
-
trigger?: string | undefined;
|
|
31
|
-
call?: {
|
|
32
|
-
tool: string;
|
|
33
|
-
id?: string | undefined;
|
|
34
|
-
args?: any;
|
|
35
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
36
|
-
}[] | undefined;
|
|
37
|
-
onError?: string | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
id: string;
|
|
40
|
-
from: string | string[];
|
|
41
|
-
to: string;
|
|
42
|
-
if?: string | undefined;
|
|
43
|
-
trigger?: string | undefined;
|
|
44
|
-
call?: {
|
|
45
|
-
tool: string;
|
|
46
|
-
id?: string | undefined;
|
|
47
|
-
args?: any;
|
|
48
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
onError?: string | undefined;
|
|
51
|
-
}>;
|
|
18
|
+
}, z.core.$strict>;
|
|
52
19
|
export declare const WorkflowTransitionSchema: z.ZodObject<{
|
|
53
20
|
id: z.ZodString;
|
|
54
|
-
from: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
21
|
+
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
55
22
|
to: z.ZodString;
|
|
56
|
-
if: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
57
|
-
trigger: z.ZodOptional<z.ZodEnum<
|
|
23
|
+
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
24
|
+
trigger: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
manual: "manual";
|
|
26
|
+
onEntry: "onEntry";
|
|
27
|
+
}>>;
|
|
58
28
|
call: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
29
|
id: z.ZodOptional<z.ZodString>;
|
|
60
30
|
tool: z.ZodString;
|
|
61
31
|
args: z.ZodOptional<z.ZodAny>;
|
|
62
|
-
assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
|
|
63
|
-
},
|
|
64
|
-
tool: string;
|
|
65
|
-
id?: string | undefined;
|
|
66
|
-
args?: any;
|
|
67
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
68
|
-
}, {
|
|
69
|
-
tool: string;
|
|
70
|
-
id?: string | undefined;
|
|
71
|
-
args?: any;
|
|
72
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
73
|
-
}>, "many">>;
|
|
32
|
+
assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
74
34
|
onError: z.ZodOptional<z.ZodString>;
|
|
75
|
-
},
|
|
76
|
-
id: string;
|
|
77
|
-
from: string | string[];
|
|
78
|
-
to: string;
|
|
79
|
-
if?: string | undefined;
|
|
80
|
-
trigger?: "manual" | "onEntry" | undefined;
|
|
81
|
-
call?: {
|
|
82
|
-
tool: string;
|
|
83
|
-
id?: string | undefined;
|
|
84
|
-
args?: any;
|
|
85
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
86
|
-
}[] | undefined;
|
|
87
|
-
onError?: string | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
id: string;
|
|
90
|
-
from: string | string[];
|
|
91
|
-
to: string;
|
|
92
|
-
if?: string | undefined;
|
|
93
|
-
trigger?: "manual" | "onEntry" | undefined;
|
|
94
|
-
call?: {
|
|
95
|
-
tool: string;
|
|
96
|
-
id?: string | undefined;
|
|
97
|
-
args?: any;
|
|
98
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
99
|
-
}[] | undefined;
|
|
100
|
-
onError?: string | undefined;
|
|
101
|
-
}>;
|
|
35
|
+
}, z.core.$strict>;
|
|
@@ -1,444 +1,76 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const NamespacePropsSchema: z.ZodObject<{
|
|
3
3
|
label: z.ZodString;
|
|
4
|
-
},
|
|
5
|
-
label: string;
|
|
6
|
-
}, {
|
|
7
|
-
label: string;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export declare const WorkflowBaseSchema: z.ZodObject<{
|
|
10
6
|
title: z.ZodOptional<z.ZodString>;
|
|
11
7
|
description: z.ZodOptional<z.ZodString>;
|
|
12
8
|
ui: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<
|
|
9
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
10
|
transition: z.ZodString;
|
|
15
11
|
widget: z.ZodOptional<z.ZodString>;
|
|
16
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
17
|
-
} & {
|
|
12
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
13
|
type: z.ZodLiteral<"button">;
|
|
19
14
|
options: z.ZodOptional<z.ZodObject<{
|
|
20
15
|
position: z.ZodOptional<z.ZodNumber>;
|
|
21
16
|
label: z.ZodOptional<z.ZodString>;
|
|
22
17
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
label?: string | undefined;
|
|
26
|
-
props?: Record<string, any> | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
position?: number | undefined;
|
|
29
|
-
label?: string | undefined;
|
|
30
|
-
props?: Record<string, any> | undefined;
|
|
31
|
-
}>>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
type: "button";
|
|
34
|
-
transition: string;
|
|
35
|
-
options?: {
|
|
36
|
-
position?: number | undefined;
|
|
37
|
-
label?: string | undefined;
|
|
38
|
-
props?: Record<string, any> | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
widget?: string | undefined;
|
|
41
|
-
enabledWhen?: string[] | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
type: "button";
|
|
44
|
-
transition: string;
|
|
45
|
-
options?: {
|
|
46
|
-
position?: number | undefined;
|
|
47
|
-
label?: string | undefined;
|
|
48
|
-
props?: Record<string, any> | undefined;
|
|
49
|
-
} | undefined;
|
|
50
|
-
widget?: string | undefined;
|
|
51
|
-
enabledWhen?: string[] | undefined;
|
|
52
|
-
}>, z.ZodObject<{
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
20
|
transition: z.ZodString;
|
|
54
21
|
widget: z.ZodOptional<z.ZodString>;
|
|
55
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
56
|
-
} & {
|
|
22
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
23
|
type: z.ZodLiteral<"custom">;
|
|
58
24
|
options: z.ZodOptional<z.ZodObject<{
|
|
59
25
|
label: z.ZodOptional<z.ZodString>;
|
|
60
26
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
props?: Record<string, any> | undefined;
|
|
67
|
-
}>>;
|
|
68
|
-
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
type: "custom";
|
|
70
|
-
transition: string;
|
|
71
|
-
options?: {
|
|
72
|
-
label?: string | undefined;
|
|
73
|
-
props?: Record<string, any> | undefined;
|
|
74
|
-
} | undefined;
|
|
75
|
-
widget?: string | undefined;
|
|
76
|
-
enabledWhen?: string[] | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
type: "custom";
|
|
79
|
-
transition: string;
|
|
80
|
-
options?: {
|
|
81
|
-
label?: string | undefined;
|
|
82
|
-
props?: Record<string, any> | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
widget?: string | undefined;
|
|
85
|
-
enabledWhen?: string[] | undefined;
|
|
86
|
-
}>]>, "many">>;
|
|
87
|
-
form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
form?: any;
|
|
90
|
-
actions?: ({
|
|
91
|
-
type: "button";
|
|
92
|
-
transition: string;
|
|
93
|
-
options?: {
|
|
94
|
-
position?: number | undefined;
|
|
95
|
-
label?: string | undefined;
|
|
96
|
-
props?: Record<string, any> | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
widget?: string | undefined;
|
|
99
|
-
enabledWhen?: string[] | undefined;
|
|
100
|
-
} | {
|
|
101
|
-
type: "custom";
|
|
102
|
-
transition: string;
|
|
103
|
-
options?: {
|
|
104
|
-
label?: string | undefined;
|
|
105
|
-
props?: Record<string, any> | undefined;
|
|
106
|
-
} | undefined;
|
|
107
|
-
widget?: string | undefined;
|
|
108
|
-
enabledWhen?: string[] | undefined;
|
|
109
|
-
})[] | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
form?: any;
|
|
112
|
-
actions?: ({
|
|
113
|
-
type: "button";
|
|
114
|
-
transition: string;
|
|
115
|
-
options?: {
|
|
116
|
-
position?: number | undefined;
|
|
117
|
-
label?: string | undefined;
|
|
118
|
-
props?: Record<string, any> | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
widget?: string | undefined;
|
|
121
|
-
enabledWhen?: string[] | undefined;
|
|
122
|
-
} | {
|
|
123
|
-
type: "custom";
|
|
124
|
-
transition: string;
|
|
125
|
-
options?: {
|
|
126
|
-
label?: string | undefined;
|
|
127
|
-
props?: Record<string, any> | undefined;
|
|
128
|
-
} | undefined;
|
|
129
|
-
widget?: string | undefined;
|
|
130
|
-
enabledWhen?: string[] | undefined;
|
|
131
|
-
})[] | undefined;
|
|
132
|
-
}>>;
|
|
133
|
-
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
title?: string | undefined;
|
|
135
|
-
description?: string | undefined;
|
|
136
|
-
ui?: {
|
|
137
|
-
form?: any;
|
|
138
|
-
actions?: ({
|
|
139
|
-
type: "button";
|
|
140
|
-
transition: string;
|
|
141
|
-
options?: {
|
|
142
|
-
position?: number | undefined;
|
|
143
|
-
label?: string | undefined;
|
|
144
|
-
props?: Record<string, any> | undefined;
|
|
145
|
-
} | undefined;
|
|
146
|
-
widget?: string | undefined;
|
|
147
|
-
enabledWhen?: string[] | undefined;
|
|
148
|
-
} | {
|
|
149
|
-
type: "custom";
|
|
150
|
-
transition: string;
|
|
151
|
-
options?: {
|
|
152
|
-
label?: string | undefined;
|
|
153
|
-
props?: Record<string, any> | undefined;
|
|
154
|
-
} | undefined;
|
|
155
|
-
widget?: string | undefined;
|
|
156
|
-
enabledWhen?: string[] | undefined;
|
|
157
|
-
})[] | undefined;
|
|
158
|
-
} | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
title?: string | undefined;
|
|
161
|
-
description?: string | undefined;
|
|
162
|
-
ui?: {
|
|
163
|
-
form?: any;
|
|
164
|
-
actions?: ({
|
|
165
|
-
type: "button";
|
|
166
|
-
transition: string;
|
|
167
|
-
options?: {
|
|
168
|
-
position?: number | undefined;
|
|
169
|
-
label?: string | undefined;
|
|
170
|
-
props?: Record<string, any> | undefined;
|
|
171
|
-
} | undefined;
|
|
172
|
-
widget?: string | undefined;
|
|
173
|
-
enabledWhen?: string[] | undefined;
|
|
174
|
-
} | {
|
|
175
|
-
type: "custom";
|
|
176
|
-
transition: string;
|
|
177
|
-
options?: {
|
|
178
|
-
label?: string | undefined;
|
|
179
|
-
props?: Record<string, any> | undefined;
|
|
180
|
-
} | undefined;
|
|
181
|
-
widget?: string | undefined;
|
|
182
|
-
enabledWhen?: string[] | undefined;
|
|
183
|
-
})[] | undefined;
|
|
184
|
-
} | undefined;
|
|
185
|
-
}>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
}, z.core.$strip>], "type">>>;
|
|
29
|
+
form: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
186
32
|
export declare const WorkflowSchema: z.ZodObject<{
|
|
187
33
|
title: z.ZodOptional<z.ZodString>;
|
|
188
34
|
description: z.ZodOptional<z.ZodString>;
|
|
189
35
|
ui: z.ZodOptional<z.ZodObject<{
|
|
190
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<
|
|
36
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
191
37
|
transition: z.ZodString;
|
|
192
38
|
widget: z.ZodOptional<z.ZodString>;
|
|
193
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
194
|
-
} & {
|
|
39
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
195
40
|
type: z.ZodLiteral<"button">;
|
|
196
41
|
options: z.ZodOptional<z.ZodObject<{
|
|
197
42
|
position: z.ZodOptional<z.ZodNumber>;
|
|
198
43
|
label: z.ZodOptional<z.ZodString>;
|
|
199
44
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
label?: string | undefined;
|
|
203
|
-
props?: Record<string, any> | undefined;
|
|
204
|
-
}, {
|
|
205
|
-
position?: number | undefined;
|
|
206
|
-
label?: string | undefined;
|
|
207
|
-
props?: Record<string, any> | undefined;
|
|
208
|
-
}>>;
|
|
209
|
-
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
type: "button";
|
|
211
|
-
transition: string;
|
|
212
|
-
options?: {
|
|
213
|
-
position?: number | undefined;
|
|
214
|
-
label?: string | undefined;
|
|
215
|
-
props?: Record<string, any> | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
widget?: string | undefined;
|
|
218
|
-
enabledWhen?: string[] | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
type: "button";
|
|
221
|
-
transition: string;
|
|
222
|
-
options?: {
|
|
223
|
-
position?: number | undefined;
|
|
224
|
-
label?: string | undefined;
|
|
225
|
-
props?: Record<string, any> | undefined;
|
|
226
|
-
} | undefined;
|
|
227
|
-
widget?: string | undefined;
|
|
228
|
-
enabledWhen?: string[] | undefined;
|
|
229
|
-
}>, z.ZodObject<{
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
47
|
transition: z.ZodString;
|
|
231
48
|
widget: z.ZodOptional<z.ZodString>;
|
|
232
|
-
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString
|
|
233
|
-
} & {
|
|
49
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
234
50
|
type: z.ZodLiteral<"custom">;
|
|
235
51
|
options: z.ZodOptional<z.ZodObject<{
|
|
236
52
|
label: z.ZodOptional<z.ZodString>;
|
|
237
53
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
label?: string | undefined;
|
|
243
|
-
props?: Record<string, any> | undefined;
|
|
244
|
-
}>>;
|
|
245
|
-
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
type: "custom";
|
|
247
|
-
transition: string;
|
|
248
|
-
options?: {
|
|
249
|
-
label?: string | undefined;
|
|
250
|
-
props?: Record<string, any> | undefined;
|
|
251
|
-
} | undefined;
|
|
252
|
-
widget?: string | undefined;
|
|
253
|
-
enabledWhen?: string[] | undefined;
|
|
254
|
-
}, {
|
|
255
|
-
type: "custom";
|
|
256
|
-
transition: string;
|
|
257
|
-
options?: {
|
|
258
|
-
label?: string | undefined;
|
|
259
|
-
props?: Record<string, any> | undefined;
|
|
260
|
-
} | undefined;
|
|
261
|
-
widget?: string | undefined;
|
|
262
|
-
enabledWhen?: string[] | undefined;
|
|
263
|
-
}>]>, "many">>;
|
|
264
|
-
form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
265
|
-
}, "strip", z.ZodTypeAny, {
|
|
266
|
-
form?: any;
|
|
267
|
-
actions?: ({
|
|
268
|
-
type: "button";
|
|
269
|
-
transition: string;
|
|
270
|
-
options?: {
|
|
271
|
-
position?: number | undefined;
|
|
272
|
-
label?: string | undefined;
|
|
273
|
-
props?: Record<string, any> | undefined;
|
|
274
|
-
} | undefined;
|
|
275
|
-
widget?: string | undefined;
|
|
276
|
-
enabledWhen?: string[] | undefined;
|
|
277
|
-
} | {
|
|
278
|
-
type: "custom";
|
|
279
|
-
transition: string;
|
|
280
|
-
options?: {
|
|
281
|
-
label?: string | undefined;
|
|
282
|
-
props?: Record<string, any> | undefined;
|
|
283
|
-
} | undefined;
|
|
284
|
-
widget?: string | undefined;
|
|
285
|
-
enabledWhen?: string[] | undefined;
|
|
286
|
-
})[] | undefined;
|
|
287
|
-
}, {
|
|
288
|
-
form?: any;
|
|
289
|
-
actions?: ({
|
|
290
|
-
type: "button";
|
|
291
|
-
transition: string;
|
|
292
|
-
options?: {
|
|
293
|
-
position?: number | undefined;
|
|
294
|
-
label?: string | undefined;
|
|
295
|
-
props?: Record<string, any> | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
widget?: string | undefined;
|
|
298
|
-
enabledWhen?: string[] | undefined;
|
|
299
|
-
} | {
|
|
300
|
-
type: "custom";
|
|
301
|
-
transition: string;
|
|
302
|
-
options?: {
|
|
303
|
-
label?: string | undefined;
|
|
304
|
-
props?: Record<string, any> | undefined;
|
|
305
|
-
} | undefined;
|
|
306
|
-
widget?: string | undefined;
|
|
307
|
-
enabledWhen?: string[] | undefined;
|
|
308
|
-
})[] | undefined;
|
|
309
|
-
}>>;
|
|
310
|
-
} & {
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>], "type">>>;
|
|
56
|
+
form: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
311
58
|
type: z.ZodDefault<z.ZodLiteral<"workflow">>;
|
|
312
59
|
transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
60
|
id: z.ZodString;
|
|
314
|
-
from: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
61
|
+
from: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
315
62
|
to: z.ZodString;
|
|
316
|
-
if: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
317
|
-
trigger: z.ZodOptional<z.ZodUnion<[z.ZodEnum<
|
|
63
|
+
if: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodLiteral<"true">, z.ZodLiteral<"false">]>>;
|
|
64
|
+
trigger: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
65
|
+
manual: "manual";
|
|
66
|
+
onEntry: "onEntry";
|
|
67
|
+
}>, z.ZodString]>>;
|
|
318
68
|
call: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
69
|
id: z.ZodOptional<z.ZodString>;
|
|
320
70
|
tool: z.ZodString;
|
|
321
71
|
args: z.ZodOptional<z.ZodAny>;
|
|
322
|
-
assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
|
|
323
|
-
},
|
|
324
|
-
tool: string;
|
|
325
|
-
id?: string | undefined;
|
|
326
|
-
args?: any;
|
|
327
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
328
|
-
}, {
|
|
329
|
-
tool: string;
|
|
330
|
-
id?: string | undefined;
|
|
331
|
-
args?: any;
|
|
332
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
333
|
-
}>, "many">>;
|
|
72
|
+
assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
334
74
|
onError: z.ZodOptional<z.ZodString>;
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
from: string | string[];
|
|
338
|
-
to: string;
|
|
339
|
-
if?: string | undefined;
|
|
340
|
-
trigger?: string | undefined;
|
|
341
|
-
call?: {
|
|
342
|
-
tool: string;
|
|
343
|
-
id?: string | undefined;
|
|
344
|
-
args?: any;
|
|
345
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
346
|
-
}[] | undefined;
|
|
347
|
-
onError?: string | undefined;
|
|
348
|
-
}, {
|
|
349
|
-
id: string;
|
|
350
|
-
from: string | string[];
|
|
351
|
-
to: string;
|
|
352
|
-
if?: string | undefined;
|
|
353
|
-
trigger?: string | undefined;
|
|
354
|
-
call?: {
|
|
355
|
-
tool: string;
|
|
356
|
-
id?: string | undefined;
|
|
357
|
-
args?: any;
|
|
358
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
359
|
-
}[] | undefined;
|
|
360
|
-
onError?: string | undefined;
|
|
361
|
-
}>, "many">>;
|
|
362
|
-
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
type: "workflow";
|
|
364
|
-
title?: string | undefined;
|
|
365
|
-
description?: string | undefined;
|
|
366
|
-
ui?: {
|
|
367
|
-
form?: any;
|
|
368
|
-
actions?: ({
|
|
369
|
-
type: "button";
|
|
370
|
-
transition: string;
|
|
371
|
-
options?: {
|
|
372
|
-
position?: number | undefined;
|
|
373
|
-
label?: string | undefined;
|
|
374
|
-
props?: Record<string, any> | undefined;
|
|
375
|
-
} | undefined;
|
|
376
|
-
widget?: string | undefined;
|
|
377
|
-
enabledWhen?: string[] | undefined;
|
|
378
|
-
} | {
|
|
379
|
-
type: "custom";
|
|
380
|
-
transition: string;
|
|
381
|
-
options?: {
|
|
382
|
-
label?: string | undefined;
|
|
383
|
-
props?: Record<string, any> | undefined;
|
|
384
|
-
} | undefined;
|
|
385
|
-
widget?: string | undefined;
|
|
386
|
-
enabledWhen?: string[] | undefined;
|
|
387
|
-
})[] | undefined;
|
|
388
|
-
} | undefined;
|
|
389
|
-
transitions?: {
|
|
390
|
-
id: string;
|
|
391
|
-
from: string | string[];
|
|
392
|
-
to: string;
|
|
393
|
-
if?: string | undefined;
|
|
394
|
-
trigger?: string | undefined;
|
|
395
|
-
call?: {
|
|
396
|
-
tool: string;
|
|
397
|
-
id?: string | undefined;
|
|
398
|
-
args?: any;
|
|
399
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
400
|
-
}[] | undefined;
|
|
401
|
-
onError?: string | undefined;
|
|
402
|
-
}[] | undefined;
|
|
403
|
-
}, {
|
|
404
|
-
type?: "workflow" | undefined;
|
|
405
|
-
title?: string | undefined;
|
|
406
|
-
description?: string | undefined;
|
|
407
|
-
ui?: {
|
|
408
|
-
form?: any;
|
|
409
|
-
actions?: ({
|
|
410
|
-
type: "button";
|
|
411
|
-
transition: string;
|
|
412
|
-
options?: {
|
|
413
|
-
position?: number | undefined;
|
|
414
|
-
label?: string | undefined;
|
|
415
|
-
props?: Record<string, any> | undefined;
|
|
416
|
-
} | undefined;
|
|
417
|
-
widget?: string | undefined;
|
|
418
|
-
enabledWhen?: string[] | undefined;
|
|
419
|
-
} | {
|
|
420
|
-
type: "custom";
|
|
421
|
-
transition: string;
|
|
422
|
-
options?: {
|
|
423
|
-
label?: string | undefined;
|
|
424
|
-
props?: Record<string, any> | undefined;
|
|
425
|
-
} | undefined;
|
|
426
|
-
widget?: string | undefined;
|
|
427
|
-
enabledWhen?: string[] | undefined;
|
|
428
|
-
})[] | undefined;
|
|
429
|
-
} | undefined;
|
|
430
|
-
transitions?: {
|
|
431
|
-
id: string;
|
|
432
|
-
from: string | string[];
|
|
433
|
-
to: string;
|
|
434
|
-
if?: string | undefined;
|
|
435
|
-
trigger?: string | undefined;
|
|
436
|
-
call?: {
|
|
437
|
-
tool: string;
|
|
438
|
-
id?: string | undefined;
|
|
439
|
-
args?: any;
|
|
440
|
-
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
441
|
-
}[] | undefined;
|
|
442
|
-
onError?: string | undefined;
|
|
443
|
-
}[] | undefined;
|
|
444
|
-
}>;
|
|
75
|
+
}, z.core.$strict>>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
@@ -3,12 +3,4 @@ export declare const WorkspaceSchema: z.ZodObject<{
|
|
|
3
3
|
type: z.ZodDefault<z.ZodLiteral<"workspace">>;
|
|
4
4
|
title: z.ZodOptional<z.ZodString>;
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
},
|
|
7
|
-
type: "workspace";
|
|
8
|
-
title?: string | undefined;
|
|
9
|
-
description?: string | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
type?: "workspace" | undefined;
|
|
12
|
-
title?: string | undefined;
|
|
13
|
-
description?: string | undefined;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|