@open-wa/schema 5.6.1 → 5.6.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 (39) hide show
  1. package/dist/generated/index.cjs +1 -1
  2. package/dist/generated/index.d.cts +1 -1
  3. package/dist/generated/index.d.mts +31 -31
  4. package/dist/generated/index.mjs +1 -1
  5. package/dist/{index-DOca1sBu.d.mts → index-C3kjyOe-.d.mts} +3 -526
  6. package/dist/index-C3kjyOe-.d.mts.map +1 -0
  7. package/dist/{index-Cl1bU6DB.d.cts → index-HeicIada.d.cts} +3 -526
  8. package/dist/index-HeicIada.d.cts.map +1 -0
  9. package/dist/index.cjs +26 -25
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +2 -1
  12. package/dist/index.d.mts +2 -1
  13. package/dist/index.mjs +2 -1
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/interactive-DxUwKpzK.d.cts +527 -0
  16. package/dist/interactive-DxUwKpzK.d.cts.map +1 -0
  17. package/dist/interactive-DxUwKpzK.d.mts +527 -0
  18. package/dist/interactive-DxUwKpzK.d.mts.map +1 -0
  19. package/dist/interactive.cjs +305 -0
  20. package/dist/interactive.cjs.map +1 -0
  21. package/dist/interactive.d.cts +2 -0
  22. package/dist/interactive.d.mts +2 -0
  23. package/dist/interactive.mjs +283 -0
  24. package/dist/interactive.mjs.map +1 -0
  25. package/dist/methods/index.cjs +1 -1
  26. package/dist/methods/index.d.cts +1 -1
  27. package/dist/methods/index.d.mts +1 -1
  28. package/dist/methods/index.mjs +1 -1
  29. package/dist/{methods-BH7nDC3z.mjs → methods-CGm5G9VI.mjs} +14 -292
  30. package/dist/methods-CGm5G9VI.mjs.map +1 -0
  31. package/dist/{methods-DpDzgsbe.cjs → methods-QZbG0hN2.cjs} +15 -425
  32. package/dist/methods-QZbG0hN2.cjs.map +1 -0
  33. package/package.json +13 -3
  34. package/src/generated/asyncapi.json +1 -1
  35. package/src/generated/openapi.json +2 -2
  36. package/dist/index-Cl1bU6DB.d.cts.map +0 -1
  37. package/dist/index-DOca1sBu.d.mts.map +0 -1
  38. package/dist/methods-BH7nDC3z.mjs.map +0 -1
  39. package/dist/methods-DpDzgsbe.cjs.map +0 -1
@@ -0,0 +1,527 @@
1
+ import { z } from "zod";
2
+ //#region src/interactive.d.ts
3
+ type JsonValue = null | boolean | number | string | JsonValue[] | {
4
+ [key: string]: JsonValue;
5
+ };
6
+ declare const JsonValueSchema: z.ZodType<JsonValue>;
7
+ declare const JsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
8
+ declare const ReplyActionSchema: z.ZodObject<{
9
+ type: z.ZodLiteral<"reply">;
10
+ id: z.ZodString;
11
+ label: z.ZodString;
12
+ }, z.core.$strict>;
13
+ declare const LinkActionSchema: z.ZodObject<{
14
+ type: z.ZodLiteral<"url">;
15
+ label: z.ZodString;
16
+ url: z.ZodURL;
17
+ }, z.core.$strict>;
18
+ declare const CallActionSchema: z.ZodObject<{
19
+ type: z.ZodLiteral<"call">;
20
+ label: z.ZodString;
21
+ phoneNumber: z.ZodString;
22
+ }, z.core.$strict>;
23
+ declare const CopyActionSchema: z.ZodObject<{
24
+ type: z.ZodLiteral<"copy">;
25
+ label: z.ZodString;
26
+ code: z.ZodString;
27
+ }, z.core.$strict>;
28
+ declare const InteractiveActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ type: z.ZodLiteral<"reply">;
30
+ id: z.ZodString;
31
+ label: z.ZodString;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ type: z.ZodLiteral<"url">;
34
+ label: z.ZodString;
35
+ url: z.ZodURL;
36
+ }, z.core.$strict>, z.ZodObject<{
37
+ type: z.ZodLiteral<"call">;
38
+ label: z.ZodString;
39
+ phoneNumber: z.ZodString;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ type: z.ZodLiteral<"copy">;
42
+ label: z.ZodString;
43
+ code: z.ZodString;
44
+ }, z.core.$strict>], "type">;
45
+ declare const NativeActionSchema: z.ZodObject<{
46
+ name: z.ZodString;
47
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
48
+ }, z.core.$strict>;
49
+ declare const InteractiveHeaderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
50
+ type: z.ZodLiteral<"text">;
51
+ text: z.ZodString;
52
+ }, z.core.$strict>, z.ZodObject<{
53
+ source: z.ZodString;
54
+ filename: z.ZodOptional<z.ZodString>;
55
+ title: z.ZodOptional<z.ZodString>;
56
+ type: z.ZodLiteral<"image">;
57
+ }, z.core.$strict>, z.ZodObject<{
58
+ source: z.ZodString;
59
+ filename: z.ZodOptional<z.ZodString>;
60
+ title: z.ZodOptional<z.ZodString>;
61
+ type: z.ZodLiteral<"video">;
62
+ }, z.core.$strict>, z.ZodObject<{
63
+ source: z.ZodString;
64
+ filename: z.ZodOptional<z.ZodString>;
65
+ title: z.ZodOptional<z.ZodString>;
66
+ type: z.ZodLiteral<"document">;
67
+ }, z.core.$strict>], "type">;
68
+ declare const ButtonsContentSchema: z.ZodObject<{
69
+ version: z.ZodOptional<z.ZodLiteral<1>>;
70
+ body: z.ZodString;
71
+ footer: z.ZodOptional<z.ZodString>;
72
+ type: z.ZodLiteral<"buttons">;
73
+ header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
74
+ type: z.ZodLiteral<"text">;
75
+ text: z.ZodString;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ source: z.ZodString;
78
+ filename: z.ZodOptional<z.ZodString>;
79
+ title: z.ZodOptional<z.ZodString>;
80
+ type: z.ZodLiteral<"image">;
81
+ }, z.core.$strict>, z.ZodObject<{
82
+ source: z.ZodString;
83
+ filename: z.ZodOptional<z.ZodString>;
84
+ title: z.ZodOptional<z.ZodString>;
85
+ type: z.ZodLiteral<"video">;
86
+ }, z.core.$strict>, z.ZodObject<{
87
+ source: z.ZodString;
88
+ filename: z.ZodOptional<z.ZodString>;
89
+ title: z.ZodOptional<z.ZodString>;
90
+ type: z.ZodLiteral<"document">;
91
+ }, z.core.$strict>], "type">>;
92
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
93
+ type: z.ZodLiteral<"reply">;
94
+ id: z.ZodString;
95
+ label: z.ZodString;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ type: z.ZodLiteral<"url">;
98
+ label: z.ZodString;
99
+ url: z.ZodURL;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ type: z.ZodLiteral<"call">;
102
+ label: z.ZodString;
103
+ phoneNumber: z.ZodString;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ type: z.ZodLiteral<"copy">;
106
+ label: z.ZodString;
107
+ code: z.ZodString;
108
+ }, z.core.$strict>], "type">>;
109
+ }, z.core.$strict>;
110
+ declare const ListRowSchema: z.ZodObject<{
111
+ id: z.ZodString;
112
+ title: z.ZodString;
113
+ description: z.ZodOptional<z.ZodString>;
114
+ }, z.core.$strict>;
115
+ declare const ListContentSchema: z.ZodObject<{
116
+ version: z.ZodOptional<z.ZodLiteral<1>>;
117
+ body: z.ZodString;
118
+ footer: z.ZodOptional<z.ZodString>;
119
+ type: z.ZodLiteral<"list">;
120
+ title: z.ZodOptional<z.ZodString>;
121
+ buttonLabel: z.ZodDefault<z.ZodString>;
122
+ sections: z.ZodArray<z.ZodObject<{
123
+ title: z.ZodOptional<z.ZodString>;
124
+ rows: z.ZodArray<z.ZodObject<{
125
+ id: z.ZodString;
126
+ title: z.ZodString;
127
+ description: z.ZodOptional<z.ZodString>;
128
+ }, z.core.$strict>>;
129
+ }, z.core.$strict>>;
130
+ }, z.core.$strict>;
131
+ declare const FormQuestionSchema: z.ZodObject<{
132
+ type: z.ZodEnum<{
133
+ multiSelect: "multiSelect";
134
+ singleSelect: "singleSelect";
135
+ }>;
136
+ id: z.ZodString;
137
+ label: z.ZodString;
138
+ options: z.ZodArray<z.ZodObject<{
139
+ id: z.ZodString;
140
+ label: z.ZodString;
141
+ }, z.core.$strict>>;
142
+ allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
143
+ }, z.core.$strict>;
144
+ declare const FormContentSchema: z.ZodObject<{
145
+ version: z.ZodOptional<z.ZodLiteral<1>>;
146
+ body: z.ZodString;
147
+ footer: z.ZodOptional<z.ZodString>;
148
+ type: z.ZodLiteral<"form">;
149
+ title: z.ZodOptional<z.ZodString>;
150
+ questions: z.ZodArray<z.ZodObject<{
151
+ type: z.ZodEnum<{
152
+ multiSelect: "multiSelect";
153
+ singleSelect: "singleSelect";
154
+ }>;
155
+ id: z.ZodString;
156
+ label: z.ZodString;
157
+ options: z.ZodArray<z.ZodObject<{
158
+ id: z.ZodString;
159
+ label: z.ZodString;
160
+ }, z.core.$strict>>;
161
+ allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
162
+ }, z.core.$strict>>;
163
+ }, z.core.$strict>;
164
+ declare const CarouselCardSchema: z.ZodObject<{
165
+ body: z.ZodString;
166
+ header: z.ZodObject<{
167
+ source: z.ZodString;
168
+ filename: z.ZodOptional<z.ZodString>;
169
+ title: z.ZodOptional<z.ZodString>;
170
+ type: z.ZodLiteral<"image">;
171
+ }, z.core.$strict>;
172
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
173
+ type: z.ZodLiteral<"reply">;
174
+ id: z.ZodString;
175
+ label: z.ZodString;
176
+ }, z.core.$strict>, z.ZodObject<{
177
+ type: z.ZodLiteral<"url">;
178
+ label: z.ZodString;
179
+ url: z.ZodURL;
180
+ }, z.core.$strict>, z.ZodObject<{
181
+ type: z.ZodLiteral<"call">;
182
+ label: z.ZodString;
183
+ phoneNumber: z.ZodString;
184
+ }, z.core.$strict>, z.ZodObject<{
185
+ type: z.ZodLiteral<"copy">;
186
+ label: z.ZodString;
187
+ code: z.ZodString;
188
+ }, z.core.$strict>], "type">>;
189
+ }, z.core.$strict>;
190
+ declare const CarouselContentSchema: z.ZodObject<{
191
+ version: z.ZodOptional<z.ZodLiteral<1>>;
192
+ body: z.ZodString;
193
+ footer: z.ZodOptional<z.ZodString>;
194
+ type: z.ZodLiteral<"carousel">;
195
+ cards: z.ZodArray<z.ZodObject<{
196
+ body: z.ZodString;
197
+ header: z.ZodObject<{
198
+ source: z.ZodString;
199
+ filename: z.ZodOptional<z.ZodString>;
200
+ title: z.ZodOptional<z.ZodString>;
201
+ type: z.ZodLiteral<"image">;
202
+ }, z.core.$strict>;
203
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
204
+ type: z.ZodLiteral<"reply">;
205
+ id: z.ZodString;
206
+ label: z.ZodString;
207
+ }, z.core.$strict>, z.ZodObject<{
208
+ type: z.ZodLiteral<"url">;
209
+ label: z.ZodString;
210
+ url: z.ZodURL;
211
+ }, z.core.$strict>, z.ZodObject<{
212
+ type: z.ZodLiteral<"call">;
213
+ label: z.ZodString;
214
+ phoneNumber: z.ZodString;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ type: z.ZodLiteral<"copy">;
217
+ label: z.ZodString;
218
+ code: z.ZodString;
219
+ }, z.core.$strict>], "type">>;
220
+ }, z.core.$strict>>;
221
+ }, z.core.$strict>;
222
+ declare const BookingContentSchema: z.ZodObject<{
223
+ version: z.ZodOptional<z.ZodLiteral<1>>;
224
+ body: z.ZodString;
225
+ footer: z.ZodOptional<z.ZodString>;
226
+ type: z.ZodLiteral<"booking">;
227
+ title: z.ZodOptional<z.ZodString>;
228
+ buttonLabel: z.ZodDefault<z.ZodString>;
229
+ booking: z.ZodObject<{
230
+ startAt: z.ZodISODateTime;
231
+ endAt: z.ZodOptional<z.ZodISODateTime>;
232
+ location: z.ZodOptional<z.ZodString>;
233
+ url: z.ZodOptional<z.ZodURL>;
234
+ managementUrl: z.ZodOptional<z.ZodURL>;
235
+ phoneNumber: z.ZodOptional<z.ZodString>;
236
+ email: z.ZodOptional<z.ZodEmail>;
237
+ description: z.ZodOptional<z.ZodString>;
238
+ labels: z.ZodOptional<z.ZodObject<{
239
+ language: z.ZodOptional<z.ZodString>;
240
+ meetingType: z.ZodOptional<z.ZodString>;
241
+ detailsTitle: z.ZodOptional<z.ZodString>;
242
+ addToCalendar: z.ZodOptional<z.ZodString>;
243
+ viewOnMap: z.ZodOptional<z.ZodString>;
244
+ manageBooking: z.ZodOptional<z.ZodString>;
245
+ }, z.core.$strict>>;
246
+ }, z.core.$strict>;
247
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
248
+ type: z.ZodLiteral<"url">;
249
+ label: z.ZodString;
250
+ url: z.ZodURL;
251
+ }, z.core.$strict>, z.ZodObject<{
252
+ type: z.ZodLiteral<"call">;
253
+ label: z.ZodString;
254
+ phoneNumber: z.ZodString;
255
+ }, z.core.$strict>, z.ZodObject<{
256
+ type: z.ZodLiteral<"copy">;
257
+ label: z.ZodString;
258
+ code: z.ZodString;
259
+ }, z.core.$strict>], "type">>>;
260
+ }, z.core.$strict>;
261
+ declare const NativeContentSchema: z.ZodObject<{
262
+ version: z.ZodOptional<z.ZodLiteral<1>>;
263
+ body: z.ZodString;
264
+ footer: z.ZodOptional<z.ZodString>;
265
+ type: z.ZodLiteral<"native">;
266
+ header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
267
+ type: z.ZodLiteral<"text">;
268
+ text: z.ZodString;
269
+ }, z.core.$strict>, z.ZodObject<{
270
+ source: z.ZodString;
271
+ filename: z.ZodOptional<z.ZodString>;
272
+ title: z.ZodOptional<z.ZodString>;
273
+ type: z.ZodLiteral<"image">;
274
+ }, z.core.$strict>, z.ZodObject<{
275
+ source: z.ZodString;
276
+ filename: z.ZodOptional<z.ZodString>;
277
+ title: z.ZodOptional<z.ZodString>;
278
+ type: z.ZodLiteral<"video">;
279
+ }, z.core.$strict>, z.ZodObject<{
280
+ source: z.ZodString;
281
+ filename: z.ZodOptional<z.ZodString>;
282
+ title: z.ZodOptional<z.ZodString>;
283
+ type: z.ZodLiteral<"document">;
284
+ }, z.core.$strict>], "type">>;
285
+ actions: z.ZodArray<z.ZodObject<{
286
+ name: z.ZodString;
287
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
288
+ }, z.core.$strict>>;
289
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
290
+ }, z.core.$strict>;
291
+ declare const InteractiveContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
292
+ version: z.ZodOptional<z.ZodLiteral<1>>;
293
+ body: z.ZodString;
294
+ footer: z.ZodOptional<z.ZodString>;
295
+ type: z.ZodLiteral<"buttons">;
296
+ header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
297
+ type: z.ZodLiteral<"text">;
298
+ text: z.ZodString;
299
+ }, z.core.$strict>, z.ZodObject<{
300
+ source: z.ZodString;
301
+ filename: z.ZodOptional<z.ZodString>;
302
+ title: z.ZodOptional<z.ZodString>;
303
+ type: z.ZodLiteral<"image">;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ source: z.ZodString;
306
+ filename: z.ZodOptional<z.ZodString>;
307
+ title: z.ZodOptional<z.ZodString>;
308
+ type: z.ZodLiteral<"video">;
309
+ }, z.core.$strict>, z.ZodObject<{
310
+ source: z.ZodString;
311
+ filename: z.ZodOptional<z.ZodString>;
312
+ title: z.ZodOptional<z.ZodString>;
313
+ type: z.ZodLiteral<"document">;
314
+ }, z.core.$strict>], "type">>;
315
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
316
+ type: z.ZodLiteral<"reply">;
317
+ id: z.ZodString;
318
+ label: z.ZodString;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ type: z.ZodLiteral<"url">;
321
+ label: z.ZodString;
322
+ url: z.ZodURL;
323
+ }, z.core.$strict>, z.ZodObject<{
324
+ type: z.ZodLiteral<"call">;
325
+ label: z.ZodString;
326
+ phoneNumber: z.ZodString;
327
+ }, z.core.$strict>, z.ZodObject<{
328
+ type: z.ZodLiteral<"copy">;
329
+ label: z.ZodString;
330
+ code: z.ZodString;
331
+ }, z.core.$strict>], "type">>;
332
+ }, z.core.$strict>, z.ZodObject<{
333
+ version: z.ZodOptional<z.ZodLiteral<1>>;
334
+ body: z.ZodString;
335
+ footer: z.ZodOptional<z.ZodString>;
336
+ type: z.ZodLiteral<"list">;
337
+ title: z.ZodOptional<z.ZodString>;
338
+ buttonLabel: z.ZodDefault<z.ZodString>;
339
+ sections: z.ZodArray<z.ZodObject<{
340
+ title: z.ZodOptional<z.ZodString>;
341
+ rows: z.ZodArray<z.ZodObject<{
342
+ id: z.ZodString;
343
+ title: z.ZodString;
344
+ description: z.ZodOptional<z.ZodString>;
345
+ }, z.core.$strict>>;
346
+ }, z.core.$strict>>;
347
+ }, z.core.$strict>, z.ZodObject<{
348
+ version: z.ZodOptional<z.ZodLiteral<1>>;
349
+ body: z.ZodString;
350
+ footer: z.ZodOptional<z.ZodString>;
351
+ type: z.ZodLiteral<"form">;
352
+ title: z.ZodOptional<z.ZodString>;
353
+ questions: z.ZodArray<z.ZodObject<{
354
+ type: z.ZodEnum<{
355
+ multiSelect: "multiSelect";
356
+ singleSelect: "singleSelect";
357
+ }>;
358
+ id: z.ZodString;
359
+ label: z.ZodString;
360
+ options: z.ZodArray<z.ZodObject<{
361
+ id: z.ZodString;
362
+ label: z.ZodString;
363
+ }, z.core.$strict>>;
364
+ allowCustomAnswer: z.ZodOptional<z.ZodBoolean>;
365
+ }, z.core.$strict>>;
366
+ }, z.core.$strict>, z.ZodObject<{
367
+ version: z.ZodOptional<z.ZodLiteral<1>>;
368
+ body: z.ZodString;
369
+ footer: z.ZodOptional<z.ZodString>;
370
+ type: z.ZodLiteral<"carousel">;
371
+ cards: z.ZodArray<z.ZodObject<{
372
+ body: z.ZodString;
373
+ header: z.ZodObject<{
374
+ source: z.ZodString;
375
+ filename: z.ZodOptional<z.ZodString>;
376
+ title: z.ZodOptional<z.ZodString>;
377
+ type: z.ZodLiteral<"image">;
378
+ }, z.core.$strict>;
379
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
380
+ type: z.ZodLiteral<"reply">;
381
+ id: z.ZodString;
382
+ label: z.ZodString;
383
+ }, z.core.$strict>, z.ZodObject<{
384
+ type: z.ZodLiteral<"url">;
385
+ label: z.ZodString;
386
+ url: z.ZodURL;
387
+ }, z.core.$strict>, z.ZodObject<{
388
+ type: z.ZodLiteral<"call">;
389
+ label: z.ZodString;
390
+ phoneNumber: z.ZodString;
391
+ }, z.core.$strict>, z.ZodObject<{
392
+ type: z.ZodLiteral<"copy">;
393
+ label: z.ZodString;
394
+ code: z.ZodString;
395
+ }, z.core.$strict>], "type">>;
396
+ }, z.core.$strict>>;
397
+ }, z.core.$strict>, z.ZodObject<{
398
+ version: z.ZodOptional<z.ZodLiteral<1>>;
399
+ body: z.ZodString;
400
+ footer: z.ZodOptional<z.ZodString>;
401
+ type: z.ZodLiteral<"booking">;
402
+ title: z.ZodOptional<z.ZodString>;
403
+ buttonLabel: z.ZodDefault<z.ZodString>;
404
+ booking: z.ZodObject<{
405
+ startAt: z.ZodISODateTime;
406
+ endAt: z.ZodOptional<z.ZodISODateTime>;
407
+ location: z.ZodOptional<z.ZodString>;
408
+ url: z.ZodOptional<z.ZodURL>;
409
+ managementUrl: z.ZodOptional<z.ZodURL>;
410
+ phoneNumber: z.ZodOptional<z.ZodString>;
411
+ email: z.ZodOptional<z.ZodEmail>;
412
+ description: z.ZodOptional<z.ZodString>;
413
+ labels: z.ZodOptional<z.ZodObject<{
414
+ language: z.ZodOptional<z.ZodString>;
415
+ meetingType: z.ZodOptional<z.ZodString>;
416
+ detailsTitle: z.ZodOptional<z.ZodString>;
417
+ addToCalendar: z.ZodOptional<z.ZodString>;
418
+ viewOnMap: z.ZodOptional<z.ZodString>;
419
+ manageBooking: z.ZodOptional<z.ZodString>;
420
+ }, z.core.$strict>>;
421
+ }, z.core.$strict>;
422
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
423
+ type: z.ZodLiteral<"url">;
424
+ label: z.ZodString;
425
+ url: z.ZodURL;
426
+ }, z.core.$strict>, z.ZodObject<{
427
+ type: z.ZodLiteral<"call">;
428
+ label: z.ZodString;
429
+ phoneNumber: z.ZodString;
430
+ }, z.core.$strict>, z.ZodObject<{
431
+ type: z.ZodLiteral<"copy">;
432
+ label: z.ZodString;
433
+ code: z.ZodString;
434
+ }, z.core.$strict>], "type">>>;
435
+ }, z.core.$strict>, z.ZodObject<{
436
+ version: z.ZodOptional<z.ZodLiteral<1>>;
437
+ body: z.ZodString;
438
+ footer: z.ZodOptional<z.ZodString>;
439
+ type: z.ZodLiteral<"native">;
440
+ header: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
441
+ type: z.ZodLiteral<"text">;
442
+ text: z.ZodString;
443
+ }, z.core.$strict>, z.ZodObject<{
444
+ source: z.ZodString;
445
+ filename: z.ZodOptional<z.ZodString>;
446
+ title: z.ZodOptional<z.ZodString>;
447
+ type: z.ZodLiteral<"image">;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ source: z.ZodString;
450
+ filename: z.ZodOptional<z.ZodString>;
451
+ title: z.ZodOptional<z.ZodString>;
452
+ type: z.ZodLiteral<"video">;
453
+ }, z.core.$strict>, z.ZodObject<{
454
+ source: z.ZodString;
455
+ filename: z.ZodOptional<z.ZodString>;
456
+ title: z.ZodOptional<z.ZodString>;
457
+ type: z.ZodLiteral<"document">;
458
+ }, z.core.$strict>], "type">>;
459
+ actions: z.ZodArray<z.ZodObject<{
460
+ name: z.ZodString;
461
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
462
+ }, z.core.$strict>>;
463
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
464
+ }, z.core.$strict>], "type">;
465
+ type InteractiveContent = z.input<typeof InteractiveContentSchema>;
466
+ type InteractiveAction = z.infer<typeof InteractiveActionSchema>;
467
+ type InteractiveHeader = z.infer<typeof InteractiveHeaderSchema>;
468
+ type FormQuestion = z.infer<typeof FormQuestionSchema>;
469
+ declare function defineInteractiveMessage<T extends InteractiveContent>(content: T): Extract<z.output<typeof InteractiveContentSchema>, {
470
+ type: T['type'];
471
+ }>;
472
+ declare const FormResponseSchema: z.ZodObject<{
473
+ messageId: z.ZodString;
474
+ chatId: z.ZodString;
475
+ senderId: z.ZodString;
476
+ originalMessageId: z.ZodOptional<z.ZodString>;
477
+ timestamp: z.ZodOptional<z.ZodNumber>;
478
+ raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
479
+ type: z.ZodLiteral<"form">;
480
+ answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
481
+ }, z.core.$strip>;
482
+ declare const InteractiveResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
483
+ messageId: z.ZodString;
484
+ chatId: z.ZodString;
485
+ senderId: z.ZodString;
486
+ originalMessageId: z.ZodOptional<z.ZodString>;
487
+ timestamp: z.ZodOptional<z.ZodNumber>;
488
+ raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
489
+ type: z.ZodLiteral<"form">;
490
+ answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
491
+ }, z.core.$strip>, z.ZodObject<{
492
+ messageId: z.ZodString;
493
+ chatId: z.ZodString;
494
+ senderId: z.ZodString;
495
+ originalMessageId: z.ZodOptional<z.ZodString>;
496
+ timestamp: z.ZodOptional<z.ZodNumber>;
497
+ raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
498
+ type: z.ZodLiteral<"reply">;
499
+ id: z.ZodString;
500
+ label: z.ZodOptional<z.ZodString>;
501
+ }, z.core.$strip>, z.ZodObject<{
502
+ messageId: z.ZodString;
503
+ chatId: z.ZodString;
504
+ senderId: z.ZodString;
505
+ originalMessageId: z.ZodOptional<z.ZodString>;
506
+ timestamp: z.ZodOptional<z.ZodNumber>;
507
+ raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
508
+ type: z.ZodLiteral<"list">;
509
+ id: z.ZodString;
510
+ label: z.ZodOptional<z.ZodString>;
511
+ }, z.core.$strip>, z.ZodObject<{
512
+ messageId: z.ZodString;
513
+ chatId: z.ZodString;
514
+ senderId: z.ZodString;
515
+ originalMessageId: z.ZodOptional<z.ZodString>;
516
+ timestamp: z.ZodOptional<z.ZodNumber>;
517
+ raw: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
518
+ type: z.ZodLiteral<"native">;
519
+ name: z.ZodString;
520
+ parameters: z.ZodOptional<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
521
+ parseError: z.ZodOptional<z.ZodString>;
522
+ }, z.core.$strip>], "type">;
523
+ type FormResponse = z.infer<typeof FormResponseSchema>;
524
+ type InteractiveResponse = z.infer<typeof InteractiveResponseSchema>;
525
+ //#endregion
526
+ export { LinkActionSchema as C, NativeContentSchema as D, NativeActionSchema as E, ReplyActionSchema as O, JsonValueSchema as S, ListRowSchema as T, InteractiveHeaderSchema as _, CarouselContentSchema as a, JsonObjectSchema as b, FormQuestion as c, FormResponseSchema as d, InteractiveAction as f, InteractiveHeader as g, InteractiveContentSchema as h, CarouselCardSchema as i, defineInteractiveMessage as k, FormQuestionSchema as l, InteractiveContent as m, ButtonsContentSchema as n, CopyActionSchema as o, InteractiveActionSchema as p, CallActionSchema as r, FormContentSchema as s, BookingContentSchema as t, FormResponse as u, InteractiveResponse as v, ListContentSchema as w, JsonValue as x, InteractiveResponseSchema as y };
527
+ //# sourceMappingURL=interactive-DxUwKpzK.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactive-DxUwKpzK.d.mts","names":[],"sources":["../src/interactive.ts"],"mappings":";;KAGY,+CAA+C;GAAiB,cAAc;;cAC7E,iBAAiB,EAAE,QAAQ;cAI3B,kBAAgB,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,oBAAA,EAAA,KAAA,kBAAA;cAKhB,mBAAiB,EAAA;;;;GAAmE,EAAA,KAAA;cACpF,kBAAgB,EAAA;;;;GAAkE,EAAA,KAAA;cAClF,kBAAgB,EAAA;;;;GAAiF,EAAA,KAAA;cACjG,kBAAgB,EAAA;;;;GAA0E,EAAA,KAAA;cAC1F,yBAAuB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;GAElC,EAAA,KAAA;cACW,oBAAkB,EAAA;;;GAGpB,EAAA,KAAA;cAmBE,yBAAuB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;GAKlC,EAAA,KAAA;cAMW,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEtB,EAAA,KAAA;cACE,eAAa,EAAA;;;;GAA6E,EAAA,KAAA;cAC1F,mBAAiB,EAAA;;;;;;;;;;;;;;;GAGnB,EAAA,KAAA;cACE,oBAAkB,EAAA;;;;;;;;;;;;GAIpB,EAAA,KAAA;cACE,mBAAiB,EAAA;;;;;;;;;;;;;;;;;;;GAEnB,EAAA,KAAA;cACE,oBAAkB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAIpB,EAAA,KAAA;cACE,uBAAqB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,EAAA,KAAA;cACE,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYtB,EAAA,KAAA;cACE,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGwG,EAAA,KAAA;cAE3H,0BAAwB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BnC,EAAA,KAAA;KAEU,qBAAqB,EAAE,aAAa;KACpC,oBAAoB,EAAE,aAAa;KACnC,oBAAoB,EAAE,aAAa;KACnC,eAAe,EAAE,aAAa;iBAE1B,yBAAyB,UAAU,oBAAoB,SAAS,IAAI,QAAQ,EAAE,cAAc;EAA6B,MAAM;;cAUlI,oBAAkB,EAAA;;;;;;;;;GAG7B,EAAA,KAAA;cACW,2BAAyB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKpC,EAAA,KAAA;KACU,eAAe,EAAE,aAAa;KAC9B,sBAAsB,EAAE,aAAa"}