@adatechnology/meta-whatsapp-contracts 0.1.0 → 0.2.0-rc.1

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.
package/dist/index.d.cts CHANGED
@@ -7,17 +7,17 @@ declare const whatsAppMediaSchema: z.ZodObject<{
7
7
  caption: z.ZodOptional<z.ZodString>;
8
8
  filename: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- id?: string;
11
- mime_type?: string;
12
- sha256?: string;
13
- caption?: string;
14
- filename?: string;
10
+ id: string;
11
+ mime_type: string;
12
+ sha256?: string | undefined;
13
+ caption?: string | undefined;
14
+ filename?: string | undefined;
15
15
  }, {
16
- id?: string;
17
- mime_type?: string;
18
- sha256?: string;
19
- caption?: string;
20
- filename?: string;
16
+ id: string;
17
+ mime_type: string;
18
+ sha256?: string | undefined;
19
+ caption?: string | undefined;
20
+ filename?: string | undefined;
21
21
  }>;
22
22
  type WhatsAppMedia = z.infer<typeof whatsAppMediaSchema>;
23
23
  declare const whatsAppInteractiveSchema: z.ZodObject<{
@@ -26,42 +26,42 @@ declare const whatsAppInteractiveSchema: z.ZodObject<{
26
26
  id: z.ZodString;
27
27
  title: z.ZodString;
28
28
  }, "strip", z.ZodTypeAny, {
29
- id?: string;
30
- title?: string;
29
+ id: string;
30
+ title: string;
31
31
  }, {
32
- id?: string;
33
- title?: string;
32
+ id: string;
33
+ title: string;
34
34
  }>>;
35
35
  list_reply: z.ZodOptional<z.ZodObject<{
36
36
  id: z.ZodString;
37
37
  title: z.ZodString;
38
38
  }, "strip", z.ZodTypeAny, {
39
- id?: string;
40
- title?: string;
39
+ id: string;
40
+ title: string;
41
41
  }, {
42
- id?: string;
43
- title?: string;
42
+ id: string;
43
+ title: string;
44
44
  }>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- type?: string;
46
+ type: string;
47
47
  button_reply?: {
48
- id?: string;
49
- title?: string;
50
- };
48
+ id: string;
49
+ title: string;
50
+ } | undefined;
51
51
  list_reply?: {
52
- id?: string;
53
- title?: string;
54
- };
52
+ id: string;
53
+ title: string;
54
+ } | undefined;
55
55
  }, {
56
- type?: string;
56
+ type: string;
57
57
  button_reply?: {
58
- id?: string;
59
- title?: string;
60
- };
58
+ id: string;
59
+ title: string;
60
+ } | undefined;
61
61
  list_reply?: {
62
- id?: string;
63
- title?: string;
64
- };
62
+ id: string;
63
+ title: string;
64
+ } | undefined;
65
65
  }>;
66
66
  type WhatsAppInteractive = z.infer<typeof whatsAppInteractiveSchema>;
67
67
  declare const whatsAppOrderSchema: z.ZodObject<{
@@ -73,34 +73,34 @@ declare const whatsAppOrderSchema: z.ZodObject<{
73
73
  item_price: z.ZodNumber;
74
74
  currency: z.ZodString;
75
75
  }, "strip", z.ZodTypeAny, {
76
- product_retailer_id?: string;
77
- quantity?: number;
78
- item_price?: number;
79
- currency?: string;
76
+ product_retailer_id: string;
77
+ quantity: number;
78
+ item_price: number;
79
+ currency: string;
80
80
  }, {
81
- product_retailer_id?: string;
82
- quantity?: number;
83
- item_price?: number;
84
- currency?: string;
81
+ product_retailer_id: string;
82
+ quantity: number;
83
+ item_price: number;
84
+ currency: string;
85
85
  }>, "many">;
86
86
  }, "strip", z.ZodTypeAny, {
87
- catalog_id?: string;
88
- text?: string;
89
- product_items?: {
90
- product_retailer_id?: string;
91
- quantity?: number;
92
- item_price?: number;
93
- currency?: string;
87
+ catalog_id: string;
88
+ product_items: {
89
+ product_retailer_id: string;
90
+ quantity: number;
91
+ item_price: number;
92
+ currency: string;
94
93
  }[];
94
+ text?: string | undefined;
95
95
  }, {
96
- catalog_id?: string;
97
- text?: string;
98
- product_items?: {
99
- product_retailer_id?: string;
100
- quantity?: number;
101
- item_price?: number;
102
- currency?: string;
96
+ catalog_id: string;
97
+ product_items: {
98
+ product_retailer_id: string;
99
+ quantity: number;
100
+ item_price: number;
101
+ currency: string;
103
102
  }[];
103
+ text?: string | undefined;
104
104
  }>;
105
105
  type WhatsAppOrder = z.infer<typeof whatsAppOrderSchema>;
106
106
  declare const whatsAppMessageSchema: z.ZodObject<{
@@ -110,9 +110,9 @@ declare const whatsAppMessageSchema: z.ZodObject<{
110
110
  text: z.ZodOptional<z.ZodObject<{
111
111
  body: z.ZodString;
112
112
  }, "strip", z.ZodTypeAny, {
113
- body?: string;
113
+ body: string;
114
114
  }, {
115
- body?: string;
115
+ body: string;
116
116
  }>>;
117
117
  image: z.ZodOptional<z.ZodObject<{
118
118
  id: z.ZodString;
@@ -121,17 +121,17 @@ declare const whatsAppMessageSchema: z.ZodObject<{
121
121
  caption: z.ZodOptional<z.ZodString>;
122
122
  filename: z.ZodOptional<z.ZodString>;
123
123
  }, "strip", z.ZodTypeAny, {
124
- id?: string;
125
- mime_type?: string;
126
- sha256?: string;
127
- caption?: string;
128
- filename?: string;
124
+ id: string;
125
+ mime_type: string;
126
+ sha256?: string | undefined;
127
+ caption?: string | undefined;
128
+ filename?: string | undefined;
129
129
  }, {
130
- id?: string;
131
- mime_type?: string;
132
- sha256?: string;
133
- caption?: string;
134
- filename?: string;
130
+ id: string;
131
+ mime_type: string;
132
+ sha256?: string | undefined;
133
+ caption?: string | undefined;
134
+ filename?: string | undefined;
135
135
  }>>;
136
136
  audio: z.ZodOptional<z.ZodObject<{
137
137
  id: z.ZodString;
@@ -140,17 +140,17 @@ declare const whatsAppMessageSchema: z.ZodObject<{
140
140
  caption: z.ZodOptional<z.ZodString>;
141
141
  filename: z.ZodOptional<z.ZodString>;
142
142
  }, "strip", z.ZodTypeAny, {
143
- id?: string;
144
- mime_type?: string;
145
- sha256?: string;
146
- caption?: string;
147
- filename?: string;
143
+ id: string;
144
+ mime_type: string;
145
+ sha256?: string | undefined;
146
+ caption?: string | undefined;
147
+ filename?: string | undefined;
148
148
  }, {
149
- id?: string;
150
- mime_type?: string;
151
- sha256?: string;
152
- caption?: string;
153
- filename?: string;
149
+ id: string;
150
+ mime_type: string;
151
+ sha256?: string | undefined;
152
+ caption?: string | undefined;
153
+ filename?: string | undefined;
154
154
  }>>;
155
155
  video: z.ZodOptional<z.ZodObject<{
156
156
  id: z.ZodString;
@@ -159,17 +159,17 @@ declare const whatsAppMessageSchema: z.ZodObject<{
159
159
  caption: z.ZodOptional<z.ZodString>;
160
160
  filename: z.ZodOptional<z.ZodString>;
161
161
  }, "strip", z.ZodTypeAny, {
162
- id?: string;
163
- mime_type?: string;
164
- sha256?: string;
165
- caption?: string;
166
- filename?: string;
162
+ id: string;
163
+ mime_type: string;
164
+ sha256?: string | undefined;
165
+ caption?: string | undefined;
166
+ filename?: string | undefined;
167
167
  }, {
168
- id?: string;
169
- mime_type?: string;
170
- sha256?: string;
171
- caption?: string;
172
- filename?: string;
168
+ id: string;
169
+ mime_type: string;
170
+ sha256?: string | undefined;
171
+ caption?: string | undefined;
172
+ filename?: string | undefined;
173
173
  }>>;
174
174
  document: z.ZodOptional<z.ZodObject<{
175
175
  id: z.ZodString;
@@ -178,17 +178,17 @@ declare const whatsAppMessageSchema: z.ZodObject<{
178
178
  caption: z.ZodOptional<z.ZodString>;
179
179
  filename: z.ZodOptional<z.ZodString>;
180
180
  }, "strip", z.ZodTypeAny, {
181
- id?: string;
182
- mime_type?: string;
183
- sha256?: string;
184
- caption?: string;
185
- filename?: string;
181
+ id: string;
182
+ mime_type: string;
183
+ sha256?: string | undefined;
184
+ caption?: string | undefined;
185
+ filename?: string | undefined;
186
186
  }, {
187
- id?: string;
188
- mime_type?: string;
189
- sha256?: string;
190
- caption?: string;
191
- filename?: string;
187
+ id: string;
188
+ mime_type: string;
189
+ sha256?: string | undefined;
190
+ caption?: string | undefined;
191
+ filename?: string | undefined;
192
192
  }>>;
193
193
  sticker: z.ZodOptional<z.ZodObject<{
194
194
  id: z.ZodString;
@@ -197,17 +197,17 @@ declare const whatsAppMessageSchema: z.ZodObject<{
197
197
  caption: z.ZodOptional<z.ZodString>;
198
198
  filename: z.ZodOptional<z.ZodString>;
199
199
  }, "strip", z.ZodTypeAny, {
200
- id?: string;
201
- mime_type?: string;
202
- sha256?: string;
203
- caption?: string;
204
- filename?: string;
200
+ id: string;
201
+ mime_type: string;
202
+ sha256?: string | undefined;
203
+ caption?: string | undefined;
204
+ filename?: string | undefined;
205
205
  }, {
206
- id?: string;
207
- mime_type?: string;
208
- sha256?: string;
209
- caption?: string;
210
- filename?: string;
206
+ id: string;
207
+ mime_type: string;
208
+ sha256?: string | undefined;
209
+ caption?: string | undefined;
210
+ filename?: string | undefined;
211
211
  }>>;
212
212
  interactive: z.ZodOptional<z.ZodObject<{
213
213
  type: z.ZodString;
@@ -215,42 +215,42 @@ declare const whatsAppMessageSchema: z.ZodObject<{
215
215
  id: z.ZodString;
216
216
  title: z.ZodString;
217
217
  }, "strip", z.ZodTypeAny, {
218
- id?: string;
219
- title?: string;
218
+ id: string;
219
+ title: string;
220
220
  }, {
221
- id?: string;
222
- title?: string;
221
+ id: string;
222
+ title: string;
223
223
  }>>;
224
224
  list_reply: z.ZodOptional<z.ZodObject<{
225
225
  id: z.ZodString;
226
226
  title: z.ZodString;
227
227
  }, "strip", z.ZodTypeAny, {
228
- id?: string;
229
- title?: string;
228
+ id: string;
229
+ title: string;
230
230
  }, {
231
- id?: string;
232
- title?: string;
231
+ id: string;
232
+ title: string;
233
233
  }>>;
234
234
  }, "strip", z.ZodTypeAny, {
235
- type?: string;
235
+ type: string;
236
236
  button_reply?: {
237
- id?: string;
238
- title?: string;
239
- };
237
+ id: string;
238
+ title: string;
239
+ } | undefined;
240
240
  list_reply?: {
241
- id?: string;
242
- title?: string;
243
- };
241
+ id: string;
242
+ title: string;
243
+ } | undefined;
244
244
  }, {
245
- type?: string;
245
+ type: string;
246
246
  button_reply?: {
247
- id?: string;
248
- title?: string;
249
- };
247
+ id: string;
248
+ title: string;
249
+ } | undefined;
250
250
  list_reply?: {
251
- id?: string;
252
- title?: string;
253
- };
251
+ id: string;
252
+ title: string;
253
+ } | undefined;
254
254
  }>>;
255
255
  order: z.ZodOptional<z.ZodObject<{
256
256
  catalog_id: z.ZodString;
@@ -261,34 +261,34 @@ declare const whatsAppMessageSchema: z.ZodObject<{
261
261
  item_price: z.ZodNumber;
262
262
  currency: z.ZodString;
263
263
  }, "strip", z.ZodTypeAny, {
264
- product_retailer_id?: string;
265
- quantity?: number;
266
- item_price?: number;
267
- currency?: string;
264
+ product_retailer_id: string;
265
+ quantity: number;
266
+ item_price: number;
267
+ currency: string;
268
268
  }, {
269
- product_retailer_id?: string;
270
- quantity?: number;
271
- item_price?: number;
272
- currency?: string;
269
+ product_retailer_id: string;
270
+ quantity: number;
271
+ item_price: number;
272
+ currency: string;
273
273
  }>, "many">;
274
274
  }, "strip", z.ZodTypeAny, {
275
- catalog_id?: string;
276
- text?: string;
277
- product_items?: {
278
- product_retailer_id?: string;
279
- quantity?: number;
280
- item_price?: number;
281
- currency?: string;
275
+ catalog_id: string;
276
+ product_items: {
277
+ product_retailer_id: string;
278
+ quantity: number;
279
+ item_price: number;
280
+ currency: string;
282
281
  }[];
282
+ text?: string | undefined;
283
283
  }, {
284
- catalog_id?: string;
285
- text?: string;
286
- product_items?: {
287
- product_retailer_id?: string;
288
- quantity?: number;
289
- item_price?: number;
290
- currency?: string;
284
+ catalog_id: string;
285
+ product_items: {
286
+ product_retailer_id: string;
287
+ quantity: number;
288
+ item_price: number;
289
+ currency: string;
291
290
  }[];
291
+ text?: string | undefined;
292
292
  }>>;
293
293
  context: z.ZodOptional<z.ZodObject<{
294
294
  from: z.ZodOptional<z.ZodString>;
@@ -297,172 +297,172 @@ declare const whatsAppMessageSchema: z.ZodObject<{
297
297
  catalog_id: z.ZodString;
298
298
  product_retailer_id: z.ZodString;
299
299
  }, "strip", z.ZodTypeAny, {
300
- catalog_id?: string;
301
- product_retailer_id?: string;
300
+ catalog_id: string;
301
+ product_retailer_id: string;
302
302
  }, {
303
- catalog_id?: string;
304
- product_retailer_id?: string;
303
+ catalog_id: string;
304
+ product_retailer_id: string;
305
305
  }>>;
306
306
  }, "strip", z.ZodTypeAny, {
307
- id?: string;
308
- from?: string;
307
+ id?: string | undefined;
308
+ from?: string | undefined;
309
309
  referred_product?: {
310
- catalog_id?: string;
311
- product_retailer_id?: string;
312
- };
310
+ catalog_id: string;
311
+ product_retailer_id: string;
312
+ } | undefined;
313
313
  }, {
314
- id?: string;
315
- from?: string;
314
+ id?: string | undefined;
315
+ from?: string | undefined;
316
316
  referred_product?: {
317
- catalog_id?: string;
318
- product_retailer_id?: string;
319
- };
317
+ catalog_id: string;
318
+ product_retailer_id: string;
319
+ } | undefined;
320
320
  }>>;
321
321
  timestamp: z.ZodString;
322
322
  }, "strip", z.ZodTypeAny, {
323
- id?: string;
324
- type?: string;
323
+ id: string;
324
+ type: string;
325
+ from: string;
326
+ timestamp: string;
325
327
  text?: {
326
- body?: string;
327
- };
328
- from?: string;
328
+ body: string;
329
+ } | undefined;
329
330
  image?: {
330
- id?: string;
331
- mime_type?: string;
332
- sha256?: string;
333
- caption?: string;
334
- filename?: string;
335
- };
331
+ id: string;
332
+ mime_type: string;
333
+ sha256?: string | undefined;
334
+ caption?: string | undefined;
335
+ filename?: string | undefined;
336
+ } | undefined;
336
337
  audio?: {
337
- id?: string;
338
- mime_type?: string;
339
- sha256?: string;
340
- caption?: string;
341
- filename?: string;
342
- };
338
+ id: string;
339
+ mime_type: string;
340
+ sha256?: string | undefined;
341
+ caption?: string | undefined;
342
+ filename?: string | undefined;
343
+ } | undefined;
343
344
  video?: {
344
- id?: string;
345
- mime_type?: string;
346
- sha256?: string;
347
- caption?: string;
348
- filename?: string;
349
- };
345
+ id: string;
346
+ mime_type: string;
347
+ sha256?: string | undefined;
348
+ caption?: string | undefined;
349
+ filename?: string | undefined;
350
+ } | undefined;
350
351
  document?: {
351
- id?: string;
352
- mime_type?: string;
353
- sha256?: string;
354
- caption?: string;
355
- filename?: string;
356
- };
352
+ id: string;
353
+ mime_type: string;
354
+ sha256?: string | undefined;
355
+ caption?: string | undefined;
356
+ filename?: string | undefined;
357
+ } | undefined;
357
358
  sticker?: {
358
- id?: string;
359
- mime_type?: string;
360
- sha256?: string;
361
- caption?: string;
362
- filename?: string;
363
- };
359
+ id: string;
360
+ mime_type: string;
361
+ sha256?: string | undefined;
362
+ caption?: string | undefined;
363
+ filename?: string | undefined;
364
+ } | undefined;
364
365
  interactive?: {
365
- type?: string;
366
+ type: string;
366
367
  button_reply?: {
367
- id?: string;
368
- title?: string;
369
- };
368
+ id: string;
369
+ title: string;
370
+ } | undefined;
370
371
  list_reply?: {
371
- id?: string;
372
- title?: string;
373
- };
374
- };
372
+ id: string;
373
+ title: string;
374
+ } | undefined;
375
+ } | undefined;
375
376
  order?: {
376
- catalog_id?: string;
377
- text?: string;
378
- product_items?: {
379
- product_retailer_id?: string;
380
- quantity?: number;
381
- item_price?: number;
382
- currency?: string;
377
+ catalog_id: string;
378
+ product_items: {
379
+ product_retailer_id: string;
380
+ quantity: number;
381
+ item_price: number;
382
+ currency: string;
383
383
  }[];
384
- };
384
+ text?: string | undefined;
385
+ } | undefined;
385
386
  context?: {
386
- id?: string;
387
- from?: string;
387
+ id?: string | undefined;
388
+ from?: string | undefined;
388
389
  referred_product?: {
389
- catalog_id?: string;
390
- product_retailer_id?: string;
391
- };
392
- };
393
- timestamp?: string;
390
+ catalog_id: string;
391
+ product_retailer_id: string;
392
+ } | undefined;
393
+ } | undefined;
394
394
  }, {
395
- id?: string;
396
- type?: string;
395
+ id: string;
396
+ type: string;
397
+ from: string;
398
+ timestamp: string;
397
399
  text?: {
398
- body?: string;
399
- };
400
- from?: string;
400
+ body: string;
401
+ } | undefined;
401
402
  image?: {
402
- id?: string;
403
- mime_type?: string;
404
- sha256?: string;
405
- caption?: string;
406
- filename?: string;
407
- };
403
+ id: string;
404
+ mime_type: string;
405
+ sha256?: string | undefined;
406
+ caption?: string | undefined;
407
+ filename?: string | undefined;
408
+ } | undefined;
408
409
  audio?: {
409
- id?: string;
410
- mime_type?: string;
411
- sha256?: string;
412
- caption?: string;
413
- filename?: string;
414
- };
410
+ id: string;
411
+ mime_type: string;
412
+ sha256?: string | undefined;
413
+ caption?: string | undefined;
414
+ filename?: string | undefined;
415
+ } | undefined;
415
416
  video?: {
416
- id?: string;
417
- mime_type?: string;
418
- sha256?: string;
419
- caption?: string;
420
- filename?: string;
421
- };
417
+ id: string;
418
+ mime_type: string;
419
+ sha256?: string | undefined;
420
+ caption?: string | undefined;
421
+ filename?: string | undefined;
422
+ } | undefined;
422
423
  document?: {
423
- id?: string;
424
- mime_type?: string;
425
- sha256?: string;
426
- caption?: string;
427
- filename?: string;
428
- };
424
+ id: string;
425
+ mime_type: string;
426
+ sha256?: string | undefined;
427
+ caption?: string | undefined;
428
+ filename?: string | undefined;
429
+ } | undefined;
429
430
  sticker?: {
430
- id?: string;
431
- mime_type?: string;
432
- sha256?: string;
433
- caption?: string;
434
- filename?: string;
435
- };
431
+ id: string;
432
+ mime_type: string;
433
+ sha256?: string | undefined;
434
+ caption?: string | undefined;
435
+ filename?: string | undefined;
436
+ } | undefined;
436
437
  interactive?: {
437
- type?: string;
438
+ type: string;
438
439
  button_reply?: {
439
- id?: string;
440
- title?: string;
441
- };
440
+ id: string;
441
+ title: string;
442
+ } | undefined;
442
443
  list_reply?: {
443
- id?: string;
444
- title?: string;
445
- };
446
- };
444
+ id: string;
445
+ title: string;
446
+ } | undefined;
447
+ } | undefined;
447
448
  order?: {
448
- catalog_id?: string;
449
- text?: string;
450
- product_items?: {
451
- product_retailer_id?: string;
452
- quantity?: number;
453
- item_price?: number;
454
- currency?: string;
449
+ catalog_id: string;
450
+ product_items: {
451
+ product_retailer_id: string;
452
+ quantity: number;
453
+ item_price: number;
454
+ currency: string;
455
455
  }[];
456
- };
456
+ text?: string | undefined;
457
+ } | undefined;
457
458
  context?: {
458
- id?: string;
459
- from?: string;
459
+ id?: string | undefined;
460
+ from?: string | undefined;
460
461
  referred_product?: {
461
- catalog_id?: string;
462
- product_retailer_id?: string;
463
- };
464
- };
465
- timestamp?: string;
462
+ catalog_id: string;
463
+ product_retailer_id: string;
464
+ } | undefined;
465
+ } | undefined;
466
466
  }>;
467
467
  type WhatsAppMessage = z.infer<typeof whatsAppMessageSchema>;
468
468
  declare const whatsAppMessageEchoSchema: z.ZodObject<{
@@ -471,15 +471,15 @@ declare const whatsAppMessageEchoSchema: z.ZodObject<{
471
471
  timestamp: z.ZodString;
472
472
  type: z.ZodString;
473
473
  }, "strip", z.ZodTypeAny, {
474
- id?: string;
475
- type?: string;
476
- from?: string;
477
- timestamp?: string;
474
+ id: string;
475
+ type: string;
476
+ from: string;
477
+ timestamp: string;
478
478
  }, {
479
- id?: string;
480
- type?: string;
481
- from?: string;
482
- timestamp?: string;
479
+ id: string;
480
+ type: string;
481
+ from: string;
482
+ timestamp: string;
483
483
  }>;
484
484
  type WhatsAppMessageEcho = z.infer<typeof whatsAppMessageEchoSchema>;
485
485
  declare const whatsAppMessageStatusSchema: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
@@ -490,15 +490,15 @@ declare const whatsAppStatusSchema: z.ZodObject<{
490
490
  timestamp: z.ZodString;
491
491
  recipient_id: z.ZodOptional<z.ZodString>;
492
492
  }, "strip", z.ZodTypeAny, {
493
- id?: string;
494
- status?: "sent" | "delivered" | "read" | "failed";
495
- timestamp?: string;
496
- recipient_id?: string;
493
+ id: string;
494
+ status: "sent" | "delivered" | "read" | "failed";
495
+ timestamp: string;
496
+ recipient_id?: string | undefined;
497
497
  }, {
498
- id?: string;
499
- status?: "sent" | "delivered" | "read" | "failed";
500
- timestamp?: string;
501
- recipient_id?: string;
498
+ id: string;
499
+ status: "sent" | "delivered" | "read" | "failed";
500
+ timestamp: string;
501
+ recipient_id?: string | undefined;
502
502
  }>;
503
503
  type WhatsAppStatus = z.infer<typeof whatsAppStatusSchema>;
504
504
  declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
@@ -515,9 +515,9 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
515
515
  text: z.ZodOptional<z.ZodObject<{
516
516
  body: z.ZodString;
517
517
  }, "strip", z.ZodTypeAny, {
518
- body?: string;
518
+ body: string;
519
519
  }, {
520
- body?: string;
520
+ body: string;
521
521
  }>>;
522
522
  image: z.ZodOptional<z.ZodObject<{
523
523
  id: z.ZodString;
@@ -526,17 +526,17 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
526
526
  caption: z.ZodOptional<z.ZodString>;
527
527
  filename: z.ZodOptional<z.ZodString>;
528
528
  }, "strip", z.ZodTypeAny, {
529
- id?: string;
530
- mime_type?: string;
531
- sha256?: string;
532
- caption?: string;
533
- filename?: string;
529
+ id: string;
530
+ mime_type: string;
531
+ sha256?: string | undefined;
532
+ caption?: string | undefined;
533
+ filename?: string | undefined;
534
534
  }, {
535
- id?: string;
536
- mime_type?: string;
537
- sha256?: string;
538
- caption?: string;
539
- filename?: string;
535
+ id: string;
536
+ mime_type: string;
537
+ sha256?: string | undefined;
538
+ caption?: string | undefined;
539
+ filename?: string | undefined;
540
540
  }>>;
541
541
  audio: z.ZodOptional<z.ZodObject<{
542
542
  id: z.ZodString;
@@ -545,17 +545,17 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
545
545
  caption: z.ZodOptional<z.ZodString>;
546
546
  filename: z.ZodOptional<z.ZodString>;
547
547
  }, "strip", z.ZodTypeAny, {
548
- id?: string;
549
- mime_type?: string;
550
- sha256?: string;
551
- caption?: string;
552
- filename?: string;
548
+ id: string;
549
+ mime_type: string;
550
+ sha256?: string | undefined;
551
+ caption?: string | undefined;
552
+ filename?: string | undefined;
553
553
  }, {
554
- id?: string;
555
- mime_type?: string;
556
- sha256?: string;
557
- caption?: string;
558
- filename?: string;
554
+ id: string;
555
+ mime_type: string;
556
+ sha256?: string | undefined;
557
+ caption?: string | undefined;
558
+ filename?: string | undefined;
559
559
  }>>;
560
560
  video: z.ZodOptional<z.ZodObject<{
561
561
  id: z.ZodString;
@@ -564,17 +564,17 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
564
564
  caption: z.ZodOptional<z.ZodString>;
565
565
  filename: z.ZodOptional<z.ZodString>;
566
566
  }, "strip", z.ZodTypeAny, {
567
- id?: string;
568
- mime_type?: string;
569
- sha256?: string;
570
- caption?: string;
571
- filename?: string;
567
+ id: string;
568
+ mime_type: string;
569
+ sha256?: string | undefined;
570
+ caption?: string | undefined;
571
+ filename?: string | undefined;
572
572
  }, {
573
- id?: string;
574
- mime_type?: string;
575
- sha256?: string;
576
- caption?: string;
577
- filename?: string;
573
+ id: string;
574
+ mime_type: string;
575
+ sha256?: string | undefined;
576
+ caption?: string | undefined;
577
+ filename?: string | undefined;
578
578
  }>>;
579
579
  document: z.ZodOptional<z.ZodObject<{
580
580
  id: z.ZodString;
@@ -583,17 +583,17 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
583
583
  caption: z.ZodOptional<z.ZodString>;
584
584
  filename: z.ZodOptional<z.ZodString>;
585
585
  }, "strip", z.ZodTypeAny, {
586
- id?: string;
587
- mime_type?: string;
588
- sha256?: string;
589
- caption?: string;
590
- filename?: string;
586
+ id: string;
587
+ mime_type: string;
588
+ sha256?: string | undefined;
589
+ caption?: string | undefined;
590
+ filename?: string | undefined;
591
591
  }, {
592
- id?: string;
593
- mime_type?: string;
594
- sha256?: string;
595
- caption?: string;
596
- filename?: string;
592
+ id: string;
593
+ mime_type: string;
594
+ sha256?: string | undefined;
595
+ caption?: string | undefined;
596
+ filename?: string | undefined;
597
597
  }>>;
598
598
  sticker: z.ZodOptional<z.ZodObject<{
599
599
  id: z.ZodString;
@@ -602,17 +602,17 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
602
602
  caption: z.ZodOptional<z.ZodString>;
603
603
  filename: z.ZodOptional<z.ZodString>;
604
604
  }, "strip", z.ZodTypeAny, {
605
- id?: string;
606
- mime_type?: string;
607
- sha256?: string;
608
- caption?: string;
609
- filename?: string;
605
+ id: string;
606
+ mime_type: string;
607
+ sha256?: string | undefined;
608
+ caption?: string | undefined;
609
+ filename?: string | undefined;
610
610
  }, {
611
- id?: string;
612
- mime_type?: string;
613
- sha256?: string;
614
- caption?: string;
615
- filename?: string;
611
+ id: string;
612
+ mime_type: string;
613
+ sha256?: string | undefined;
614
+ caption?: string | undefined;
615
+ filename?: string | undefined;
616
616
  }>>;
617
617
  interactive: z.ZodOptional<z.ZodObject<{
618
618
  type: z.ZodString;
@@ -620,42 +620,42 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
620
620
  id: z.ZodString;
621
621
  title: z.ZodString;
622
622
  }, "strip", z.ZodTypeAny, {
623
- id?: string;
624
- title?: string;
623
+ id: string;
624
+ title: string;
625
625
  }, {
626
- id?: string;
627
- title?: string;
626
+ id: string;
627
+ title: string;
628
628
  }>>;
629
629
  list_reply: z.ZodOptional<z.ZodObject<{
630
630
  id: z.ZodString;
631
631
  title: z.ZodString;
632
632
  }, "strip", z.ZodTypeAny, {
633
- id?: string;
634
- title?: string;
633
+ id: string;
634
+ title: string;
635
635
  }, {
636
- id?: string;
637
- title?: string;
636
+ id: string;
637
+ title: string;
638
638
  }>>;
639
639
  }, "strip", z.ZodTypeAny, {
640
- type?: string;
640
+ type: string;
641
641
  button_reply?: {
642
- id?: string;
643
- title?: string;
644
- };
642
+ id: string;
643
+ title: string;
644
+ } | undefined;
645
645
  list_reply?: {
646
- id?: string;
647
- title?: string;
648
- };
646
+ id: string;
647
+ title: string;
648
+ } | undefined;
649
649
  }, {
650
- type?: string;
650
+ type: string;
651
651
  button_reply?: {
652
- id?: string;
653
- title?: string;
654
- };
652
+ id: string;
653
+ title: string;
654
+ } | undefined;
655
655
  list_reply?: {
656
- id?: string;
657
- title?: string;
658
- };
656
+ id: string;
657
+ title: string;
658
+ } | undefined;
659
659
  }>>;
660
660
  order: z.ZodOptional<z.ZodObject<{
661
661
  catalog_id: z.ZodString;
@@ -666,34 +666,34 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
666
666
  item_price: z.ZodNumber;
667
667
  currency: z.ZodString;
668
668
  }, "strip", z.ZodTypeAny, {
669
- product_retailer_id?: string;
670
- quantity?: number;
671
- item_price?: number;
672
- currency?: string;
669
+ product_retailer_id: string;
670
+ quantity: number;
671
+ item_price: number;
672
+ currency: string;
673
673
  }, {
674
- product_retailer_id?: string;
675
- quantity?: number;
676
- item_price?: number;
677
- currency?: string;
674
+ product_retailer_id: string;
675
+ quantity: number;
676
+ item_price: number;
677
+ currency: string;
678
678
  }>, "many">;
679
679
  }, "strip", z.ZodTypeAny, {
680
- catalog_id?: string;
681
- text?: string;
682
- product_items?: {
683
- product_retailer_id?: string;
684
- quantity?: number;
685
- item_price?: number;
686
- currency?: string;
680
+ catalog_id: string;
681
+ product_items: {
682
+ product_retailer_id: string;
683
+ quantity: number;
684
+ item_price: number;
685
+ currency: string;
687
686
  }[];
687
+ text?: string | undefined;
688
688
  }, {
689
- catalog_id?: string;
690
- text?: string;
691
- product_items?: {
692
- product_retailer_id?: string;
693
- quantity?: number;
694
- item_price?: number;
695
- currency?: string;
689
+ catalog_id: string;
690
+ product_items: {
691
+ product_retailer_id: string;
692
+ quantity: number;
693
+ item_price: number;
694
+ currency: string;
696
695
  }[];
696
+ text?: string | undefined;
697
697
  }>>;
698
698
  context: z.ZodOptional<z.ZodObject<{
699
699
  from: z.ZodOptional<z.ZodString>;
@@ -702,172 +702,172 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
702
702
  catalog_id: z.ZodString;
703
703
  product_retailer_id: z.ZodString;
704
704
  }, "strip", z.ZodTypeAny, {
705
- catalog_id?: string;
706
- product_retailer_id?: string;
705
+ catalog_id: string;
706
+ product_retailer_id: string;
707
707
  }, {
708
- catalog_id?: string;
709
- product_retailer_id?: string;
708
+ catalog_id: string;
709
+ product_retailer_id: string;
710
710
  }>>;
711
711
  }, "strip", z.ZodTypeAny, {
712
- id?: string;
713
- from?: string;
712
+ id?: string | undefined;
713
+ from?: string | undefined;
714
714
  referred_product?: {
715
- catalog_id?: string;
716
- product_retailer_id?: string;
717
- };
715
+ catalog_id: string;
716
+ product_retailer_id: string;
717
+ } | undefined;
718
718
  }, {
719
- id?: string;
720
- from?: string;
719
+ id?: string | undefined;
720
+ from?: string | undefined;
721
721
  referred_product?: {
722
- catalog_id?: string;
723
- product_retailer_id?: string;
724
- };
722
+ catalog_id: string;
723
+ product_retailer_id: string;
724
+ } | undefined;
725
725
  }>>;
726
726
  timestamp: z.ZodString;
727
727
  }, "strip", z.ZodTypeAny, {
728
- id?: string;
729
- type?: string;
728
+ id: string;
729
+ type: string;
730
+ from: string;
731
+ timestamp: string;
730
732
  text?: {
731
- body?: string;
732
- };
733
- from?: string;
733
+ body: string;
734
+ } | undefined;
734
735
  image?: {
735
- id?: string;
736
- mime_type?: string;
737
- sha256?: string;
738
- caption?: string;
739
- filename?: string;
740
- };
736
+ id: string;
737
+ mime_type: string;
738
+ sha256?: string | undefined;
739
+ caption?: string | undefined;
740
+ filename?: string | undefined;
741
+ } | undefined;
741
742
  audio?: {
742
- id?: string;
743
- mime_type?: string;
744
- sha256?: string;
745
- caption?: string;
746
- filename?: string;
747
- };
743
+ id: string;
744
+ mime_type: string;
745
+ sha256?: string | undefined;
746
+ caption?: string | undefined;
747
+ filename?: string | undefined;
748
+ } | undefined;
748
749
  video?: {
749
- id?: string;
750
- mime_type?: string;
751
- sha256?: string;
752
- caption?: string;
753
- filename?: string;
754
- };
750
+ id: string;
751
+ mime_type: string;
752
+ sha256?: string | undefined;
753
+ caption?: string | undefined;
754
+ filename?: string | undefined;
755
+ } | undefined;
755
756
  document?: {
756
- id?: string;
757
- mime_type?: string;
758
- sha256?: string;
759
- caption?: string;
760
- filename?: string;
761
- };
757
+ id: string;
758
+ mime_type: string;
759
+ sha256?: string | undefined;
760
+ caption?: string | undefined;
761
+ filename?: string | undefined;
762
+ } | undefined;
762
763
  sticker?: {
763
- id?: string;
764
- mime_type?: string;
765
- sha256?: string;
766
- caption?: string;
767
- filename?: string;
768
- };
764
+ id: string;
765
+ mime_type: string;
766
+ sha256?: string | undefined;
767
+ caption?: string | undefined;
768
+ filename?: string | undefined;
769
+ } | undefined;
769
770
  interactive?: {
770
- type?: string;
771
+ type: string;
771
772
  button_reply?: {
772
- id?: string;
773
- title?: string;
774
- };
773
+ id: string;
774
+ title: string;
775
+ } | undefined;
775
776
  list_reply?: {
776
- id?: string;
777
- title?: string;
778
- };
779
- };
777
+ id: string;
778
+ title: string;
779
+ } | undefined;
780
+ } | undefined;
780
781
  order?: {
781
- catalog_id?: string;
782
- text?: string;
783
- product_items?: {
784
- product_retailer_id?: string;
785
- quantity?: number;
786
- item_price?: number;
787
- currency?: string;
782
+ catalog_id: string;
783
+ product_items: {
784
+ product_retailer_id: string;
785
+ quantity: number;
786
+ item_price: number;
787
+ currency: string;
788
788
  }[];
789
- };
789
+ text?: string | undefined;
790
+ } | undefined;
790
791
  context?: {
791
- id?: string;
792
- from?: string;
792
+ id?: string | undefined;
793
+ from?: string | undefined;
793
794
  referred_product?: {
794
- catalog_id?: string;
795
- product_retailer_id?: string;
796
- };
797
- };
798
- timestamp?: string;
795
+ catalog_id: string;
796
+ product_retailer_id: string;
797
+ } | undefined;
798
+ } | undefined;
799
799
  }, {
800
- id?: string;
801
- type?: string;
800
+ id: string;
801
+ type: string;
802
+ from: string;
803
+ timestamp: string;
802
804
  text?: {
803
- body?: string;
804
- };
805
- from?: string;
805
+ body: string;
806
+ } | undefined;
806
807
  image?: {
807
- id?: string;
808
- mime_type?: string;
809
- sha256?: string;
810
- caption?: string;
811
- filename?: string;
812
- };
808
+ id: string;
809
+ mime_type: string;
810
+ sha256?: string | undefined;
811
+ caption?: string | undefined;
812
+ filename?: string | undefined;
813
+ } | undefined;
813
814
  audio?: {
814
- id?: string;
815
- mime_type?: string;
816
- sha256?: string;
817
- caption?: string;
818
- filename?: string;
819
- };
815
+ id: string;
816
+ mime_type: string;
817
+ sha256?: string | undefined;
818
+ caption?: string | undefined;
819
+ filename?: string | undefined;
820
+ } | undefined;
820
821
  video?: {
821
- id?: string;
822
- mime_type?: string;
823
- sha256?: string;
824
- caption?: string;
825
- filename?: string;
826
- };
822
+ id: string;
823
+ mime_type: string;
824
+ sha256?: string | undefined;
825
+ caption?: string | undefined;
826
+ filename?: string | undefined;
827
+ } | undefined;
827
828
  document?: {
828
- id?: string;
829
- mime_type?: string;
830
- sha256?: string;
831
- caption?: string;
832
- filename?: string;
833
- };
829
+ id: string;
830
+ mime_type: string;
831
+ sha256?: string | undefined;
832
+ caption?: string | undefined;
833
+ filename?: string | undefined;
834
+ } | undefined;
834
835
  sticker?: {
835
- id?: string;
836
- mime_type?: string;
837
- sha256?: string;
838
- caption?: string;
839
- filename?: string;
840
- };
836
+ id: string;
837
+ mime_type: string;
838
+ sha256?: string | undefined;
839
+ caption?: string | undefined;
840
+ filename?: string | undefined;
841
+ } | undefined;
841
842
  interactive?: {
842
- type?: string;
843
+ type: string;
843
844
  button_reply?: {
844
- id?: string;
845
- title?: string;
846
- };
845
+ id: string;
846
+ title: string;
847
+ } | undefined;
847
848
  list_reply?: {
848
- id?: string;
849
- title?: string;
850
- };
851
- };
849
+ id: string;
850
+ title: string;
851
+ } | undefined;
852
+ } | undefined;
852
853
  order?: {
853
- catalog_id?: string;
854
- text?: string;
855
- product_items?: {
856
- product_retailer_id?: string;
857
- quantity?: number;
858
- item_price?: number;
859
- currency?: string;
854
+ catalog_id: string;
855
+ product_items: {
856
+ product_retailer_id: string;
857
+ quantity: number;
858
+ item_price: number;
859
+ currency: string;
860
860
  }[];
861
- };
861
+ text?: string | undefined;
862
+ } | undefined;
862
863
  context?: {
863
- id?: string;
864
- from?: string;
864
+ id?: string | undefined;
865
+ from?: string | undefined;
865
866
  referred_product?: {
866
- catalog_id?: string;
867
- product_retailer_id?: string;
868
- };
869
- };
870
- timestamp?: string;
867
+ catalog_id: string;
868
+ product_retailer_id: string;
869
+ } | undefined;
870
+ } | undefined;
871
871
  }>, "many">>;
872
872
  message_echoes: z.ZodOptional<z.ZodArray<z.ZodObject<{
873
873
  id: z.ZodString;
@@ -875,15 +875,15 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
875
875
  timestamp: z.ZodString;
876
876
  type: z.ZodString;
877
877
  }, "strip", z.ZodTypeAny, {
878
- id?: string;
879
- type?: string;
880
- from?: string;
881
- timestamp?: string;
878
+ id: string;
879
+ type: string;
880
+ from: string;
881
+ timestamp: string;
882
882
  }, {
883
- id?: string;
884
- type?: string;
885
- from?: string;
886
- timestamp?: string;
883
+ id: string;
884
+ type: string;
885
+ from: string;
886
+ timestamp: string;
887
887
  }>, "many">>;
888
888
  statuses: z.ZodOptional<z.ZodArray<z.ZodObject<{
889
889
  id: z.ZodString;
@@ -891,784 +891,784 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
891
891
  timestamp: z.ZodString;
892
892
  recipient_id: z.ZodOptional<z.ZodString>;
893
893
  }, "strip", z.ZodTypeAny, {
894
- id?: string;
895
- status?: "sent" | "delivered" | "read" | "failed";
896
- timestamp?: string;
897
- recipient_id?: string;
894
+ id: string;
895
+ status: "sent" | "delivered" | "read" | "failed";
896
+ timestamp: string;
897
+ recipient_id?: string | undefined;
898
898
  }, {
899
- id?: string;
900
- status?: "sent" | "delivered" | "read" | "failed";
901
- timestamp?: string;
902
- recipient_id?: string;
899
+ id: string;
900
+ status: "sent" | "delivered" | "read" | "failed";
901
+ timestamp: string;
902
+ recipient_id?: string | undefined;
903
903
  }>, "many">>;
904
904
  metadata: z.ZodOptional<z.ZodObject<{
905
905
  display_phone_number: z.ZodString;
906
906
  phone_number_id: z.ZodString;
907
907
  }, "strip", z.ZodTypeAny, {
908
- display_phone_number?: string;
909
- phone_number_id?: string;
908
+ display_phone_number: string;
909
+ phone_number_id: string;
910
910
  }, {
911
- display_phone_number?: string;
912
- phone_number_id?: string;
911
+ display_phone_number: string;
912
+ phone_number_id: string;
913
913
  }>>;
914
914
  }, "strip", z.ZodTypeAny, {
915
- messaging_product?: string;
915
+ messaging_product: string;
916
916
  messages?: {
917
- id?: string;
918
- type?: string;
917
+ id: string;
918
+ type: string;
919
+ from: string;
920
+ timestamp: string;
919
921
  text?: {
920
- body?: string;
921
- };
922
- from?: string;
922
+ body: string;
923
+ } | undefined;
923
924
  image?: {
924
- id?: string;
925
- mime_type?: string;
926
- sha256?: string;
927
- caption?: string;
928
- filename?: string;
929
- };
925
+ id: string;
926
+ mime_type: string;
927
+ sha256?: string | undefined;
928
+ caption?: string | undefined;
929
+ filename?: string | undefined;
930
+ } | undefined;
930
931
  audio?: {
931
- id?: string;
932
- mime_type?: string;
933
- sha256?: string;
934
- caption?: string;
935
- filename?: string;
936
- };
932
+ id: string;
933
+ mime_type: string;
934
+ sha256?: string | undefined;
935
+ caption?: string | undefined;
936
+ filename?: string | undefined;
937
+ } | undefined;
937
938
  video?: {
938
- id?: string;
939
- mime_type?: string;
940
- sha256?: string;
941
- caption?: string;
942
- filename?: string;
943
- };
939
+ id: string;
940
+ mime_type: string;
941
+ sha256?: string | undefined;
942
+ caption?: string | undefined;
943
+ filename?: string | undefined;
944
+ } | undefined;
944
945
  document?: {
945
- id?: string;
946
- mime_type?: string;
947
- sha256?: string;
948
- caption?: string;
949
- filename?: string;
950
- };
946
+ id: string;
947
+ mime_type: string;
948
+ sha256?: string | undefined;
949
+ caption?: string | undefined;
950
+ filename?: string | undefined;
951
+ } | undefined;
951
952
  sticker?: {
952
- id?: string;
953
- mime_type?: string;
954
- sha256?: string;
955
- caption?: string;
956
- filename?: string;
957
- };
953
+ id: string;
954
+ mime_type: string;
955
+ sha256?: string | undefined;
956
+ caption?: string | undefined;
957
+ filename?: string | undefined;
958
+ } | undefined;
958
959
  interactive?: {
959
- type?: string;
960
+ type: string;
960
961
  button_reply?: {
961
- id?: string;
962
- title?: string;
963
- };
962
+ id: string;
963
+ title: string;
964
+ } | undefined;
964
965
  list_reply?: {
965
- id?: string;
966
- title?: string;
967
- };
968
- };
966
+ id: string;
967
+ title: string;
968
+ } | undefined;
969
+ } | undefined;
969
970
  order?: {
970
- catalog_id?: string;
971
- text?: string;
972
- product_items?: {
973
- product_retailer_id?: string;
974
- quantity?: number;
975
- item_price?: number;
976
- currency?: string;
971
+ catalog_id: string;
972
+ product_items: {
973
+ product_retailer_id: string;
974
+ quantity: number;
975
+ item_price: number;
976
+ currency: string;
977
977
  }[];
978
- };
978
+ text?: string | undefined;
979
+ } | undefined;
979
980
  context?: {
980
- id?: string;
981
- from?: string;
981
+ id?: string | undefined;
982
+ from?: string | undefined;
982
983
  referred_product?: {
983
- catalog_id?: string;
984
- product_retailer_id?: string;
985
- };
986
- };
987
- timestamp?: string;
988
- }[];
984
+ catalog_id: string;
985
+ product_retailer_id: string;
986
+ } | undefined;
987
+ } | undefined;
988
+ }[] | undefined;
989
989
  message_echoes?: {
990
- id?: string;
991
- type?: string;
992
- from?: string;
993
- timestamp?: string;
994
- }[];
990
+ id: string;
991
+ type: string;
992
+ from: string;
993
+ timestamp: string;
994
+ }[] | undefined;
995
995
  statuses?: {
996
- id?: string;
997
- status?: "sent" | "delivered" | "read" | "failed";
998
- timestamp?: string;
999
- recipient_id?: string;
1000
- }[];
996
+ id: string;
997
+ status: "sent" | "delivered" | "read" | "failed";
998
+ timestamp: string;
999
+ recipient_id?: string | undefined;
1000
+ }[] | undefined;
1001
1001
  metadata?: {
1002
- display_phone_number?: string;
1003
- phone_number_id?: string;
1004
- };
1002
+ display_phone_number: string;
1003
+ phone_number_id: string;
1004
+ } | undefined;
1005
1005
  }, {
1006
- messaging_product?: string;
1006
+ messaging_product: string;
1007
1007
  messages?: {
1008
- id?: string;
1009
- type?: string;
1008
+ id: string;
1009
+ type: string;
1010
+ from: string;
1011
+ timestamp: string;
1010
1012
  text?: {
1011
- body?: string;
1012
- };
1013
- from?: string;
1013
+ body: string;
1014
+ } | undefined;
1014
1015
  image?: {
1015
- id?: string;
1016
- mime_type?: string;
1017
- sha256?: string;
1018
- caption?: string;
1019
- filename?: string;
1020
- };
1016
+ id: string;
1017
+ mime_type: string;
1018
+ sha256?: string | undefined;
1019
+ caption?: string | undefined;
1020
+ filename?: string | undefined;
1021
+ } | undefined;
1021
1022
  audio?: {
1022
- id?: string;
1023
- mime_type?: string;
1024
- sha256?: string;
1025
- caption?: string;
1026
- filename?: string;
1027
- };
1023
+ id: string;
1024
+ mime_type: string;
1025
+ sha256?: string | undefined;
1026
+ caption?: string | undefined;
1027
+ filename?: string | undefined;
1028
+ } | undefined;
1028
1029
  video?: {
1029
- id?: string;
1030
- mime_type?: string;
1031
- sha256?: string;
1032
- caption?: string;
1033
- filename?: string;
1034
- };
1030
+ id: string;
1031
+ mime_type: string;
1032
+ sha256?: string | undefined;
1033
+ caption?: string | undefined;
1034
+ filename?: string | undefined;
1035
+ } | undefined;
1035
1036
  document?: {
1036
- id?: string;
1037
- mime_type?: string;
1038
- sha256?: string;
1039
- caption?: string;
1040
- filename?: string;
1041
- };
1037
+ id: string;
1038
+ mime_type: string;
1039
+ sha256?: string | undefined;
1040
+ caption?: string | undefined;
1041
+ filename?: string | undefined;
1042
+ } | undefined;
1042
1043
  sticker?: {
1043
- id?: string;
1044
- mime_type?: string;
1045
- sha256?: string;
1046
- caption?: string;
1047
- filename?: string;
1048
- };
1044
+ id: string;
1045
+ mime_type: string;
1046
+ sha256?: string | undefined;
1047
+ caption?: string | undefined;
1048
+ filename?: string | undefined;
1049
+ } | undefined;
1049
1050
  interactive?: {
1050
- type?: string;
1051
+ type: string;
1051
1052
  button_reply?: {
1052
- id?: string;
1053
- title?: string;
1054
- };
1053
+ id: string;
1054
+ title: string;
1055
+ } | undefined;
1055
1056
  list_reply?: {
1056
- id?: string;
1057
- title?: string;
1058
- };
1059
- };
1057
+ id: string;
1058
+ title: string;
1059
+ } | undefined;
1060
+ } | undefined;
1060
1061
  order?: {
1061
- catalog_id?: string;
1062
- text?: string;
1063
- product_items?: {
1064
- product_retailer_id?: string;
1065
- quantity?: number;
1066
- item_price?: number;
1067
- currency?: string;
1062
+ catalog_id: string;
1063
+ product_items: {
1064
+ product_retailer_id: string;
1065
+ quantity: number;
1066
+ item_price: number;
1067
+ currency: string;
1068
1068
  }[];
1069
- };
1069
+ text?: string | undefined;
1070
+ } | undefined;
1070
1071
  context?: {
1071
- id?: string;
1072
- from?: string;
1072
+ id?: string | undefined;
1073
+ from?: string | undefined;
1073
1074
  referred_product?: {
1074
- catalog_id?: string;
1075
- product_retailer_id?: string;
1076
- };
1077
- };
1078
- timestamp?: string;
1079
- }[];
1075
+ catalog_id: string;
1076
+ product_retailer_id: string;
1077
+ } | undefined;
1078
+ } | undefined;
1079
+ }[] | undefined;
1080
1080
  message_echoes?: {
1081
- id?: string;
1082
- type?: string;
1083
- from?: string;
1084
- timestamp?: string;
1085
- }[];
1081
+ id: string;
1082
+ type: string;
1083
+ from: string;
1084
+ timestamp: string;
1085
+ }[] | undefined;
1086
1086
  statuses?: {
1087
- id?: string;
1088
- status?: "sent" | "delivered" | "read" | "failed";
1089
- timestamp?: string;
1090
- recipient_id?: string;
1091
- }[];
1087
+ id: string;
1088
+ status: "sent" | "delivered" | "read" | "failed";
1089
+ timestamp: string;
1090
+ recipient_id?: string | undefined;
1091
+ }[] | undefined;
1092
1092
  metadata?: {
1093
- display_phone_number?: string;
1094
- phone_number_id?: string;
1095
- };
1093
+ display_phone_number: string;
1094
+ phone_number_id: string;
1095
+ } | undefined;
1096
1096
  }>;
1097
1097
  }, "strip", z.ZodTypeAny, {
1098
- value?: {
1099
- messaging_product?: string;
1098
+ value: {
1099
+ messaging_product: string;
1100
1100
  messages?: {
1101
- id?: string;
1102
- type?: string;
1101
+ id: string;
1102
+ type: string;
1103
+ from: string;
1104
+ timestamp: string;
1103
1105
  text?: {
1104
- body?: string;
1105
- };
1106
- from?: string;
1106
+ body: string;
1107
+ } | undefined;
1107
1108
  image?: {
1108
- id?: string;
1109
- mime_type?: string;
1110
- sha256?: string;
1111
- caption?: string;
1112
- filename?: string;
1113
- };
1109
+ id: string;
1110
+ mime_type: string;
1111
+ sha256?: string | undefined;
1112
+ caption?: string | undefined;
1113
+ filename?: string | undefined;
1114
+ } | undefined;
1114
1115
  audio?: {
1115
- id?: string;
1116
- mime_type?: string;
1117
- sha256?: string;
1118
- caption?: string;
1119
- filename?: string;
1120
- };
1116
+ id: string;
1117
+ mime_type: string;
1118
+ sha256?: string | undefined;
1119
+ caption?: string | undefined;
1120
+ filename?: string | undefined;
1121
+ } | undefined;
1121
1122
  video?: {
1122
- id?: string;
1123
- mime_type?: string;
1124
- sha256?: string;
1125
- caption?: string;
1126
- filename?: string;
1127
- };
1123
+ id: string;
1124
+ mime_type: string;
1125
+ sha256?: string | undefined;
1126
+ caption?: string | undefined;
1127
+ filename?: string | undefined;
1128
+ } | undefined;
1128
1129
  document?: {
1129
- id?: string;
1130
- mime_type?: string;
1131
- sha256?: string;
1132
- caption?: string;
1133
- filename?: string;
1134
- };
1130
+ id: string;
1131
+ mime_type: string;
1132
+ sha256?: string | undefined;
1133
+ caption?: string | undefined;
1134
+ filename?: string | undefined;
1135
+ } | undefined;
1135
1136
  sticker?: {
1136
- id?: string;
1137
- mime_type?: string;
1138
- sha256?: string;
1139
- caption?: string;
1140
- filename?: string;
1141
- };
1137
+ id: string;
1138
+ mime_type: string;
1139
+ sha256?: string | undefined;
1140
+ caption?: string | undefined;
1141
+ filename?: string | undefined;
1142
+ } | undefined;
1142
1143
  interactive?: {
1143
- type?: string;
1144
+ type: string;
1144
1145
  button_reply?: {
1145
- id?: string;
1146
- title?: string;
1147
- };
1146
+ id: string;
1147
+ title: string;
1148
+ } | undefined;
1148
1149
  list_reply?: {
1149
- id?: string;
1150
- title?: string;
1151
- };
1152
- };
1150
+ id: string;
1151
+ title: string;
1152
+ } | undefined;
1153
+ } | undefined;
1153
1154
  order?: {
1154
- catalog_id?: string;
1155
- text?: string;
1156
- product_items?: {
1157
- product_retailer_id?: string;
1158
- quantity?: number;
1159
- item_price?: number;
1160
- currency?: string;
1155
+ catalog_id: string;
1156
+ product_items: {
1157
+ product_retailer_id: string;
1158
+ quantity: number;
1159
+ item_price: number;
1160
+ currency: string;
1161
1161
  }[];
1162
- };
1162
+ text?: string | undefined;
1163
+ } | undefined;
1163
1164
  context?: {
1164
- id?: string;
1165
- from?: string;
1165
+ id?: string | undefined;
1166
+ from?: string | undefined;
1166
1167
  referred_product?: {
1167
- catalog_id?: string;
1168
- product_retailer_id?: string;
1169
- };
1170
- };
1171
- timestamp?: string;
1172
- }[];
1168
+ catalog_id: string;
1169
+ product_retailer_id: string;
1170
+ } | undefined;
1171
+ } | undefined;
1172
+ }[] | undefined;
1173
1173
  message_echoes?: {
1174
- id?: string;
1175
- type?: string;
1176
- from?: string;
1177
- timestamp?: string;
1178
- }[];
1174
+ id: string;
1175
+ type: string;
1176
+ from: string;
1177
+ timestamp: string;
1178
+ }[] | undefined;
1179
1179
  statuses?: {
1180
- id?: string;
1181
- status?: "sent" | "delivered" | "read" | "failed";
1182
- timestamp?: string;
1183
- recipient_id?: string;
1184
- }[];
1180
+ id: string;
1181
+ status: "sent" | "delivered" | "read" | "failed";
1182
+ timestamp: string;
1183
+ recipient_id?: string | undefined;
1184
+ }[] | undefined;
1185
1185
  metadata?: {
1186
- display_phone_number?: string;
1187
- phone_number_id?: string;
1188
- };
1186
+ display_phone_number: string;
1187
+ phone_number_id: string;
1188
+ } | undefined;
1189
1189
  };
1190
1190
  }, {
1191
- value?: {
1192
- messaging_product?: string;
1191
+ value: {
1192
+ messaging_product: string;
1193
1193
  messages?: {
1194
- id?: string;
1195
- type?: string;
1194
+ id: string;
1195
+ type: string;
1196
+ from: string;
1197
+ timestamp: string;
1196
1198
  text?: {
1197
- body?: string;
1198
- };
1199
- from?: string;
1199
+ body: string;
1200
+ } | undefined;
1200
1201
  image?: {
1201
- id?: string;
1202
- mime_type?: string;
1203
- sha256?: string;
1204
- caption?: string;
1205
- filename?: string;
1206
- };
1202
+ id: string;
1203
+ mime_type: string;
1204
+ sha256?: string | undefined;
1205
+ caption?: string | undefined;
1206
+ filename?: string | undefined;
1207
+ } | undefined;
1207
1208
  audio?: {
1208
- id?: string;
1209
- mime_type?: string;
1210
- sha256?: string;
1211
- caption?: string;
1212
- filename?: string;
1213
- };
1209
+ id: string;
1210
+ mime_type: string;
1211
+ sha256?: string | undefined;
1212
+ caption?: string | undefined;
1213
+ filename?: string | undefined;
1214
+ } | undefined;
1214
1215
  video?: {
1215
- id?: string;
1216
- mime_type?: string;
1217
- sha256?: string;
1218
- caption?: string;
1219
- filename?: string;
1220
- };
1216
+ id: string;
1217
+ mime_type: string;
1218
+ sha256?: string | undefined;
1219
+ caption?: string | undefined;
1220
+ filename?: string | undefined;
1221
+ } | undefined;
1221
1222
  document?: {
1222
- id?: string;
1223
- mime_type?: string;
1224
- sha256?: string;
1225
- caption?: string;
1226
- filename?: string;
1227
- };
1223
+ id: string;
1224
+ mime_type: string;
1225
+ sha256?: string | undefined;
1226
+ caption?: string | undefined;
1227
+ filename?: string | undefined;
1228
+ } | undefined;
1228
1229
  sticker?: {
1229
- id?: string;
1230
- mime_type?: string;
1231
- sha256?: string;
1232
- caption?: string;
1233
- filename?: string;
1234
- };
1230
+ id: string;
1231
+ mime_type: string;
1232
+ sha256?: string | undefined;
1233
+ caption?: string | undefined;
1234
+ filename?: string | undefined;
1235
+ } | undefined;
1235
1236
  interactive?: {
1236
- type?: string;
1237
+ type: string;
1237
1238
  button_reply?: {
1238
- id?: string;
1239
- title?: string;
1240
- };
1239
+ id: string;
1240
+ title: string;
1241
+ } | undefined;
1241
1242
  list_reply?: {
1242
- id?: string;
1243
- title?: string;
1244
- };
1245
- };
1243
+ id: string;
1244
+ title: string;
1245
+ } | undefined;
1246
+ } | undefined;
1246
1247
  order?: {
1247
- catalog_id?: string;
1248
- text?: string;
1249
- product_items?: {
1250
- product_retailer_id?: string;
1251
- quantity?: number;
1252
- item_price?: number;
1253
- currency?: string;
1248
+ catalog_id: string;
1249
+ product_items: {
1250
+ product_retailer_id: string;
1251
+ quantity: number;
1252
+ item_price: number;
1253
+ currency: string;
1254
1254
  }[];
1255
- };
1255
+ text?: string | undefined;
1256
+ } | undefined;
1256
1257
  context?: {
1257
- id?: string;
1258
- from?: string;
1258
+ id?: string | undefined;
1259
+ from?: string | undefined;
1259
1260
  referred_product?: {
1260
- catalog_id?: string;
1261
- product_retailer_id?: string;
1262
- };
1263
- };
1264
- timestamp?: string;
1265
- }[];
1261
+ catalog_id: string;
1262
+ product_retailer_id: string;
1263
+ } | undefined;
1264
+ } | undefined;
1265
+ }[] | undefined;
1266
1266
  message_echoes?: {
1267
- id?: string;
1268
- type?: string;
1269
- from?: string;
1270
- timestamp?: string;
1271
- }[];
1267
+ id: string;
1268
+ type: string;
1269
+ from: string;
1270
+ timestamp: string;
1271
+ }[] | undefined;
1272
1272
  statuses?: {
1273
- id?: string;
1274
- status?: "sent" | "delivered" | "read" | "failed";
1275
- timestamp?: string;
1276
- recipient_id?: string;
1277
- }[];
1273
+ id: string;
1274
+ status: "sent" | "delivered" | "read" | "failed";
1275
+ timestamp: string;
1276
+ recipient_id?: string | undefined;
1277
+ }[] | undefined;
1278
1278
  metadata?: {
1279
- display_phone_number?: string;
1280
- phone_number_id?: string;
1281
- };
1279
+ display_phone_number: string;
1280
+ phone_number_id: string;
1281
+ } | undefined;
1282
1282
  };
1283
1283
  }>, "many">;
1284
1284
  }, "strip", z.ZodTypeAny, {
1285
- id?: string;
1286
- changes?: {
1287
- value?: {
1288
- messaging_product?: string;
1285
+ id: string;
1286
+ changes: {
1287
+ value: {
1288
+ messaging_product: string;
1289
1289
  messages?: {
1290
- id?: string;
1291
- type?: string;
1290
+ id: string;
1291
+ type: string;
1292
+ from: string;
1293
+ timestamp: string;
1292
1294
  text?: {
1293
- body?: string;
1294
- };
1295
- from?: string;
1295
+ body: string;
1296
+ } | undefined;
1296
1297
  image?: {
1297
- id?: string;
1298
- mime_type?: string;
1299
- sha256?: string;
1300
- caption?: string;
1301
- filename?: string;
1302
- };
1298
+ id: string;
1299
+ mime_type: string;
1300
+ sha256?: string | undefined;
1301
+ caption?: string | undefined;
1302
+ filename?: string | undefined;
1303
+ } | undefined;
1303
1304
  audio?: {
1304
- id?: string;
1305
- mime_type?: string;
1306
- sha256?: string;
1307
- caption?: string;
1308
- filename?: string;
1309
- };
1305
+ id: string;
1306
+ mime_type: string;
1307
+ sha256?: string | undefined;
1308
+ caption?: string | undefined;
1309
+ filename?: string | undefined;
1310
+ } | undefined;
1310
1311
  video?: {
1311
- id?: string;
1312
- mime_type?: string;
1313
- sha256?: string;
1314
- caption?: string;
1315
- filename?: string;
1316
- };
1312
+ id: string;
1313
+ mime_type: string;
1314
+ sha256?: string | undefined;
1315
+ caption?: string | undefined;
1316
+ filename?: string | undefined;
1317
+ } | undefined;
1317
1318
  document?: {
1318
- id?: string;
1319
- mime_type?: string;
1320
- sha256?: string;
1321
- caption?: string;
1322
- filename?: string;
1323
- };
1319
+ id: string;
1320
+ mime_type: string;
1321
+ sha256?: string | undefined;
1322
+ caption?: string | undefined;
1323
+ filename?: string | undefined;
1324
+ } | undefined;
1324
1325
  sticker?: {
1325
- id?: string;
1326
- mime_type?: string;
1327
- sha256?: string;
1328
- caption?: string;
1329
- filename?: string;
1330
- };
1326
+ id: string;
1327
+ mime_type: string;
1328
+ sha256?: string | undefined;
1329
+ caption?: string | undefined;
1330
+ filename?: string | undefined;
1331
+ } | undefined;
1331
1332
  interactive?: {
1332
- type?: string;
1333
+ type: string;
1333
1334
  button_reply?: {
1334
- id?: string;
1335
- title?: string;
1336
- };
1335
+ id: string;
1336
+ title: string;
1337
+ } | undefined;
1337
1338
  list_reply?: {
1338
- id?: string;
1339
- title?: string;
1340
- };
1341
- };
1339
+ id: string;
1340
+ title: string;
1341
+ } | undefined;
1342
+ } | undefined;
1342
1343
  order?: {
1343
- catalog_id?: string;
1344
- text?: string;
1345
- product_items?: {
1346
- product_retailer_id?: string;
1347
- quantity?: number;
1348
- item_price?: number;
1349
- currency?: string;
1344
+ catalog_id: string;
1345
+ product_items: {
1346
+ product_retailer_id: string;
1347
+ quantity: number;
1348
+ item_price: number;
1349
+ currency: string;
1350
1350
  }[];
1351
- };
1351
+ text?: string | undefined;
1352
+ } | undefined;
1352
1353
  context?: {
1353
- id?: string;
1354
- from?: string;
1354
+ id?: string | undefined;
1355
+ from?: string | undefined;
1355
1356
  referred_product?: {
1356
- catalog_id?: string;
1357
- product_retailer_id?: string;
1358
- };
1359
- };
1360
- timestamp?: string;
1361
- }[];
1357
+ catalog_id: string;
1358
+ product_retailer_id: string;
1359
+ } | undefined;
1360
+ } | undefined;
1361
+ }[] | undefined;
1362
1362
  message_echoes?: {
1363
- id?: string;
1364
- type?: string;
1365
- from?: string;
1366
- timestamp?: string;
1367
- }[];
1363
+ id: string;
1364
+ type: string;
1365
+ from: string;
1366
+ timestamp: string;
1367
+ }[] | undefined;
1368
1368
  statuses?: {
1369
- id?: string;
1370
- status?: "sent" | "delivered" | "read" | "failed";
1371
- timestamp?: string;
1372
- recipient_id?: string;
1373
- }[];
1369
+ id: string;
1370
+ status: "sent" | "delivered" | "read" | "failed";
1371
+ timestamp: string;
1372
+ recipient_id?: string | undefined;
1373
+ }[] | undefined;
1374
1374
  metadata?: {
1375
- display_phone_number?: string;
1376
- phone_number_id?: string;
1377
- };
1375
+ display_phone_number: string;
1376
+ phone_number_id: string;
1377
+ } | undefined;
1378
1378
  };
1379
1379
  }[];
1380
1380
  }, {
1381
- id?: string;
1382
- changes?: {
1383
- value?: {
1384
- messaging_product?: string;
1381
+ id: string;
1382
+ changes: {
1383
+ value: {
1384
+ messaging_product: string;
1385
1385
  messages?: {
1386
- id?: string;
1387
- type?: string;
1386
+ id: string;
1387
+ type: string;
1388
+ from: string;
1389
+ timestamp: string;
1388
1390
  text?: {
1389
- body?: string;
1390
- };
1391
- from?: string;
1391
+ body: string;
1392
+ } | undefined;
1392
1393
  image?: {
1393
- id?: string;
1394
- mime_type?: string;
1395
- sha256?: string;
1396
- caption?: string;
1397
- filename?: string;
1398
- };
1394
+ id: string;
1395
+ mime_type: string;
1396
+ sha256?: string | undefined;
1397
+ caption?: string | undefined;
1398
+ filename?: string | undefined;
1399
+ } | undefined;
1399
1400
  audio?: {
1400
- id?: string;
1401
- mime_type?: string;
1402
- sha256?: string;
1403
- caption?: string;
1404
- filename?: string;
1405
- };
1401
+ id: string;
1402
+ mime_type: string;
1403
+ sha256?: string | undefined;
1404
+ caption?: string | undefined;
1405
+ filename?: string | undefined;
1406
+ } | undefined;
1406
1407
  video?: {
1407
- id?: string;
1408
- mime_type?: string;
1409
- sha256?: string;
1410
- caption?: string;
1411
- filename?: string;
1412
- };
1408
+ id: string;
1409
+ mime_type: string;
1410
+ sha256?: string | undefined;
1411
+ caption?: string | undefined;
1412
+ filename?: string | undefined;
1413
+ } | undefined;
1413
1414
  document?: {
1414
- id?: string;
1415
- mime_type?: string;
1416
- sha256?: string;
1417
- caption?: string;
1418
- filename?: string;
1419
- };
1415
+ id: string;
1416
+ mime_type: string;
1417
+ sha256?: string | undefined;
1418
+ caption?: string | undefined;
1419
+ filename?: string | undefined;
1420
+ } | undefined;
1420
1421
  sticker?: {
1421
- id?: string;
1422
- mime_type?: string;
1423
- sha256?: string;
1424
- caption?: string;
1425
- filename?: string;
1426
- };
1422
+ id: string;
1423
+ mime_type: string;
1424
+ sha256?: string | undefined;
1425
+ caption?: string | undefined;
1426
+ filename?: string | undefined;
1427
+ } | undefined;
1427
1428
  interactive?: {
1428
- type?: string;
1429
+ type: string;
1429
1430
  button_reply?: {
1430
- id?: string;
1431
- title?: string;
1432
- };
1431
+ id: string;
1432
+ title: string;
1433
+ } | undefined;
1433
1434
  list_reply?: {
1434
- id?: string;
1435
- title?: string;
1436
- };
1437
- };
1435
+ id: string;
1436
+ title: string;
1437
+ } | undefined;
1438
+ } | undefined;
1438
1439
  order?: {
1439
- catalog_id?: string;
1440
- text?: string;
1441
- product_items?: {
1442
- product_retailer_id?: string;
1443
- quantity?: number;
1444
- item_price?: number;
1445
- currency?: string;
1440
+ catalog_id: string;
1441
+ product_items: {
1442
+ product_retailer_id: string;
1443
+ quantity: number;
1444
+ item_price: number;
1445
+ currency: string;
1446
1446
  }[];
1447
- };
1447
+ text?: string | undefined;
1448
+ } | undefined;
1448
1449
  context?: {
1449
- id?: string;
1450
- from?: string;
1450
+ id?: string | undefined;
1451
+ from?: string | undefined;
1451
1452
  referred_product?: {
1452
- catalog_id?: string;
1453
- product_retailer_id?: string;
1454
- };
1455
- };
1456
- timestamp?: string;
1457
- }[];
1453
+ catalog_id: string;
1454
+ product_retailer_id: string;
1455
+ } | undefined;
1456
+ } | undefined;
1457
+ }[] | undefined;
1458
1458
  message_echoes?: {
1459
- id?: string;
1460
- type?: string;
1461
- from?: string;
1462
- timestamp?: string;
1463
- }[];
1459
+ id: string;
1460
+ type: string;
1461
+ from: string;
1462
+ timestamp: string;
1463
+ }[] | undefined;
1464
1464
  statuses?: {
1465
- id?: string;
1466
- status?: "sent" | "delivered" | "read" | "failed";
1467
- timestamp?: string;
1468
- recipient_id?: string;
1469
- }[];
1465
+ id: string;
1466
+ status: "sent" | "delivered" | "read" | "failed";
1467
+ timestamp: string;
1468
+ recipient_id?: string | undefined;
1469
+ }[] | undefined;
1470
1470
  metadata?: {
1471
- display_phone_number?: string;
1472
- phone_number_id?: string;
1473
- };
1471
+ display_phone_number: string;
1472
+ phone_number_id: string;
1473
+ } | undefined;
1474
1474
  };
1475
1475
  }[];
1476
1476
  }>, "many">;
1477
1477
  }, "strip", z.ZodTypeAny, {
1478
- object?: string;
1479
- entry?: {
1480
- id?: string;
1481
- changes?: {
1482
- value?: {
1483
- messaging_product?: string;
1478
+ object: string;
1479
+ entry: {
1480
+ id: string;
1481
+ changes: {
1482
+ value: {
1483
+ messaging_product: string;
1484
1484
  messages?: {
1485
- id?: string;
1486
- type?: string;
1485
+ id: string;
1486
+ type: string;
1487
+ from: string;
1488
+ timestamp: string;
1487
1489
  text?: {
1488
- body?: string;
1489
- };
1490
- from?: string;
1490
+ body: string;
1491
+ } | undefined;
1491
1492
  image?: {
1492
- id?: string;
1493
- mime_type?: string;
1494
- sha256?: string;
1495
- caption?: string;
1496
- filename?: string;
1497
- };
1493
+ id: string;
1494
+ mime_type: string;
1495
+ sha256?: string | undefined;
1496
+ caption?: string | undefined;
1497
+ filename?: string | undefined;
1498
+ } | undefined;
1498
1499
  audio?: {
1499
- id?: string;
1500
- mime_type?: string;
1501
- sha256?: string;
1502
- caption?: string;
1503
- filename?: string;
1504
- };
1500
+ id: string;
1501
+ mime_type: string;
1502
+ sha256?: string | undefined;
1503
+ caption?: string | undefined;
1504
+ filename?: string | undefined;
1505
+ } | undefined;
1505
1506
  video?: {
1506
- id?: string;
1507
- mime_type?: string;
1508
- sha256?: string;
1509
- caption?: string;
1510
- filename?: string;
1511
- };
1507
+ id: string;
1508
+ mime_type: string;
1509
+ sha256?: string | undefined;
1510
+ caption?: string | undefined;
1511
+ filename?: string | undefined;
1512
+ } | undefined;
1512
1513
  document?: {
1513
- id?: string;
1514
- mime_type?: string;
1515
- sha256?: string;
1516
- caption?: string;
1517
- filename?: string;
1518
- };
1514
+ id: string;
1515
+ mime_type: string;
1516
+ sha256?: string | undefined;
1517
+ caption?: string | undefined;
1518
+ filename?: string | undefined;
1519
+ } | undefined;
1519
1520
  sticker?: {
1520
- id?: string;
1521
- mime_type?: string;
1522
- sha256?: string;
1523
- caption?: string;
1524
- filename?: string;
1525
- };
1521
+ id: string;
1522
+ mime_type: string;
1523
+ sha256?: string | undefined;
1524
+ caption?: string | undefined;
1525
+ filename?: string | undefined;
1526
+ } | undefined;
1526
1527
  interactive?: {
1527
- type?: string;
1528
+ type: string;
1528
1529
  button_reply?: {
1529
- id?: string;
1530
- title?: string;
1531
- };
1530
+ id: string;
1531
+ title: string;
1532
+ } | undefined;
1532
1533
  list_reply?: {
1533
- id?: string;
1534
- title?: string;
1535
- };
1536
- };
1534
+ id: string;
1535
+ title: string;
1536
+ } | undefined;
1537
+ } | undefined;
1537
1538
  order?: {
1538
- catalog_id?: string;
1539
- text?: string;
1540
- product_items?: {
1541
- product_retailer_id?: string;
1542
- quantity?: number;
1543
- item_price?: number;
1544
- currency?: string;
1539
+ catalog_id: string;
1540
+ product_items: {
1541
+ product_retailer_id: string;
1542
+ quantity: number;
1543
+ item_price: number;
1544
+ currency: string;
1545
1545
  }[];
1546
- };
1546
+ text?: string | undefined;
1547
+ } | undefined;
1547
1548
  context?: {
1548
- id?: string;
1549
- from?: string;
1549
+ id?: string | undefined;
1550
+ from?: string | undefined;
1550
1551
  referred_product?: {
1551
- catalog_id?: string;
1552
- product_retailer_id?: string;
1553
- };
1554
- };
1555
- timestamp?: string;
1556
- }[];
1552
+ catalog_id: string;
1553
+ product_retailer_id: string;
1554
+ } | undefined;
1555
+ } | undefined;
1556
+ }[] | undefined;
1557
1557
  message_echoes?: {
1558
- id?: string;
1559
- type?: string;
1560
- from?: string;
1561
- timestamp?: string;
1562
- }[];
1558
+ id: string;
1559
+ type: string;
1560
+ from: string;
1561
+ timestamp: string;
1562
+ }[] | undefined;
1563
1563
  statuses?: {
1564
- id?: string;
1565
- status?: "sent" | "delivered" | "read" | "failed";
1566
- timestamp?: string;
1567
- recipient_id?: string;
1568
- }[];
1564
+ id: string;
1565
+ status: "sent" | "delivered" | "read" | "failed";
1566
+ timestamp: string;
1567
+ recipient_id?: string | undefined;
1568
+ }[] | undefined;
1569
1569
  metadata?: {
1570
- display_phone_number?: string;
1571
- phone_number_id?: string;
1572
- };
1570
+ display_phone_number: string;
1571
+ phone_number_id: string;
1572
+ } | undefined;
1573
1573
  };
1574
1574
  }[];
1575
1575
  }[];
1576
1576
  }, {
1577
- object?: string;
1578
- entry?: {
1579
- id?: string;
1580
- changes?: {
1581
- value?: {
1582
- messaging_product?: string;
1577
+ object: string;
1578
+ entry: {
1579
+ id: string;
1580
+ changes: {
1581
+ value: {
1582
+ messaging_product: string;
1583
1583
  messages?: {
1584
- id?: string;
1585
- type?: string;
1584
+ id: string;
1585
+ type: string;
1586
+ from: string;
1587
+ timestamp: string;
1586
1588
  text?: {
1587
- body?: string;
1588
- };
1589
- from?: string;
1589
+ body: string;
1590
+ } | undefined;
1590
1591
  image?: {
1591
- id?: string;
1592
- mime_type?: string;
1593
- sha256?: string;
1594
- caption?: string;
1595
- filename?: string;
1596
- };
1592
+ id: string;
1593
+ mime_type: string;
1594
+ sha256?: string | undefined;
1595
+ caption?: string | undefined;
1596
+ filename?: string | undefined;
1597
+ } | undefined;
1597
1598
  audio?: {
1598
- id?: string;
1599
- mime_type?: string;
1600
- sha256?: string;
1601
- caption?: string;
1602
- filename?: string;
1603
- };
1599
+ id: string;
1600
+ mime_type: string;
1601
+ sha256?: string | undefined;
1602
+ caption?: string | undefined;
1603
+ filename?: string | undefined;
1604
+ } | undefined;
1604
1605
  video?: {
1605
- id?: string;
1606
- mime_type?: string;
1607
- sha256?: string;
1608
- caption?: string;
1609
- filename?: string;
1610
- };
1606
+ id: string;
1607
+ mime_type: string;
1608
+ sha256?: string | undefined;
1609
+ caption?: string | undefined;
1610
+ filename?: string | undefined;
1611
+ } | undefined;
1611
1612
  document?: {
1612
- id?: string;
1613
- mime_type?: string;
1614
- sha256?: string;
1615
- caption?: string;
1616
- filename?: string;
1617
- };
1613
+ id: string;
1614
+ mime_type: string;
1615
+ sha256?: string | undefined;
1616
+ caption?: string | undefined;
1617
+ filename?: string | undefined;
1618
+ } | undefined;
1618
1619
  sticker?: {
1619
- id?: string;
1620
- mime_type?: string;
1621
- sha256?: string;
1622
- caption?: string;
1623
- filename?: string;
1624
- };
1620
+ id: string;
1621
+ mime_type: string;
1622
+ sha256?: string | undefined;
1623
+ caption?: string | undefined;
1624
+ filename?: string | undefined;
1625
+ } | undefined;
1625
1626
  interactive?: {
1626
- type?: string;
1627
+ type: string;
1627
1628
  button_reply?: {
1628
- id?: string;
1629
- title?: string;
1630
- };
1629
+ id: string;
1630
+ title: string;
1631
+ } | undefined;
1631
1632
  list_reply?: {
1632
- id?: string;
1633
- title?: string;
1634
- };
1635
- };
1633
+ id: string;
1634
+ title: string;
1635
+ } | undefined;
1636
+ } | undefined;
1636
1637
  order?: {
1637
- catalog_id?: string;
1638
- text?: string;
1639
- product_items?: {
1640
- product_retailer_id?: string;
1641
- quantity?: number;
1642
- item_price?: number;
1643
- currency?: string;
1638
+ catalog_id: string;
1639
+ product_items: {
1640
+ product_retailer_id: string;
1641
+ quantity: number;
1642
+ item_price: number;
1643
+ currency: string;
1644
1644
  }[];
1645
- };
1645
+ text?: string | undefined;
1646
+ } | undefined;
1646
1647
  context?: {
1647
- id?: string;
1648
- from?: string;
1648
+ id?: string | undefined;
1649
+ from?: string | undefined;
1649
1650
  referred_product?: {
1650
- catalog_id?: string;
1651
- product_retailer_id?: string;
1652
- };
1653
- };
1654
- timestamp?: string;
1655
- }[];
1651
+ catalog_id: string;
1652
+ product_retailer_id: string;
1653
+ } | undefined;
1654
+ } | undefined;
1655
+ }[] | undefined;
1656
1656
  message_echoes?: {
1657
- id?: string;
1658
- type?: string;
1659
- from?: string;
1660
- timestamp?: string;
1661
- }[];
1657
+ id: string;
1658
+ type: string;
1659
+ from: string;
1660
+ timestamp: string;
1661
+ }[] | undefined;
1662
1662
  statuses?: {
1663
- id?: string;
1664
- status?: "sent" | "delivered" | "read" | "failed";
1665
- timestamp?: string;
1666
- recipient_id?: string;
1667
- }[];
1663
+ id: string;
1664
+ status: "sent" | "delivered" | "read" | "failed";
1665
+ timestamp: string;
1666
+ recipient_id?: string | undefined;
1667
+ }[] | undefined;
1668
1668
  metadata?: {
1669
- display_phone_number?: string;
1670
- phone_number_id?: string;
1671
- };
1669
+ display_phone_number: string;
1670
+ phone_number_id: string;
1671
+ } | undefined;
1672
1672
  };
1673
1673
  }[];
1674
1674
  }[];
@@ -1790,11 +1790,11 @@ declare const flowNodeNextSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
1790
1790
  byAnswer: z.ZodRecord<z.ZodString, z.ZodString>;
1791
1791
  default: z.ZodString;
1792
1792
  }, "strip", z.ZodTypeAny, {
1793
- byAnswer?: Record<string, string>;
1794
- default?: string;
1793
+ byAnswer: Record<string, string>;
1794
+ default: string;
1795
1795
  }, {
1796
- byAnswer?: Record<string, string>;
1797
- default?: string;
1796
+ byAnswer: Record<string, string>;
1797
+ default: string;
1798
1798
  }>]>;
1799
1799
  declare const flowNodeDataSchema: z.ZodObject<{
1800
1800
  id: z.ZodString;
@@ -1814,21 +1814,21 @@ declare const flowNodeDataSchema: z.ZodObject<{
1814
1814
  x: z.ZodNumber;
1815
1815
  y: z.ZodNumber;
1816
1816
  }, "strip", z.ZodTypeAny, {
1817
- x?: number;
1818
- y?: number;
1817
+ x: number;
1818
+ y: number;
1819
1819
  }, {
1820
- x?: number;
1821
- y?: number;
1820
+ x: number;
1821
+ y: number;
1822
1822
  }>>;
1823
1823
  next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1824
1824
  byAnswer: z.ZodRecord<z.ZodString, z.ZodString>;
1825
1825
  default: z.ZodString;
1826
1826
  }, "strip", z.ZodTypeAny, {
1827
- byAnswer?: Record<string, string>;
1828
- default?: string;
1827
+ byAnswer: Record<string, string>;
1828
+ default: string;
1829
1829
  }, {
1830
- byAnswer?: Record<string, string>;
1831
- default?: string;
1830
+ byAnswer: Record<string, string>;
1831
+ default: string;
1832
1832
  }>]>>;
1833
1833
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1834
1834
  id: z.ZodString;
@@ -1848,21 +1848,21 @@ declare const flowNodeDataSchema: z.ZodObject<{
1848
1848
  x: z.ZodNumber;
1849
1849
  y: z.ZodNumber;
1850
1850
  }, "strip", z.ZodTypeAny, {
1851
- x?: number;
1852
- y?: number;
1851
+ x: number;
1852
+ y: number;
1853
1853
  }, {
1854
- x?: number;
1855
- y?: number;
1854
+ x: number;
1855
+ y: number;
1856
1856
  }>>;
1857
1857
  next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1858
1858
  byAnswer: z.ZodRecord<z.ZodString, z.ZodString>;
1859
1859
  default: z.ZodString;
1860
1860
  }, "strip", z.ZodTypeAny, {
1861
- byAnswer?: Record<string, string>;
1862
- default?: string;
1861
+ byAnswer: Record<string, string>;
1862
+ default: string;
1863
1863
  }, {
1864
- byAnswer?: Record<string, string>;
1865
- default?: string;
1864
+ byAnswer: Record<string, string>;
1865
+ default: string;
1866
1866
  }>]>>;
1867
1867
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1868
1868
  id: z.ZodString;
@@ -1882,21 +1882,21 @@ declare const flowNodeDataSchema: z.ZodObject<{
1882
1882
  x: z.ZodNumber;
1883
1883
  y: z.ZodNumber;
1884
1884
  }, "strip", z.ZodTypeAny, {
1885
- x?: number;
1886
- y?: number;
1885
+ x: number;
1886
+ y: number;
1887
1887
  }, {
1888
- x?: number;
1889
- y?: number;
1888
+ x: number;
1889
+ y: number;
1890
1890
  }>>;
1891
1891
  next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1892
1892
  byAnswer: z.ZodRecord<z.ZodString, z.ZodString>;
1893
1893
  default: z.ZodString;
1894
1894
  }, "strip", z.ZodTypeAny, {
1895
- byAnswer?: Record<string, string>;
1896
- default?: string;
1895
+ byAnswer: Record<string, string>;
1896
+ default: string;
1897
1897
  }, {
1898
- byAnswer?: Record<string, string>;
1899
- default?: string;
1898
+ byAnswer: Record<string, string>;
1899
+ default: string;
1900
1900
  }>]>>;
1901
1901
  }, z.ZodTypeAny, "passthrough">>;
1902
1902
  declare const flowGraphNodesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1917,21 +1917,21 @@ declare const flowGraphNodesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1917
1917
  x: z.ZodNumber;
1918
1918
  y: z.ZodNumber;
1919
1919
  }, "strip", z.ZodTypeAny, {
1920
- x?: number;
1921
- y?: number;
1920
+ x: number;
1921
+ y: number;
1922
1922
  }, {
1923
- x?: number;
1924
- y?: number;
1923
+ x: number;
1924
+ y: number;
1925
1925
  }>>;
1926
1926
  next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1927
1927
  byAnswer: z.ZodRecord<z.ZodString, z.ZodString>;
1928
1928
  default: z.ZodString;
1929
1929
  }, "strip", z.ZodTypeAny, {
1930
- byAnswer?: Record<string, string>;
1931
- default?: string;
1930
+ byAnswer: Record<string, string>;
1931
+ default: string;
1932
1932
  }, {
1933
- byAnswer?: Record<string, string>;
1934
- default?: string;
1933
+ byAnswer: Record<string, string>;
1934
+ default: string;
1935
1935
  }>]>>;
1936
1936
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1937
1937
  id: z.ZodString;
@@ -1951,21 +1951,21 @@ declare const flowGraphNodesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1951
1951
  x: z.ZodNumber;
1952
1952
  y: z.ZodNumber;
1953
1953
  }, "strip", z.ZodTypeAny, {
1954
- x?: number;
1955
- y?: number;
1954
+ x: number;
1955
+ y: number;
1956
1956
  }, {
1957
- x?: number;
1958
- y?: number;
1957
+ x: number;
1958
+ y: number;
1959
1959
  }>>;
1960
1960
  next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1961
1961
  byAnswer: z.ZodRecord<z.ZodString, z.ZodString>;
1962
1962
  default: z.ZodString;
1963
1963
  }, "strip", z.ZodTypeAny, {
1964
- byAnswer?: Record<string, string>;
1965
- default?: string;
1964
+ byAnswer: Record<string, string>;
1965
+ default: string;
1966
1966
  }, {
1967
- byAnswer?: Record<string, string>;
1968
- default?: string;
1967
+ byAnswer: Record<string, string>;
1968
+ default: string;
1969
1969
  }>]>>;
1970
1970
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1971
1971
  id: z.ZodString;
@@ -1985,21 +1985,21 @@ declare const flowGraphNodesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1985
1985
  x: z.ZodNumber;
1986
1986
  y: z.ZodNumber;
1987
1987
  }, "strip", z.ZodTypeAny, {
1988
- x?: number;
1989
- y?: number;
1988
+ x: number;
1989
+ y: number;
1990
1990
  }, {
1991
- x?: number;
1992
- y?: number;
1991
+ x: number;
1992
+ y: number;
1993
1993
  }>>;
1994
1994
  next: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
1995
1995
  byAnswer: z.ZodRecord<z.ZodString, z.ZodString>;
1996
1996
  default: z.ZodString;
1997
1997
  }, "strip", z.ZodTypeAny, {
1998
- byAnswer?: Record<string, string>;
1999
- default?: string;
1998
+ byAnswer: Record<string, string>;
1999
+ default: string;
2000
2000
  }, {
2001
- byAnswer?: Record<string, string>;
2002
- default?: string;
2001
+ byAnswer: Record<string, string>;
2002
+ default: string;
2003
2003
  }>]>>;
2004
2004
  }, z.ZodTypeAny, "passthrough">>>;
2005
2005
 
@@ -2143,8 +2143,8 @@ interface FlowActionRegistry {
2143
2143
  declare class MetaWhatsAppError extends Error {
2144
2144
  readonly statusCode: number;
2145
2145
  readonly code: string;
2146
- readonly details?: Record<string, unknown>;
2147
- constructor(message: string, statusCode: number, code: string, details?: Record<string, unknown>);
2146
+ readonly details?: Record<string, unknown> | undefined;
2147
+ constructor(message: string, statusCode: number, code: string, details?: Record<string, unknown> | undefined);
2148
2148
  }
2149
2149
  declare const META_WHATSAPP_ERROR_CODES: {
2150
2150
  readonly WINDOW_EXPIRED: "META_WHATSAPP_WINDOW_EXPIRED";
@@ -2155,8 +2155,8 @@ declare const META_WHATSAPP_ERROR_CODES: {
2155
2155
  readonly SESSION_NOT_FOUND: "META_WHATSAPP_SESSION_NOT_FOUND";
2156
2156
  };
2157
2157
  declare class WindowExpiredError extends MetaWhatsAppError {
2158
- readonly hoursSinceLastMessage?: number;
2159
- constructor(hoursSinceLastMessage?: number);
2158
+ readonly hoursSinceLastMessage?: number | undefined;
2159
+ constructor(hoursSinceLastMessage?: number | undefined);
2160
2160
  }
2161
2161
  declare class InvalidWebhookSignatureError extends MetaWhatsAppError {
2162
2162
  constructor();