@loopstack/api 0.12.2 → 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/CHANGELOG.md +30 -0
- package/dist/api/src/controllers/sse.controller.d.ts +15 -0
- package/dist/api/src/dtos/document-item.dto.d.ts +4 -4
- package/dist/api/src/dtos/document-item.dto.js +1 -1
- package/dist/api/src/dtos/document-item.dto.js.map +1 -1
- package/dist/api/src/dtos/document.dto.d.ts +2 -3
- package/dist/api/src/dtos/pipeline-item.dto.d.ts +2 -2
- package/dist/api/src/dtos/pipeline-item.dto.js.map +1 -1
- package/dist/api/src/dtos/pipeline.dto.d.ts +4 -2
- package/dist/api/src/dtos/pipeline.dto.js +16 -0
- package/dist/api/src/dtos/pipeline.dto.js.map +1 -1
- package/dist/api/src/dtos/workflow-item.dto.d.ts +2 -2
- package/dist/api/src/dtos/workflow-item.dto.js +2 -1
- package/dist/api/src/dtos/workflow-item.dto.js.map +1 -1
- package/dist/api/src/dtos/workflow.dto.d.ts +5 -4
- package/dist/api/src/dtos/workflow.dto.js +10 -1
- package/dist/api/src/dtos/workflow.dto.js.map +1 -1
- package/dist/api/src/index.d.ts +2 -0
- package/dist/api/src/index.js +2 -0
- package/dist/api/src/index.js.map +1 -1
- package/dist/api/src/interfaces/index.d.ts +3 -0
- package/dist/api/src/interfaces/index.js +20 -0
- package/dist/api/src/interfaces/index.js.map +1 -0
- package/dist/api/src/loopstack-api.module.d.ts +1 -1
- package/dist/api/src/loopstack-api.module.js +16 -15
- package/dist/api/src/loopstack-api.module.js.map +1 -1
- package/dist/api/src/services/dashboard.service.d.ts +4 -7
- package/dist/api/src/services/dashboard.service.js +11 -19
- package/dist/api/src/services/dashboard.service.js.map +1 -1
- package/dist/api/src/services/document-api.service.d.ts +2 -2
- package/dist/api/src/services/index.d.ts +1 -0
- package/dist/api/src/services/namespace-api.service.d.ts +2 -2
- package/dist/api/src/services/pipeline-api.service.d.ts +5 -5
- package/dist/api/src/services/pipeline-api.service.js +7 -7
- package/dist/api/src/services/pipeline-api.service.js.map +1 -1
- package/dist/api/src/services/processor-api.service.d.ts +2 -2
- package/dist/api/src/services/processor-api.service.js +2 -2
- package/dist/api/src/services/processor-api.service.js.map +1 -1
- package/dist/api/src/services/sse-event.service.d.ts +13 -0
- package/dist/api/src/services/user.service.d.ts +8 -0
- package/dist/api/src/services/workflow-api.service.d.ts +3 -3
- package/dist/api/src/services/workspace-api.service.d.ts +6 -6
- package/dist/controllers/config.controller.js +7 -4
- package/dist/controllers/config.controller.js.map +1 -1
- package/dist/controllers/sse.controller.d.ts +15 -0
- package/dist/controllers/sse.controller.js +82 -0
- package/dist/controllers/sse.controller.js.map +1 -0
- package/dist/core/src/persistence/services/pipeline.service.d.ts +2 -2
- package/dist/dtos/document-item.dto.d.ts +4 -4
- package/dist/dtos/document-item.dto.js +1 -1
- package/dist/dtos/document-item.dto.js.map +1 -1
- package/dist/dtos/document.dto.d.ts +2 -3
- package/dist/dtos/document.dto.js +1 -1
- package/dist/dtos/document.dto.js.map +1 -1
- package/dist/dtos/pipeline-config.dto.d.ts +5 -1
- package/dist/dtos/pipeline-config.dto.js +24 -0
- package/dist/dtos/pipeline-config.dto.js.map +1 -1
- package/dist/dtos/pipeline-create.dto.d.ts +2 -0
- package/dist/dtos/pipeline-create.dto.js +24 -0
- package/dist/dtos/pipeline-create.dto.js.map +1 -1
- package/dist/dtos/pipeline.dto.d.ts +3 -1
- package/dist/dtos/pipeline.dto.js +16 -0
- package/dist/dtos/pipeline.dto.js.map +1 -1
- package/dist/dtos/workflow.dto.d.ts +5 -4
- package/dist/dtos/workflow.dto.js +8 -0
- package/dist/dtos/workflow.dto.js.map +1 -1
- package/dist/interfaces/document-item.interface.d.ts +24 -0
- package/dist/interfaces/document-item.interface.js +3 -0
- package/dist/interfaces/document-item.interface.js.map +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/index.js.map +1 -1
- package/dist/loopstack-api.module.js +7 -16
- package/dist/loopstack-api.module.js.map +1 -1
- package/dist/services/dashboard.service.d.ts +3 -6
- package/dist/services/dashboard.service.js +8 -19
- package/dist/services/dashboard.service.js.map +1 -1
- package/dist/services/pipeline-api.service.js +2 -2
- package/dist/services/pipeline-api.service.js.map +1 -1
- package/dist/services/processor-api.service.js +2 -1
- package/dist/services/processor-api.service.js.map +1 -1
- package/dist/services/sse-event.service.d.ts +13 -0
- package/dist/services/sse-event.service.js +85 -0
- package/dist/services/sse-event.service.js.map +1 -0
- package/dist/shared/src/interfaces/document-item.interface.d.ts +24 -0
- package/dist/shared/src/interfaces/document-item.interface.js +3 -0
- package/dist/shared/src/interfaces/document-item.interface.js.map +1 -0
- package/dist/shared/src/schemas/UIPropertiesSchema.d.ts +4 -0
- package/dist/shared/src/schemas/UIPropertiesSchema.js +10 -0
- package/dist/shared/src/schemas/UIPropertiesSchema.js.map +1 -0
- package/dist/shared/src/schemas/assignment.schema.d.ts +5 -0
- package/dist/shared/src/schemas/assignment.schema.js +21 -0
- package/dist/shared/src/schemas/assignment.schema.js.map +1 -0
- package/dist/shared/src/schemas/block.schema.d.ts +2 -0
- package/dist/shared/src/schemas/block.schema.js +6 -0
- package/dist/shared/src/schemas/block.schema.js.map +1 -0
- package/dist/shared/src/schemas/document.schema.d.ts +749 -0
- package/dist/shared/src/schemas/document.schema.js +92 -0
- package/dist/shared/src/schemas/document.schema.js.map +1 -0
- package/dist/shared/src/schemas/index.d.ts +16 -0
- package/dist/shared/src/schemas/index.js +33 -0
- package/dist/shared/src/schemas/index.js.map +1 -0
- package/dist/shared/src/schemas/json-schema.schema.d.ts +4 -0
- package/dist/shared/src/schemas/json-schema.schema.js +49 -0
- package/dist/shared/src/schemas/json-schema.schema.js.map +1 -0
- package/dist/shared/src/schemas/main.schema.d.ts +1001 -0
- package/dist/shared/src/schemas/main.schema.js +18 -0
- package/dist/shared/src/schemas/main.schema.js.map +1 -0
- package/dist/shared/src/schemas/pipeline.schema.d.ts +831 -0
- package/dist/shared/src/schemas/pipeline.schema.js +58 -0
- package/dist/shared/src/schemas/pipeline.schema.js.map +1 -0
- package/dist/shared/src/schemas/startup.schema.d.ts +639 -0
- package/dist/shared/src/schemas/startup.schema.js +48 -0
- package/dist/shared/src/schemas/startup.schema.js.map +1 -0
- package/dist/shared/src/schemas/template-expression.schema.d.ts +2 -0
- package/dist/shared/src/schemas/template-expression.schema.js +6 -0
- package/dist/shared/src/schemas/template-expression.schema.js.map +1 -0
- package/dist/shared/src/schemas/tool-call.schema.d.ts +18 -0
- package/dist/shared/src/schemas/tool-call.schema.js +12 -0
- package/dist/shared/src/schemas/tool-call.schema.js.map +1 -0
- package/dist/shared/src/schemas/tool-config.schema.d.ts +152 -0
- package/dist/shared/src/schemas/tool-config.schema.js +12 -0
- package/dist/shared/src/schemas/tool-config.schema.js.map +1 -0
- package/dist/shared/src/schemas/transition-payload.schema.d.ts +18 -0
- package/dist/shared/src/schemas/transition-payload.schema.js +11 -0
- package/dist/shared/src/schemas/transition-payload.schema.js.map +1 -0
- package/dist/shared/src/schemas/ui-form-element.schema.d.ts +90 -0
- package/dist/shared/src/schemas/ui-form-element.schema.js +39 -0
- package/dist/shared/src/schemas/ui-form-element.schema.js.map +1 -0
- package/dist/shared/src/schemas/ui-form.schema.d.ts +250 -0
- package/dist/shared/src/schemas/ui-form.schema.js +36 -0
- package/dist/shared/src/schemas/ui-form.schema.js.map +1 -0
- package/dist/shared/src/schemas/ui-properties-schema.d.ts +4 -0
- package/dist/shared/src/schemas/ui-properties-schema.js +10 -0
- package/dist/shared/src/schemas/ui-properties-schema.js.map +1 -0
- package/dist/shared/src/schemas/workflow-transition.schema.d.ts +49 -0
- package/dist/shared/src/schemas/workflow-transition.schema.js +18 -0
- package/dist/shared/src/schemas/workflow-transition.schema.js.map +1 -0
- package/dist/shared/src/schemas/workflow.schema.d.ts +390 -0
- package/dist/shared/src/schemas/workflow.schema.js +22 -0
- package/dist/shared/src/schemas/workflow.schema.js.map +1 -0
- package/dist/shared/src/schemas/workspace.schema.d.ts +15 -0
- package/dist/shared/src/schemas/workspace.schema.js +11 -0
- package/dist/shared/src/schemas/workspace.schema.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const NamespacePropsSchema: z.ZodObject<{
|
|
3
|
+
label: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
label: string;
|
|
6
|
+
}, {
|
|
7
|
+
label: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type NamespacePropsType = z.infer<typeof NamespacePropsSchema>;
|
|
10
|
+
export declare const WorkflowBaseSchema: z.ZodObject<{
|
|
11
|
+
title: z.ZodOptional<z.ZodString>;
|
|
12
|
+
description: z.ZodOptional<z.ZodString>;
|
|
13
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
15
|
+
transition: z.ZodString;
|
|
16
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
17
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18
|
+
} & {
|
|
19
|
+
type: z.ZodLiteral<"button">;
|
|
20
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
label: z.ZodOptional<z.ZodString>;
|
|
23
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
position?: number | undefined;
|
|
26
|
+
label?: string | undefined;
|
|
27
|
+
props?: Record<string, any> | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
position?: number | undefined;
|
|
30
|
+
label?: string | undefined;
|
|
31
|
+
props?: Record<string, any> | undefined;
|
|
32
|
+
}>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
transition: string;
|
|
35
|
+
type: "button";
|
|
36
|
+
widget?: string | undefined;
|
|
37
|
+
options?: {
|
|
38
|
+
position?: number | undefined;
|
|
39
|
+
label?: string | undefined;
|
|
40
|
+
props?: Record<string, any> | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
enabledWhen?: string[] | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
transition: string;
|
|
45
|
+
type: "button";
|
|
46
|
+
widget?: string | undefined;
|
|
47
|
+
options?: {
|
|
48
|
+
position?: number | undefined;
|
|
49
|
+
label?: string | undefined;
|
|
50
|
+
props?: Record<string, any> | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
enabledWhen?: string[] | undefined;
|
|
53
|
+
}>, z.ZodObject<{
|
|
54
|
+
transition: z.ZodString;
|
|
55
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
56
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
57
|
+
} & {
|
|
58
|
+
type: z.ZodLiteral<"custom">;
|
|
59
|
+
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
transition: string;
|
|
62
|
+
type: "custom";
|
|
63
|
+
widget?: string | undefined;
|
|
64
|
+
options?: {} | undefined;
|
|
65
|
+
enabledWhen?: string[] | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
transition: string;
|
|
68
|
+
type: "custom";
|
|
69
|
+
widget?: string | undefined;
|
|
70
|
+
options?: {} | undefined;
|
|
71
|
+
enabledWhen?: string[] | undefined;
|
|
72
|
+
}>]>, "many">>;
|
|
73
|
+
parameters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
actions?: ({
|
|
76
|
+
transition: string;
|
|
77
|
+
type: "button";
|
|
78
|
+
widget?: string | undefined;
|
|
79
|
+
options?: {
|
|
80
|
+
position?: number | undefined;
|
|
81
|
+
label?: string | undefined;
|
|
82
|
+
props?: Record<string, any> | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
enabledWhen?: string[] | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
transition: string;
|
|
87
|
+
type: "custom";
|
|
88
|
+
widget?: string | undefined;
|
|
89
|
+
options?: {} | undefined;
|
|
90
|
+
enabledWhen?: string[] | undefined;
|
|
91
|
+
})[] | undefined;
|
|
92
|
+
parameters?: any;
|
|
93
|
+
}, {
|
|
94
|
+
actions?: ({
|
|
95
|
+
transition: string;
|
|
96
|
+
type: "button";
|
|
97
|
+
widget?: string | undefined;
|
|
98
|
+
options?: {
|
|
99
|
+
position?: number | undefined;
|
|
100
|
+
label?: string | undefined;
|
|
101
|
+
props?: Record<string, any> | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
enabledWhen?: string[] | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
transition: string;
|
|
106
|
+
type: "custom";
|
|
107
|
+
widget?: string | undefined;
|
|
108
|
+
options?: {} | undefined;
|
|
109
|
+
enabledWhen?: string[] | undefined;
|
|
110
|
+
})[] | undefined;
|
|
111
|
+
parameters?: any;
|
|
112
|
+
}>>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
ui?: {
|
|
116
|
+
actions?: ({
|
|
117
|
+
transition: string;
|
|
118
|
+
type: "button";
|
|
119
|
+
widget?: string | undefined;
|
|
120
|
+
options?: {
|
|
121
|
+
position?: number | undefined;
|
|
122
|
+
label?: string | undefined;
|
|
123
|
+
props?: Record<string, any> | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
enabledWhen?: string[] | undefined;
|
|
126
|
+
} | {
|
|
127
|
+
transition: string;
|
|
128
|
+
type: "custom";
|
|
129
|
+
widget?: string | undefined;
|
|
130
|
+
options?: {} | undefined;
|
|
131
|
+
enabledWhen?: string[] | undefined;
|
|
132
|
+
})[] | undefined;
|
|
133
|
+
parameters?: any;
|
|
134
|
+
} | undefined;
|
|
135
|
+
title?: string | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
description?: string | undefined;
|
|
138
|
+
ui?: {
|
|
139
|
+
actions?: ({
|
|
140
|
+
transition: string;
|
|
141
|
+
type: "button";
|
|
142
|
+
widget?: string | undefined;
|
|
143
|
+
options?: {
|
|
144
|
+
position?: number | undefined;
|
|
145
|
+
label?: string | undefined;
|
|
146
|
+
props?: Record<string, any> | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
enabledWhen?: string[] | undefined;
|
|
149
|
+
} | {
|
|
150
|
+
transition: string;
|
|
151
|
+
type: "custom";
|
|
152
|
+
widget?: string | undefined;
|
|
153
|
+
options?: {} | undefined;
|
|
154
|
+
enabledWhen?: string[] | undefined;
|
|
155
|
+
})[] | undefined;
|
|
156
|
+
parameters?: any;
|
|
157
|
+
} | undefined;
|
|
158
|
+
title?: string | undefined;
|
|
159
|
+
}>;
|
|
160
|
+
export declare const WorkflowSchema: z.ZodObject<{
|
|
161
|
+
title: z.ZodOptional<z.ZodString>;
|
|
162
|
+
description: z.ZodOptional<z.ZodString>;
|
|
163
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
165
|
+
transition: z.ZodString;
|
|
166
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
167
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
168
|
+
} & {
|
|
169
|
+
type: z.ZodLiteral<"button">;
|
|
170
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
label: z.ZodOptional<z.ZodString>;
|
|
173
|
+
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
position?: number | undefined;
|
|
176
|
+
label?: string | undefined;
|
|
177
|
+
props?: Record<string, any> | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
position?: number | undefined;
|
|
180
|
+
label?: string | undefined;
|
|
181
|
+
props?: Record<string, any> | undefined;
|
|
182
|
+
}>>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
transition: string;
|
|
185
|
+
type: "button";
|
|
186
|
+
widget?: string | undefined;
|
|
187
|
+
options?: {
|
|
188
|
+
position?: number | undefined;
|
|
189
|
+
label?: string | undefined;
|
|
190
|
+
props?: Record<string, any> | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
enabledWhen?: string[] | undefined;
|
|
193
|
+
}, {
|
|
194
|
+
transition: string;
|
|
195
|
+
type: "button";
|
|
196
|
+
widget?: string | undefined;
|
|
197
|
+
options?: {
|
|
198
|
+
position?: number | undefined;
|
|
199
|
+
label?: string | undefined;
|
|
200
|
+
props?: Record<string, any> | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
enabledWhen?: string[] | undefined;
|
|
203
|
+
}>, z.ZodObject<{
|
|
204
|
+
transition: z.ZodString;
|
|
205
|
+
widget: z.ZodOptional<z.ZodString>;
|
|
206
|
+
enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
207
|
+
} & {
|
|
208
|
+
type: z.ZodLiteral<"custom">;
|
|
209
|
+
options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
transition: string;
|
|
212
|
+
type: "custom";
|
|
213
|
+
widget?: string | undefined;
|
|
214
|
+
options?: {} | undefined;
|
|
215
|
+
enabledWhen?: string[] | undefined;
|
|
216
|
+
}, {
|
|
217
|
+
transition: string;
|
|
218
|
+
type: "custom";
|
|
219
|
+
widget?: string | undefined;
|
|
220
|
+
options?: {} | undefined;
|
|
221
|
+
enabledWhen?: string[] | undefined;
|
|
222
|
+
}>]>, "many">>;
|
|
223
|
+
parameters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
actions?: ({
|
|
226
|
+
transition: string;
|
|
227
|
+
type: "button";
|
|
228
|
+
widget?: string | undefined;
|
|
229
|
+
options?: {
|
|
230
|
+
position?: number | undefined;
|
|
231
|
+
label?: string | undefined;
|
|
232
|
+
props?: Record<string, any> | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
enabledWhen?: string[] | undefined;
|
|
235
|
+
} | {
|
|
236
|
+
transition: string;
|
|
237
|
+
type: "custom";
|
|
238
|
+
widget?: string | undefined;
|
|
239
|
+
options?: {} | undefined;
|
|
240
|
+
enabledWhen?: string[] | undefined;
|
|
241
|
+
})[] | undefined;
|
|
242
|
+
parameters?: any;
|
|
243
|
+
}, {
|
|
244
|
+
actions?: ({
|
|
245
|
+
transition: string;
|
|
246
|
+
type: "button";
|
|
247
|
+
widget?: string | undefined;
|
|
248
|
+
options?: {
|
|
249
|
+
position?: number | undefined;
|
|
250
|
+
label?: string | undefined;
|
|
251
|
+
props?: Record<string, any> | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
enabledWhen?: string[] | undefined;
|
|
254
|
+
} | {
|
|
255
|
+
transition: string;
|
|
256
|
+
type: "custom";
|
|
257
|
+
widget?: string | undefined;
|
|
258
|
+
options?: {} | undefined;
|
|
259
|
+
enabledWhen?: string[] | undefined;
|
|
260
|
+
})[] | undefined;
|
|
261
|
+
parameters?: any;
|
|
262
|
+
}>>;
|
|
263
|
+
} & {
|
|
264
|
+
type: z.ZodDefault<z.ZodLiteral<"workflow">>;
|
|
265
|
+
parameters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
266
|
+
transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
from: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
269
|
+
to: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
270
|
+
when: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["manual", "onEntry"]>, z.ZodString]>>;
|
|
271
|
+
call: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
272
|
+
id: z.ZodOptional<z.ZodString>;
|
|
273
|
+
tool: z.ZodString;
|
|
274
|
+
args: z.ZodOptional<z.ZodAny>;
|
|
275
|
+
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>]>>>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
tool: string;
|
|
278
|
+
id?: string | undefined;
|
|
279
|
+
args?: any;
|
|
280
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
tool: string;
|
|
283
|
+
id?: string | undefined;
|
|
284
|
+
args?: any;
|
|
285
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
286
|
+
}>, "many">>;
|
|
287
|
+
onError: z.ZodOptional<z.ZodString>;
|
|
288
|
+
}, "strip", z.ZodTypeAny, {
|
|
289
|
+
id: string;
|
|
290
|
+
from?: string | string[] | undefined;
|
|
291
|
+
to?: string | string[] | undefined;
|
|
292
|
+
when?: string | undefined;
|
|
293
|
+
call?: {
|
|
294
|
+
tool: string;
|
|
295
|
+
id?: string | undefined;
|
|
296
|
+
args?: any;
|
|
297
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
298
|
+
}[] | undefined;
|
|
299
|
+
onError?: string | undefined;
|
|
300
|
+
}, {
|
|
301
|
+
id: string;
|
|
302
|
+
from?: string | string[] | undefined;
|
|
303
|
+
to?: string | string[] | undefined;
|
|
304
|
+
when?: string | undefined;
|
|
305
|
+
call?: {
|
|
306
|
+
tool: string;
|
|
307
|
+
id?: string | undefined;
|
|
308
|
+
args?: any;
|
|
309
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
310
|
+
}[] | undefined;
|
|
311
|
+
onError?: string | undefined;
|
|
312
|
+
}>, "many">>;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
type: "workflow";
|
|
315
|
+
parameters?: any;
|
|
316
|
+
description?: string | undefined;
|
|
317
|
+
ui?: {
|
|
318
|
+
actions?: ({
|
|
319
|
+
transition: string;
|
|
320
|
+
type: "button";
|
|
321
|
+
widget?: string | undefined;
|
|
322
|
+
options?: {
|
|
323
|
+
position?: number | undefined;
|
|
324
|
+
label?: string | undefined;
|
|
325
|
+
props?: Record<string, any> | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
enabledWhen?: string[] | undefined;
|
|
328
|
+
} | {
|
|
329
|
+
transition: string;
|
|
330
|
+
type: "custom";
|
|
331
|
+
widget?: string | undefined;
|
|
332
|
+
options?: {} | undefined;
|
|
333
|
+
enabledWhen?: string[] | undefined;
|
|
334
|
+
})[] | undefined;
|
|
335
|
+
parameters?: any;
|
|
336
|
+
} | undefined;
|
|
337
|
+
title?: string | undefined;
|
|
338
|
+
transitions?: {
|
|
339
|
+
id: string;
|
|
340
|
+
from?: string | string[] | undefined;
|
|
341
|
+
to?: string | string[] | undefined;
|
|
342
|
+
when?: string | undefined;
|
|
343
|
+
call?: {
|
|
344
|
+
tool: string;
|
|
345
|
+
id?: string | undefined;
|
|
346
|
+
args?: any;
|
|
347
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
348
|
+
}[] | undefined;
|
|
349
|
+
onError?: string | undefined;
|
|
350
|
+
}[] | undefined;
|
|
351
|
+
}, {
|
|
352
|
+
type?: "workflow" | undefined;
|
|
353
|
+
parameters?: any;
|
|
354
|
+
description?: string | undefined;
|
|
355
|
+
ui?: {
|
|
356
|
+
actions?: ({
|
|
357
|
+
transition: string;
|
|
358
|
+
type: "button";
|
|
359
|
+
widget?: string | undefined;
|
|
360
|
+
options?: {
|
|
361
|
+
position?: number | undefined;
|
|
362
|
+
label?: string | undefined;
|
|
363
|
+
props?: Record<string, any> | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
enabledWhen?: string[] | undefined;
|
|
366
|
+
} | {
|
|
367
|
+
transition: string;
|
|
368
|
+
type: "custom";
|
|
369
|
+
widget?: string | undefined;
|
|
370
|
+
options?: {} | undefined;
|
|
371
|
+
enabledWhen?: string[] | undefined;
|
|
372
|
+
})[] | undefined;
|
|
373
|
+
parameters?: any;
|
|
374
|
+
} | undefined;
|
|
375
|
+
title?: string | undefined;
|
|
376
|
+
transitions?: {
|
|
377
|
+
id: string;
|
|
378
|
+
from?: string | string[] | undefined;
|
|
379
|
+
to?: string | string[] | undefined;
|
|
380
|
+
when?: string | undefined;
|
|
381
|
+
call?: {
|
|
382
|
+
tool: string;
|
|
383
|
+
id?: string | undefined;
|
|
384
|
+
args?: any;
|
|
385
|
+
assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
|
|
386
|
+
}[] | undefined;
|
|
387
|
+
onError?: string | undefined;
|
|
388
|
+
}[] | undefined;
|
|
389
|
+
}>;
|
|
390
|
+
export type WorkflowType = z.infer<typeof WorkflowSchema>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowSchema = exports.WorkflowBaseSchema = exports.NamespacePropsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const workflow_transition_schema_1 = require("./workflow-transition.schema");
|
|
6
|
+
const json_schema_schema_1 = require("./json-schema.schema");
|
|
7
|
+
const block_schema_1 = require("./block.schema");
|
|
8
|
+
const ui_form_schema_1 = require("./ui-form.schema");
|
|
9
|
+
exports.NamespacePropsSchema = zod_1.z.object({
|
|
10
|
+
label: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports.WorkflowBaseSchema = block_schema_1.BlockSchema.extend({
|
|
13
|
+
title: zod_1.z.string().optional(),
|
|
14
|
+
description: zod_1.z.string().optional(),
|
|
15
|
+
ui: ui_form_schema_1.UiFormSchema.optional()
|
|
16
|
+
});
|
|
17
|
+
exports.WorkflowSchema = exports.WorkflowBaseSchema.extend({
|
|
18
|
+
type: zod_1.z.literal('workflow').default('workflow'),
|
|
19
|
+
parameters: json_schema_schema_1.JSONSchemaType.optional(),
|
|
20
|
+
transitions: zod_1.z.array(workflow_transition_schema_1.WorkflowTransitionSchema).optional(),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=workflow.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.schema.js","sourceRoot":"","sources":["../../../../../shared/src/schemas/workflow.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6EAAwE;AACxE,6DAAsD;AACtD,iDAA6C;AAC7C,qDAAgD;AAEnC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAIU,QAAA,kBAAkB,GAAG,0BAAW,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,EAAE,EAAE,6BAAY,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAEU,QAAA,cAAc,GAAG,0BAAkB,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC/C,UAAU,EAAE,mCAAc,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,qDAAwB,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const WorkspaceSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodDefault<z.ZodLiteral<"workspace">>;
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
}>;
|
|
15
|
+
export type WorkspaceType = z.infer<typeof WorkspaceSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkspaceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const block_schema_1 = require("./block.schema");
|
|
6
|
+
exports.WorkspaceSchema = block_schema_1.BlockSchema.extend({
|
|
7
|
+
type: zod_1.z.literal('workspace').default('workspace'),
|
|
8
|
+
title: zod_1.z.string().optional(),
|
|
9
|
+
description: zod_1.z.string().optional(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=workspace.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.schema.js","sourceRoot":"","sources":["../../../../../shared/src/schemas/workspace.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA6C;AAEhC,QAAA,eAAe,GAAG,0BAAW,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC"}
|