@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,439 @@
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 declare const WorkflowBaseSchema: z.ZodObject<{
10
+ title: z.ZodOptional<z.ZodString>;
11
+ description: z.ZodOptional<z.ZodString>;
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
+ }, {
160
+ title?: string | undefined;
161
+ description?: string | undefined;
162
+ ui?: {
163
+ form?: any;
164
+ actions?: ({
165
+ type: "button";
166
+ transition: string;
167
+ options?: {
168
+ position?: number | undefined;
169
+ label?: string | undefined;
170
+ props?: Record<string, any> | undefined;
171
+ } | undefined;
172
+ widget?: string | undefined;
173
+ enabledWhen?: string[] | undefined;
174
+ } | {
175
+ type: "custom";
176
+ transition: string;
177
+ options?: {
178
+ label?: string | undefined;
179
+ props?: Record<string, any> | undefined;
180
+ } | undefined;
181
+ widget?: string | undefined;
182
+ enabledWhen?: string[] | undefined;
183
+ })[] | undefined;
184
+ } | undefined;
185
+ }>;
186
+ export declare const WorkflowSchema: z.ZodObject<{
187
+ title: z.ZodOptional<z.ZodString>;
188
+ description: z.ZodOptional<z.ZodString>;
189
+ ui: z.ZodOptional<z.ZodObject<{
190
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
191
+ transition: z.ZodString;
192
+ widget: z.ZodOptional<z.ZodString>;
193
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
194
+ } & {
195
+ type: z.ZodLiteral<"button">;
196
+ options: z.ZodOptional<z.ZodObject<{
197
+ position: z.ZodOptional<z.ZodNumber>;
198
+ label: z.ZodOptional<z.ZodString>;
199
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ position?: number | undefined;
202
+ label?: string | undefined;
203
+ props?: Record<string, any> | undefined;
204
+ }, {
205
+ position?: number | undefined;
206
+ label?: string | undefined;
207
+ props?: Record<string, any> | undefined;
208
+ }>>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: "button";
211
+ transition: string;
212
+ options?: {
213
+ position?: number | undefined;
214
+ label?: string | undefined;
215
+ props?: Record<string, any> | undefined;
216
+ } | undefined;
217
+ widget?: string | undefined;
218
+ enabledWhen?: string[] | undefined;
219
+ }, {
220
+ type: "button";
221
+ transition: string;
222
+ options?: {
223
+ position?: number | undefined;
224
+ label?: string | undefined;
225
+ props?: Record<string, any> | undefined;
226
+ } | undefined;
227
+ widget?: string | undefined;
228
+ enabledWhen?: string[] | undefined;
229
+ }>, z.ZodObject<{
230
+ transition: z.ZodString;
231
+ widget: z.ZodOptional<z.ZodString>;
232
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
233
+ } & {
234
+ type: z.ZodLiteral<"custom">;
235
+ options: z.ZodOptional<z.ZodObject<{
236
+ label: z.ZodOptional<z.ZodString>;
237
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ label?: string | undefined;
240
+ props?: Record<string, any> | undefined;
241
+ }, {
242
+ label?: string | undefined;
243
+ props?: Record<string, any> | undefined;
244
+ }>>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ type: "custom";
247
+ transition: string;
248
+ options?: {
249
+ label?: string | undefined;
250
+ props?: Record<string, any> | undefined;
251
+ } | undefined;
252
+ widget?: string | undefined;
253
+ enabledWhen?: string[] | undefined;
254
+ }, {
255
+ type: "custom";
256
+ transition: string;
257
+ options?: {
258
+ label?: string | undefined;
259
+ props?: Record<string, any> | undefined;
260
+ } | undefined;
261
+ widget?: string | undefined;
262
+ enabledWhen?: string[] | undefined;
263
+ }>]>, "many">>;
264
+ form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ form?: any;
267
+ actions?: ({
268
+ type: "button";
269
+ transition: string;
270
+ options?: {
271
+ position?: number | undefined;
272
+ label?: string | undefined;
273
+ props?: Record<string, any> | undefined;
274
+ } | undefined;
275
+ widget?: string | undefined;
276
+ enabledWhen?: string[] | undefined;
277
+ } | {
278
+ type: "custom";
279
+ transition: string;
280
+ options?: {
281
+ label?: string | undefined;
282
+ props?: Record<string, any> | undefined;
283
+ } | undefined;
284
+ widget?: string | undefined;
285
+ enabledWhen?: string[] | undefined;
286
+ })[] | undefined;
287
+ }, {
288
+ form?: any;
289
+ actions?: ({
290
+ type: "button";
291
+ transition: string;
292
+ options?: {
293
+ position?: number | undefined;
294
+ label?: string | undefined;
295
+ props?: Record<string, any> | undefined;
296
+ } | undefined;
297
+ widget?: string | undefined;
298
+ enabledWhen?: string[] | undefined;
299
+ } | {
300
+ type: "custom";
301
+ transition: string;
302
+ options?: {
303
+ label?: string | undefined;
304
+ props?: Record<string, any> | undefined;
305
+ } | undefined;
306
+ widget?: string | undefined;
307
+ enabledWhen?: string[] | undefined;
308
+ })[] | undefined;
309
+ }>>;
310
+ } & {
311
+ type: z.ZodDefault<z.ZodLiteral<"workflow">>;
312
+ transitions: z.ZodOptional<z.ZodArray<z.ZodObject<{
313
+ id: z.ZodString;
314
+ from: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
315
+ to: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
316
+ when: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["manual", "onEntry"]>, z.ZodString]>>;
317
+ call: z.ZodOptional<z.ZodArray<z.ZodObject<{
318
+ id: z.ZodOptional<z.ZodString>;
319
+ tool: z.ZodString;
320
+ args: z.ZodOptional<z.ZodAny>;
321
+ 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>]>>>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ tool: string;
324
+ id?: string | undefined;
325
+ args?: any;
326
+ assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
327
+ }, {
328
+ tool: string;
329
+ id?: string | undefined;
330
+ args?: any;
331
+ assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
332
+ }>, "many">>;
333
+ onError: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ id: string;
336
+ from?: string | string[] | undefined;
337
+ to?: string | string[] | undefined;
338
+ when?: string | undefined;
339
+ call?: {
340
+ tool: string;
341
+ id?: string | undefined;
342
+ args?: any;
343
+ assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
344
+ }[] | undefined;
345
+ onError?: string | undefined;
346
+ }, {
347
+ id: string;
348
+ from?: string | string[] | undefined;
349
+ to?: string | string[] | undefined;
350
+ when?: string | undefined;
351
+ call?: {
352
+ tool: string;
353
+ id?: string | undefined;
354
+ args?: any;
355
+ assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
356
+ }[] | undefined;
357
+ onError?: string | undefined;
358
+ }>, "many">>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ type: "workflow";
361
+ title?: string | undefined;
362
+ description?: string | undefined;
363
+ ui?: {
364
+ form?: any;
365
+ actions?: ({
366
+ type: "button";
367
+ transition: string;
368
+ options?: {
369
+ position?: number | undefined;
370
+ label?: string | undefined;
371
+ props?: Record<string, any> | undefined;
372
+ } | undefined;
373
+ widget?: string | undefined;
374
+ enabledWhen?: string[] | undefined;
375
+ } | {
376
+ type: "custom";
377
+ transition: string;
378
+ options?: {
379
+ label?: string | undefined;
380
+ props?: Record<string, any> | undefined;
381
+ } | undefined;
382
+ widget?: string | undefined;
383
+ enabledWhen?: string[] | undefined;
384
+ })[] | undefined;
385
+ } | undefined;
386
+ transitions?: {
387
+ id: string;
388
+ from?: string | string[] | undefined;
389
+ to?: string | string[] | undefined;
390
+ when?: string | undefined;
391
+ call?: {
392
+ tool: string;
393
+ id?: string | undefined;
394
+ args?: any;
395
+ assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
396
+ }[] | undefined;
397
+ onError?: string | undefined;
398
+ }[] | undefined;
399
+ }, {
400
+ type?: "workflow" | undefined;
401
+ title?: string | undefined;
402
+ description?: string | undefined;
403
+ ui?: {
404
+ form?: any;
405
+ actions?: ({
406
+ type: "button";
407
+ transition: string;
408
+ options?: {
409
+ position?: number | undefined;
410
+ label?: string | undefined;
411
+ props?: Record<string, any> | undefined;
412
+ } | undefined;
413
+ widget?: string | undefined;
414
+ enabledWhen?: string[] | undefined;
415
+ } | {
416
+ type: "custom";
417
+ transition: string;
418
+ options?: {
419
+ label?: string | undefined;
420
+ props?: Record<string, any> | undefined;
421
+ } | undefined;
422
+ widget?: string | undefined;
423
+ enabledWhen?: string[] | undefined;
424
+ })[] | undefined;
425
+ } | undefined;
426
+ transitions?: {
427
+ id: string;
428
+ from?: string | string[] | undefined;
429
+ to?: string | string[] | undefined;
430
+ when?: string | undefined;
431
+ call?: {
432
+ tool: string;
433
+ id?: string | undefined;
434
+ args?: any;
435
+ assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
436
+ }[] | undefined;
437
+ onError?: string | undefined;
438
+ }[] | undefined;
439
+ }>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/workflow.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzB,CAAC"}
@@ -0,0 +1,19 @@
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 block_schema_1 = require("./block.schema");
7
+ const ui_form_schema_1 = require("./ui-form.schema");
8
+ exports.NamespacePropsSchema = zod_1.z.object({
9
+ label: zod_1.z.string(),
10
+ });
11
+ exports.WorkflowBaseSchema = block_schema_1.BlockSchema.extend({
12
+ title: zod_1.z.string().optional(),
13
+ description: zod_1.z.string().optional(),
14
+ ui: ui_form_schema_1.UiFormSchema.optional()
15
+ });
16
+ exports.WorkflowSchema = exports.WorkflowBaseSchema.extend({
17
+ type: zod_1.z.literal('workflow').default('workflow'),
18
+ transitions: zod_1.z.array(workflow_transition_schema_1.WorkflowTransitionSchema).optional(),
19
+ });
@@ -0,0 +1,14 @@
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
+ }>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/workspace.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,eAAe;;;;;;;;;;;;EAI1B,CAAC"}
@@ -0,0 +1,10 @@
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
+ });
@@ -0,0 +1,2 @@
1
+ export * from './interfaces/index.js';
2
+ export * from './types/index.js';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ export interface ClientMessageInterface {
2
+ type: string;
3
+ userId: string | null;
4
+ workerId: string;
5
+ id?: string;
6
+ namespaceId?: string;
7
+ workflowId?: string;
8
+ pipelineId?: string;
9
+ workspaceId?: string;
10
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-message.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/client-message.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import { JSONSchemaConfigType } from '../types/json-schema-config.type';
2
+ import { UiFormType } from '../types/ui-form.type';
3
+ export interface DocumentItemInterface {
4
+ id: string;
5
+ name: string;
6
+ configKey: string;
7
+ content: any;
8
+ schema: JSONSchemaConfigType;
9
+ validationError: any;
10
+ ui: UiFormType;
11
+ meta: any;
12
+ isInvalidated: boolean;
13
+ isPendingRemoval: boolean;
14
+ version: number;
15
+ index: number;
16
+ transition: string | null;
17
+ place: string;
18
+ labels: string[];
19
+ tags: string[];
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ workspaceId: string;
23
+ pipelineId: string;
24
+ workflowId: string;
25
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-item.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/document-item.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,oBAAoB,CAAC;IAC7B,eAAe,EAAE,GAAG,CAAC;IACrB,EAAE,EAAE,UAAU,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface HistoryTransition {
2
+ transition: string;
3
+ from: string | null;
4
+ to: string;
5
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-transition.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/history-transition.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export * from './history-transition.interface.js';
2
+ export * from './namespace-create.interface.js';
3
+ export * from './transition-info.interface.js';
4
+ export * from './transition-payload.interface.js';
5
+ export * from './transition-metadata.interface.js';
6
+ export * from './document-item.interface.js';
7
+ export * from './workflow.interface.js';
8
+ export * from './client-message.interface.js';
9
+ export * from './pipeline-config.interface.js';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA;AAC9C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2BAA2B,CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./history-transition.interface.js"), exports);
18
+ __exportStar(require("./namespace-create.interface.js"), exports);
19
+ __exportStar(require("./transition-info.interface.js"), exports);
20
+ __exportStar(require("./transition-payload.interface.js"), exports);
21
+ __exportStar(require("./transition-metadata.interface.js"), exports);
22
+ __exportStar(require("./document-item.interface.js"), exports);
23
+ __exportStar(require("./workflow.interface.js"), exports);
24
+ __exportStar(require("./client-message.interface.js"), exports);
25
+ __exportStar(require("./pipeline-config.interface.js"), exports);
@@ -0,0 +1,8 @@
1
+ export interface NamespaceCreateInterface {
2
+ name: string;
3
+ pipelineId: string;
4
+ workspaceId: string;
5
+ parent: any | null;
6
+ metadata?: Record<string, any>;
7
+ createdBy: string;
8
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespace-create.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/namespace-create.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,GAAG,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { JSONSchemaConfigType, UiFormType } from '../types';
2
+ export interface PipelineConfigInterface {
3
+ configKey: string;
4
+ title?: string;
5
+ description?: string;
6
+ schema?: JSONSchemaConfigType;
7
+ ui?: UiFormType;
8
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline-config.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/pipeline-config.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,EAAE,CAAC,EAAE,UAAU,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });