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