@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,826 @@
1
+ import { z } from 'zod';
2
+ export declare const MimeTypeSchema: z.ZodEnum<["text/plain", "text/html", "text/css", "text/xml", "text/markdown", "application/javascript", "application/typescript", "application/json", "application/xml", "application/yaml"]>;
3
+ export declare const DocumentConfigSchema: z.ZodObject<{
4
+ type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
5
+ description: z.ZodOptional<z.ZodString>;
6
+ content: z.ZodOptional<z.ZodAny>;
7
+ ui: z.ZodOptional<z.ZodObject<{
8
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9
+ transition: z.ZodString;
10
+ widget: z.ZodOptional<z.ZodString>;
11
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ } & {
13
+ type: z.ZodLiteral<"button">;
14
+ options: z.ZodOptional<z.ZodObject<{
15
+ position: z.ZodOptional<z.ZodNumber>;
16
+ label: z.ZodOptional<z.ZodString>;
17
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ position?: number | undefined;
20
+ label?: string | undefined;
21
+ props?: Record<string, any> | undefined;
22
+ }, {
23
+ position?: number | undefined;
24
+ label?: string | undefined;
25
+ props?: Record<string, any> | undefined;
26
+ }>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ type: "button";
29
+ transition: string;
30
+ options?: {
31
+ position?: number | undefined;
32
+ label?: string | undefined;
33
+ props?: Record<string, any> | undefined;
34
+ } | undefined;
35
+ widget?: string | undefined;
36
+ enabledWhen?: string[] | undefined;
37
+ }, {
38
+ type: "button";
39
+ transition: string;
40
+ options?: {
41
+ position?: number | undefined;
42
+ label?: string | undefined;
43
+ props?: Record<string, any> | undefined;
44
+ } | undefined;
45
+ widget?: string | undefined;
46
+ enabledWhen?: string[] | undefined;
47
+ }>, z.ZodObject<{
48
+ transition: z.ZodString;
49
+ widget: z.ZodOptional<z.ZodString>;
50
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
+ } & {
52
+ type: z.ZodLiteral<"custom">;
53
+ options: z.ZodOptional<z.ZodObject<{
54
+ label: z.ZodOptional<z.ZodString>;
55
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ label?: string | undefined;
58
+ props?: Record<string, any> | undefined;
59
+ }, {
60
+ label?: string | undefined;
61
+ props?: Record<string, any> | undefined;
62
+ }>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ type: "custom";
65
+ transition: string;
66
+ options?: {
67
+ label?: string | undefined;
68
+ props?: Record<string, any> | undefined;
69
+ } | undefined;
70
+ widget?: string | undefined;
71
+ enabledWhen?: string[] | undefined;
72
+ }, {
73
+ type: "custom";
74
+ transition: string;
75
+ options?: {
76
+ label?: string | undefined;
77
+ props?: Record<string, any> | undefined;
78
+ } | undefined;
79
+ widget?: string | undefined;
80
+ enabledWhen?: string[] | undefined;
81
+ }>]>, "many">>;
82
+ form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ form?: any;
85
+ actions?: ({
86
+ type: "button";
87
+ transition: string;
88
+ options?: {
89
+ position?: number | undefined;
90
+ label?: string | undefined;
91
+ props?: Record<string, any> | undefined;
92
+ } | undefined;
93
+ widget?: string | undefined;
94
+ enabledWhen?: string[] | undefined;
95
+ } | {
96
+ type: "custom";
97
+ transition: string;
98
+ options?: {
99
+ label?: string | undefined;
100
+ props?: Record<string, any> | undefined;
101
+ } | undefined;
102
+ widget?: string | undefined;
103
+ enabledWhen?: string[] | undefined;
104
+ })[] | undefined;
105
+ }, {
106
+ form?: any;
107
+ actions?: ({
108
+ type: "button";
109
+ transition: string;
110
+ options?: {
111
+ position?: number | undefined;
112
+ label?: string | undefined;
113
+ props?: Record<string, any> | undefined;
114
+ } | undefined;
115
+ widget?: string | undefined;
116
+ enabledWhen?: string[] | undefined;
117
+ } | {
118
+ type: "custom";
119
+ transition: string;
120
+ options?: {
121
+ label?: string | undefined;
122
+ props?: Record<string, any> | undefined;
123
+ } | undefined;
124
+ widget?: string | undefined;
125
+ enabledWhen?: string[] | undefined;
126
+ })[] | undefined;
127
+ }>>;
128
+ tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
129
+ meta: z.ZodOptional<z.ZodObject<{
130
+ hidden: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
131
+ 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]>>;
132
+ invalidate: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>;
133
+ level: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
134
+ enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
+ hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
+ data: z.ZodOptional<z.ZodAny>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ data?: any;
139
+ hidden?: string | boolean | undefined;
140
+ mimeType?: string | undefined;
141
+ invalidate?: string | boolean | undefined;
142
+ level?: string | undefined;
143
+ enableAtPlaces?: string[] | undefined;
144
+ hideAtPlaces?: string[] | undefined;
145
+ }, {
146
+ data?: any;
147
+ hidden?: string | boolean | undefined;
148
+ mimeType?: string | undefined;
149
+ invalidate?: string | boolean | undefined;
150
+ level?: string | undefined;
151
+ enableAtPlaces?: string[] | undefined;
152
+ hideAtPlaces?: string[] | undefined;
153
+ }>>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ type?: "document" | undefined;
156
+ content?: any;
157
+ meta?: {
158
+ data?: any;
159
+ hidden?: string | boolean | undefined;
160
+ mimeType?: string | undefined;
161
+ invalidate?: string | boolean | undefined;
162
+ level?: string | undefined;
163
+ enableAtPlaces?: string[] | undefined;
164
+ hideAtPlaces?: string[] | undefined;
165
+ } | undefined;
166
+ description?: string | undefined;
167
+ ui?: {
168
+ form?: any;
169
+ actions?: ({
170
+ type: "button";
171
+ transition: string;
172
+ options?: {
173
+ position?: number | undefined;
174
+ label?: string | undefined;
175
+ props?: Record<string, any> | undefined;
176
+ } | undefined;
177
+ widget?: string | undefined;
178
+ enabledWhen?: string[] | undefined;
179
+ } | {
180
+ type: "custom";
181
+ transition: string;
182
+ options?: {
183
+ label?: string | undefined;
184
+ props?: Record<string, any> | undefined;
185
+ } | undefined;
186
+ widget?: string | undefined;
187
+ enabledWhen?: string[] | undefined;
188
+ })[] | undefined;
189
+ } | undefined;
190
+ tags?: string | string[] | undefined;
191
+ }, {
192
+ type?: "document" | undefined;
193
+ content?: any;
194
+ meta?: {
195
+ data?: any;
196
+ hidden?: string | boolean | undefined;
197
+ mimeType?: string | undefined;
198
+ invalidate?: string | boolean | undefined;
199
+ level?: string | undefined;
200
+ enableAtPlaces?: string[] | undefined;
201
+ hideAtPlaces?: string[] | undefined;
202
+ } | undefined;
203
+ description?: string | undefined;
204
+ ui?: {
205
+ form?: any;
206
+ actions?: ({
207
+ type: "button";
208
+ transition: string;
209
+ options?: {
210
+ position?: number | undefined;
211
+ label?: string | undefined;
212
+ props?: Record<string, any> | undefined;
213
+ } | undefined;
214
+ widget?: string | undefined;
215
+ enabledWhen?: string[] | undefined;
216
+ } | {
217
+ type: "custom";
218
+ transition: string;
219
+ options?: {
220
+ label?: string | undefined;
221
+ props?: Record<string, any> | undefined;
222
+ } | undefined;
223
+ widget?: string | undefined;
224
+ enabledWhen?: string[] | undefined;
225
+ })[] | undefined;
226
+ } | undefined;
227
+ tags?: string | string[] | undefined;
228
+ }>;
229
+ export declare const DocumentSchema: z.ZodObject<{
230
+ type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
231
+ description: z.ZodOptional<z.ZodString>;
232
+ content: z.ZodOptional<z.ZodAny>;
233
+ ui: z.ZodOptional<z.ZodObject<{
234
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
235
+ transition: z.ZodString;
236
+ widget: z.ZodOptional<z.ZodString>;
237
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
238
+ } & {
239
+ type: z.ZodLiteral<"button">;
240
+ options: z.ZodOptional<z.ZodObject<{
241
+ position: z.ZodOptional<z.ZodNumber>;
242
+ label: z.ZodOptional<z.ZodString>;
243
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ position?: number | undefined;
246
+ label?: string | undefined;
247
+ props?: Record<string, any> | undefined;
248
+ }, {
249
+ position?: number | undefined;
250
+ label?: string | undefined;
251
+ props?: Record<string, any> | undefined;
252
+ }>>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ type: "button";
255
+ transition: string;
256
+ options?: {
257
+ position?: number | undefined;
258
+ label?: string | undefined;
259
+ props?: Record<string, any> | undefined;
260
+ } | undefined;
261
+ widget?: string | undefined;
262
+ enabledWhen?: string[] | undefined;
263
+ }, {
264
+ type: "button";
265
+ transition: string;
266
+ options?: {
267
+ position?: number | undefined;
268
+ label?: string | undefined;
269
+ props?: Record<string, any> | undefined;
270
+ } | undefined;
271
+ widget?: string | undefined;
272
+ enabledWhen?: string[] | undefined;
273
+ }>, z.ZodObject<{
274
+ transition: z.ZodString;
275
+ widget: z.ZodOptional<z.ZodString>;
276
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
+ } & {
278
+ type: z.ZodLiteral<"custom">;
279
+ options: z.ZodOptional<z.ZodObject<{
280
+ label: z.ZodOptional<z.ZodString>;
281
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
282
+ }, "strip", z.ZodTypeAny, {
283
+ label?: string | undefined;
284
+ props?: Record<string, any> | undefined;
285
+ }, {
286
+ label?: string | undefined;
287
+ props?: Record<string, any> | undefined;
288
+ }>>;
289
+ }, "strip", z.ZodTypeAny, {
290
+ type: "custom";
291
+ transition: string;
292
+ options?: {
293
+ label?: string | undefined;
294
+ props?: Record<string, any> | undefined;
295
+ } | undefined;
296
+ widget?: string | undefined;
297
+ enabledWhen?: string[] | undefined;
298
+ }, {
299
+ type: "custom";
300
+ transition: string;
301
+ options?: {
302
+ label?: string | undefined;
303
+ props?: Record<string, any> | undefined;
304
+ } | undefined;
305
+ widget?: string | undefined;
306
+ enabledWhen?: string[] | undefined;
307
+ }>]>, "many">>;
308
+ form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ form?: any;
311
+ actions?: ({
312
+ type: "button";
313
+ transition: string;
314
+ options?: {
315
+ position?: number | undefined;
316
+ label?: string | undefined;
317
+ props?: Record<string, any> | undefined;
318
+ } | undefined;
319
+ widget?: string | undefined;
320
+ enabledWhen?: string[] | undefined;
321
+ } | {
322
+ type: "custom";
323
+ transition: string;
324
+ options?: {
325
+ label?: string | undefined;
326
+ props?: Record<string, any> | undefined;
327
+ } | undefined;
328
+ widget?: string | undefined;
329
+ enabledWhen?: string[] | undefined;
330
+ })[] | undefined;
331
+ }, {
332
+ form?: any;
333
+ actions?: ({
334
+ type: "button";
335
+ transition: string;
336
+ options?: {
337
+ position?: number | undefined;
338
+ label?: string | undefined;
339
+ props?: Record<string, any> | undefined;
340
+ } | undefined;
341
+ widget?: string | undefined;
342
+ enabledWhen?: string[] | undefined;
343
+ } | {
344
+ type: "custom";
345
+ transition: string;
346
+ options?: {
347
+ label?: string | undefined;
348
+ props?: Record<string, any> | undefined;
349
+ } | undefined;
350
+ widget?: string | undefined;
351
+ enabledWhen?: string[] | undefined;
352
+ })[] | undefined;
353
+ }>>;
354
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
+ meta: z.ZodOptional<z.ZodObject<{
356
+ hidden: z.ZodOptional<z.ZodBoolean>;
357
+ 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"]>>;
358
+ invalidate: z.ZodOptional<z.ZodBoolean>;
359
+ level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
360
+ enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
361
+ hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
362
+ data: z.ZodOptional<z.ZodAny>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ data?: any;
365
+ hidden?: boolean | undefined;
366
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
367
+ invalidate?: boolean | undefined;
368
+ level?: "error" | "debug" | "info" | "warning" | undefined;
369
+ enableAtPlaces?: string[] | undefined;
370
+ hideAtPlaces?: string[] | undefined;
371
+ }, {
372
+ data?: any;
373
+ hidden?: boolean | undefined;
374
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
375
+ invalidate?: boolean | undefined;
376
+ level?: "error" | "debug" | "info" | "warning" | undefined;
377
+ enableAtPlaces?: string[] | undefined;
378
+ hideAtPlaces?: string[] | undefined;
379
+ }>>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ type?: "document" | undefined;
382
+ content?: any;
383
+ meta?: {
384
+ data?: any;
385
+ hidden?: boolean | undefined;
386
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
387
+ invalidate?: boolean | undefined;
388
+ level?: "error" | "debug" | "info" | "warning" | undefined;
389
+ enableAtPlaces?: string[] | undefined;
390
+ hideAtPlaces?: string[] | undefined;
391
+ } | undefined;
392
+ description?: string | undefined;
393
+ ui?: {
394
+ form?: any;
395
+ actions?: ({
396
+ type: "button";
397
+ transition: string;
398
+ options?: {
399
+ position?: number | undefined;
400
+ label?: string | undefined;
401
+ props?: Record<string, any> | undefined;
402
+ } | undefined;
403
+ widget?: string | undefined;
404
+ enabledWhen?: string[] | undefined;
405
+ } | {
406
+ type: "custom";
407
+ transition: string;
408
+ options?: {
409
+ label?: string | undefined;
410
+ props?: Record<string, any> | undefined;
411
+ } | undefined;
412
+ widget?: string | undefined;
413
+ enabledWhen?: string[] | undefined;
414
+ })[] | undefined;
415
+ } | undefined;
416
+ tags?: string[] | undefined;
417
+ }, {
418
+ type?: "document" | undefined;
419
+ content?: any;
420
+ meta?: {
421
+ data?: any;
422
+ hidden?: boolean | undefined;
423
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
424
+ invalidate?: boolean | undefined;
425
+ level?: "error" | "debug" | "info" | "warning" | undefined;
426
+ enableAtPlaces?: string[] | undefined;
427
+ hideAtPlaces?: string[] | undefined;
428
+ } | undefined;
429
+ description?: string | undefined;
430
+ ui?: {
431
+ form?: any;
432
+ actions?: ({
433
+ type: "button";
434
+ transition: string;
435
+ options?: {
436
+ position?: number | undefined;
437
+ label?: string | undefined;
438
+ props?: Record<string, any> | undefined;
439
+ } | undefined;
440
+ widget?: string | undefined;
441
+ enabledWhen?: string[] | undefined;
442
+ } | {
443
+ type: "custom";
444
+ transition: string;
445
+ options?: {
446
+ label?: string | undefined;
447
+ props?: Record<string, any> | undefined;
448
+ } | undefined;
449
+ widget?: string | undefined;
450
+ enabledWhen?: string[] | undefined;
451
+ })[] | undefined;
452
+ } | undefined;
453
+ tags?: string[] | undefined;
454
+ }>;
455
+ export declare const DocumentMessageContentSchema: z.ZodObject<{
456
+ role: z.ZodEnum<["user", "assistant", "system"]>;
457
+ content: z.ZodOptional<z.ZodString>;
458
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
459
+ id: z.ZodString;
460
+ type: z.ZodString;
461
+ function: z.ZodObject<{
462
+ name: z.ZodString;
463
+ arguments: z.ZodOptional<z.ZodString>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ name: string;
466
+ arguments?: string | undefined;
467
+ }, {
468
+ name: string;
469
+ arguments?: string | undefined;
470
+ }>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ function: {
473
+ name: string;
474
+ arguments?: string | undefined;
475
+ };
476
+ type: string;
477
+ id: string;
478
+ }, {
479
+ function: {
480
+ name: string;
481
+ arguments?: string | undefined;
482
+ };
483
+ type: string;
484
+ id: string;
485
+ }>, "many">>;
486
+ animation: z.ZodOptional<z.ZodString>;
487
+ icon: z.ZodOptional<z.ZodString>;
488
+ }, "strip", z.ZodTypeAny, {
489
+ role: "user" | "assistant" | "system";
490
+ animation?: string | undefined;
491
+ content?: string | undefined;
492
+ tool_calls?: {
493
+ function: {
494
+ name: string;
495
+ arguments?: string | undefined;
496
+ };
497
+ type: string;
498
+ id: string;
499
+ }[] | undefined;
500
+ icon?: string | undefined;
501
+ }, {
502
+ role: "user" | "assistant" | "system";
503
+ animation?: string | undefined;
504
+ content?: string | undefined;
505
+ tool_calls?: {
506
+ function: {
507
+ name: string;
508
+ arguments?: string | undefined;
509
+ };
510
+ type: string;
511
+ id: string;
512
+ }[] | undefined;
513
+ icon?: string | undefined;
514
+ }>;
515
+ export declare const DocumentMessageSchema: z.ZodObject<{
516
+ type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
517
+ description: z.ZodOptional<z.ZodString>;
518
+ ui: z.ZodOptional<z.ZodObject<{
519
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
520
+ transition: z.ZodString;
521
+ widget: z.ZodOptional<z.ZodString>;
522
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
523
+ } & {
524
+ type: z.ZodLiteral<"button">;
525
+ options: z.ZodOptional<z.ZodObject<{
526
+ position: z.ZodOptional<z.ZodNumber>;
527
+ label: z.ZodOptional<z.ZodString>;
528
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ position?: number | undefined;
531
+ label?: string | undefined;
532
+ props?: Record<string, any> | undefined;
533
+ }, {
534
+ position?: number | undefined;
535
+ label?: string | undefined;
536
+ props?: Record<string, any> | undefined;
537
+ }>>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "button";
540
+ transition: string;
541
+ options?: {
542
+ position?: number | undefined;
543
+ label?: string | undefined;
544
+ props?: Record<string, any> | undefined;
545
+ } | undefined;
546
+ widget?: string | undefined;
547
+ enabledWhen?: string[] | undefined;
548
+ }, {
549
+ type: "button";
550
+ transition: string;
551
+ options?: {
552
+ position?: number | undefined;
553
+ label?: string | undefined;
554
+ props?: Record<string, any> | undefined;
555
+ } | undefined;
556
+ widget?: string | undefined;
557
+ enabledWhen?: string[] | undefined;
558
+ }>, z.ZodObject<{
559
+ transition: z.ZodString;
560
+ widget: z.ZodOptional<z.ZodString>;
561
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
562
+ } & {
563
+ type: z.ZodLiteral<"custom">;
564
+ options: z.ZodOptional<z.ZodObject<{
565
+ label: z.ZodOptional<z.ZodString>;
566
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
567
+ }, "strip", z.ZodTypeAny, {
568
+ label?: string | undefined;
569
+ props?: Record<string, any> | undefined;
570
+ }, {
571
+ label?: string | undefined;
572
+ props?: Record<string, any> | undefined;
573
+ }>>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ type: "custom";
576
+ transition: string;
577
+ options?: {
578
+ label?: string | undefined;
579
+ props?: Record<string, any> | undefined;
580
+ } | undefined;
581
+ widget?: string | undefined;
582
+ enabledWhen?: string[] | undefined;
583
+ }, {
584
+ type: "custom";
585
+ transition: string;
586
+ options?: {
587
+ label?: string | undefined;
588
+ props?: Record<string, any> | undefined;
589
+ } | undefined;
590
+ widget?: string | undefined;
591
+ enabledWhen?: string[] | undefined;
592
+ }>]>, "many">>;
593
+ form: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ form?: any;
596
+ actions?: ({
597
+ type: "button";
598
+ transition: string;
599
+ options?: {
600
+ position?: number | undefined;
601
+ label?: string | undefined;
602
+ props?: Record<string, any> | undefined;
603
+ } | undefined;
604
+ widget?: string | undefined;
605
+ enabledWhen?: string[] | undefined;
606
+ } | {
607
+ type: "custom";
608
+ transition: string;
609
+ options?: {
610
+ label?: string | undefined;
611
+ props?: Record<string, any> | undefined;
612
+ } | undefined;
613
+ widget?: string | undefined;
614
+ enabledWhen?: string[] | undefined;
615
+ })[] | undefined;
616
+ }, {
617
+ form?: any;
618
+ actions?: ({
619
+ type: "button";
620
+ transition: string;
621
+ options?: {
622
+ position?: number | undefined;
623
+ label?: string | undefined;
624
+ props?: Record<string, any> | undefined;
625
+ } | undefined;
626
+ widget?: string | undefined;
627
+ enabledWhen?: string[] | undefined;
628
+ } | {
629
+ type: "custom";
630
+ transition: string;
631
+ options?: {
632
+ label?: string | undefined;
633
+ props?: Record<string, any> | undefined;
634
+ } | undefined;
635
+ widget?: string | undefined;
636
+ enabledWhen?: string[] | undefined;
637
+ })[] | undefined;
638
+ }>>;
639
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
640
+ meta: z.ZodOptional<z.ZodObject<{
641
+ hidden: z.ZodOptional<z.ZodBoolean>;
642
+ 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"]>>;
643
+ invalidate: z.ZodOptional<z.ZodBoolean>;
644
+ level: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
645
+ enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
646
+ hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
647
+ data: z.ZodOptional<z.ZodAny>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ data?: any;
650
+ hidden?: boolean | undefined;
651
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
652
+ invalidate?: boolean | undefined;
653
+ level?: "error" | "debug" | "info" | "warning" | undefined;
654
+ enableAtPlaces?: string[] | undefined;
655
+ hideAtPlaces?: string[] | undefined;
656
+ }, {
657
+ data?: any;
658
+ hidden?: boolean | undefined;
659
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
660
+ invalidate?: boolean | undefined;
661
+ level?: "error" | "debug" | "info" | "warning" | undefined;
662
+ enableAtPlaces?: string[] | undefined;
663
+ hideAtPlaces?: string[] | undefined;
664
+ }>>;
665
+ } & {
666
+ content: z.ZodObject<{
667
+ role: z.ZodEnum<["user", "assistant", "system"]>;
668
+ content: z.ZodOptional<z.ZodString>;
669
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
670
+ id: z.ZodString;
671
+ type: z.ZodString;
672
+ function: z.ZodObject<{
673
+ name: z.ZodString;
674
+ arguments: z.ZodOptional<z.ZodString>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ name: string;
677
+ arguments?: string | undefined;
678
+ }, {
679
+ name: string;
680
+ arguments?: string | undefined;
681
+ }>;
682
+ }, "strip", z.ZodTypeAny, {
683
+ function: {
684
+ name: string;
685
+ arguments?: string | undefined;
686
+ };
687
+ type: string;
688
+ id: string;
689
+ }, {
690
+ function: {
691
+ name: string;
692
+ arguments?: string | undefined;
693
+ };
694
+ type: string;
695
+ id: string;
696
+ }>, "many">>;
697
+ animation: z.ZodOptional<z.ZodString>;
698
+ icon: z.ZodOptional<z.ZodString>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ role: "user" | "assistant" | "system";
701
+ animation?: string | undefined;
702
+ content?: string | undefined;
703
+ tool_calls?: {
704
+ function: {
705
+ name: string;
706
+ arguments?: string | undefined;
707
+ };
708
+ type: string;
709
+ id: string;
710
+ }[] | undefined;
711
+ icon?: string | undefined;
712
+ }, {
713
+ role: "user" | "assistant" | "system";
714
+ animation?: string | undefined;
715
+ content?: string | undefined;
716
+ tool_calls?: {
717
+ function: {
718
+ name: string;
719
+ arguments?: string | undefined;
720
+ };
721
+ type: string;
722
+ id: string;
723
+ }[] | undefined;
724
+ icon?: string | undefined;
725
+ }>;
726
+ }, "strip", z.ZodTypeAny, {
727
+ content: {
728
+ role: "user" | "assistant" | "system";
729
+ animation?: string | undefined;
730
+ content?: string | undefined;
731
+ tool_calls?: {
732
+ function: {
733
+ name: string;
734
+ arguments?: string | undefined;
735
+ };
736
+ type: string;
737
+ id: string;
738
+ }[] | undefined;
739
+ icon?: string | undefined;
740
+ };
741
+ type?: "document" | undefined;
742
+ meta?: {
743
+ data?: any;
744
+ hidden?: boolean | undefined;
745
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
746
+ invalidate?: boolean | undefined;
747
+ level?: "error" | "debug" | "info" | "warning" | undefined;
748
+ enableAtPlaces?: string[] | undefined;
749
+ hideAtPlaces?: string[] | undefined;
750
+ } | undefined;
751
+ description?: string | undefined;
752
+ ui?: {
753
+ form?: any;
754
+ actions?: ({
755
+ type: "button";
756
+ transition: string;
757
+ options?: {
758
+ position?: number | undefined;
759
+ label?: string | undefined;
760
+ props?: Record<string, any> | undefined;
761
+ } | undefined;
762
+ widget?: string | undefined;
763
+ enabledWhen?: string[] | undefined;
764
+ } | {
765
+ type: "custom";
766
+ transition: string;
767
+ options?: {
768
+ label?: string | undefined;
769
+ props?: Record<string, any> | undefined;
770
+ } | undefined;
771
+ widget?: string | undefined;
772
+ enabledWhen?: string[] | undefined;
773
+ })[] | undefined;
774
+ } | undefined;
775
+ tags?: string[] | undefined;
776
+ }, {
777
+ content: {
778
+ role: "user" | "assistant" | "system";
779
+ animation?: string | undefined;
780
+ content?: string | undefined;
781
+ tool_calls?: {
782
+ function: {
783
+ name: string;
784
+ arguments?: string | undefined;
785
+ };
786
+ type: string;
787
+ id: string;
788
+ }[] | undefined;
789
+ icon?: string | undefined;
790
+ };
791
+ type?: "document" | undefined;
792
+ meta?: {
793
+ data?: any;
794
+ hidden?: boolean | undefined;
795
+ mimeType?: "application/xml" | "text/html" | "text/xml" | "text/plain" | "text/css" | "text/markdown" | "application/javascript" | "application/typescript" | "application/json" | "application/yaml" | undefined;
796
+ invalidate?: boolean | undefined;
797
+ level?: "error" | "debug" | "info" | "warning" | undefined;
798
+ enableAtPlaces?: string[] | undefined;
799
+ hideAtPlaces?: string[] | undefined;
800
+ } | undefined;
801
+ description?: string | undefined;
802
+ ui?: {
803
+ form?: any;
804
+ actions?: ({
805
+ type: "button";
806
+ transition: string;
807
+ options?: {
808
+ position?: number | undefined;
809
+ label?: string | undefined;
810
+ props?: Record<string, any> | undefined;
811
+ } | undefined;
812
+ widget?: string | undefined;
813
+ enabledWhen?: string[] | undefined;
814
+ } | {
815
+ type: "custom";
816
+ transition: string;
817
+ options?: {
818
+ label?: string | undefined;
819
+ props?: Record<string, any> | undefined;
820
+ } | undefined;
821
+ widget?: string | undefined;
822
+ enabledWhen?: string[] | undefined;
823
+ })[] | undefined;
824
+ } | undefined;
825
+ tags?: string[] | undefined;
826
+ }>;