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