@loopstack/core 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 (51) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/core-tools/core-tools.module.js +2 -0
  3. package/dist/core-tools/core-tools.module.js.map +1 -1
  4. package/dist/core-tools/documents/ai-message-document.d.ts +7 -0
  5. package/dist/core-tools/documents/ai-message-document.js +81 -0
  6. package/dist/core-tools/documents/ai-message-document.js.map +1 -0
  7. package/dist/core-tools/documents/ai-message-document.yaml +7 -0
  8. package/dist/core-tools/documents/error-message-document.yaml +2 -7
  9. package/dist/core-tools/documents/markdown-message-document.yaml +2 -9
  10. package/dist/core-tools/documents/message-document.yaml +2 -9
  11. package/dist/core-tools/documents/plain-message-document.yaml +2 -9
  12. package/dist/core-tools/services/batch-create-documents.service.js +12 -3
  13. package/dist/core-tools/services/batch-create-documents.service.js.map +1 -1
  14. package/dist/core-tools/services/create-document.service.d.ts +493 -33
  15. package/dist/core-tools/services/create-document.service.js +15 -60
  16. package/dist/core-tools/services/create-document.service.js.map +1 -1
  17. package/dist/core-tools/tools/create-document-tool.d.ts +1 -1
  18. package/dist/core-tools/tools/create-document-tool.js +4 -4
  19. package/dist/core-tools/tools/create-document-tool.js.map +1 -1
  20. package/dist/persistence/services/pipeline.service.d.ts +1 -1
  21. package/dist/persistence/services/pipeline.service.js +2 -2
  22. package/dist/persistence/services/pipeline.service.js.map +1 -1
  23. package/dist/persistence/subscriber/document.subscriber.js +0 -1
  24. package/dist/persistence/subscriber/document.subscriber.js.map +1 -1
  25. package/dist/persistence/subscriber/workflow.subscriber.js +0 -10
  26. package/dist/persistence/subscriber/workflow.subscriber.js.map +1 -1
  27. package/dist/schema-generator/services/json-schema-generator.service.js +1 -1
  28. package/dist/schema-generator/services/json-schema-generator.service.js.map +1 -1
  29. package/dist/workflow-processor/abstract/factory.abstract.js +1 -1
  30. package/dist/workflow-processor/abstract/factory.abstract.js.map +1 -1
  31. package/dist/workflow-processor/abstract/pipeline.abstract.js +1 -1
  32. package/dist/workflow-processor/abstract/pipeline.abstract.js.map +1 -1
  33. package/dist/workflow-processor/abstract/tool.abstract.js +1 -1
  34. package/dist/workflow-processor/abstract/tool.abstract.js.map +1 -1
  35. package/dist/workflow-processor/abstract/workflow.abstract.js +1 -1
  36. package/dist/workflow-processor/abstract/workflow.abstract.js.map +1 -1
  37. package/dist/workflow-processor/abstract/workspace.abstract.js +1 -1
  38. package/dist/workflow-processor/abstract/workspace.abstract.js.map +1 -1
  39. package/dist/workflow-processor/dtos/block-execution-context.dto.d.ts +3 -0
  40. package/dist/workflow-processor/dtos/block-execution-context.dto.js +7 -1
  41. package/dist/workflow-processor/dtos/block-execution-context.dto.js.map +1 -1
  42. package/dist/workflow-processor/dtos/workflow-state.dto.js +1 -1
  43. package/dist/workflow-processor/dtos/workflow-state.dto.js.map +1 -1
  44. package/dist/workflow-processor/services/block-registry.service.js +9 -0
  45. package/dist/workflow-processor/services/block-registry.service.js.map +1 -1
  46. package/dist/workflow-processor/services/create-pipeline.service.d.ts +4 -1
  47. package/dist/workflow-processor/services/create-pipeline.service.js +22 -3
  48. package/dist/workflow-processor/services/create-pipeline.service.js.map +1 -1
  49. package/dist/workflow-processor/services/root-processor.service.js +4 -5
  50. package/dist/workflow-processor/services/root-processor.service.js.map +1 -1
  51. package/package.json +2 -2
@@ -3,112 +3,470 @@ import { z } from 'zod';
3
3
  import { DocumentService } from '../../persistence';
4
4
  import { BlockRegistryService, TemplateExpressionEvaluatorService, Tool } from '../../workflow-processor';
5
5
  export declare const CreateDocumentInputSchema: z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
6
7
  document: z.ZodString;
7
8
  validate: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"strict">, z.ZodLiteral<"safe">, z.ZodLiteral<"skip">]>>>;
8
9
  update: z.ZodOptional<z.ZodObject<{
9
- content: z.ZodAny;
10
- schema: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
11
- ui: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
10
+ type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
11
+ description: z.ZodOptional<z.ZodString>;
12
+ content: z.ZodOptional<z.ZodAny>;
13
+ ui: z.ZodOptional<z.ZodObject<{
14
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
15
+ transition: z.ZodString;
16
+ widget: z.ZodOptional<z.ZodString>;
17
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ } & {
19
+ type: z.ZodLiteral<"button">;
20
+ options: z.ZodOptional<z.ZodObject<{
21
+ position: z.ZodOptional<z.ZodNumber>;
22
+ label: z.ZodOptional<z.ZodString>;
23
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ position?: number | undefined;
26
+ label?: string | undefined;
27
+ props?: Record<string, any> | undefined;
28
+ }, {
29
+ position?: number | undefined;
30
+ label?: string | undefined;
31
+ props?: Record<string, any> | undefined;
32
+ }>>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ type: "button";
35
+ transition: string;
36
+ options?: {
37
+ position?: number | undefined;
38
+ label?: string | undefined;
39
+ props?: Record<string, any> | undefined;
40
+ } | undefined;
41
+ widget?: string | undefined;
42
+ enabledWhen?: string[] | undefined;
43
+ }, {
44
+ type: "button";
45
+ transition: string;
46
+ options?: {
47
+ position?: number | undefined;
48
+ label?: string | undefined;
49
+ props?: Record<string, any> | undefined;
50
+ } | undefined;
51
+ widget?: string | undefined;
52
+ enabledWhen?: string[] | undefined;
53
+ }>, z.ZodObject<{
54
+ transition: z.ZodString;
55
+ widget: z.ZodOptional<z.ZodString>;
56
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ } & {
58
+ type: z.ZodLiteral<"custom">;
59
+ options: z.ZodOptional<z.ZodObject<{
60
+ label: z.ZodOptional<z.ZodString>;
61
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
62
+ }, "strip", z.ZodTypeAny, {
63
+ label?: string | undefined;
64
+ props?: Record<string, any> | undefined;
65
+ }, {
66
+ label?: string | undefined;
67
+ props?: Record<string, any> | undefined;
68
+ }>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ type: "custom";
71
+ transition: string;
72
+ options?: {
73
+ label?: string | undefined;
74
+ props?: Record<string, any> | undefined;
75
+ } | undefined;
76
+ widget?: string | undefined;
77
+ enabledWhen?: string[] | undefined;
78
+ }, {
79
+ type: "custom";
80
+ transition: string;
81
+ options?: {
82
+ label?: string | undefined;
83
+ props?: Record<string, any> | undefined;
84
+ } | undefined;
85
+ widget?: string | undefined;
86
+ enabledWhen?: string[] | undefined;
87
+ }>]>, "many">>;
88
+ form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ form?: any;
91
+ actions?: ({
92
+ type: "button";
93
+ transition: string;
94
+ options?: {
95
+ position?: number | undefined;
96
+ label?: string | undefined;
97
+ props?: Record<string, any> | undefined;
98
+ } | undefined;
99
+ widget?: string | undefined;
100
+ enabledWhen?: string[] | undefined;
101
+ } | {
102
+ type: "custom";
103
+ transition: string;
104
+ options?: {
105
+ label?: string | undefined;
106
+ props?: Record<string, any> | undefined;
107
+ } | undefined;
108
+ widget?: string | undefined;
109
+ enabledWhen?: string[] | undefined;
110
+ })[] | undefined;
111
+ }, {
112
+ form?: any;
113
+ actions?: ({
114
+ type: "button";
115
+ transition: string;
116
+ options?: {
117
+ position?: number | undefined;
118
+ label?: string | undefined;
119
+ props?: Record<string, any> | undefined;
120
+ } | undefined;
121
+ widget?: string | undefined;
122
+ enabledWhen?: string[] | undefined;
123
+ } | {
124
+ type: "custom";
125
+ transition: string;
126
+ options?: {
127
+ label?: string | undefined;
128
+ props?: Record<string, any> | undefined;
129
+ } | undefined;
130
+ widget?: string | undefined;
131
+ enabledWhen?: string[] | undefined;
132
+ })[] | undefined;
133
+ }>>;
12
134
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
135
  meta: z.ZodOptional<z.ZodObject<{
136
+ hidden: z.ZodOptional<z.ZodBoolean>;
14
137
  mimeType: z.ZodOptional<z.ZodEnum<["text/plain", "text/html", "text/css", "text/xml", "text/markdown", "application/javascript", "application/typescript", "application/json", "application/xml", "application/yaml"]>>;
15
138
  invalidate: z.ZodOptional<z.ZodBoolean>;
16
139
  level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
17
140
  enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
141
  hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
+ data: z.ZodOptional<z.ZodAny>;
19
143
  }, "strip", z.ZodTypeAny, {
144
+ data?: any;
145
+ hidden?: boolean | undefined;
20
146
  invalidate?: boolean | undefined;
21
- mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
147
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
22
148
  level?: "error" | "debug" | "info" | "warning" | undefined;
23
149
  enableAtPlaces?: string[] | undefined;
24
150
  hideAtPlaces?: string[] | undefined;
25
151
  }, {
152
+ data?: any;
153
+ hidden?: boolean | undefined;
26
154
  invalidate?: boolean | undefined;
27
- mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
155
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
28
156
  level?: "error" | "debug" | "info" | "warning" | undefined;
29
157
  enableAtPlaces?: string[] | undefined;
30
158
  hideAtPlaces?: string[] | undefined;
31
159
  }>>;
32
160
  }, "strip", z.ZodTypeAny, {
33
- ui?: any;
161
+ type?: "document" | undefined;
34
162
  content?: any;
35
163
  meta?: {
164
+ data?: any;
165
+ hidden?: boolean | undefined;
36
166
  invalidate?: boolean | undefined;
37
- mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
167
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
38
168
  level?: "error" | "debug" | "info" | "warning" | undefined;
39
169
  enableAtPlaces?: string[] | undefined;
40
170
  hideAtPlaces?: string[] | undefined;
41
171
  } | undefined;
42
- schema?: any;
172
+ description?: string | undefined;
173
+ ui?: {
174
+ form?: any;
175
+ actions?: ({
176
+ type: "button";
177
+ transition: string;
178
+ options?: {
179
+ position?: number | undefined;
180
+ label?: string | undefined;
181
+ props?: Record<string, any> | undefined;
182
+ } | undefined;
183
+ widget?: string | undefined;
184
+ enabledWhen?: string[] | undefined;
185
+ } | {
186
+ type: "custom";
187
+ transition: string;
188
+ options?: {
189
+ label?: string | undefined;
190
+ props?: Record<string, any> | undefined;
191
+ } | undefined;
192
+ widget?: string | undefined;
193
+ enabledWhen?: string[] | undefined;
194
+ })[] | undefined;
195
+ } | undefined;
43
196
  tags?: string[] | undefined;
44
197
  }, {
45
- ui?: any;
198
+ type?: "document" | undefined;
46
199
  content?: any;
47
200
  meta?: {
201
+ data?: any;
202
+ hidden?: boolean | undefined;
48
203
  invalidate?: boolean | undefined;
49
- mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
204
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
50
205
  level?: "error" | "debug" | "info" | "warning" | undefined;
51
206
  enableAtPlaces?: string[] | undefined;
52
207
  hideAtPlaces?: string[] | undefined;
53
208
  } | undefined;
54
- schema?: any;
209
+ description?: string | undefined;
210
+ ui?: {
211
+ form?: any;
212
+ actions?: ({
213
+ type: "button";
214
+ transition: string;
215
+ options?: {
216
+ position?: number | undefined;
217
+ label?: string | undefined;
218
+ props?: Record<string, any> | undefined;
219
+ } | undefined;
220
+ widget?: string | undefined;
221
+ enabledWhen?: string[] | undefined;
222
+ } | {
223
+ type: "custom";
224
+ transition: string;
225
+ options?: {
226
+ label?: string | undefined;
227
+ props?: Record<string, any> | undefined;
228
+ } | undefined;
229
+ widget?: string | undefined;
230
+ enabledWhen?: string[] | undefined;
231
+ })[] | undefined;
232
+ } | undefined;
55
233
  tags?: string[] | undefined;
56
234
  }>>;
57
235
  }, "strict", z.ZodTypeAny, {
58
236
  document: string;
237
+ id?: string | undefined;
59
238
  validate?: "strict" | "skip" | "safe" | undefined;
60
239
  update?: {
61
- ui?: any;
240
+ type?: "document" | undefined;
62
241
  content?: any;
63
242
  meta?: {
243
+ data?: any;
244
+ hidden?: boolean | undefined;
64
245
  invalidate?: boolean | undefined;
65
- mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
246
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
66
247
  level?: "error" | "debug" | "info" | "warning" | undefined;
67
248
  enableAtPlaces?: string[] | undefined;
68
249
  hideAtPlaces?: string[] | undefined;
69
250
  } | undefined;
70
- schema?: any;
251
+ description?: string | undefined;
252
+ ui?: {
253
+ form?: any;
254
+ actions?: ({
255
+ type: "button";
256
+ transition: string;
257
+ options?: {
258
+ position?: number | undefined;
259
+ label?: string | undefined;
260
+ props?: Record<string, any> | undefined;
261
+ } | undefined;
262
+ widget?: string | undefined;
263
+ enabledWhen?: string[] | undefined;
264
+ } | {
265
+ type: "custom";
266
+ transition: string;
267
+ options?: {
268
+ label?: string | undefined;
269
+ props?: Record<string, any> | undefined;
270
+ } | undefined;
271
+ widget?: string | undefined;
272
+ enabledWhen?: string[] | undefined;
273
+ })[] | undefined;
274
+ } | undefined;
71
275
  tags?: string[] | undefined;
72
276
  } | undefined;
73
277
  }, {
74
278
  document: string;
279
+ id?: string | undefined;
75
280
  validate?: "strict" | "skip" | "safe" | undefined;
76
281
  update?: {
77
- ui?: any;
282
+ type?: "document" | undefined;
78
283
  content?: any;
79
284
  meta?: {
285
+ data?: any;
286
+ hidden?: boolean | undefined;
80
287
  invalidate?: boolean | undefined;
81
- mimeType?: "text/plain" | "text/html" | "text/css" | "text/xml" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/xml" | "application/yaml" | undefined;
288
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
82
289
  level?: "error" | "debug" | "info" | "warning" | undefined;
83
290
  enableAtPlaces?: string[] | undefined;
84
291
  hideAtPlaces?: string[] | undefined;
85
292
  } | undefined;
86
- schema?: any;
293
+ description?: string | undefined;
294
+ ui?: {
295
+ form?: any;
296
+ actions?: ({
297
+ type: "button";
298
+ transition: string;
299
+ options?: {
300
+ position?: number | undefined;
301
+ label?: string | undefined;
302
+ props?: Record<string, any> | undefined;
303
+ } | undefined;
304
+ widget?: string | undefined;
305
+ enabledWhen?: string[] | undefined;
306
+ } | {
307
+ type: "custom";
308
+ transition: string;
309
+ options?: {
310
+ label?: string | undefined;
311
+ props?: Record<string, any> | undefined;
312
+ } | undefined;
313
+ widget?: string | undefined;
314
+ enabledWhen?: string[] | undefined;
315
+ })[] | undefined;
316
+ } | undefined;
87
317
  tags?: string[] | undefined;
88
318
  } | undefined;
89
319
  }>;
90
320
  export type CreateDocumentInput = z.infer<typeof CreateDocumentInputSchema>;
91
321
  export declare const CreateDocumentConfigSchema: z.ZodObject<{
322
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
92
323
  document: z.ZodString;
93
324
  validate: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"strict">, z.ZodLiteral<"safe">, z.ZodLiteral<"skip">]>>;
94
325
  update: z.ZodOptional<z.ZodObject<{
95
- content: z.ZodAny;
96
- ui: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodString]>>;
97
- schema: z.ZodOptional<z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodString]>>;
98
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
326
+ type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
327
+ description: z.ZodOptional<z.ZodString>;
328
+ content: z.ZodOptional<z.ZodAny>;
329
+ ui: z.ZodOptional<z.ZodObject<{
330
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
331
+ transition: z.ZodString;
332
+ widget: z.ZodOptional<z.ZodString>;
333
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
+ } & {
335
+ type: z.ZodLiteral<"button">;
336
+ options: z.ZodOptional<z.ZodObject<{
337
+ position: z.ZodOptional<z.ZodNumber>;
338
+ label: z.ZodOptional<z.ZodString>;
339
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ position?: number | undefined;
342
+ label?: string | undefined;
343
+ props?: Record<string, any> | undefined;
344
+ }, {
345
+ position?: number | undefined;
346
+ label?: string | undefined;
347
+ props?: Record<string, any> | undefined;
348
+ }>>;
349
+ }, "strip", z.ZodTypeAny, {
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: "button";
361
+ transition: string;
362
+ options?: {
363
+ position?: number | undefined;
364
+ label?: string | undefined;
365
+ props?: Record<string, any> | undefined;
366
+ } | undefined;
367
+ widget?: string | undefined;
368
+ enabledWhen?: string[] | undefined;
369
+ }>, z.ZodObject<{
370
+ transition: z.ZodString;
371
+ widget: z.ZodOptional<z.ZodString>;
372
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
373
+ } & {
374
+ type: z.ZodLiteral<"custom">;
375
+ options: z.ZodOptional<z.ZodObject<{
376
+ label: z.ZodOptional<z.ZodString>;
377
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ label?: string | undefined;
380
+ props?: Record<string, any> | undefined;
381
+ }, {
382
+ label?: string | undefined;
383
+ props?: Record<string, any> | undefined;
384
+ }>>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ type: "custom";
387
+ transition: string;
388
+ options?: {
389
+ label?: string | undefined;
390
+ props?: Record<string, any> | undefined;
391
+ } | undefined;
392
+ widget?: string | undefined;
393
+ enabledWhen?: string[] | undefined;
394
+ }, {
395
+ type: "custom";
396
+ transition: string;
397
+ options?: {
398
+ label?: string | undefined;
399
+ props?: Record<string, any> | undefined;
400
+ } | undefined;
401
+ widget?: string | undefined;
402
+ enabledWhen?: string[] | undefined;
403
+ }>]>, "many">>;
404
+ form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ form?: any;
407
+ actions?: ({
408
+ type: "button";
409
+ transition: string;
410
+ options?: {
411
+ position?: number | undefined;
412
+ label?: string | undefined;
413
+ props?: Record<string, any> | undefined;
414
+ } | undefined;
415
+ widget?: string | undefined;
416
+ enabledWhen?: string[] | undefined;
417
+ } | {
418
+ type: "custom";
419
+ transition: string;
420
+ options?: {
421
+ label?: string | undefined;
422
+ props?: Record<string, any> | undefined;
423
+ } | undefined;
424
+ widget?: string | undefined;
425
+ enabledWhen?: string[] | undefined;
426
+ })[] | undefined;
427
+ }, {
428
+ form?: any;
429
+ actions?: ({
430
+ type: "button";
431
+ transition: string;
432
+ options?: {
433
+ position?: number | undefined;
434
+ label?: string | undefined;
435
+ props?: Record<string, any> | undefined;
436
+ } | undefined;
437
+ widget?: string | undefined;
438
+ enabledWhen?: string[] | undefined;
439
+ } | {
440
+ type: "custom";
441
+ transition: string;
442
+ options?: {
443
+ label?: string | undefined;
444
+ props?: Record<string, any> | undefined;
445
+ } | undefined;
446
+ widget?: string | undefined;
447
+ enabledWhen?: string[] | undefined;
448
+ })[] | undefined;
449
+ }>>;
450
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
99
451
  meta: z.ZodOptional<z.ZodObject<{
452
+ hidden: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
100
453
  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]>>;
101
454
  invalidate: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
102
455
  level: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
103
456
  enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
457
  hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
458
+ data: z.ZodOptional<z.ZodAny>;
105
459
  }, "strip", z.ZodTypeAny, {
460
+ data?: any;
461
+ hidden?: string | boolean | undefined;
106
462
  invalidate?: string | boolean | undefined;
107
463
  mimeType?: string | undefined;
108
464
  level?: string | undefined;
109
465
  enableAtPlaces?: string[] | undefined;
110
466
  hideAtPlaces?: string[] | undefined;
111
467
  }, {
468
+ data?: any;
469
+ hidden?: string | boolean | undefined;
112
470
  invalidate?: string | boolean | undefined;
113
471
  mimeType?: string | undefined;
114
472
  level?: string | undefined;
@@ -116,61 +474,163 @@ export declare const CreateDocumentConfigSchema: z.ZodObject<{
116
474
  hideAtPlaces?: string[] | undefined;
117
475
  }>>;
118
476
  }, "strip", z.ZodTypeAny, {
119
- ui?: any;
477
+ type?: "document" | undefined;
120
478
  content?: any;
121
479
  meta?: {
480
+ data?: any;
481
+ hidden?: string | boolean | undefined;
122
482
  invalidate?: string | boolean | undefined;
123
483
  mimeType?: string | undefined;
124
484
  level?: string | undefined;
125
485
  enableAtPlaces?: string[] | undefined;
126
486
  hideAtPlaces?: string[] | undefined;
127
487
  } | undefined;
128
- schema?: any;
129
- tags?: string[] | undefined;
488
+ description?: string | undefined;
489
+ ui?: {
490
+ form?: any;
491
+ actions?: ({
492
+ type: "button";
493
+ transition: string;
494
+ options?: {
495
+ position?: number | undefined;
496
+ label?: string | undefined;
497
+ props?: Record<string, any> | undefined;
498
+ } | undefined;
499
+ widget?: string | undefined;
500
+ enabledWhen?: string[] | undefined;
501
+ } | {
502
+ type: "custom";
503
+ transition: string;
504
+ options?: {
505
+ label?: string | undefined;
506
+ props?: Record<string, any> | undefined;
507
+ } | undefined;
508
+ widget?: string | undefined;
509
+ enabledWhen?: string[] | undefined;
510
+ })[] | undefined;
511
+ } | undefined;
512
+ tags?: string | string[] | undefined;
130
513
  }, {
131
- ui?: any;
514
+ type?: "document" | undefined;
132
515
  content?: any;
133
516
  meta?: {
517
+ data?: any;
518
+ hidden?: string | boolean | undefined;
134
519
  invalidate?: string | boolean | undefined;
135
520
  mimeType?: string | undefined;
136
521
  level?: string | undefined;
137
522
  enableAtPlaces?: string[] | undefined;
138
523
  hideAtPlaces?: string[] | undefined;
139
524
  } | undefined;
140
- schema?: any;
141
- tags?: string[] | undefined;
525
+ description?: string | undefined;
526
+ ui?: {
527
+ form?: any;
528
+ actions?: ({
529
+ type: "button";
530
+ transition: string;
531
+ options?: {
532
+ position?: number | undefined;
533
+ label?: string | undefined;
534
+ props?: Record<string, any> | undefined;
535
+ } | undefined;
536
+ widget?: string | undefined;
537
+ enabledWhen?: string[] | undefined;
538
+ } | {
539
+ type: "custom";
540
+ transition: string;
541
+ options?: {
542
+ label?: string | undefined;
543
+ props?: Record<string, any> | undefined;
544
+ } | undefined;
545
+ widget?: string | undefined;
546
+ enabledWhen?: string[] | undefined;
547
+ })[] | undefined;
548
+ } | undefined;
549
+ tags?: string | string[] | undefined;
142
550
  }>>;
143
551
  }, "strict", z.ZodTypeAny, {
144
552
  document: string;
553
+ id?: string | undefined;
145
554
  validate?: string | undefined;
146
555
  update?: {
147
- ui?: any;
556
+ type?: "document" | undefined;
148
557
  content?: any;
149
558
  meta?: {
559
+ data?: any;
560
+ hidden?: string | boolean | undefined;
150
561
  invalidate?: string | boolean | undefined;
151
562
  mimeType?: string | undefined;
152
563
  level?: string | undefined;
153
564
  enableAtPlaces?: string[] | undefined;
154
565
  hideAtPlaces?: string[] | undefined;
155
566
  } | undefined;
156
- schema?: any;
157
- tags?: string[] | undefined;
567
+ description?: string | undefined;
568
+ ui?: {
569
+ form?: any;
570
+ actions?: ({
571
+ type: "button";
572
+ transition: string;
573
+ options?: {
574
+ position?: number | undefined;
575
+ label?: string | undefined;
576
+ props?: Record<string, any> | undefined;
577
+ } | undefined;
578
+ widget?: string | undefined;
579
+ enabledWhen?: string[] | undefined;
580
+ } | {
581
+ type: "custom";
582
+ transition: string;
583
+ options?: {
584
+ label?: string | undefined;
585
+ props?: Record<string, any> | undefined;
586
+ } | undefined;
587
+ widget?: string | undefined;
588
+ enabledWhen?: string[] | undefined;
589
+ })[] | undefined;
590
+ } | undefined;
591
+ tags?: string | string[] | undefined;
158
592
  } | undefined;
159
593
  }, {
160
594
  document: string;
595
+ id?: string | undefined;
161
596
  validate?: string | undefined;
162
597
  update?: {
163
- ui?: any;
598
+ type?: "document" | undefined;
164
599
  content?: any;
165
600
  meta?: {
601
+ data?: any;
602
+ hidden?: string | boolean | undefined;
166
603
  invalidate?: string | boolean | undefined;
167
604
  mimeType?: string | undefined;
168
605
  level?: string | undefined;
169
606
  enableAtPlaces?: string[] | undefined;
170
607
  hideAtPlaces?: string[] | undefined;
171
608
  } | undefined;
172
- schema?: any;
173
- tags?: string[] | undefined;
609
+ description?: string | undefined;
610
+ ui?: {
611
+ form?: any;
612
+ actions?: ({
613
+ type: "button";
614
+ transition: string;
615
+ options?: {
616
+ position?: number | undefined;
617
+ label?: string | undefined;
618
+ props?: Record<string, any> | undefined;
619
+ } | undefined;
620
+ widget?: string | undefined;
621
+ enabledWhen?: string[] | undefined;
622
+ } | {
623
+ type: "custom";
624
+ transition: string;
625
+ options?: {
626
+ label?: string | undefined;
627
+ props?: Record<string, any> | undefined;
628
+ } | undefined;
629
+ widget?: string | undefined;
630
+ enabledWhen?: string[] | undefined;
631
+ })[] | undefined;
632
+ } | undefined;
633
+ tags?: string | string[] | undefined;
174
634
  } | undefined;
175
635
  }>;
176
636
  export declare class CreateDocumentService {