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