@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.
Files changed (146) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/api/src/controllers/sse.controller.d.ts +15 -0
  3. package/dist/api/src/dtos/document-item.dto.d.ts +4 -4
  4. package/dist/api/src/dtos/document-item.dto.js +1 -1
  5. package/dist/api/src/dtos/document-item.dto.js.map +1 -1
  6. package/dist/api/src/dtos/document.dto.d.ts +2 -3
  7. package/dist/api/src/dtos/pipeline-item.dto.d.ts +2 -2
  8. package/dist/api/src/dtos/pipeline-item.dto.js.map +1 -1
  9. package/dist/api/src/dtos/pipeline.dto.d.ts +4 -2
  10. package/dist/api/src/dtos/pipeline.dto.js +16 -0
  11. package/dist/api/src/dtos/pipeline.dto.js.map +1 -1
  12. package/dist/api/src/dtos/workflow-item.dto.d.ts +2 -2
  13. package/dist/api/src/dtos/workflow-item.dto.js +2 -1
  14. package/dist/api/src/dtos/workflow-item.dto.js.map +1 -1
  15. package/dist/api/src/dtos/workflow.dto.d.ts +5 -4
  16. package/dist/api/src/dtos/workflow.dto.js +10 -1
  17. package/dist/api/src/dtos/workflow.dto.js.map +1 -1
  18. package/dist/api/src/index.d.ts +2 -0
  19. package/dist/api/src/index.js +2 -0
  20. package/dist/api/src/index.js.map +1 -1
  21. package/dist/api/src/interfaces/index.d.ts +3 -0
  22. package/dist/api/src/interfaces/index.js +20 -0
  23. package/dist/api/src/interfaces/index.js.map +1 -0
  24. package/dist/api/src/loopstack-api.module.d.ts +1 -1
  25. package/dist/api/src/loopstack-api.module.js +16 -15
  26. package/dist/api/src/loopstack-api.module.js.map +1 -1
  27. package/dist/api/src/services/dashboard.service.d.ts +4 -7
  28. package/dist/api/src/services/dashboard.service.js +11 -19
  29. package/dist/api/src/services/dashboard.service.js.map +1 -1
  30. package/dist/api/src/services/document-api.service.d.ts +2 -2
  31. package/dist/api/src/services/index.d.ts +1 -0
  32. package/dist/api/src/services/namespace-api.service.d.ts +2 -2
  33. package/dist/api/src/services/pipeline-api.service.d.ts +5 -5
  34. package/dist/api/src/services/pipeline-api.service.js +7 -7
  35. package/dist/api/src/services/pipeline-api.service.js.map +1 -1
  36. package/dist/api/src/services/processor-api.service.d.ts +2 -2
  37. package/dist/api/src/services/processor-api.service.js +2 -2
  38. package/dist/api/src/services/processor-api.service.js.map +1 -1
  39. package/dist/api/src/services/sse-event.service.d.ts +13 -0
  40. package/dist/api/src/services/user.service.d.ts +8 -0
  41. package/dist/api/src/services/workflow-api.service.d.ts +3 -3
  42. package/dist/api/src/services/workspace-api.service.d.ts +6 -6
  43. package/dist/controllers/config.controller.js +7 -4
  44. package/dist/controllers/config.controller.js.map +1 -1
  45. package/dist/controllers/sse.controller.d.ts +15 -0
  46. package/dist/controllers/sse.controller.js +82 -0
  47. package/dist/controllers/sse.controller.js.map +1 -0
  48. package/dist/core/src/persistence/services/pipeline.service.d.ts +2 -2
  49. package/dist/dtos/document-item.dto.d.ts +4 -4
  50. package/dist/dtos/document-item.dto.js +1 -1
  51. package/dist/dtos/document-item.dto.js.map +1 -1
  52. package/dist/dtos/document.dto.d.ts +2 -3
  53. package/dist/dtos/document.dto.js +1 -1
  54. package/dist/dtos/document.dto.js.map +1 -1
  55. package/dist/dtos/pipeline-config.dto.d.ts +5 -1
  56. package/dist/dtos/pipeline-config.dto.js +24 -0
  57. package/dist/dtos/pipeline-config.dto.js.map +1 -1
  58. package/dist/dtos/pipeline-create.dto.d.ts +2 -0
  59. package/dist/dtos/pipeline-create.dto.js +24 -0
  60. package/dist/dtos/pipeline-create.dto.js.map +1 -1
  61. package/dist/dtos/pipeline.dto.d.ts +3 -1
  62. package/dist/dtos/pipeline.dto.js +16 -0
  63. package/dist/dtos/pipeline.dto.js.map +1 -1
  64. package/dist/dtos/workflow.dto.d.ts +5 -4
  65. package/dist/dtos/workflow.dto.js +8 -0
  66. package/dist/dtos/workflow.dto.js.map +1 -1
  67. package/dist/interfaces/document-item.interface.d.ts +24 -0
  68. package/dist/interfaces/document-item.interface.js +3 -0
  69. package/dist/interfaces/document-item.interface.js.map +1 -0
  70. package/dist/interfaces/index.d.ts +1 -0
  71. package/dist/interfaces/index.js +1 -0
  72. package/dist/interfaces/index.js.map +1 -1
  73. package/dist/loopstack-api.module.js +7 -16
  74. package/dist/loopstack-api.module.js.map +1 -1
  75. package/dist/services/dashboard.service.d.ts +3 -6
  76. package/dist/services/dashboard.service.js +8 -19
  77. package/dist/services/dashboard.service.js.map +1 -1
  78. package/dist/services/pipeline-api.service.js +2 -2
  79. package/dist/services/pipeline-api.service.js.map +1 -1
  80. package/dist/services/processor-api.service.js +2 -1
  81. package/dist/services/processor-api.service.js.map +1 -1
  82. package/dist/services/sse-event.service.d.ts +13 -0
  83. package/dist/services/sse-event.service.js +85 -0
  84. package/dist/services/sse-event.service.js.map +1 -0
  85. package/dist/shared/src/interfaces/document-item.interface.d.ts +24 -0
  86. package/dist/shared/src/interfaces/document-item.interface.js +3 -0
  87. package/dist/shared/src/interfaces/document-item.interface.js.map +1 -0
  88. package/dist/shared/src/schemas/UIPropertiesSchema.d.ts +4 -0
  89. package/dist/shared/src/schemas/UIPropertiesSchema.js +10 -0
  90. package/dist/shared/src/schemas/UIPropertiesSchema.js.map +1 -0
  91. package/dist/shared/src/schemas/assignment.schema.d.ts +5 -0
  92. package/dist/shared/src/schemas/assignment.schema.js +21 -0
  93. package/dist/shared/src/schemas/assignment.schema.js.map +1 -0
  94. package/dist/shared/src/schemas/block.schema.d.ts +2 -0
  95. package/dist/shared/src/schemas/block.schema.js +6 -0
  96. package/dist/shared/src/schemas/block.schema.js.map +1 -0
  97. package/dist/shared/src/schemas/document.schema.d.ts +749 -0
  98. package/dist/shared/src/schemas/document.schema.js +92 -0
  99. package/dist/shared/src/schemas/document.schema.js.map +1 -0
  100. package/dist/shared/src/schemas/index.d.ts +16 -0
  101. package/dist/shared/src/schemas/index.js +33 -0
  102. package/dist/shared/src/schemas/index.js.map +1 -0
  103. package/dist/shared/src/schemas/json-schema.schema.d.ts +4 -0
  104. package/dist/shared/src/schemas/json-schema.schema.js +49 -0
  105. package/dist/shared/src/schemas/json-schema.schema.js.map +1 -0
  106. package/dist/shared/src/schemas/main.schema.d.ts +1001 -0
  107. package/dist/shared/src/schemas/main.schema.js +18 -0
  108. package/dist/shared/src/schemas/main.schema.js.map +1 -0
  109. package/dist/shared/src/schemas/pipeline.schema.d.ts +831 -0
  110. package/dist/shared/src/schemas/pipeline.schema.js +58 -0
  111. package/dist/shared/src/schemas/pipeline.schema.js.map +1 -0
  112. package/dist/shared/src/schemas/startup.schema.d.ts +639 -0
  113. package/dist/shared/src/schemas/startup.schema.js +48 -0
  114. package/dist/shared/src/schemas/startup.schema.js.map +1 -0
  115. package/dist/shared/src/schemas/template-expression.schema.d.ts +2 -0
  116. package/dist/shared/src/schemas/template-expression.schema.js +6 -0
  117. package/dist/shared/src/schemas/template-expression.schema.js.map +1 -0
  118. package/dist/shared/src/schemas/tool-call.schema.d.ts +18 -0
  119. package/dist/shared/src/schemas/tool-call.schema.js +12 -0
  120. package/dist/shared/src/schemas/tool-call.schema.js.map +1 -0
  121. package/dist/shared/src/schemas/tool-config.schema.d.ts +152 -0
  122. package/dist/shared/src/schemas/tool-config.schema.js +12 -0
  123. package/dist/shared/src/schemas/tool-config.schema.js.map +1 -0
  124. package/dist/shared/src/schemas/transition-payload.schema.d.ts +18 -0
  125. package/dist/shared/src/schemas/transition-payload.schema.js +11 -0
  126. package/dist/shared/src/schemas/transition-payload.schema.js.map +1 -0
  127. package/dist/shared/src/schemas/ui-form-element.schema.d.ts +90 -0
  128. package/dist/shared/src/schemas/ui-form-element.schema.js +39 -0
  129. package/dist/shared/src/schemas/ui-form-element.schema.js.map +1 -0
  130. package/dist/shared/src/schemas/ui-form.schema.d.ts +250 -0
  131. package/dist/shared/src/schemas/ui-form.schema.js +36 -0
  132. package/dist/shared/src/schemas/ui-form.schema.js.map +1 -0
  133. package/dist/shared/src/schemas/ui-properties-schema.d.ts +4 -0
  134. package/dist/shared/src/schemas/ui-properties-schema.js +10 -0
  135. package/dist/shared/src/schemas/ui-properties-schema.js.map +1 -0
  136. package/dist/shared/src/schemas/workflow-transition.schema.d.ts +49 -0
  137. package/dist/shared/src/schemas/workflow-transition.schema.js +18 -0
  138. package/dist/shared/src/schemas/workflow-transition.schema.js.map +1 -0
  139. package/dist/shared/src/schemas/workflow.schema.d.ts +390 -0
  140. package/dist/shared/src/schemas/workflow.schema.js +22 -0
  141. package/dist/shared/src/schemas/workflow.schema.js.map +1 -0
  142. package/dist/shared/src/schemas/workspace.schema.d.ts +15 -0
  143. package/dist/shared/src/schemas/workspace.schema.js +11 -0
  144. package/dist/shared/src/schemas/workspace.schema.js.map +1 -0
  145. package/dist/tsconfig.tsbuildinfo +1 -1
  146. package/package.json +4 -4
@@ -0,0 +1,831 @@
1
+ import { z } from 'zod';
2
+ export declare const PipelineBaseSchema: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodString>;
4
+ description: z.ZodOptional<z.ZodString>;
5
+ namespace: z.ZodOptional<z.ZodObject<{
6
+ label: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ label: string;
9
+ }, {
10
+ label: string;
11
+ }>>;
12
+ ui: z.ZodOptional<z.ZodObject<{
13
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14
+ transition: z.ZodString;
15
+ widget: z.ZodOptional<z.ZodString>;
16
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17
+ } & {
18
+ type: z.ZodLiteral<"button">;
19
+ options: z.ZodOptional<z.ZodObject<{
20
+ position: z.ZodOptional<z.ZodNumber>;
21
+ label: z.ZodOptional<z.ZodString>;
22
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ position?: number | undefined;
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
+ transition: string;
34
+ type: "button";
35
+ widget?: string | undefined;
36
+ options?: {
37
+ position?: number | undefined;
38
+ label?: string | undefined;
39
+ props?: Record<string, any> | undefined;
40
+ } | undefined;
41
+ enabledWhen?: string[] | undefined;
42
+ }, {
43
+ transition: string;
44
+ type: "button";
45
+ widget?: string | undefined;
46
+ options?: {
47
+ position?: number | undefined;
48
+ label?: string | undefined;
49
+ props?: Record<string, any> | undefined;
50
+ } | undefined;
51
+ enabledWhen?: string[] | undefined;
52
+ }>, z.ZodObject<{
53
+ transition: z.ZodString;
54
+ widget: z.ZodOptional<z.ZodString>;
55
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ } & {
57
+ type: z.ZodLiteral<"custom">;
58
+ options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ transition: string;
61
+ type: "custom";
62
+ widget?: string | undefined;
63
+ options?: {} | undefined;
64
+ enabledWhen?: string[] | undefined;
65
+ }, {
66
+ transition: string;
67
+ type: "custom";
68
+ widget?: string | undefined;
69
+ options?: {} | undefined;
70
+ enabledWhen?: string[] | undefined;
71
+ }>]>, "many">>;
72
+ parameters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ actions?: ({
75
+ transition: string;
76
+ type: "button";
77
+ widget?: string | undefined;
78
+ options?: {
79
+ position?: number | undefined;
80
+ label?: string | undefined;
81
+ props?: Record<string, any> | undefined;
82
+ } | undefined;
83
+ enabledWhen?: string[] | undefined;
84
+ } | {
85
+ transition: string;
86
+ type: "custom";
87
+ widget?: string | undefined;
88
+ options?: {} | undefined;
89
+ enabledWhen?: string[] | undefined;
90
+ })[] | undefined;
91
+ parameters?: any;
92
+ }, {
93
+ actions?: ({
94
+ transition: string;
95
+ type: "button";
96
+ widget?: string | undefined;
97
+ options?: {
98
+ position?: number | undefined;
99
+ label?: string | undefined;
100
+ props?: Record<string, any> | undefined;
101
+ } | undefined;
102
+ enabledWhen?: string[] | undefined;
103
+ } | {
104
+ transition: string;
105
+ type: "custom";
106
+ widget?: string | undefined;
107
+ options?: {} | undefined;
108
+ enabledWhen?: string[] | undefined;
109
+ })[] | undefined;
110
+ parameters?: any;
111
+ }>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ description?: string | undefined;
114
+ ui?: {
115
+ actions?: ({
116
+ transition: string;
117
+ type: "button";
118
+ widget?: string | undefined;
119
+ options?: {
120
+ position?: number | undefined;
121
+ label?: string | undefined;
122
+ props?: Record<string, any> | undefined;
123
+ } | undefined;
124
+ enabledWhen?: string[] | undefined;
125
+ } | {
126
+ transition: string;
127
+ type: "custom";
128
+ widget?: string | undefined;
129
+ options?: {} | undefined;
130
+ enabledWhen?: string[] | undefined;
131
+ })[] | undefined;
132
+ parameters?: any;
133
+ } | undefined;
134
+ title?: string | undefined;
135
+ namespace?: {
136
+ label: string;
137
+ } | undefined;
138
+ }, {
139
+ description?: string | undefined;
140
+ ui?: {
141
+ actions?: ({
142
+ transition: string;
143
+ type: "button";
144
+ widget?: string | undefined;
145
+ options?: {
146
+ position?: number | undefined;
147
+ label?: string | undefined;
148
+ props?: Record<string, any> | undefined;
149
+ } | undefined;
150
+ enabledWhen?: string[] | undefined;
151
+ } | {
152
+ transition: string;
153
+ type: "custom";
154
+ widget?: string | undefined;
155
+ options?: {} | undefined;
156
+ enabledWhen?: string[] | undefined;
157
+ })[] | undefined;
158
+ parameters?: any;
159
+ } | undefined;
160
+ title?: string | undefined;
161
+ namespace?: {
162
+ label: string;
163
+ } | undefined;
164
+ }>;
165
+ export declare const PipelineItemConfigSchema: z.ZodObject<{
166
+ id: z.ZodOptional<z.ZodString>;
167
+ block: z.ZodString;
168
+ condition: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>;
169
+ args: z.ZodOptional<z.ZodAny>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ block: string;
172
+ id?: string | undefined;
173
+ condition?: string | undefined;
174
+ args?: any;
175
+ }, {
176
+ block: string;
177
+ id?: string | undefined;
178
+ condition?: string | undefined;
179
+ args?: any;
180
+ }>;
181
+ export type PipelineItemConfigType = z.infer<typeof PipelineItemConfigSchema>;
182
+ export declare const PipelineItemSchema: z.ZodObject<{
183
+ id: z.ZodOptional<z.ZodString>;
184
+ block: z.ZodString;
185
+ condition: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
186
+ args: z.ZodOptional<z.ZodAny>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ block: string;
189
+ id?: string | undefined;
190
+ condition?: string | boolean | undefined;
191
+ args?: any;
192
+ }, {
193
+ block: string;
194
+ id?: string | undefined;
195
+ condition?: string | boolean | undefined;
196
+ args?: any;
197
+ }>;
198
+ export type PipelineItemType = z.infer<typeof PipelineItemSchema>;
199
+ export declare const PipelineFactoryIteratorConfigSchema: z.ZodObject<{
200
+ source: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ source: string | string[];
203
+ }, {
204
+ source: string | string[];
205
+ }>;
206
+ export type PipelineFactoryIteratorConfigType = z.infer<typeof PipelineFactoryIteratorConfigSchema>;
207
+ export declare const PipelineFactoryConfigSchema: z.ZodObject<{
208
+ title: z.ZodOptional<z.ZodString>;
209
+ description: z.ZodOptional<z.ZodString>;
210
+ ui: z.ZodOptional<z.ZodObject<{
211
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
212
+ transition: z.ZodString;
213
+ widget: z.ZodOptional<z.ZodString>;
214
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ } & {
216
+ type: z.ZodLiteral<"button">;
217
+ options: z.ZodOptional<z.ZodObject<{
218
+ position: z.ZodOptional<z.ZodNumber>;
219
+ label: z.ZodOptional<z.ZodString>;
220
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ position?: number | undefined;
223
+ label?: string | undefined;
224
+ props?: Record<string, any> | undefined;
225
+ }, {
226
+ position?: number | undefined;
227
+ label?: string | undefined;
228
+ props?: Record<string, any> | undefined;
229
+ }>>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ transition: string;
232
+ type: "button";
233
+ widget?: string | undefined;
234
+ options?: {
235
+ position?: number | undefined;
236
+ label?: string | undefined;
237
+ props?: Record<string, any> | undefined;
238
+ } | undefined;
239
+ enabledWhen?: string[] | undefined;
240
+ }, {
241
+ transition: string;
242
+ type: "button";
243
+ widget?: string | undefined;
244
+ options?: {
245
+ position?: number | undefined;
246
+ label?: string | undefined;
247
+ props?: Record<string, any> | undefined;
248
+ } | undefined;
249
+ enabledWhen?: string[] | undefined;
250
+ }>, z.ZodObject<{
251
+ transition: z.ZodString;
252
+ widget: z.ZodOptional<z.ZodString>;
253
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
254
+ } & {
255
+ type: z.ZodLiteral<"custom">;
256
+ options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ transition: string;
259
+ type: "custom";
260
+ widget?: string | undefined;
261
+ options?: {} | undefined;
262
+ enabledWhen?: string[] | undefined;
263
+ }, {
264
+ transition: string;
265
+ type: "custom";
266
+ widget?: string | undefined;
267
+ options?: {} | undefined;
268
+ enabledWhen?: string[] | undefined;
269
+ }>]>, "many">>;
270
+ parameters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ actions?: ({
273
+ transition: string;
274
+ type: "button";
275
+ widget?: string | undefined;
276
+ options?: {
277
+ position?: number | undefined;
278
+ label?: string | undefined;
279
+ props?: Record<string, any> | undefined;
280
+ } | undefined;
281
+ enabledWhen?: string[] | undefined;
282
+ } | {
283
+ transition: string;
284
+ type: "custom";
285
+ widget?: string | undefined;
286
+ options?: {} | undefined;
287
+ enabledWhen?: string[] | undefined;
288
+ })[] | undefined;
289
+ parameters?: any;
290
+ }, {
291
+ actions?: ({
292
+ transition: string;
293
+ type: "button";
294
+ widget?: string | undefined;
295
+ options?: {
296
+ position?: number | undefined;
297
+ label?: string | undefined;
298
+ props?: Record<string, any> | undefined;
299
+ } | undefined;
300
+ enabledWhen?: string[] | undefined;
301
+ } | {
302
+ transition: string;
303
+ type: "custom";
304
+ widget?: string | undefined;
305
+ options?: {} | undefined;
306
+ enabledWhen?: string[] | undefined;
307
+ })[] | undefined;
308
+ parameters?: any;
309
+ }>>;
310
+ } & {
311
+ type: z.ZodDefault<z.ZodLiteral<"factory">>;
312
+ namespace: z.ZodObject<{
313
+ label: z.ZodString;
314
+ }, "strip", z.ZodTypeAny, {
315
+ label: string;
316
+ }, {
317
+ label: string;
318
+ }>;
319
+ factory: z.ZodObject<{
320
+ id: z.ZodOptional<z.ZodString>;
321
+ block: z.ZodString;
322
+ condition: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>;
323
+ args: z.ZodOptional<z.ZodAny>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ block: string;
326
+ id?: string | undefined;
327
+ condition?: string | undefined;
328
+ args?: any;
329
+ }, {
330
+ block: string;
331
+ id?: string | undefined;
332
+ condition?: string | undefined;
333
+ args?: any;
334
+ }>;
335
+ parallel: z.ZodOptional<z.ZodBoolean>;
336
+ iterator: z.ZodObject<{
337
+ source: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ source: string | string[];
340
+ }, {
341
+ source: string | string[];
342
+ }>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ type: "factory";
345
+ namespace: {
346
+ label: string;
347
+ };
348
+ factory: {
349
+ block: string;
350
+ id?: string | undefined;
351
+ condition?: string | undefined;
352
+ args?: any;
353
+ };
354
+ iterator: {
355
+ source: string | string[];
356
+ };
357
+ description?: string | undefined;
358
+ ui?: {
359
+ actions?: ({
360
+ transition: string;
361
+ type: "button";
362
+ widget?: string | undefined;
363
+ options?: {
364
+ position?: number | undefined;
365
+ label?: string | undefined;
366
+ props?: Record<string, any> | undefined;
367
+ } | undefined;
368
+ enabledWhen?: string[] | undefined;
369
+ } | {
370
+ transition: string;
371
+ type: "custom";
372
+ widget?: string | undefined;
373
+ options?: {} | undefined;
374
+ enabledWhen?: string[] | undefined;
375
+ })[] | undefined;
376
+ parameters?: any;
377
+ } | undefined;
378
+ title?: string | undefined;
379
+ parallel?: boolean | undefined;
380
+ }, {
381
+ namespace: {
382
+ label: string;
383
+ };
384
+ factory: {
385
+ block: string;
386
+ id?: string | undefined;
387
+ condition?: string | undefined;
388
+ args?: any;
389
+ };
390
+ iterator: {
391
+ source: string | string[];
392
+ };
393
+ type?: "factory" | undefined;
394
+ description?: string | undefined;
395
+ ui?: {
396
+ actions?: ({
397
+ transition: string;
398
+ type: "button";
399
+ widget?: string | undefined;
400
+ options?: {
401
+ position?: number | undefined;
402
+ label?: string | undefined;
403
+ props?: Record<string, any> | undefined;
404
+ } | undefined;
405
+ enabledWhen?: string[] | undefined;
406
+ } | {
407
+ transition: string;
408
+ type: "custom";
409
+ widget?: string | undefined;
410
+ options?: {} | undefined;
411
+ enabledWhen?: string[] | undefined;
412
+ })[] | undefined;
413
+ parameters?: any;
414
+ } | undefined;
415
+ title?: string | undefined;
416
+ parallel?: boolean | undefined;
417
+ }>;
418
+ export type PipelineFactoryConfigType = z.infer<typeof PipelineFactoryConfigSchema>;
419
+ export declare const PipelineFactoryIteratorSchema: z.ZodObject<{
420
+ source: z.ZodArray<z.ZodString, "many">;
421
+ }, "strip", z.ZodTypeAny, {
422
+ source: string[];
423
+ }, {
424
+ source: string[];
425
+ }>;
426
+ export type PipelineFactoryIteratorType = z.infer<typeof PipelineFactoryIteratorSchema>;
427
+ export declare const PipelineFactorySchema: z.ZodObject<{
428
+ title: z.ZodOptional<z.ZodString>;
429
+ description: z.ZodOptional<z.ZodString>;
430
+ ui: z.ZodOptional<z.ZodObject<{
431
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
432
+ transition: z.ZodString;
433
+ widget: z.ZodOptional<z.ZodString>;
434
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
435
+ } & {
436
+ type: z.ZodLiteral<"button">;
437
+ options: z.ZodOptional<z.ZodObject<{
438
+ position: z.ZodOptional<z.ZodNumber>;
439
+ label: z.ZodOptional<z.ZodString>;
440
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ position?: number | undefined;
443
+ label?: string | undefined;
444
+ props?: Record<string, any> | undefined;
445
+ }, {
446
+ position?: number | undefined;
447
+ label?: string | undefined;
448
+ props?: Record<string, any> | undefined;
449
+ }>>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ transition: string;
452
+ type: "button";
453
+ widget?: string | undefined;
454
+ options?: {
455
+ position?: number | undefined;
456
+ label?: string | undefined;
457
+ props?: Record<string, any> | undefined;
458
+ } | undefined;
459
+ enabledWhen?: string[] | undefined;
460
+ }, {
461
+ transition: string;
462
+ type: "button";
463
+ widget?: string | undefined;
464
+ options?: {
465
+ position?: number | undefined;
466
+ label?: string | undefined;
467
+ props?: Record<string, any> | undefined;
468
+ } | undefined;
469
+ enabledWhen?: string[] | undefined;
470
+ }>, z.ZodObject<{
471
+ transition: z.ZodString;
472
+ widget: z.ZodOptional<z.ZodString>;
473
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
474
+ } & {
475
+ type: z.ZodLiteral<"custom">;
476
+ options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ transition: string;
479
+ type: "custom";
480
+ widget?: string | undefined;
481
+ options?: {} | undefined;
482
+ enabledWhen?: string[] | undefined;
483
+ }, {
484
+ transition: string;
485
+ type: "custom";
486
+ widget?: string | undefined;
487
+ options?: {} | undefined;
488
+ enabledWhen?: string[] | undefined;
489
+ }>]>, "many">>;
490
+ parameters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ actions?: ({
493
+ transition: string;
494
+ type: "button";
495
+ widget?: string | undefined;
496
+ options?: {
497
+ position?: number | undefined;
498
+ label?: string | undefined;
499
+ props?: Record<string, any> | undefined;
500
+ } | undefined;
501
+ enabledWhen?: string[] | undefined;
502
+ } | {
503
+ transition: string;
504
+ type: "custom";
505
+ widget?: string | undefined;
506
+ options?: {} | undefined;
507
+ enabledWhen?: string[] | undefined;
508
+ })[] | undefined;
509
+ parameters?: any;
510
+ }, {
511
+ actions?: ({
512
+ transition: string;
513
+ type: "button";
514
+ widget?: string | undefined;
515
+ options?: {
516
+ position?: number | undefined;
517
+ label?: string | undefined;
518
+ props?: Record<string, any> | undefined;
519
+ } | undefined;
520
+ enabledWhen?: string[] | undefined;
521
+ } | {
522
+ transition: string;
523
+ type: "custom";
524
+ widget?: string | undefined;
525
+ options?: {} | undefined;
526
+ enabledWhen?: string[] | undefined;
527
+ })[] | undefined;
528
+ parameters?: any;
529
+ }>>;
530
+ } & {
531
+ namespace: z.ZodObject<{
532
+ label: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ label: string;
535
+ }, {
536
+ label: string;
537
+ }>;
538
+ factory: z.ZodObject<{
539
+ id: z.ZodOptional<z.ZodString>;
540
+ block: z.ZodString;
541
+ condition: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
542
+ args: z.ZodOptional<z.ZodAny>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ block: string;
545
+ id?: string | undefined;
546
+ condition?: string | boolean | undefined;
547
+ args?: any;
548
+ }, {
549
+ block: string;
550
+ id?: string | undefined;
551
+ condition?: string | boolean | undefined;
552
+ args?: any;
553
+ }>;
554
+ parallel: z.ZodOptional<z.ZodBoolean>;
555
+ iterator: z.ZodObject<{
556
+ source: z.ZodArray<z.ZodString, "many">;
557
+ }, "strip", z.ZodTypeAny, {
558
+ source: string[];
559
+ }, {
560
+ source: string[];
561
+ }>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ namespace: {
564
+ label: string;
565
+ };
566
+ factory: {
567
+ block: string;
568
+ id?: string | undefined;
569
+ condition?: string | boolean | undefined;
570
+ args?: any;
571
+ };
572
+ iterator: {
573
+ source: string[];
574
+ };
575
+ description?: string | undefined;
576
+ ui?: {
577
+ actions?: ({
578
+ transition: string;
579
+ type: "button";
580
+ widget?: string | undefined;
581
+ options?: {
582
+ position?: number | undefined;
583
+ label?: string | undefined;
584
+ props?: Record<string, any> | undefined;
585
+ } | undefined;
586
+ enabledWhen?: string[] | undefined;
587
+ } | {
588
+ transition: string;
589
+ type: "custom";
590
+ widget?: string | undefined;
591
+ options?: {} | undefined;
592
+ enabledWhen?: string[] | undefined;
593
+ })[] | undefined;
594
+ parameters?: any;
595
+ } | undefined;
596
+ title?: string | undefined;
597
+ parallel?: boolean | undefined;
598
+ }, {
599
+ namespace: {
600
+ label: string;
601
+ };
602
+ factory: {
603
+ block: string;
604
+ id?: string | undefined;
605
+ condition?: string | boolean | undefined;
606
+ args?: any;
607
+ };
608
+ iterator: {
609
+ source: string[];
610
+ };
611
+ description?: string | undefined;
612
+ ui?: {
613
+ actions?: ({
614
+ transition: string;
615
+ type: "button";
616
+ widget?: string | undefined;
617
+ options?: {
618
+ position?: number | undefined;
619
+ label?: string | undefined;
620
+ props?: Record<string, any> | undefined;
621
+ } | undefined;
622
+ enabledWhen?: string[] | undefined;
623
+ } | {
624
+ transition: string;
625
+ type: "custom";
626
+ widget?: string | undefined;
627
+ options?: {} | undefined;
628
+ enabledWhen?: string[] | undefined;
629
+ })[] | undefined;
630
+ parameters?: any;
631
+ } | undefined;
632
+ title?: string | undefined;
633
+ parallel?: boolean | undefined;
634
+ }>;
635
+ export type PipelineFactoryType = z.infer<typeof PipelineFactorySchema>;
636
+ export declare const PipelineSequenceSchema: z.ZodObject<{
637
+ title: z.ZodOptional<z.ZodString>;
638
+ description: z.ZodOptional<z.ZodString>;
639
+ namespace: z.ZodOptional<z.ZodObject<{
640
+ label: z.ZodString;
641
+ }, "strip", z.ZodTypeAny, {
642
+ label: string;
643
+ }, {
644
+ label: string;
645
+ }>>;
646
+ ui: z.ZodOptional<z.ZodObject<{
647
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
648
+ transition: z.ZodString;
649
+ widget: z.ZodOptional<z.ZodString>;
650
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
651
+ } & {
652
+ type: z.ZodLiteral<"button">;
653
+ options: z.ZodOptional<z.ZodObject<{
654
+ position: z.ZodOptional<z.ZodNumber>;
655
+ label: z.ZodOptional<z.ZodString>;
656
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
657
+ }, "strip", z.ZodTypeAny, {
658
+ position?: number | undefined;
659
+ label?: string | undefined;
660
+ props?: Record<string, any> | undefined;
661
+ }, {
662
+ position?: number | undefined;
663
+ label?: string | undefined;
664
+ props?: Record<string, any> | undefined;
665
+ }>>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ transition: string;
668
+ type: "button";
669
+ widget?: string | undefined;
670
+ options?: {
671
+ position?: number | undefined;
672
+ label?: string | undefined;
673
+ props?: Record<string, any> | undefined;
674
+ } | undefined;
675
+ enabledWhen?: string[] | undefined;
676
+ }, {
677
+ transition: string;
678
+ type: "button";
679
+ widget?: string | undefined;
680
+ options?: {
681
+ position?: number | undefined;
682
+ label?: string | undefined;
683
+ props?: Record<string, any> | undefined;
684
+ } | undefined;
685
+ enabledWhen?: string[] | undefined;
686
+ }>, z.ZodObject<{
687
+ transition: z.ZodString;
688
+ widget: z.ZodOptional<z.ZodString>;
689
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
690
+ } & {
691
+ type: z.ZodLiteral<"custom">;
692
+ options: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ transition: string;
695
+ type: "custom";
696
+ widget?: string | undefined;
697
+ options?: {} | undefined;
698
+ enabledWhen?: string[] | undefined;
699
+ }, {
700
+ transition: string;
701
+ type: "custom";
702
+ widget?: string | undefined;
703
+ options?: {} | undefined;
704
+ enabledWhen?: string[] | undefined;
705
+ }>]>, "many">>;
706
+ parameters: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ actions?: ({
709
+ transition: string;
710
+ type: "button";
711
+ widget?: string | undefined;
712
+ options?: {
713
+ position?: number | undefined;
714
+ label?: string | undefined;
715
+ props?: Record<string, any> | undefined;
716
+ } | undefined;
717
+ enabledWhen?: string[] | undefined;
718
+ } | {
719
+ transition: string;
720
+ type: "custom";
721
+ widget?: string | undefined;
722
+ options?: {} | undefined;
723
+ enabledWhen?: string[] | undefined;
724
+ })[] | undefined;
725
+ parameters?: any;
726
+ }, {
727
+ actions?: ({
728
+ transition: string;
729
+ type: "button";
730
+ widget?: string | undefined;
731
+ options?: {
732
+ position?: number | undefined;
733
+ label?: string | undefined;
734
+ props?: Record<string, any> | undefined;
735
+ } | undefined;
736
+ enabledWhen?: string[] | undefined;
737
+ } | {
738
+ transition: string;
739
+ type: "custom";
740
+ widget?: string | undefined;
741
+ options?: {} | undefined;
742
+ enabledWhen?: string[] | undefined;
743
+ })[] | undefined;
744
+ parameters?: any;
745
+ }>>;
746
+ } & {
747
+ type: z.ZodDefault<z.ZodLiteral<"sequence">>;
748
+ sequence: z.ZodArray<z.ZodObject<{
749
+ id: z.ZodOptional<z.ZodString>;
750
+ block: z.ZodString;
751
+ condition: z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>;
752
+ args: z.ZodOptional<z.ZodAny>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ block: string;
755
+ id?: string | undefined;
756
+ condition?: string | undefined;
757
+ args?: any;
758
+ }, {
759
+ block: string;
760
+ id?: string | undefined;
761
+ condition?: string | undefined;
762
+ args?: any;
763
+ }>, "many">;
764
+ }, "strip", z.ZodTypeAny, {
765
+ type: "sequence";
766
+ sequence: {
767
+ block: string;
768
+ id?: string | undefined;
769
+ condition?: string | undefined;
770
+ args?: any;
771
+ }[];
772
+ description?: string | undefined;
773
+ ui?: {
774
+ actions?: ({
775
+ transition: string;
776
+ type: "button";
777
+ widget?: string | undefined;
778
+ options?: {
779
+ position?: number | undefined;
780
+ label?: string | undefined;
781
+ props?: Record<string, any> | undefined;
782
+ } | undefined;
783
+ enabledWhen?: string[] | undefined;
784
+ } | {
785
+ transition: string;
786
+ type: "custom";
787
+ widget?: string | undefined;
788
+ options?: {} | undefined;
789
+ enabledWhen?: string[] | undefined;
790
+ })[] | undefined;
791
+ parameters?: any;
792
+ } | undefined;
793
+ title?: string | undefined;
794
+ namespace?: {
795
+ label: string;
796
+ } | undefined;
797
+ }, {
798
+ sequence: {
799
+ block: string;
800
+ id?: string | undefined;
801
+ condition?: string | undefined;
802
+ args?: any;
803
+ }[];
804
+ type?: "sequence" | undefined;
805
+ description?: string | undefined;
806
+ ui?: {
807
+ actions?: ({
808
+ transition: string;
809
+ type: "button";
810
+ widget?: string | undefined;
811
+ options?: {
812
+ position?: number | undefined;
813
+ label?: string | undefined;
814
+ props?: Record<string, any> | undefined;
815
+ } | undefined;
816
+ enabledWhen?: string[] | undefined;
817
+ } | {
818
+ transition: string;
819
+ type: "custom";
820
+ widget?: string | undefined;
821
+ options?: {} | undefined;
822
+ enabledWhen?: string[] | undefined;
823
+ })[] | undefined;
824
+ parameters?: any;
825
+ } | undefined;
826
+ title?: string | undefined;
827
+ namespace?: {
828
+ label: string;
829
+ } | undefined;
830
+ }>;
831
+ export type PipelineSequenceType = z.infer<typeof PipelineSequenceSchema>;