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