@loopstack/contracts 0.14.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/LICENSE +43 -0
- package/README.md +7 -0
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/enums/index.js +19 -0
- package/dist/enums/pipeline-state.d.ts +8 -0
- package/dist/enums/pipeline-state.d.ts.map +1 -0
- package/dist/enums/pipeline-state.js +12 -0
- package/dist/enums/user-type.enum.d.ts +4 -0
- package/dist/enums/user-type.enum.d.ts.map +1 -0
- package/dist/enums/user-type.enum.js +8 -0
- package/dist/enums/workflow-state.enum.d.ts +8 -0
- package/dist/enums/workflow-state.enum.d.ts.map +1 -0
- package/dist/enums/workflow-state.enum.js +12 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/schemas/assignment.schema.d.ts +3 -0
- package/dist/schemas/assignment.schema.d.ts.map +1 -0
- package/dist/schemas/assignment.schema.js +20 -0
- package/dist/schemas/block.schema.d.ts +2 -0
- package/dist/schemas/block.schema.d.ts.map +1 -0
- package/dist/schemas/block.schema.js +5 -0
- package/dist/schemas/document.schema.d.ts +826 -0
- package/dist/schemas/document.schema.d.ts.map +1 -0
- package/dist/schemas/document.schema.js +91 -0
- package/dist/schemas/index.d.ts +16 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +32 -0
- package/dist/schemas/json-schema.schema.d.ts +2 -0
- package/dist/schemas/json-schema.schema.d.ts.map +1 -0
- package/dist/schemas/json-schema.schema.js +58 -0
- package/dist/schemas/main.schema.d.ts +1126 -0
- package/dist/schemas/main.schema.d.ts.map +1 -0
- package/dist/schemas/main.schema.js +17 -0
- package/dist/schemas/pipeline.schema.d.ts +932 -0
- package/dist/schemas/pipeline.schema.d.ts.map +1 -0
- package/dist/schemas/pipeline.schema.js +57 -0
- package/dist/schemas/startup.schema.d.ts +637 -0
- package/dist/schemas/startup.schema.d.ts.map +1 -0
- package/dist/schemas/startup.schema.js +78 -0
- package/dist/schemas/template-expression.schema.d.ts +2 -0
- package/dist/schemas/template-expression.schema.d.ts.map +1 -0
- package/dist/schemas/template-expression.schema.js +5 -0
- package/dist/schemas/tool-call.schema.d.ts +17 -0
- package/dist/schemas/tool-call.schema.d.ts.map +1 -0
- package/dist/schemas/tool-call.schema.js +11 -0
- package/dist/schemas/tool-config.schema.d.ts +178 -0
- package/dist/schemas/tool-config.schema.d.ts.map +1 -0
- package/dist/schemas/tool-config.schema.js +11 -0
- package/dist/schemas/transition-payload.schema.d.ts +17 -0
- package/dist/schemas/transition-payload.schema.d.ts.map +1 -0
- package/dist/schemas/transition-payload.schema.js +10 -0
- package/dist/schemas/ui-form-element.schema.d.ts +89 -0
- package/dist/schemas/ui-form-element.schema.d.ts.map +1 -0
- package/dist/schemas/ui-form-element.schema.js +38 -0
- package/dist/schemas/ui-form.schema.d.ts +300 -0
- package/dist/schemas/ui-form.schema.d.ts.map +1 -0
- package/dist/schemas/ui-form.schema.js +39 -0
- package/dist/schemas/ui-properties-schema.d.ts +2 -0
- package/dist/schemas/ui-properties-schema.d.ts.map +1 -0
- package/dist/schemas/ui-properties-schema.js +9 -0
- package/dist/schemas/workflow-transition.schema.d.ts +48 -0
- package/dist/schemas/workflow-transition.schema.d.ts.map +1 -0
- package/dist/schemas/workflow-transition.schema.js +17 -0
- package/dist/schemas/workflow.schema.d.ts +439 -0
- package/dist/schemas/workflow.schema.d.ts.map +1 -0
- package/dist/schemas/workflow.schema.js +19 -0
- package/dist/schemas/workspace.schema.d.ts +14 -0
- package/dist/schemas/workspace.schema.d.ts.map +1 -0
- package/dist/schemas/workspace.schema.js +10 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +18 -0
- package/dist/types/interfaces/client-message.interface.d.ts +10 -0
- package/dist/types/interfaces/client-message.interface.d.ts.map +1 -0
- package/dist/types/interfaces/client-message.interface.js +2 -0
- package/dist/types/interfaces/document-item.interface.d.ts +25 -0
- package/dist/types/interfaces/document-item.interface.d.ts.map +1 -0
- package/dist/types/interfaces/document-item.interface.js +2 -0
- package/dist/types/interfaces/history-transition.interface.d.ts +5 -0
- package/dist/types/interfaces/history-transition.interface.d.ts.map +1 -0
- package/dist/types/interfaces/history-transition.interface.js +2 -0
- package/dist/types/interfaces/index.d.ts +9 -0
- package/dist/types/interfaces/index.d.ts.map +1 -0
- package/dist/types/interfaces/index.js +25 -0
- package/dist/types/interfaces/namespace-create.interface.d.ts +8 -0
- package/dist/types/interfaces/namespace-create.interface.d.ts.map +1 -0
- package/dist/types/interfaces/namespace-create.interface.js +2 -0
- package/dist/types/interfaces/pipeline-config.interface.d.ts +8 -0
- package/dist/types/interfaces/pipeline-config.interface.d.ts.map +1 -0
- package/dist/types/interfaces/pipeline-config.interface.js +2 -0
- package/dist/types/interfaces/transition-info.interface.d.ts +6 -0
- package/dist/types/interfaces/transition-info.interface.d.ts.map +1 -0
- package/dist/types/interfaces/transition-info.interface.js +2 -0
- package/dist/types/interfaces/transition-metadata.interface.d.ts +4 -0
- package/dist/types/interfaces/transition-metadata.interface.d.ts.map +1 -0
- package/dist/types/interfaces/transition-metadata.interface.js +2 -0
- package/dist/types/interfaces/transition-payload.interface.d.ts +2 -0
- package/dist/types/interfaces/transition-payload.interface.d.ts.map +1 -0
- package/dist/types/interfaces/transition-payload.interface.js +2 -0
- package/dist/types/interfaces/workflow.interface.d.ts +26 -0
- package/dist/types/interfaces/workflow.interface.d.ts.map +1 -0
- package/dist/types/interfaces/workflow.interface.js +2 -0
- package/dist/types/types/assignment.type.d.ts +4 -0
- package/dist/types/types/assignment.type.d.ts.map +1 -0
- package/dist/types/types/assignment.type.js +2 -0
- package/dist/types/types/document.type.d.ts +6 -0
- package/dist/types/types/document.type.d.ts.map +1 -0
- package/dist/types/types/document.type.js +2 -0
- package/dist/types/types/index.d.ts +17 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/index.js +33 -0
- package/dist/types/types/json-schema-config.type.d.ts +4 -0
- package/dist/types/types/json-schema-config.type.d.ts.map +1 -0
- package/dist/types/types/json-schema-config.type.js +2 -0
- package/dist/types/types/main.type.d.ts +9 -0
- package/dist/types/types/main.type.d.ts.map +1 -0
- package/dist/types/types/main.type.js +2 -0
- package/dist/types/types/pipeline-state.type.d.ts +1 -0
- package/dist/types/types/pipeline-state.type.d.ts.map +1 -0
- package/dist/types/types/pipeline-state.type.js +2 -0
- package/dist/types/types/pipeline.type.d.ts +9 -0
- package/dist/types/types/pipeline.type.d.ts.map +1 -0
- package/dist/types/types/pipeline.type.js +2 -0
- package/dist/types/types/startup.type.d.ts +4 -0
- package/dist/types/types/startup.type.d.ts.map +1 -0
- package/dist/types/types/startup.type.js +2 -0
- package/dist/types/types/tool-call.type.d.ts +3 -0
- package/dist/types/types/tool-call.type.d.ts.map +1 -0
- package/dist/types/types/tool-call.type.js +2 -0
- package/dist/types/types/tool-config.type.d.ts +3 -0
- package/dist/types/types/tool-config.type.d.ts.map +1 -0
- package/dist/types/types/tool-config.type.js +2 -0
- package/dist/types/types/transition-payload.type.d.ts +3 -0
- package/dist/types/types/transition-payload.type.d.ts.map +1 -0
- package/dist/types/types/transition-payload.type.js +2 -0
- package/dist/types/types/ui-element.type.d.ts +3 -0
- package/dist/types/types/ui-element.type.d.ts.map +1 -0
- package/dist/types/types/ui-element.type.js +2 -0
- package/dist/types/types/ui-form.type.d.ts +6 -0
- package/dist/types/types/ui-form.type.d.ts.map +1 -0
- package/dist/types/types/ui-form.type.js +2 -0
- package/dist/types/types/ui-properties.type.d.ts +4 -0
- package/dist/types/types/ui-properties.type.d.ts.map +1 -0
- package/dist/types/types/ui-properties.type.js +2 -0
- package/dist/types/types/workflow-state.type.d.ts +1 -0
- package/dist/types/types/workflow-state.type.d.ts.map +1 -0
- package/dist/types/types/workflow-state.type.js +2 -0
- package/dist/types/types/workflow-transition.type.d.ts +3 -0
- package/dist/types/types/workflow-transition.type.d.ts.map +1 -0
- package/dist/types/types/workflow-transition.type.js +2 -0
- package/dist/types/types/workflow.type.d.ts +4 -0
- package/dist/types/types/workflow.type.d.ts.map +1 -0
- package/dist/types/types/workflow.type.js +2 -0
- package/dist/types/types/workspace.type.d.ts +3 -0
- package/dist/types/types/workspace.type.d.ts.map +1 -0
- package/dist/types/types/workspace.type.js +2 -0
- package/package.json +48 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const UiFormBaseSchema: z.ZodObject<{
|
|
3
|
+
transition: z.ZodString;
|
|
4
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
5
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
transition: string;
|
|
8
|
+
widget?: string | undefined;
|
|
9
|
+
enabledWhen?: string[] | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
transition: string;
|
|
12
|
+
widget?: string | undefined;
|
|
13
|
+
enabledWhen?: string[] | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const UiFormButtonOptionsSchema: z.ZodObject<{
|
|
16
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
label: z.ZodOptional<z.ZodString>;
|
|
18
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
19
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
variant?: string | undefined;
|
|
22
|
+
position?: number | undefined;
|
|
23
|
+
label?: string | undefined;
|
|
24
|
+
props?: Record<string, any> | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
variant?: string | undefined;
|
|
27
|
+
position?: number | undefined;
|
|
28
|
+
label?: string | undefined;
|
|
29
|
+
props?: Record<string, any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const UiFormButtonSchema: z.ZodObject<{
|
|
32
|
+
transition: z.ZodString;
|
|
33
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
34
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
+
} & {
|
|
36
|
+
type: z.ZodLiteral<"button">;
|
|
37
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
label: z.ZodOptional<z.ZodString>;
|
|
40
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
position?: number | undefined;
|
|
43
|
+
label?: string | undefined;
|
|
44
|
+
props?: Record<string, any> | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
position?: number | undefined;
|
|
47
|
+
label?: string | undefined;
|
|
48
|
+
props?: Record<string, any> | undefined;
|
|
49
|
+
}>>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
type: "button";
|
|
52
|
+
transition: string;
|
|
53
|
+
options?: {
|
|
54
|
+
position?: number | undefined;
|
|
55
|
+
label?: string | undefined;
|
|
56
|
+
props?: Record<string, any> | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
widget?: string | undefined;
|
|
59
|
+
enabledWhen?: string[] | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
type: "button";
|
|
62
|
+
transition: string;
|
|
63
|
+
options?: {
|
|
64
|
+
position?: number | undefined;
|
|
65
|
+
label?: string | undefined;
|
|
66
|
+
props?: Record<string, any> | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
widget?: string | undefined;
|
|
69
|
+
enabledWhen?: string[] | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export declare const UiFormCustomSchema: z.ZodObject<{
|
|
72
|
+
transition: z.ZodString;
|
|
73
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
74
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
|
+
} & {
|
|
76
|
+
type: z.ZodLiteral<"custom">;
|
|
77
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
label: z.ZodOptional<z.ZodString>;
|
|
79
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
label?: string | undefined;
|
|
82
|
+
props?: Record<string, any> | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
label?: string | undefined;
|
|
85
|
+
props?: Record<string, any> | undefined;
|
|
86
|
+
}>>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
type: "custom";
|
|
89
|
+
transition: string;
|
|
90
|
+
options?: {
|
|
91
|
+
label?: string | undefined;
|
|
92
|
+
props?: Record<string, any> | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
widget?: string | undefined;
|
|
95
|
+
enabledWhen?: string[] | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
type: "custom";
|
|
98
|
+
transition: string;
|
|
99
|
+
options?: {
|
|
100
|
+
label?: string | undefined;
|
|
101
|
+
props?: Record<string, any> | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
widget?: string | undefined;
|
|
104
|
+
enabledWhen?: string[] | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
export declare const UiWidgetSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
107
|
+
transition: z.ZodString;
|
|
108
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
109
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
110
|
+
} & {
|
|
111
|
+
type: z.ZodLiteral<"button">;
|
|
112
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
label: z.ZodOptional<z.ZodString>;
|
|
115
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
position?: number | undefined;
|
|
118
|
+
label?: string | undefined;
|
|
119
|
+
props?: Record<string, any> | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
position?: number | undefined;
|
|
122
|
+
label?: string | undefined;
|
|
123
|
+
props?: Record<string, any> | undefined;
|
|
124
|
+
}>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
type: "button";
|
|
127
|
+
transition: string;
|
|
128
|
+
options?: {
|
|
129
|
+
position?: number | undefined;
|
|
130
|
+
label?: string | undefined;
|
|
131
|
+
props?: Record<string, any> | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
widget?: string | undefined;
|
|
134
|
+
enabledWhen?: string[] | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
type: "button";
|
|
137
|
+
transition: string;
|
|
138
|
+
options?: {
|
|
139
|
+
position?: number | undefined;
|
|
140
|
+
label?: string | undefined;
|
|
141
|
+
props?: Record<string, any> | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
widget?: string | undefined;
|
|
144
|
+
enabledWhen?: string[] | undefined;
|
|
145
|
+
}>, z.ZodObject<{
|
|
146
|
+
transition: z.ZodString;
|
|
147
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
148
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
149
|
+
} & {
|
|
150
|
+
type: z.ZodLiteral<"custom">;
|
|
151
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
label: z.ZodOptional<z.ZodString>;
|
|
153
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
label?: string | undefined;
|
|
156
|
+
props?: Record<string, any> | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
label?: string | undefined;
|
|
159
|
+
props?: Record<string, any> | undefined;
|
|
160
|
+
}>>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
type: "custom";
|
|
163
|
+
transition: string;
|
|
164
|
+
options?: {
|
|
165
|
+
label?: string | undefined;
|
|
166
|
+
props?: Record<string, any> | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
widget?: string | undefined;
|
|
169
|
+
enabledWhen?: string[] | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
type: "custom";
|
|
172
|
+
transition: string;
|
|
173
|
+
options?: {
|
|
174
|
+
label?: string | undefined;
|
|
175
|
+
props?: Record<string, any> | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
widget?: string | undefined;
|
|
178
|
+
enabledWhen?: string[] | undefined;
|
|
179
|
+
}>]>;
|
|
180
|
+
export declare const UiFormSchema: z.ZodObject<{
|
|
181
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
182
|
+
transition: z.ZodString;
|
|
183
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
184
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
185
|
+
} & {
|
|
186
|
+
type: z.ZodLiteral<"button">;
|
|
187
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
label: z.ZodOptional<z.ZodString>;
|
|
190
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
position?: number | undefined;
|
|
193
|
+
label?: string | undefined;
|
|
194
|
+
props?: Record<string, any> | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
position?: number | undefined;
|
|
197
|
+
label?: string | undefined;
|
|
198
|
+
props?: Record<string, any> | undefined;
|
|
199
|
+
}>>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
type: "button";
|
|
202
|
+
transition: string;
|
|
203
|
+
options?: {
|
|
204
|
+
position?: number | undefined;
|
|
205
|
+
label?: string | undefined;
|
|
206
|
+
props?: Record<string, any> | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
widget?: string | undefined;
|
|
209
|
+
enabledWhen?: string[] | undefined;
|
|
210
|
+
}, {
|
|
211
|
+
type: "button";
|
|
212
|
+
transition: string;
|
|
213
|
+
options?: {
|
|
214
|
+
position?: number | undefined;
|
|
215
|
+
label?: string | undefined;
|
|
216
|
+
props?: Record<string, any> | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
widget?: string | undefined;
|
|
219
|
+
enabledWhen?: string[] | undefined;
|
|
220
|
+
}>, z.ZodObject<{
|
|
221
|
+
transition: z.ZodString;
|
|
222
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
223
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
224
|
+
} & {
|
|
225
|
+
type: z.ZodLiteral<"custom">;
|
|
226
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
label: z.ZodOptional<z.ZodString>;
|
|
228
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
label?: string | undefined;
|
|
231
|
+
props?: Record<string, any> | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
label?: string | undefined;
|
|
234
|
+
props?: Record<string, any> | undefined;
|
|
235
|
+
}>>;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
type: "custom";
|
|
238
|
+
transition: string;
|
|
239
|
+
options?: {
|
|
240
|
+
label?: string | undefined;
|
|
241
|
+
props?: Record<string, any> | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
widget?: string | undefined;
|
|
244
|
+
enabledWhen?: string[] | undefined;
|
|
245
|
+
}, {
|
|
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
|
+
}>]>, "many">>;
|
|
255
|
+
form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
form?: any;
|
|
258
|
+
actions?: ({
|
|
259
|
+
type: "button";
|
|
260
|
+
transition: string;
|
|
261
|
+
options?: {
|
|
262
|
+
position?: number | undefined;
|
|
263
|
+
label?: string | undefined;
|
|
264
|
+
props?: Record<string, any> | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
widget?: string | undefined;
|
|
267
|
+
enabledWhen?: string[] | undefined;
|
|
268
|
+
} | {
|
|
269
|
+
type: "custom";
|
|
270
|
+
transition: string;
|
|
271
|
+
options?: {
|
|
272
|
+
label?: string | undefined;
|
|
273
|
+
props?: Record<string, any> | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
widget?: string | undefined;
|
|
276
|
+
enabledWhen?: string[] | undefined;
|
|
277
|
+
})[] | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
form?: any;
|
|
280
|
+
actions?: ({
|
|
281
|
+
type: "button";
|
|
282
|
+
transition: string;
|
|
283
|
+
options?: {
|
|
284
|
+
position?: number | undefined;
|
|
285
|
+
label?: string | undefined;
|
|
286
|
+
props?: Record<string, any> | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
widget?: string | undefined;
|
|
289
|
+
enabledWhen?: string[] | undefined;
|
|
290
|
+
} | {
|
|
291
|
+
type: "custom";
|
|
292
|
+
transition: string;
|
|
293
|
+
options?: {
|
|
294
|
+
label?: string | undefined;
|
|
295
|
+
props?: Record<string, any> | undefined;
|
|
296
|
+
} | undefined;
|
|
297
|
+
widget?: string | undefined;
|
|
298
|
+
enabledWhen?: string[] | undefined;
|
|
299
|
+
})[] | undefined;
|
|
300
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-form.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/ui-form.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,CAAC,EAAE,MAAM,KAAK,CAAC;AAG5C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGzB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGvB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UiFormSchema = exports.UiWidgetSchema = exports.UiFormCustomSchema = exports.UiFormButtonSchema = exports.UiFormButtonOptionsSchema = exports.UiFormBaseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ui_properties_schema_1 = require("./ui-properties-schema");
|
|
6
|
+
exports.UiFormBaseSchema = zod_1.z.object({
|
|
7
|
+
transition: zod_1.z.string(),
|
|
8
|
+
widget: zod_1.z.string().optional(),
|
|
9
|
+
enabledWhen: zod_1.z.array(zod_1.z.string()).optional(),
|
|
10
|
+
});
|
|
11
|
+
exports.UiFormButtonOptionsSchema = zod_1.z.object({
|
|
12
|
+
position: zod_1.z.number().optional(),
|
|
13
|
+
label: zod_1.z.string().optional(),
|
|
14
|
+
variant: zod_1.z.string().optional(),
|
|
15
|
+
props: zod_1.z.record(zod_1.z.any()).optional(),
|
|
16
|
+
});
|
|
17
|
+
exports.UiFormButtonSchema = exports.UiFormBaseSchema.extend({
|
|
18
|
+
type: zod_1.z.literal('button'),
|
|
19
|
+
options: zod_1.z.object({
|
|
20
|
+
position: zod_1.z.number().optional(),
|
|
21
|
+
label: zod_1.z.string().optional(),
|
|
22
|
+
props: zod_1.z.record(zod_1.z.any()).optional(),
|
|
23
|
+
}).optional(),
|
|
24
|
+
});
|
|
25
|
+
exports.UiFormCustomSchema = exports.UiFormBaseSchema.extend({
|
|
26
|
+
type: zod_1.z.literal('custom'),
|
|
27
|
+
options: zod_1.z.object({
|
|
28
|
+
label: zod_1.z.string().optional(),
|
|
29
|
+
props: zod_1.z.record(zod_1.z.any()).optional(),
|
|
30
|
+
}).optional(),
|
|
31
|
+
});
|
|
32
|
+
exports.UiWidgetSchema = (0, zod_1.discriminatedUnion)('type', [
|
|
33
|
+
exports.UiFormButtonSchema,
|
|
34
|
+
exports.UiFormCustomSchema,
|
|
35
|
+
]);
|
|
36
|
+
exports.UiFormSchema = zod_1.z.object({
|
|
37
|
+
actions: zod_1.z.array(exports.UiWidgetSchema).optional(),
|
|
38
|
+
form: ui_properties_schema_1.UiPropertiesSchema.optional(),
|
|
39
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-properties-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/ui-properties-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAK7C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UiPropertiesSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ui_form_element_schema_1 = require("./ui-form-element.schema");
|
|
6
|
+
exports.UiPropertiesSchema = zod_1.z.lazy(() => ui_form_element_schema_1.UiElementSchema.extend({
|
|
7
|
+
items: zod_1.z.union([exports.UiPropertiesSchema, zod_1.z.array(exports.UiPropertiesSchema)]).optional(),
|
|
8
|
+
properties: zod_1.z.record(exports.UiPropertiesSchema).optional(),
|
|
9
|
+
}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WorkflowTransitionSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
from: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
5
|
+
to: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6
|
+
when: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["manual", "onEntry"]>, z.ZodString]>>;
|
|
7
|
+
call: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
tool: z.ZodString;
|
|
10
|
+
args: z.ZodOptional<z.ZodAny>;
|
|
11
|
+
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>]>>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
tool: string;
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
args?: any;
|
|
16
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
tool: string;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
args?: any;
|
|
21
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
22
|
+
}>, "many">>;
|
|
23
|
+
onError: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
id: string;
|
|
26
|
+
from?: string | string[] | undefined;
|
|
27
|
+
to?: string | string[] | undefined;
|
|
28
|
+
when?: string | undefined;
|
|
29
|
+
call?: {
|
|
30
|
+
tool: string;
|
|
31
|
+
id?: string | undefined;
|
|
32
|
+
args?: any;
|
|
33
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
34
|
+
}[] | undefined;
|
|
35
|
+
onError?: string | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
id: string;
|
|
38
|
+
from?: string | string[] | undefined;
|
|
39
|
+
to?: string | string[] | undefined;
|
|
40
|
+
when?: string | undefined;
|
|
41
|
+
call?: {
|
|
42
|
+
tool: string;
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
args?: any;
|
|
45
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
onError?: string | undefined;
|
|
48
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-transition.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow-transition.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUnC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowTransitionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const tool_call_schema_1 = require("./tool-call.schema");
|
|
6
|
+
const template_expression_schema_1 = require("./template-expression.schema");
|
|
7
|
+
exports.WorkflowTransitionSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
from: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
10
|
+
to: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
11
|
+
when: zod_1.z.union([
|
|
12
|
+
zod_1.z.enum(["manual", "onEntry"]),
|
|
13
|
+
template_expression_schema_1.TemplateExpression,
|
|
14
|
+
]).optional(),
|
|
15
|
+
call: zod_1.z.array(tool_call_schema_1.ToolCallSchema).optional(),
|
|
16
|
+
onError: zod_1.z.string().optional(),
|
|
17
|
+
});
|