@loopstack/contracts 0.16.1 → 0.18.0-rc.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.
@@ -1,459 +1,120 @@
1
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"]>;
2
+ export declare const MimeTypeSchema: z.ZodEnum<{
3
+ "application/xml": "application/xml";
4
+ "text/html": "text/html";
5
+ "text/xml": "text/xml";
6
+ "application/json": "application/json";
7
+ "application/javascript": "application/javascript";
8
+ "text/plain": "text/plain";
9
+ "text/css": "text/css";
10
+ "text/markdown": "text/markdown";
11
+ "application/typescript": "application/typescript";
12
+ "application/yaml": "application/yaml";
13
+ }>;
3
14
  export declare const DocumentConfigSchema: z.ZodObject<{
4
15
  type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
5
16
  description: z.ZodOptional<z.ZodString>;
6
17
  content: z.ZodOptional<z.ZodAny>;
7
18
  ui: z.ZodOptional<z.ZodObject<{
8
- actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
19
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9
20
  transition: z.ZodString;
10
21
  widget: z.ZodOptional<z.ZodString>;
11
- enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
- } & {
22
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
23
  type: z.ZodLiteral<"button">;
14
24
  options: z.ZodOptional<z.ZodObject<{
15
25
  position: z.ZodOptional<z.ZodNumber>;
16
26
  label: z.ZodOptional<z.ZodString>;
17
27
  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<{
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>, z.ZodObject<{
48
30
  transition: z.ZodString;
49
31
  widget: z.ZodOptional<z.ZodString>;
50
- enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
- } & {
32
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
33
  type: z.ZodLiteral<"custom">;
53
34
  options: z.ZodOptional<z.ZodObject<{
54
35
  label: z.ZodOptional<z.ZodString>;
55
36
  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">]>>;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$strip>], "type">>>;
39
+ form: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
40
+ }, z.core.$strip>>;
41
+ tags: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
129
42
  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">>;
43
+ hidden: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
44
+ mimeType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
45
+ "application/xml": "application/xml";
46
+ "text/html": "text/html";
47
+ "text/xml": "text/xml";
48
+ "application/json": "application/json";
49
+ "application/javascript": "application/javascript";
50
+ "text/plain": "text/plain";
51
+ "text/css": "text/css";
52
+ "text/markdown": "text/markdown";
53
+ "application/typescript": "application/typescript";
54
+ "application/yaml": "application/yaml";
55
+ }>, z.ZodString]>>;
56
+ invalidate: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
57
+ level: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
58
+ enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
+ hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
60
  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
- }>;
61
+ }, z.core.$strip>>;
62
+ }, z.core.$strip>;
229
63
  export declare const DocumentSchema: z.ZodObject<{
230
64
  type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
231
65
  description: z.ZodOptional<z.ZodString>;
232
66
  content: z.ZodOptional<z.ZodAny>;
233
67
  ui: z.ZodOptional<z.ZodObject<{
234
- actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
68
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
235
69
  transition: z.ZodString;
236
70
  widget: z.ZodOptional<z.ZodString>;
237
- enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
238
- } & {
71
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
239
72
  type: z.ZodLiteral<"button">;
240
73
  options: z.ZodOptional<z.ZodObject<{
241
74
  position: z.ZodOptional<z.ZodNumber>;
242
75
  label: z.ZodOptional<z.ZodString>;
243
76
  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<{
77
+ }, z.core.$strip>>;
78
+ }, z.core.$strip>, z.ZodObject<{
274
79
  transition: z.ZodString;
275
80
  widget: z.ZodOptional<z.ZodString>;
276
- enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
277
- } & {
81
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
278
82
  type: z.ZodLiteral<"custom">;
279
83
  options: z.ZodOptional<z.ZodObject<{
280
84
  label: z.ZodOptional<z.ZodString>;
281
85
  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">>;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>], "type">>>;
88
+ form: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
89
+ }, z.core.$strip>>;
90
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
355
91
  meta: z.ZodOptional<z.ZodObject<{
356
92
  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"]>>;
93
+ mimeType: z.ZodOptional<z.ZodEnum<{
94
+ "application/xml": "application/xml";
95
+ "text/html": "text/html";
96
+ "text/xml": "text/xml";
97
+ "application/json": "application/json";
98
+ "application/javascript": "application/javascript";
99
+ "text/plain": "text/plain";
100
+ "text/css": "text/css";
101
+ "text/markdown": "text/markdown";
102
+ "application/typescript": "application/typescript";
103
+ "application/yaml": "application/yaml";
104
+ }>>;
358
105
  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">>;
106
+ level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
107
+ enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
+ hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
362
109
  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
- }>;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>;
455
112
  export declare const DocumentMessageContentSchema: z.ZodObject<{
456
- role: z.ZodEnum<["user", "assistant", "system"]>;
113
+ role: z.ZodEnum<{
114
+ user: "user";
115
+ assistant: "assistant";
116
+ system: "system";
117
+ }>;
457
118
  content: z.ZodOptional<z.ZodString>;
458
119
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
459
120
  id: z.ZodString;
@@ -461,210 +122,64 @@ export declare const DocumentMessageContentSchema: z.ZodObject<{
461
122
  function: z.ZodObject<{
462
123
  name: z.ZodString;
463
124
  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">>;
125
+ }, z.core.$strip>;
126
+ }, z.core.$strip>>>;
486
127
  animation: z.ZodOptional<z.ZodString>;
487
128
  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
- }>;
129
+ }, z.core.$strip>;
515
130
  export declare const DocumentMessageSchema: z.ZodObject<{
516
131
  type: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"document">>>;
517
132
  description: z.ZodOptional<z.ZodString>;
518
133
  ui: z.ZodOptional<z.ZodObject<{
519
- actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
134
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
520
135
  transition: z.ZodString;
521
136
  widget: z.ZodOptional<z.ZodString>;
522
- enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
523
- } & {
137
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
524
138
  type: z.ZodLiteral<"button">;
525
139
  options: z.ZodOptional<z.ZodObject<{
526
140
  position: z.ZodOptional<z.ZodNumber>;
527
141
  label: z.ZodOptional<z.ZodString>;
528
142
  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<{
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>, z.ZodObject<{
559
145
  transition: z.ZodString;
560
146
  widget: z.ZodOptional<z.ZodString>;
561
- enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
562
- } & {
147
+ enabledWhen: z.ZodOptional<z.ZodArray<z.ZodString>>;
563
148
  type: z.ZodLiteral<"custom">;
564
149
  options: z.ZodOptional<z.ZodObject<{
565
150
  label: z.ZodOptional<z.ZodString>;
566
151
  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">>;
152
+ }, z.core.$strip>>;
153
+ }, z.core.$strip>], "type">>>;
154
+ form: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
155
+ }, z.core.$strip>>;
156
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
640
157
  meta: z.ZodOptional<z.ZodObject<{
641
158
  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"]>>;
159
+ mimeType: z.ZodOptional<z.ZodEnum<{
160
+ "application/xml": "application/xml";
161
+ "text/html": "text/html";
162
+ "text/xml": "text/xml";
163
+ "application/json": "application/json";
164
+ "application/javascript": "application/javascript";
165
+ "text/plain": "text/plain";
166
+ "text/css": "text/css";
167
+ "text/markdown": "text/markdown";
168
+ "application/typescript": "application/typescript";
169
+ "application/yaml": "application/yaml";
170
+ }>>;
643
171
  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">>;
172
+ level: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"debug">, z.ZodLiteral<"info">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>>;
173
+ enableAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
174
+ hideAtPlaces: z.ZodOptional<z.ZodArray<z.ZodString>>;
647
175
  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
- } & {
176
+ }, z.core.$strip>>;
666
177
  content: z.ZodObject<{
667
- role: z.ZodEnum<["user", "assistant", "system"]>;
178
+ role: z.ZodEnum<{
179
+ user: "user";
180
+ assistant: "assistant";
181
+ system: "system";
182
+ }>;
668
183
  content: z.ZodOptional<z.ZodString>;
669
184
  tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
670
185
  id: z.ZodString;
@@ -672,155 +187,9 @@ export declare const DocumentMessageSchema: z.ZodObject<{
672
187
  function: z.ZodObject<{
673
188
  name: z.ZodString;
674
189
  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">>;
190
+ }, z.core.$strip>;
191
+ }, z.core.$strip>>>;
697
192
  animation: z.ZodOptional<z.ZodString>;
698
193
  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
- }>;
194
+ }, z.core.$strip>;
195
+ }, z.core.$strip>;