@holocronlab/botruntime-sdk 6.13.3

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 (126) hide show
  1. package/LICENSE +8 -0
  2. package/dist/base-logger.d.ts +34 -0
  3. package/dist/base-logger.test.d.ts +1 -0
  4. package/dist/bot/bot-logger.d.ts +18 -0
  5. package/dist/bot/client/index.d.ts +80 -0
  6. package/dist/bot/client/types.d.ts +254 -0
  7. package/dist/bot/client/types.test.d.ts +1 -0
  8. package/dist/bot/common/generic.d.ts +41 -0
  9. package/dist/bot/common/generic.test.d.ts +1 -0
  10. package/dist/bot/common/index.d.ts +2 -0
  11. package/dist/bot/common/types.d.ts +54 -0
  12. package/dist/bot/common/types.test.d.ts +1 -0
  13. package/dist/bot/definition.d.ts +214 -0
  14. package/dist/bot/definition.test.d.ts +1 -0
  15. package/dist/bot/implementation.d.ts +72 -0
  16. package/dist/bot/implementation.test.d.ts +1 -0
  17. package/dist/bot/index.d.ts +6 -0
  18. package/dist/bot/server/context.d.ts +2 -0
  19. package/dist/bot/server/index.d.ts +5 -0
  20. package/dist/bot/server/responses.d.ts +3 -0
  21. package/dist/bot/server/types.d.ts +423 -0
  22. package/dist/bot/server/types.test.d.ts +1 -0
  23. package/dist/bot/server/workflows/update-handler.d.ts +3 -0
  24. package/dist/bot/server/workflows/update-type-conv.d.ts +2 -0
  25. package/dist/bot/workflow-proxy/index.d.ts +2 -0
  26. package/dist/bot/workflow-proxy/proxy.d.ts +17 -0
  27. package/dist/bot/workflow-proxy/types.d.ts +80 -0
  28. package/dist/bot/workflow-proxy/types.test.d.ts +1 -0
  29. package/dist/common/index.d.ts +1 -0
  30. package/dist/common/recurring-events.d.ts +9 -0
  31. package/dist/common/recurring-events.test.d.ts +1 -0
  32. package/dist/common/types.d.ts +8 -0
  33. package/dist/consts.d.ts +11 -0
  34. package/dist/errors.d.ts +19 -0
  35. package/dist/fixtures.d.ts +357 -0
  36. package/dist/index.cjs +5 -0
  37. package/dist/index.cjs.map +7 -0
  38. package/dist/index.d.ts +17 -0
  39. package/dist/index.mjs +34 -0
  40. package/dist/index.mjs.map +7 -0
  41. package/dist/integration/client/index.d.ts +55 -0
  42. package/dist/integration/client/sub-types.d.ts +27 -0
  43. package/dist/integration/client/sub-types.test.d.ts +1 -0
  44. package/dist/integration/client/types.d.ts +209 -0
  45. package/dist/integration/client/types.test.d.ts +1 -0
  46. package/dist/integration/common/generic.d.ts +57 -0
  47. package/dist/integration/common/generic.test.d.ts +1 -0
  48. package/dist/integration/common/index.d.ts +1 -0
  49. package/dist/integration/definition/branded-schema.d.ts +21 -0
  50. package/dist/integration/definition/definition.test.d.ts +1 -0
  51. package/dist/integration/definition/generic.d.ts +9 -0
  52. package/dist/integration/definition/index.d.ts +130 -0
  53. package/dist/integration/definition/types.d.ts +119 -0
  54. package/dist/integration/implementation.d.ts +37 -0
  55. package/dist/integration/index.d.ts +5 -0
  56. package/dist/integration/server/action-metadata.d.ts +9 -0
  57. package/dist/integration/server/context.d.ts +4 -0
  58. package/dist/integration/server/index.d.ts +6 -0
  59. package/dist/integration/server/integration-logger.d.ts +36 -0
  60. package/dist/integration/server/types.d.ts +108 -0
  61. package/dist/interface/common/generic.d.ts +34 -0
  62. package/dist/interface/common/generic.test.d.ts +1 -0
  63. package/dist/interface/common/index.d.ts +1 -0
  64. package/dist/interface/definition.d.ts +87 -0
  65. package/dist/interface/index.d.ts +2 -0
  66. package/dist/interface/resolve.d.ts +18 -0
  67. package/dist/log.d.ts +7 -0
  68. package/dist/message.d.ts +742 -0
  69. package/dist/package.d.ts +64 -0
  70. package/dist/plugin/action-proxy/index.d.ts +2 -0
  71. package/dist/plugin/action-proxy/proxy.d.ts +5 -0
  72. package/dist/plugin/action-proxy/types.d.ts +14 -0
  73. package/dist/plugin/action-proxy/types.test.d.ts +1 -0
  74. package/dist/plugin/common/generic.d.ts +63 -0
  75. package/dist/plugin/common/generic.test.d.ts +1 -0
  76. package/dist/plugin/common/index.d.ts +2 -0
  77. package/dist/plugin/common/types.d.ts +59 -0
  78. package/dist/plugin/conversation-proxy/index.d.ts +2 -0
  79. package/dist/plugin/conversation-proxy/proxy.d.ts +13 -0
  80. package/dist/plugin/conversation-proxy/types.d.ts +54 -0
  81. package/dist/plugin/conversation-proxy/types.test.d.ts +1 -0
  82. package/dist/plugin/definition.d.ts +152 -0
  83. package/dist/plugin/definition.test.d.ts +1 -0
  84. package/dist/plugin/event-proxy/index.d.ts +2 -0
  85. package/dist/plugin/event-proxy/proxy.d.ts +5 -0
  86. package/dist/plugin/event-proxy/types.d.ts +19 -0
  87. package/dist/plugin/event-proxy/types.test.d.ts +1 -0
  88. package/dist/plugin/implementation.d.ts +71 -0
  89. package/dist/plugin/implementation.test.d.ts +1 -0
  90. package/dist/plugin/index.d.ts +4 -0
  91. package/dist/plugin/message-proxy/index.d.ts +2 -0
  92. package/dist/plugin/message-proxy/proxy.d.ts +13 -0
  93. package/dist/plugin/message-proxy/types.d.ts +22 -0
  94. package/dist/plugin/server/index.d.ts +1 -0
  95. package/dist/plugin/server/types.d.ts +505 -0
  96. package/dist/plugin/server/types.test.d.ts +1 -0
  97. package/dist/plugin/state-proxy/index.d.ts +2 -0
  98. package/dist/plugin/state-proxy/proxy.d.ts +5 -0
  99. package/dist/plugin/state-proxy/types.d.ts +29 -0
  100. package/dist/plugin/state-proxy/types.test.d.ts +1 -0
  101. package/dist/plugin/tag-prefixer.d.ts +10 -0
  102. package/dist/plugin/tag-prefixer.test.d.ts +1 -0
  103. package/dist/plugin/user-proxy/index.d.ts +2 -0
  104. package/dist/plugin/user-proxy/proxy.d.ts +14 -0
  105. package/dist/plugin/user-proxy/types.d.ts +30 -0
  106. package/dist/public-consts.d.ts +9 -0
  107. package/dist/retry.d.ts +2 -0
  108. package/dist/retry.test.d.ts +1 -0
  109. package/dist/schema.d.ts +18 -0
  110. package/dist/serve.d.ts +38 -0
  111. package/dist/utils/api-paging-utils.d.ts +43 -0
  112. package/dist/utils/api-paging-utils.test.d.ts +1 -0
  113. package/dist/utils/array-utils.d.ts +2 -0
  114. package/dist/utils/error-utils.d.ts +4 -0
  115. package/dist/utils/function-utils.d.ts +2 -0
  116. package/dist/utils/function-utils.test.d.ts +1 -0
  117. package/dist/utils/index.d.ts +4 -0
  118. package/dist/utils/record-utils.d.ts +6 -0
  119. package/dist/utils/record-utils.test.d.ts +1 -0
  120. package/dist/utils/type-utils.d.ts +63 -0
  121. package/dist/utils/type-utils.test.d.ts +1 -0
  122. package/dist/version-utils.d.ts +18 -0
  123. package/dist/version.d.ts +1 -0
  124. package/dist/zui.d.ts +9 -0
  125. package/package.json +59 -0
  126. package/readme.md +11 -0
@@ -0,0 +1,742 @@
1
+ import { z } from './zui';
2
+ /**
3
+ * @deprecated use `text` instead
4
+ */
5
+ export declare const markdown: {
6
+ schema: z.ZodObject<{
7
+ markdown: z.ZodString;
8
+ }, "strip", {
9
+ markdown: string;
10
+ }, {
11
+ markdown: string;
12
+ }>;
13
+ };
14
+ /**
15
+ * Bloc message that still includes markdown as an item
16
+ *
17
+ * @deprecated use `bloc` instead
18
+ */
19
+ export declare const markdownBloc: {
20
+ schema: z.ZodObject<{
21
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
22
+ type: z.ZodLiteral<"text">;
23
+ payload: z.ZodObject<{
24
+ text: z.ZodString;
25
+ }, "strip", {
26
+ text: string;
27
+ }, {
28
+ text: string;
29
+ }>;
30
+ }, "strip", {
31
+ type: "text";
32
+ payload: {
33
+ text: string;
34
+ };
35
+ }, {
36
+ type: "text";
37
+ payload: {
38
+ text: string;
39
+ };
40
+ }>, z.ZodObject<{
41
+ type: z.ZodLiteral<"image">;
42
+ payload: z.ZodObject<{
43
+ imageUrl: z.ZodString;
44
+ title: z.ZodOptional<z.ZodString>;
45
+ }, "strip", {
46
+ imageUrl: string;
47
+ title?: string | undefined;
48
+ }, {
49
+ imageUrl: string;
50
+ title?: string | undefined;
51
+ }>;
52
+ }, "strip", {
53
+ type: "image";
54
+ payload: {
55
+ imageUrl: string;
56
+ title?: string | undefined;
57
+ };
58
+ }, {
59
+ type: "image";
60
+ payload: {
61
+ imageUrl: string;
62
+ title?: string | undefined;
63
+ };
64
+ }>, z.ZodObject<{
65
+ type: z.ZodLiteral<"audio">;
66
+ payload: z.ZodObject<{
67
+ audioUrl: z.ZodString;
68
+ title: z.ZodOptional<z.ZodString>;
69
+ }, "strip", {
70
+ audioUrl: string;
71
+ title?: string | undefined;
72
+ }, {
73
+ audioUrl: string;
74
+ title?: string | undefined;
75
+ }>;
76
+ }, "strip", {
77
+ type: "audio";
78
+ payload: {
79
+ audioUrl: string;
80
+ title?: string | undefined;
81
+ };
82
+ }, {
83
+ type: "audio";
84
+ payload: {
85
+ audioUrl: string;
86
+ title?: string | undefined;
87
+ };
88
+ }>, z.ZodObject<{
89
+ type: z.ZodLiteral<"video">;
90
+ payload: z.ZodObject<{
91
+ videoUrl: z.ZodString;
92
+ title: z.ZodOptional<z.ZodString>;
93
+ }, "strip", {
94
+ videoUrl: string;
95
+ title?: string | undefined;
96
+ }, {
97
+ videoUrl: string;
98
+ title?: string | undefined;
99
+ }>;
100
+ }, "strip", {
101
+ type: "video";
102
+ payload: {
103
+ videoUrl: string;
104
+ title?: string | undefined;
105
+ };
106
+ }, {
107
+ type: "video";
108
+ payload: {
109
+ videoUrl: string;
110
+ title?: string | undefined;
111
+ };
112
+ }>, z.ZodObject<{
113
+ type: z.ZodLiteral<"file">;
114
+ payload: z.ZodObject<{
115
+ fileUrl: z.ZodString;
116
+ title: z.ZodOptional<z.ZodString>;
117
+ }, "strip", {
118
+ fileUrl: string;
119
+ title?: string | undefined;
120
+ }, {
121
+ fileUrl: string;
122
+ title?: string | undefined;
123
+ }>;
124
+ }, "strip", {
125
+ type: "file";
126
+ payload: {
127
+ fileUrl: string;
128
+ title?: string | undefined;
129
+ };
130
+ }, {
131
+ type: "file";
132
+ payload: {
133
+ fileUrl: string;
134
+ title?: string | undefined;
135
+ };
136
+ }>, z.ZodObject<{
137
+ type: z.ZodLiteral<"location">;
138
+ payload: z.ZodObject<{
139
+ latitude: z.ZodNumber;
140
+ longitude: z.ZodNumber;
141
+ address: z.ZodOptional<z.ZodString>;
142
+ title: z.ZodOptional<z.ZodString>;
143
+ }, "strip", {
144
+ latitude: number;
145
+ longitude: number;
146
+ title?: string | undefined;
147
+ address?: string | undefined;
148
+ }, {
149
+ latitude: number;
150
+ longitude: number;
151
+ title?: string | undefined;
152
+ address?: string | undefined;
153
+ }>;
154
+ }, "strip", {
155
+ type: "location";
156
+ payload: {
157
+ latitude: number;
158
+ longitude: number;
159
+ title?: string | undefined;
160
+ address?: string | undefined;
161
+ };
162
+ }, {
163
+ type: "location";
164
+ payload: {
165
+ latitude: number;
166
+ longitude: number;
167
+ title?: string | undefined;
168
+ address?: string | undefined;
169
+ };
170
+ }>, z.ZodObject<{
171
+ type: z.ZodLiteral<"markdown">;
172
+ payload: z.ZodObject<{
173
+ markdown: z.ZodString;
174
+ }, "strip", {
175
+ markdown: string;
176
+ }, {
177
+ markdown: string;
178
+ }>;
179
+ }, "strip", {
180
+ type: "markdown";
181
+ payload: {
182
+ markdown: string;
183
+ };
184
+ }, {
185
+ type: "markdown";
186
+ payload: {
187
+ markdown: string;
188
+ };
189
+ }>]>, "many">;
190
+ }, "strip", {
191
+ items: ({
192
+ type: "text";
193
+ payload: {
194
+ text: string;
195
+ };
196
+ } | {
197
+ type: "image";
198
+ payload: {
199
+ imageUrl: string;
200
+ title?: string | undefined;
201
+ };
202
+ } | {
203
+ type: "audio";
204
+ payload: {
205
+ audioUrl: string;
206
+ title?: string | undefined;
207
+ };
208
+ } | {
209
+ type: "video";
210
+ payload: {
211
+ videoUrl: string;
212
+ title?: string | undefined;
213
+ };
214
+ } | {
215
+ type: "file";
216
+ payload: {
217
+ fileUrl: string;
218
+ title?: string | undefined;
219
+ };
220
+ } | {
221
+ type: "location";
222
+ payload: {
223
+ latitude: number;
224
+ longitude: number;
225
+ title?: string | undefined;
226
+ address?: string | undefined;
227
+ };
228
+ } | {
229
+ type: "markdown";
230
+ payload: {
231
+ markdown: string;
232
+ };
233
+ })[];
234
+ }, {
235
+ items: ({
236
+ type: "text";
237
+ payload: {
238
+ text: string;
239
+ };
240
+ } | {
241
+ type: "image";
242
+ payload: {
243
+ imageUrl: string;
244
+ title?: string | undefined;
245
+ };
246
+ } | {
247
+ type: "audio";
248
+ payload: {
249
+ audioUrl: string;
250
+ title?: string | undefined;
251
+ };
252
+ } | {
253
+ type: "video";
254
+ payload: {
255
+ videoUrl: string;
256
+ title?: string | undefined;
257
+ };
258
+ } | {
259
+ type: "file";
260
+ payload: {
261
+ fileUrl: string;
262
+ title?: string | undefined;
263
+ };
264
+ } | {
265
+ type: "location";
266
+ payload: {
267
+ latitude: number;
268
+ longitude: number;
269
+ title?: string | undefined;
270
+ address?: string | undefined;
271
+ };
272
+ } | {
273
+ type: "markdown";
274
+ payload: {
275
+ markdown: string;
276
+ };
277
+ })[];
278
+ }>;
279
+ };
280
+ export declare const defaults: {
281
+ readonly text: {
282
+ readonly schema: z.ZodObject<{
283
+ text: z.ZodString;
284
+ }, "strip", {
285
+ text: string;
286
+ }, {
287
+ text: string;
288
+ }>;
289
+ };
290
+ readonly image: {
291
+ readonly schema: z.ZodObject<{
292
+ imageUrl: z.ZodString;
293
+ title: z.ZodOptional<z.ZodString>;
294
+ }, "strip", {
295
+ imageUrl: string;
296
+ title?: string | undefined;
297
+ }, {
298
+ imageUrl: string;
299
+ title?: string | undefined;
300
+ }>;
301
+ };
302
+ readonly audio: {
303
+ readonly schema: z.ZodObject<{
304
+ audioUrl: z.ZodString;
305
+ title: z.ZodOptional<z.ZodString>;
306
+ }, "strip", {
307
+ audioUrl: string;
308
+ title?: string | undefined;
309
+ }, {
310
+ audioUrl: string;
311
+ title?: string | undefined;
312
+ }>;
313
+ };
314
+ readonly video: {
315
+ readonly schema: z.ZodObject<{
316
+ videoUrl: z.ZodString;
317
+ title: z.ZodOptional<z.ZodString>;
318
+ }, "strip", {
319
+ videoUrl: string;
320
+ title?: string | undefined;
321
+ }, {
322
+ videoUrl: string;
323
+ title?: string | undefined;
324
+ }>;
325
+ };
326
+ readonly file: {
327
+ readonly schema: z.ZodObject<{
328
+ fileUrl: z.ZodString;
329
+ title: z.ZodOptional<z.ZodString>;
330
+ }, "strip", {
331
+ fileUrl: string;
332
+ title?: string | undefined;
333
+ }, {
334
+ fileUrl: string;
335
+ title?: string | undefined;
336
+ }>;
337
+ };
338
+ readonly location: {
339
+ readonly schema: z.ZodObject<{
340
+ latitude: z.ZodNumber;
341
+ longitude: z.ZodNumber;
342
+ address: z.ZodOptional<z.ZodString>;
343
+ title: z.ZodOptional<z.ZodString>;
344
+ }, "strip", {
345
+ latitude: number;
346
+ longitude: number;
347
+ title?: string | undefined;
348
+ address?: string | undefined;
349
+ }, {
350
+ latitude: number;
351
+ longitude: number;
352
+ title?: string | undefined;
353
+ address?: string | undefined;
354
+ }>;
355
+ };
356
+ readonly carousel: {
357
+ readonly schema: z.ZodObject<{
358
+ items: z.ZodArray<z.ZodObject<{
359
+ title: z.ZodString;
360
+ subtitle: z.ZodOptional<z.ZodString>;
361
+ imageUrl: z.ZodOptional<z.ZodString>;
362
+ actions: z.ZodArray<z.ZodObject<{
363
+ action: z.ZodEnum<["postback", "url", "say"]>;
364
+ label: z.ZodString;
365
+ value: z.ZodString;
366
+ }, "strip", {
367
+ value: string;
368
+ action: "url" | "postback" | "say";
369
+ label: string;
370
+ }, {
371
+ value: string;
372
+ action: "url" | "postback" | "say";
373
+ label: string;
374
+ }>, "many">;
375
+ }, "strip", {
376
+ actions: {
377
+ value: string;
378
+ action: "url" | "postback" | "say";
379
+ label: string;
380
+ }[];
381
+ title: string;
382
+ subtitle?: string | undefined;
383
+ imageUrl?: string | undefined;
384
+ }, {
385
+ actions: {
386
+ value: string;
387
+ action: "url" | "postback" | "say";
388
+ label: string;
389
+ }[];
390
+ title: string;
391
+ subtitle?: string | undefined;
392
+ imageUrl?: string | undefined;
393
+ }>, "many">;
394
+ }, "strip", {
395
+ items: {
396
+ actions: {
397
+ value: string;
398
+ action: "url" | "postback" | "say";
399
+ label: string;
400
+ }[];
401
+ title: string;
402
+ subtitle?: string | undefined;
403
+ imageUrl?: string | undefined;
404
+ }[];
405
+ }, {
406
+ items: {
407
+ actions: {
408
+ value: string;
409
+ action: "url" | "postback" | "say";
410
+ label: string;
411
+ }[];
412
+ title: string;
413
+ subtitle?: string | undefined;
414
+ imageUrl?: string | undefined;
415
+ }[];
416
+ }>;
417
+ };
418
+ readonly card: {
419
+ readonly schema: z.ZodObject<{
420
+ title: z.ZodString;
421
+ subtitle: z.ZodOptional<z.ZodString>;
422
+ imageUrl: z.ZodOptional<z.ZodString>;
423
+ actions: z.ZodArray<z.ZodObject<{
424
+ action: z.ZodEnum<["postback", "url", "say"]>;
425
+ label: z.ZodString;
426
+ value: z.ZodString;
427
+ }, "strip", {
428
+ value: string;
429
+ action: "url" | "postback" | "say";
430
+ label: string;
431
+ }, {
432
+ value: string;
433
+ action: "url" | "postback" | "say";
434
+ label: string;
435
+ }>, "many">;
436
+ }, "strip", {
437
+ actions: {
438
+ value: string;
439
+ action: "url" | "postback" | "say";
440
+ label: string;
441
+ }[];
442
+ title: string;
443
+ subtitle?: string | undefined;
444
+ imageUrl?: string | undefined;
445
+ }, {
446
+ actions: {
447
+ value: string;
448
+ action: "url" | "postback" | "say";
449
+ label: string;
450
+ }[];
451
+ title: string;
452
+ subtitle?: string | undefined;
453
+ imageUrl?: string | undefined;
454
+ }>;
455
+ };
456
+ readonly dropdown: {
457
+ readonly schema: z.ZodObject<{
458
+ text: z.ZodString;
459
+ options: z.ZodArray<z.ZodObject<{
460
+ label: z.ZodString;
461
+ value: z.ZodString;
462
+ }, "strip", {
463
+ value: string;
464
+ label: string;
465
+ }, {
466
+ value: string;
467
+ label: string;
468
+ }>, "many">;
469
+ }, "strip", {
470
+ text: string;
471
+ options: {
472
+ value: string;
473
+ label: string;
474
+ }[];
475
+ }, {
476
+ text: string;
477
+ options: {
478
+ value: string;
479
+ label: string;
480
+ }[];
481
+ }>;
482
+ };
483
+ readonly choice: {
484
+ readonly schema: z.ZodObject<{
485
+ text: z.ZodString;
486
+ options: z.ZodArray<z.ZodObject<{
487
+ label: z.ZodString;
488
+ value: z.ZodString;
489
+ }, "strip", {
490
+ value: string;
491
+ label: string;
492
+ }, {
493
+ value: string;
494
+ label: string;
495
+ }>, "many">;
496
+ }, "strip", {
497
+ text: string;
498
+ options: {
499
+ value: string;
500
+ label: string;
501
+ }[];
502
+ }, {
503
+ text: string;
504
+ options: {
505
+ value: string;
506
+ label: string;
507
+ }[];
508
+ }>;
509
+ };
510
+ readonly bloc: {
511
+ readonly schema: z.ZodObject<{
512
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
513
+ type: z.ZodLiteral<"text">;
514
+ payload: z.ZodObject<{
515
+ text: z.ZodString;
516
+ }, "strip", {
517
+ text: string;
518
+ }, {
519
+ text: string;
520
+ }>;
521
+ }, "strip", {
522
+ type: "text";
523
+ payload: {
524
+ text: string;
525
+ };
526
+ }, {
527
+ type: "text";
528
+ payload: {
529
+ text: string;
530
+ };
531
+ }>, z.ZodObject<{
532
+ type: z.ZodLiteral<"image">;
533
+ payload: z.ZodObject<{
534
+ imageUrl: z.ZodString;
535
+ title: z.ZodOptional<z.ZodString>;
536
+ }, "strip", {
537
+ imageUrl: string;
538
+ title?: string | undefined;
539
+ }, {
540
+ imageUrl: string;
541
+ title?: string | undefined;
542
+ }>;
543
+ }, "strip", {
544
+ type: "image";
545
+ payload: {
546
+ imageUrl: string;
547
+ title?: string | undefined;
548
+ };
549
+ }, {
550
+ type: "image";
551
+ payload: {
552
+ imageUrl: string;
553
+ title?: string | undefined;
554
+ };
555
+ }>, z.ZodObject<{
556
+ type: z.ZodLiteral<"audio">;
557
+ payload: z.ZodObject<{
558
+ audioUrl: z.ZodString;
559
+ title: z.ZodOptional<z.ZodString>;
560
+ }, "strip", {
561
+ audioUrl: string;
562
+ title?: string | undefined;
563
+ }, {
564
+ audioUrl: string;
565
+ title?: string | undefined;
566
+ }>;
567
+ }, "strip", {
568
+ type: "audio";
569
+ payload: {
570
+ audioUrl: string;
571
+ title?: string | undefined;
572
+ };
573
+ }, {
574
+ type: "audio";
575
+ payload: {
576
+ audioUrl: string;
577
+ title?: string | undefined;
578
+ };
579
+ }>, z.ZodObject<{
580
+ type: z.ZodLiteral<"video">;
581
+ payload: z.ZodObject<{
582
+ videoUrl: z.ZodString;
583
+ title: z.ZodOptional<z.ZodString>;
584
+ }, "strip", {
585
+ videoUrl: string;
586
+ title?: string | undefined;
587
+ }, {
588
+ videoUrl: string;
589
+ title?: string | undefined;
590
+ }>;
591
+ }, "strip", {
592
+ type: "video";
593
+ payload: {
594
+ videoUrl: string;
595
+ title?: string | undefined;
596
+ };
597
+ }, {
598
+ type: "video";
599
+ payload: {
600
+ videoUrl: string;
601
+ title?: string | undefined;
602
+ };
603
+ }>, z.ZodObject<{
604
+ type: z.ZodLiteral<"file">;
605
+ payload: z.ZodObject<{
606
+ fileUrl: z.ZodString;
607
+ title: z.ZodOptional<z.ZodString>;
608
+ }, "strip", {
609
+ fileUrl: string;
610
+ title?: string | undefined;
611
+ }, {
612
+ fileUrl: string;
613
+ title?: string | undefined;
614
+ }>;
615
+ }, "strip", {
616
+ type: "file";
617
+ payload: {
618
+ fileUrl: string;
619
+ title?: string | undefined;
620
+ };
621
+ }, {
622
+ type: "file";
623
+ payload: {
624
+ fileUrl: string;
625
+ title?: string | undefined;
626
+ };
627
+ }>, z.ZodObject<{
628
+ type: z.ZodLiteral<"location">;
629
+ payload: z.ZodObject<{
630
+ latitude: z.ZodNumber;
631
+ longitude: z.ZodNumber;
632
+ address: z.ZodOptional<z.ZodString>;
633
+ title: z.ZodOptional<z.ZodString>;
634
+ }, "strip", {
635
+ latitude: number;
636
+ longitude: number;
637
+ title?: string | undefined;
638
+ address?: string | undefined;
639
+ }, {
640
+ latitude: number;
641
+ longitude: number;
642
+ title?: string | undefined;
643
+ address?: string | undefined;
644
+ }>;
645
+ }, "strip", {
646
+ type: "location";
647
+ payload: {
648
+ latitude: number;
649
+ longitude: number;
650
+ title?: string | undefined;
651
+ address?: string | undefined;
652
+ };
653
+ }, {
654
+ type: "location";
655
+ payload: {
656
+ latitude: number;
657
+ longitude: number;
658
+ title?: string | undefined;
659
+ address?: string | undefined;
660
+ };
661
+ }>]>, "many">;
662
+ }, "strip", {
663
+ items: ({
664
+ type: "text";
665
+ payload: {
666
+ text: string;
667
+ };
668
+ } | {
669
+ type: "image";
670
+ payload: {
671
+ imageUrl: string;
672
+ title?: string | undefined;
673
+ };
674
+ } | {
675
+ type: "audio";
676
+ payload: {
677
+ audioUrl: string;
678
+ title?: string | undefined;
679
+ };
680
+ } | {
681
+ type: "video";
682
+ payload: {
683
+ videoUrl: string;
684
+ title?: string | undefined;
685
+ };
686
+ } | {
687
+ type: "file";
688
+ payload: {
689
+ fileUrl: string;
690
+ title?: string | undefined;
691
+ };
692
+ } | {
693
+ type: "location";
694
+ payload: {
695
+ latitude: number;
696
+ longitude: number;
697
+ title?: string | undefined;
698
+ address?: string | undefined;
699
+ };
700
+ })[];
701
+ }, {
702
+ items: ({
703
+ type: "text";
704
+ payload: {
705
+ text: string;
706
+ };
707
+ } | {
708
+ type: "image";
709
+ payload: {
710
+ imageUrl: string;
711
+ title?: string | undefined;
712
+ };
713
+ } | {
714
+ type: "audio";
715
+ payload: {
716
+ audioUrl: string;
717
+ title?: string | undefined;
718
+ };
719
+ } | {
720
+ type: "video";
721
+ payload: {
722
+ videoUrl: string;
723
+ title?: string | undefined;
724
+ };
725
+ } | {
726
+ type: "file";
727
+ payload: {
728
+ fileUrl: string;
729
+ title?: string | undefined;
730
+ };
731
+ } | {
732
+ type: "location";
733
+ payload: {
734
+ latitude: number;
735
+ longitude: number;
736
+ title?: string | undefined;
737
+ address?: string | undefined;
738
+ };
739
+ })[];
740
+ }>;
741
+ };
742
+ };