@adatechnology/meta-whatsapp-contracts 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +35 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +32 -1
- package/dist/index.js.map +1 -1
- package/dist/testing/index.cjs +25 -0
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +9 -2
- package/dist/testing/index.d.ts +9 -2
- package/dist/testing/index.js +24 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/{webhook.types-DzSMUGwM.d.cts → webhook.types-Ba15ldOq.d.cts} +997 -1
- package/dist/{webhook.types-DzSMUGwM.d.ts → webhook.types-Ba15ldOq.d.ts} +997 -1
- package/package.json +1 -1
|
@@ -103,6 +103,26 @@ declare const whatsAppOrderSchema: z.ZodObject<{
|
|
|
103
103
|
text?: string | undefined;
|
|
104
104
|
}>;
|
|
105
105
|
type WhatsAppOrder = z.infer<typeof whatsAppOrderSchema>;
|
|
106
|
+
declare const whatsAppLocationSchema: z.ZodObject<{
|
|
107
|
+
latitude: z.ZodNumber;
|
|
108
|
+
longitude: z.ZodNumber;
|
|
109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
110
|
+
address: z.ZodOptional<z.ZodString>;
|
|
111
|
+
url: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
latitude: number;
|
|
114
|
+
longitude: number;
|
|
115
|
+
name?: string | undefined;
|
|
116
|
+
address?: string | undefined;
|
|
117
|
+
url?: string | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
latitude: number;
|
|
120
|
+
longitude: number;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
address?: string | undefined;
|
|
123
|
+
url?: string | undefined;
|
|
124
|
+
}>;
|
|
125
|
+
type WhatsAppLocation = z.infer<typeof whatsAppLocationSchema>;
|
|
106
126
|
declare const whatsAppMessageSchema: z.ZodObject<{
|
|
107
127
|
id: z.ZodString;
|
|
108
128
|
from: z.ZodString;
|
|
@@ -290,6 +310,25 @@ declare const whatsAppMessageSchema: z.ZodObject<{
|
|
|
290
310
|
}[];
|
|
291
311
|
text?: string | undefined;
|
|
292
312
|
}>>;
|
|
313
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
latitude: z.ZodNumber;
|
|
315
|
+
longitude: z.ZodNumber;
|
|
316
|
+
name: z.ZodOptional<z.ZodString>;
|
|
317
|
+
address: z.ZodOptional<z.ZodString>;
|
|
318
|
+
url: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
latitude: number;
|
|
321
|
+
longitude: number;
|
|
322
|
+
name?: string | undefined;
|
|
323
|
+
address?: string | undefined;
|
|
324
|
+
url?: string | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
latitude: number;
|
|
327
|
+
longitude: number;
|
|
328
|
+
name?: string | undefined;
|
|
329
|
+
address?: string | undefined;
|
|
330
|
+
url?: string | undefined;
|
|
331
|
+
}>>;
|
|
293
332
|
context: z.ZodOptional<z.ZodObject<{
|
|
294
333
|
from: z.ZodOptional<z.ZodString>;
|
|
295
334
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -383,6 +422,13 @@ declare const whatsAppMessageSchema: z.ZodObject<{
|
|
|
383
422
|
}[];
|
|
384
423
|
text?: string | undefined;
|
|
385
424
|
} | undefined;
|
|
425
|
+
location?: {
|
|
426
|
+
latitude: number;
|
|
427
|
+
longitude: number;
|
|
428
|
+
name?: string | undefined;
|
|
429
|
+
address?: string | undefined;
|
|
430
|
+
url?: string | undefined;
|
|
431
|
+
} | undefined;
|
|
386
432
|
context?: {
|
|
387
433
|
id?: string | undefined;
|
|
388
434
|
from?: string | undefined;
|
|
@@ -455,6 +501,13 @@ declare const whatsAppMessageSchema: z.ZodObject<{
|
|
|
455
501
|
}[];
|
|
456
502
|
text?: string | undefined;
|
|
457
503
|
} | undefined;
|
|
504
|
+
location?: {
|
|
505
|
+
latitude: number;
|
|
506
|
+
longitude: number;
|
|
507
|
+
name?: string | undefined;
|
|
508
|
+
address?: string | undefined;
|
|
509
|
+
url?: string | undefined;
|
|
510
|
+
} | undefined;
|
|
458
511
|
context?: {
|
|
459
512
|
id?: string | undefined;
|
|
460
513
|
from?: string | undefined;
|
|
@@ -484,21 +537,116 @@ declare const whatsAppMessageEchoSchema: z.ZodObject<{
|
|
|
484
537
|
type WhatsAppMessageEcho = z.infer<typeof whatsAppMessageEchoSchema>;
|
|
485
538
|
declare const whatsAppMessageStatusSchema: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
486
539
|
type WhatsAppMessageStatusValue = z.infer<typeof whatsAppMessageStatusSchema>;
|
|
540
|
+
/**
|
|
541
|
+
* Por que a Meta recusou a entrega. Só existe no webhook de status, e só quando `status` é
|
|
542
|
+
* `failed`.
|
|
543
|
+
*
|
|
544
|
+
* `code` é o que decide: 131030 é número fora da allowlist do ambiente de teste, 131047 é janela
|
|
545
|
+
* de 24h vencida, 130497 é conta barrada de mandar mensagem para o país. São três causas sem nada
|
|
546
|
+
* em comum — allowlist, tempo e restrição de conta — e todas chegam ao cliente como a mesma
|
|
547
|
+
* ausência de resposta. Sem o código, distinguir uma da outra custa uma investigação inteira.
|
|
548
|
+
*/
|
|
549
|
+
declare const whatsAppStatusErrorSchema: z.ZodObject<{
|
|
550
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
title: z.ZodOptional<z.ZodString>;
|
|
552
|
+
message: z.ZodOptional<z.ZodString>;
|
|
553
|
+
href: z.ZodOptional<z.ZodString>;
|
|
554
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
555
|
+
details: z.ZodOptional<z.ZodString>;
|
|
556
|
+
}, "strip", z.ZodTypeAny, {
|
|
557
|
+
details?: string | undefined;
|
|
558
|
+
}, {
|
|
559
|
+
details?: string | undefined;
|
|
560
|
+
}>>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
code?: number | undefined;
|
|
563
|
+
message?: string | undefined;
|
|
564
|
+
title?: string | undefined;
|
|
565
|
+
href?: string | undefined;
|
|
566
|
+
error_data?: {
|
|
567
|
+
details?: string | undefined;
|
|
568
|
+
} | undefined;
|
|
569
|
+
}, {
|
|
570
|
+
code?: number | undefined;
|
|
571
|
+
message?: string | undefined;
|
|
572
|
+
title?: string | undefined;
|
|
573
|
+
href?: string | undefined;
|
|
574
|
+
error_data?: {
|
|
575
|
+
details?: string | undefined;
|
|
576
|
+
} | undefined;
|
|
577
|
+
}>;
|
|
578
|
+
type WhatsAppStatusError = z.infer<typeof whatsAppStatusErrorSchema>;
|
|
579
|
+
/**
|
|
580
|
+
* `errors` entra no schema porque `z.object` descarta o que não declara: enquanto o campo não
|
|
581
|
+
* existia aqui, o motivo da recusa era apagado na validação e nunca chegava a `onStatusUpdate` —
|
|
582
|
+
* o hook era chamado, mas com o único dado que importa já removido. Quem precisava do motivo
|
|
583
|
+
* tinha de reprocessar o corpo cru do webhook por fora do módulo.
|
|
584
|
+
*
|
|
585
|
+
* Tolerante de propósito: campo que a Meta parar de mandar não pode derrubar a validação do
|
|
586
|
+
* webhook inteiro, porque isso troca um envio sem explicação por todos os eventos perdidos.
|
|
587
|
+
*/
|
|
487
588
|
declare const whatsAppStatusSchema: z.ZodObject<{
|
|
488
589
|
id: z.ZodString;
|
|
489
590
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
490
591
|
timestamp: z.ZodString;
|
|
491
592
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
593
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
594
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
595
|
+
title: z.ZodOptional<z.ZodString>;
|
|
596
|
+
message: z.ZodOptional<z.ZodString>;
|
|
597
|
+
href: z.ZodOptional<z.ZodString>;
|
|
598
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
599
|
+
details: z.ZodOptional<z.ZodString>;
|
|
600
|
+
}, "strip", z.ZodTypeAny, {
|
|
601
|
+
details?: string | undefined;
|
|
602
|
+
}, {
|
|
603
|
+
details?: string | undefined;
|
|
604
|
+
}>>;
|
|
605
|
+
}, "strip", z.ZodTypeAny, {
|
|
606
|
+
code?: number | undefined;
|
|
607
|
+
message?: string | undefined;
|
|
608
|
+
title?: string | undefined;
|
|
609
|
+
href?: string | undefined;
|
|
610
|
+
error_data?: {
|
|
611
|
+
details?: string | undefined;
|
|
612
|
+
} | undefined;
|
|
613
|
+
}, {
|
|
614
|
+
code?: number | undefined;
|
|
615
|
+
message?: string | undefined;
|
|
616
|
+
title?: string | undefined;
|
|
617
|
+
href?: string | undefined;
|
|
618
|
+
error_data?: {
|
|
619
|
+
details?: string | undefined;
|
|
620
|
+
} | undefined;
|
|
621
|
+
}>, "many">>;
|
|
492
622
|
}, "strip", z.ZodTypeAny, {
|
|
493
623
|
id: string;
|
|
494
624
|
status: "sent" | "delivered" | "read" | "failed";
|
|
495
625
|
timestamp: string;
|
|
496
626
|
recipient_id?: string | undefined;
|
|
627
|
+
errors?: {
|
|
628
|
+
code?: number | undefined;
|
|
629
|
+
message?: string | undefined;
|
|
630
|
+
title?: string | undefined;
|
|
631
|
+
href?: string | undefined;
|
|
632
|
+
error_data?: {
|
|
633
|
+
details?: string | undefined;
|
|
634
|
+
} | undefined;
|
|
635
|
+
}[] | undefined;
|
|
497
636
|
}, {
|
|
498
637
|
id: string;
|
|
499
638
|
status: "sent" | "delivered" | "read" | "failed";
|
|
500
639
|
timestamp: string;
|
|
501
640
|
recipient_id?: string | undefined;
|
|
641
|
+
errors?: {
|
|
642
|
+
code?: number | undefined;
|
|
643
|
+
message?: string | undefined;
|
|
644
|
+
title?: string | undefined;
|
|
645
|
+
href?: string | undefined;
|
|
646
|
+
error_data?: {
|
|
647
|
+
details?: string | undefined;
|
|
648
|
+
} | undefined;
|
|
649
|
+
}[] | undefined;
|
|
502
650
|
}>;
|
|
503
651
|
type WhatsAppStatus = z.infer<typeof whatsAppStatusSchema>;
|
|
504
652
|
declare const WHATSAPP_WEBHOOK_FIELDS: {
|
|
@@ -769,6 +917,25 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
769
917
|
}[];
|
|
770
918
|
text?: string | undefined;
|
|
771
919
|
}>>;
|
|
920
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
921
|
+
latitude: z.ZodNumber;
|
|
922
|
+
longitude: z.ZodNumber;
|
|
923
|
+
name: z.ZodOptional<z.ZodString>;
|
|
924
|
+
address: z.ZodOptional<z.ZodString>;
|
|
925
|
+
url: z.ZodOptional<z.ZodString>;
|
|
926
|
+
}, "strip", z.ZodTypeAny, {
|
|
927
|
+
latitude: number;
|
|
928
|
+
longitude: number;
|
|
929
|
+
name?: string | undefined;
|
|
930
|
+
address?: string | undefined;
|
|
931
|
+
url?: string | undefined;
|
|
932
|
+
}, {
|
|
933
|
+
latitude: number;
|
|
934
|
+
longitude: number;
|
|
935
|
+
name?: string | undefined;
|
|
936
|
+
address?: string | undefined;
|
|
937
|
+
url?: string | undefined;
|
|
938
|
+
}>>;
|
|
772
939
|
context: z.ZodOptional<z.ZodObject<{
|
|
773
940
|
from: z.ZodOptional<z.ZodString>;
|
|
774
941
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -862,6 +1029,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
862
1029
|
}[];
|
|
863
1030
|
text?: string | undefined;
|
|
864
1031
|
} | undefined;
|
|
1032
|
+
location?: {
|
|
1033
|
+
latitude: number;
|
|
1034
|
+
longitude: number;
|
|
1035
|
+
name?: string | undefined;
|
|
1036
|
+
address?: string | undefined;
|
|
1037
|
+
url?: string | undefined;
|
|
1038
|
+
} | undefined;
|
|
865
1039
|
context?: {
|
|
866
1040
|
id?: string | undefined;
|
|
867
1041
|
from?: string | undefined;
|
|
@@ -934,6 +1108,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
934
1108
|
}[];
|
|
935
1109
|
text?: string | undefined;
|
|
936
1110
|
} | undefined;
|
|
1111
|
+
location?: {
|
|
1112
|
+
latitude: number;
|
|
1113
|
+
longitude: number;
|
|
1114
|
+
name?: string | undefined;
|
|
1115
|
+
address?: string | undefined;
|
|
1116
|
+
url?: string | undefined;
|
|
1117
|
+
} | undefined;
|
|
937
1118
|
context?: {
|
|
938
1119
|
id?: string | undefined;
|
|
939
1120
|
from?: string | undefined;
|
|
@@ -984,16 +1165,63 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
984
1165
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
985
1166
|
timestamp: z.ZodString;
|
|
986
1167
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1169
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
href: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
1174
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
}, "strip", z.ZodTypeAny, {
|
|
1176
|
+
details?: string | undefined;
|
|
1177
|
+
}, {
|
|
1178
|
+
details?: string | undefined;
|
|
1179
|
+
}>>;
|
|
1180
|
+
}, "strip", z.ZodTypeAny, {
|
|
1181
|
+
code?: number | undefined;
|
|
1182
|
+
message?: string | undefined;
|
|
1183
|
+
title?: string | undefined;
|
|
1184
|
+
href?: string | undefined;
|
|
1185
|
+
error_data?: {
|
|
1186
|
+
details?: string | undefined;
|
|
1187
|
+
} | undefined;
|
|
1188
|
+
}, {
|
|
1189
|
+
code?: number | undefined;
|
|
1190
|
+
message?: string | undefined;
|
|
1191
|
+
title?: string | undefined;
|
|
1192
|
+
href?: string | undefined;
|
|
1193
|
+
error_data?: {
|
|
1194
|
+
details?: string | undefined;
|
|
1195
|
+
} | undefined;
|
|
1196
|
+
}>, "many">>;
|
|
987
1197
|
}, "strip", z.ZodTypeAny, {
|
|
988
1198
|
id: string;
|
|
989
1199
|
status: "sent" | "delivered" | "read" | "failed";
|
|
990
1200
|
timestamp: string;
|
|
991
1201
|
recipient_id?: string | undefined;
|
|
1202
|
+
errors?: {
|
|
1203
|
+
code?: number | undefined;
|
|
1204
|
+
message?: string | undefined;
|
|
1205
|
+
title?: string | undefined;
|
|
1206
|
+
href?: string | undefined;
|
|
1207
|
+
error_data?: {
|
|
1208
|
+
details?: string | undefined;
|
|
1209
|
+
} | undefined;
|
|
1210
|
+
}[] | undefined;
|
|
992
1211
|
}, {
|
|
993
1212
|
id: string;
|
|
994
1213
|
status: "sent" | "delivered" | "read" | "failed";
|
|
995
1214
|
timestamp: string;
|
|
996
1215
|
recipient_id?: string | undefined;
|
|
1216
|
+
errors?: {
|
|
1217
|
+
code?: number | undefined;
|
|
1218
|
+
message?: string | undefined;
|
|
1219
|
+
title?: string | undefined;
|
|
1220
|
+
href?: string | undefined;
|
|
1221
|
+
error_data?: {
|
|
1222
|
+
details?: string | undefined;
|
|
1223
|
+
} | undefined;
|
|
1224
|
+
}[] | undefined;
|
|
997
1225
|
}>, "many">>;
|
|
998
1226
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
999
1227
|
display_phone_number: z.ZodString;
|
|
@@ -1194,6 +1422,25 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1194
1422
|
}[];
|
|
1195
1423
|
text?: string | undefined;
|
|
1196
1424
|
}>>;
|
|
1425
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
1426
|
+
latitude: z.ZodNumber;
|
|
1427
|
+
longitude: z.ZodNumber;
|
|
1428
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1429
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
}, "strip", z.ZodTypeAny, {
|
|
1432
|
+
latitude: number;
|
|
1433
|
+
longitude: number;
|
|
1434
|
+
name?: string | undefined;
|
|
1435
|
+
address?: string | undefined;
|
|
1436
|
+
url?: string | undefined;
|
|
1437
|
+
}, {
|
|
1438
|
+
latitude: number;
|
|
1439
|
+
longitude: number;
|
|
1440
|
+
name?: string | undefined;
|
|
1441
|
+
address?: string | undefined;
|
|
1442
|
+
url?: string | undefined;
|
|
1443
|
+
}>>;
|
|
1197
1444
|
context: z.ZodOptional<z.ZodObject<{
|
|
1198
1445
|
from: z.ZodOptional<z.ZodString>;
|
|
1199
1446
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1287,6 +1534,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1287
1534
|
}[];
|
|
1288
1535
|
text?: string | undefined;
|
|
1289
1536
|
} | undefined;
|
|
1537
|
+
location?: {
|
|
1538
|
+
latitude: number;
|
|
1539
|
+
longitude: number;
|
|
1540
|
+
name?: string | undefined;
|
|
1541
|
+
address?: string | undefined;
|
|
1542
|
+
url?: string | undefined;
|
|
1543
|
+
} | undefined;
|
|
1290
1544
|
context?: {
|
|
1291
1545
|
id?: string | undefined;
|
|
1292
1546
|
from?: string | undefined;
|
|
@@ -1359,6 +1613,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1359
1613
|
}[];
|
|
1360
1614
|
text?: string | undefined;
|
|
1361
1615
|
} | undefined;
|
|
1616
|
+
location?: {
|
|
1617
|
+
latitude: number;
|
|
1618
|
+
longitude: number;
|
|
1619
|
+
name?: string | undefined;
|
|
1620
|
+
address?: string | undefined;
|
|
1621
|
+
url?: string | undefined;
|
|
1622
|
+
} | undefined;
|
|
1362
1623
|
context?: {
|
|
1363
1624
|
id?: string | undefined;
|
|
1364
1625
|
from?: string | undefined;
|
|
@@ -1409,16 +1670,63 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1409
1670
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
1410
1671
|
timestamp: z.ZodString;
|
|
1411
1672
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
1673
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1674
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
1675
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1676
|
+
message: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
href: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
1679
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1680
|
+
}, "strip", z.ZodTypeAny, {
|
|
1681
|
+
details?: string | undefined;
|
|
1682
|
+
}, {
|
|
1683
|
+
details?: string | undefined;
|
|
1684
|
+
}>>;
|
|
1685
|
+
}, "strip", z.ZodTypeAny, {
|
|
1686
|
+
code?: number | undefined;
|
|
1687
|
+
message?: string | undefined;
|
|
1688
|
+
title?: string | undefined;
|
|
1689
|
+
href?: string | undefined;
|
|
1690
|
+
error_data?: {
|
|
1691
|
+
details?: string | undefined;
|
|
1692
|
+
} | undefined;
|
|
1693
|
+
}, {
|
|
1694
|
+
code?: number | undefined;
|
|
1695
|
+
message?: string | undefined;
|
|
1696
|
+
title?: string | undefined;
|
|
1697
|
+
href?: string | undefined;
|
|
1698
|
+
error_data?: {
|
|
1699
|
+
details?: string | undefined;
|
|
1700
|
+
} | undefined;
|
|
1701
|
+
}>, "many">>;
|
|
1412
1702
|
}, "strip", z.ZodTypeAny, {
|
|
1413
1703
|
id: string;
|
|
1414
1704
|
status: "sent" | "delivered" | "read" | "failed";
|
|
1415
1705
|
timestamp: string;
|
|
1416
1706
|
recipient_id?: string | undefined;
|
|
1707
|
+
errors?: {
|
|
1708
|
+
code?: number | undefined;
|
|
1709
|
+
message?: string | undefined;
|
|
1710
|
+
title?: string | undefined;
|
|
1711
|
+
href?: string | undefined;
|
|
1712
|
+
error_data?: {
|
|
1713
|
+
details?: string | undefined;
|
|
1714
|
+
} | undefined;
|
|
1715
|
+
}[] | undefined;
|
|
1417
1716
|
}, {
|
|
1418
1717
|
id: string;
|
|
1419
1718
|
status: "sent" | "delivered" | "read" | "failed";
|
|
1420
1719
|
timestamp: string;
|
|
1421
1720
|
recipient_id?: string | undefined;
|
|
1721
|
+
errors?: {
|
|
1722
|
+
code?: number | undefined;
|
|
1723
|
+
message?: string | undefined;
|
|
1724
|
+
title?: string | undefined;
|
|
1725
|
+
href?: string | undefined;
|
|
1726
|
+
error_data?: {
|
|
1727
|
+
details?: string | undefined;
|
|
1728
|
+
} | undefined;
|
|
1729
|
+
}[] | undefined;
|
|
1422
1730
|
}>, "many">>;
|
|
1423
1731
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1424
1732
|
display_phone_number: z.ZodString;
|
|
@@ -1619,6 +1927,25 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1619
1927
|
}[];
|
|
1620
1928
|
text?: string | undefined;
|
|
1621
1929
|
}>>;
|
|
1930
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
1931
|
+
latitude: z.ZodNumber;
|
|
1932
|
+
longitude: z.ZodNumber;
|
|
1933
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1934
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1936
|
+
}, "strip", z.ZodTypeAny, {
|
|
1937
|
+
latitude: number;
|
|
1938
|
+
longitude: number;
|
|
1939
|
+
name?: string | undefined;
|
|
1940
|
+
address?: string | undefined;
|
|
1941
|
+
url?: string | undefined;
|
|
1942
|
+
}, {
|
|
1943
|
+
latitude: number;
|
|
1944
|
+
longitude: number;
|
|
1945
|
+
name?: string | undefined;
|
|
1946
|
+
address?: string | undefined;
|
|
1947
|
+
url?: string | undefined;
|
|
1948
|
+
}>>;
|
|
1622
1949
|
context: z.ZodOptional<z.ZodObject<{
|
|
1623
1950
|
from: z.ZodOptional<z.ZodString>;
|
|
1624
1951
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1712,6 +2039,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1712
2039
|
}[];
|
|
1713
2040
|
text?: string | undefined;
|
|
1714
2041
|
} | undefined;
|
|
2042
|
+
location?: {
|
|
2043
|
+
latitude: number;
|
|
2044
|
+
longitude: number;
|
|
2045
|
+
name?: string | undefined;
|
|
2046
|
+
address?: string | undefined;
|
|
2047
|
+
url?: string | undefined;
|
|
2048
|
+
} | undefined;
|
|
1715
2049
|
context?: {
|
|
1716
2050
|
id?: string | undefined;
|
|
1717
2051
|
from?: string | undefined;
|
|
@@ -1784,6 +2118,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1784
2118
|
}[];
|
|
1785
2119
|
text?: string | undefined;
|
|
1786
2120
|
} | undefined;
|
|
2121
|
+
location?: {
|
|
2122
|
+
latitude: number;
|
|
2123
|
+
longitude: number;
|
|
2124
|
+
name?: string | undefined;
|
|
2125
|
+
address?: string | undefined;
|
|
2126
|
+
url?: string | undefined;
|
|
2127
|
+
} | undefined;
|
|
1787
2128
|
context?: {
|
|
1788
2129
|
id?: string | undefined;
|
|
1789
2130
|
from?: string | undefined;
|
|
@@ -1834,16 +2175,63 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
|
|
|
1834
2175
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
1835
2176
|
timestamp: z.ZodString;
|
|
1836
2177
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
2178
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2179
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
2180
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2181
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2182
|
+
href: z.ZodOptional<z.ZodString>;
|
|
2183
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
2184
|
+
details: z.ZodOptional<z.ZodString>;
|
|
2185
|
+
}, "strip", z.ZodTypeAny, {
|
|
2186
|
+
details?: string | undefined;
|
|
2187
|
+
}, {
|
|
2188
|
+
details?: string | undefined;
|
|
2189
|
+
}>>;
|
|
2190
|
+
}, "strip", z.ZodTypeAny, {
|
|
2191
|
+
code?: number | undefined;
|
|
2192
|
+
message?: string | undefined;
|
|
2193
|
+
title?: string | undefined;
|
|
2194
|
+
href?: string | undefined;
|
|
2195
|
+
error_data?: {
|
|
2196
|
+
details?: string | undefined;
|
|
2197
|
+
} | undefined;
|
|
2198
|
+
}, {
|
|
2199
|
+
code?: number | undefined;
|
|
2200
|
+
message?: string | undefined;
|
|
2201
|
+
title?: string | undefined;
|
|
2202
|
+
href?: string | undefined;
|
|
2203
|
+
error_data?: {
|
|
2204
|
+
details?: string | undefined;
|
|
2205
|
+
} | undefined;
|
|
2206
|
+
}>, "many">>;
|
|
1837
2207
|
}, "strip", z.ZodTypeAny, {
|
|
1838
2208
|
id: string;
|
|
1839
2209
|
status: "sent" | "delivered" | "read" | "failed";
|
|
1840
2210
|
timestamp: string;
|
|
1841
2211
|
recipient_id?: string | undefined;
|
|
2212
|
+
errors?: {
|
|
2213
|
+
code?: number | undefined;
|
|
2214
|
+
message?: string | undefined;
|
|
2215
|
+
title?: string | undefined;
|
|
2216
|
+
href?: string | undefined;
|
|
2217
|
+
error_data?: {
|
|
2218
|
+
details?: string | undefined;
|
|
2219
|
+
} | undefined;
|
|
2220
|
+
}[] | undefined;
|
|
1842
2221
|
}, {
|
|
1843
2222
|
id: string;
|
|
1844
2223
|
status: "sent" | "delivered" | "read" | "failed";
|
|
1845
2224
|
timestamp: string;
|
|
1846
2225
|
recipient_id?: string | undefined;
|
|
2226
|
+
errors?: {
|
|
2227
|
+
code?: number | undefined;
|
|
2228
|
+
message?: string | undefined;
|
|
2229
|
+
title?: string | undefined;
|
|
2230
|
+
href?: string | undefined;
|
|
2231
|
+
error_data?: {
|
|
2232
|
+
details?: string | undefined;
|
|
2233
|
+
} | undefined;
|
|
2234
|
+
}[] | undefined;
|
|
1847
2235
|
}>, "many">>;
|
|
1848
2236
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
1849
2237
|
display_phone_number: z.ZodString;
|
|
@@ -2048,6 +2436,25 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2048
2436
|
}[];
|
|
2049
2437
|
text?: string | undefined;
|
|
2050
2438
|
}>>;
|
|
2439
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
2440
|
+
latitude: z.ZodNumber;
|
|
2441
|
+
longitude: z.ZodNumber;
|
|
2442
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2443
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2444
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2445
|
+
}, "strip", z.ZodTypeAny, {
|
|
2446
|
+
latitude: number;
|
|
2447
|
+
longitude: number;
|
|
2448
|
+
name?: string | undefined;
|
|
2449
|
+
address?: string | undefined;
|
|
2450
|
+
url?: string | undefined;
|
|
2451
|
+
}, {
|
|
2452
|
+
latitude: number;
|
|
2453
|
+
longitude: number;
|
|
2454
|
+
name?: string | undefined;
|
|
2455
|
+
address?: string | undefined;
|
|
2456
|
+
url?: string | undefined;
|
|
2457
|
+
}>>;
|
|
2051
2458
|
context: z.ZodOptional<z.ZodObject<{
|
|
2052
2459
|
from: z.ZodOptional<z.ZodString>;
|
|
2053
2460
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2141,6 +2548,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2141
2548
|
}[];
|
|
2142
2549
|
text?: string | undefined;
|
|
2143
2550
|
} | undefined;
|
|
2551
|
+
location?: {
|
|
2552
|
+
latitude: number;
|
|
2553
|
+
longitude: number;
|
|
2554
|
+
name?: string | undefined;
|
|
2555
|
+
address?: string | undefined;
|
|
2556
|
+
url?: string | undefined;
|
|
2557
|
+
} | undefined;
|
|
2144
2558
|
context?: {
|
|
2145
2559
|
id?: string | undefined;
|
|
2146
2560
|
from?: string | undefined;
|
|
@@ -2213,6 +2627,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2213
2627
|
}[];
|
|
2214
2628
|
text?: string | undefined;
|
|
2215
2629
|
} | undefined;
|
|
2630
|
+
location?: {
|
|
2631
|
+
latitude: number;
|
|
2632
|
+
longitude: number;
|
|
2633
|
+
name?: string | undefined;
|
|
2634
|
+
address?: string | undefined;
|
|
2635
|
+
url?: string | undefined;
|
|
2636
|
+
} | undefined;
|
|
2216
2637
|
context?: {
|
|
2217
2638
|
id?: string | undefined;
|
|
2218
2639
|
from?: string | undefined;
|
|
@@ -2263,16 +2684,63 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2263
2684
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
2264
2685
|
timestamp: z.ZodString;
|
|
2265
2686
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
2687
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2688
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
2689
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2690
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2691
|
+
href: z.ZodOptional<z.ZodString>;
|
|
2692
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
2693
|
+
details: z.ZodOptional<z.ZodString>;
|
|
2694
|
+
}, "strip", z.ZodTypeAny, {
|
|
2695
|
+
details?: string | undefined;
|
|
2696
|
+
}, {
|
|
2697
|
+
details?: string | undefined;
|
|
2698
|
+
}>>;
|
|
2699
|
+
}, "strip", z.ZodTypeAny, {
|
|
2700
|
+
code?: number | undefined;
|
|
2701
|
+
message?: string | undefined;
|
|
2702
|
+
title?: string | undefined;
|
|
2703
|
+
href?: string | undefined;
|
|
2704
|
+
error_data?: {
|
|
2705
|
+
details?: string | undefined;
|
|
2706
|
+
} | undefined;
|
|
2707
|
+
}, {
|
|
2708
|
+
code?: number | undefined;
|
|
2709
|
+
message?: string | undefined;
|
|
2710
|
+
title?: string | undefined;
|
|
2711
|
+
href?: string | undefined;
|
|
2712
|
+
error_data?: {
|
|
2713
|
+
details?: string | undefined;
|
|
2714
|
+
} | undefined;
|
|
2715
|
+
}>, "many">>;
|
|
2266
2716
|
}, "strip", z.ZodTypeAny, {
|
|
2267
2717
|
id: string;
|
|
2268
2718
|
status: "sent" | "delivered" | "read" | "failed";
|
|
2269
2719
|
timestamp: string;
|
|
2270
2720
|
recipient_id?: string | undefined;
|
|
2721
|
+
errors?: {
|
|
2722
|
+
code?: number | undefined;
|
|
2723
|
+
message?: string | undefined;
|
|
2724
|
+
title?: string | undefined;
|
|
2725
|
+
href?: string | undefined;
|
|
2726
|
+
error_data?: {
|
|
2727
|
+
details?: string | undefined;
|
|
2728
|
+
} | undefined;
|
|
2729
|
+
}[] | undefined;
|
|
2271
2730
|
}, {
|
|
2272
2731
|
id: string;
|
|
2273
2732
|
status: "sent" | "delivered" | "read" | "failed";
|
|
2274
2733
|
timestamp: string;
|
|
2275
2734
|
recipient_id?: string | undefined;
|
|
2735
|
+
errors?: {
|
|
2736
|
+
code?: number | undefined;
|
|
2737
|
+
message?: string | undefined;
|
|
2738
|
+
title?: string | undefined;
|
|
2739
|
+
href?: string | undefined;
|
|
2740
|
+
error_data?: {
|
|
2741
|
+
details?: string | undefined;
|
|
2742
|
+
} | undefined;
|
|
2743
|
+
}[] | undefined;
|
|
2276
2744
|
}>, "many">>;
|
|
2277
2745
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2278
2746
|
display_phone_number: z.ZodString;
|
|
@@ -2473,6 +2941,25 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2473
2941
|
}[];
|
|
2474
2942
|
text?: string | undefined;
|
|
2475
2943
|
}>>;
|
|
2944
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
2945
|
+
latitude: z.ZodNumber;
|
|
2946
|
+
longitude: z.ZodNumber;
|
|
2947
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2948
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2949
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2950
|
+
}, "strip", z.ZodTypeAny, {
|
|
2951
|
+
latitude: number;
|
|
2952
|
+
longitude: number;
|
|
2953
|
+
name?: string | undefined;
|
|
2954
|
+
address?: string | undefined;
|
|
2955
|
+
url?: string | undefined;
|
|
2956
|
+
}, {
|
|
2957
|
+
latitude: number;
|
|
2958
|
+
longitude: number;
|
|
2959
|
+
name?: string | undefined;
|
|
2960
|
+
address?: string | undefined;
|
|
2961
|
+
url?: string | undefined;
|
|
2962
|
+
}>>;
|
|
2476
2963
|
context: z.ZodOptional<z.ZodObject<{
|
|
2477
2964
|
from: z.ZodOptional<z.ZodString>;
|
|
2478
2965
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2566,6 +3053,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2566
3053
|
}[];
|
|
2567
3054
|
text?: string | undefined;
|
|
2568
3055
|
} | undefined;
|
|
3056
|
+
location?: {
|
|
3057
|
+
latitude: number;
|
|
3058
|
+
longitude: number;
|
|
3059
|
+
name?: string | undefined;
|
|
3060
|
+
address?: string | undefined;
|
|
3061
|
+
url?: string | undefined;
|
|
3062
|
+
} | undefined;
|
|
2569
3063
|
context?: {
|
|
2570
3064
|
id?: string | undefined;
|
|
2571
3065
|
from?: string | undefined;
|
|
@@ -2638,6 +3132,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2638
3132
|
}[];
|
|
2639
3133
|
text?: string | undefined;
|
|
2640
3134
|
} | undefined;
|
|
3135
|
+
location?: {
|
|
3136
|
+
latitude: number;
|
|
3137
|
+
longitude: number;
|
|
3138
|
+
name?: string | undefined;
|
|
3139
|
+
address?: string | undefined;
|
|
3140
|
+
url?: string | undefined;
|
|
3141
|
+
} | undefined;
|
|
2641
3142
|
context?: {
|
|
2642
3143
|
id?: string | undefined;
|
|
2643
3144
|
from?: string | undefined;
|
|
@@ -2688,16 +3189,63 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2688
3189
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
2689
3190
|
timestamp: z.ZodString;
|
|
2690
3191
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
3192
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3193
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
3194
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3195
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3196
|
+
href: z.ZodOptional<z.ZodString>;
|
|
3197
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
3198
|
+
details: z.ZodOptional<z.ZodString>;
|
|
3199
|
+
}, "strip", z.ZodTypeAny, {
|
|
3200
|
+
details?: string | undefined;
|
|
3201
|
+
}, {
|
|
3202
|
+
details?: string | undefined;
|
|
3203
|
+
}>>;
|
|
3204
|
+
}, "strip", z.ZodTypeAny, {
|
|
3205
|
+
code?: number | undefined;
|
|
3206
|
+
message?: string | undefined;
|
|
3207
|
+
title?: string | undefined;
|
|
3208
|
+
href?: string | undefined;
|
|
3209
|
+
error_data?: {
|
|
3210
|
+
details?: string | undefined;
|
|
3211
|
+
} | undefined;
|
|
3212
|
+
}, {
|
|
3213
|
+
code?: number | undefined;
|
|
3214
|
+
message?: string | undefined;
|
|
3215
|
+
title?: string | undefined;
|
|
3216
|
+
href?: string | undefined;
|
|
3217
|
+
error_data?: {
|
|
3218
|
+
details?: string | undefined;
|
|
3219
|
+
} | undefined;
|
|
3220
|
+
}>, "many">>;
|
|
2691
3221
|
}, "strip", z.ZodTypeAny, {
|
|
2692
3222
|
id: string;
|
|
2693
3223
|
status: "sent" | "delivered" | "read" | "failed";
|
|
2694
3224
|
timestamp: string;
|
|
2695
3225
|
recipient_id?: string | undefined;
|
|
3226
|
+
errors?: {
|
|
3227
|
+
code?: number | undefined;
|
|
3228
|
+
message?: string | undefined;
|
|
3229
|
+
title?: string | undefined;
|
|
3230
|
+
href?: string | undefined;
|
|
3231
|
+
error_data?: {
|
|
3232
|
+
details?: string | undefined;
|
|
3233
|
+
} | undefined;
|
|
3234
|
+
}[] | undefined;
|
|
2696
3235
|
}, {
|
|
2697
3236
|
id: string;
|
|
2698
3237
|
status: "sent" | "delivered" | "read" | "failed";
|
|
2699
3238
|
timestamp: string;
|
|
2700
3239
|
recipient_id?: string | undefined;
|
|
3240
|
+
errors?: {
|
|
3241
|
+
code?: number | undefined;
|
|
3242
|
+
message?: string | undefined;
|
|
3243
|
+
title?: string | undefined;
|
|
3244
|
+
href?: string | undefined;
|
|
3245
|
+
error_data?: {
|
|
3246
|
+
details?: string | undefined;
|
|
3247
|
+
} | undefined;
|
|
3248
|
+
}[] | undefined;
|
|
2701
3249
|
}>, "many">>;
|
|
2702
3250
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
2703
3251
|
display_phone_number: z.ZodString;
|
|
@@ -2898,6 +3446,25 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2898
3446
|
}[];
|
|
2899
3447
|
text?: string | undefined;
|
|
2900
3448
|
}>>;
|
|
3449
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
3450
|
+
latitude: z.ZodNumber;
|
|
3451
|
+
longitude: z.ZodNumber;
|
|
3452
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3453
|
+
address: z.ZodOptional<z.ZodString>;
|
|
3454
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3455
|
+
}, "strip", z.ZodTypeAny, {
|
|
3456
|
+
latitude: number;
|
|
3457
|
+
longitude: number;
|
|
3458
|
+
name?: string | undefined;
|
|
3459
|
+
address?: string | undefined;
|
|
3460
|
+
url?: string | undefined;
|
|
3461
|
+
}, {
|
|
3462
|
+
latitude: number;
|
|
3463
|
+
longitude: number;
|
|
3464
|
+
name?: string | undefined;
|
|
3465
|
+
address?: string | undefined;
|
|
3466
|
+
url?: string | undefined;
|
|
3467
|
+
}>>;
|
|
2901
3468
|
context: z.ZodOptional<z.ZodObject<{
|
|
2902
3469
|
from: z.ZodOptional<z.ZodString>;
|
|
2903
3470
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -2991,6 +3558,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
2991
3558
|
}[];
|
|
2992
3559
|
text?: string | undefined;
|
|
2993
3560
|
} | undefined;
|
|
3561
|
+
location?: {
|
|
3562
|
+
latitude: number;
|
|
3563
|
+
longitude: number;
|
|
3564
|
+
name?: string | undefined;
|
|
3565
|
+
address?: string | undefined;
|
|
3566
|
+
url?: string | undefined;
|
|
3567
|
+
} | undefined;
|
|
2994
3568
|
context?: {
|
|
2995
3569
|
id?: string | undefined;
|
|
2996
3570
|
from?: string | undefined;
|
|
@@ -3063,6 +3637,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
3063
3637
|
}[];
|
|
3064
3638
|
text?: string | undefined;
|
|
3065
3639
|
} | undefined;
|
|
3640
|
+
location?: {
|
|
3641
|
+
latitude: number;
|
|
3642
|
+
longitude: number;
|
|
3643
|
+
name?: string | undefined;
|
|
3644
|
+
address?: string | undefined;
|
|
3645
|
+
url?: string | undefined;
|
|
3646
|
+
} | undefined;
|
|
3066
3647
|
context?: {
|
|
3067
3648
|
id?: string | undefined;
|
|
3068
3649
|
from?: string | undefined;
|
|
@@ -3113,16 +3694,63 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
3113
3694
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
3114
3695
|
timestamp: z.ZodString;
|
|
3115
3696
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
3697
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3698
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
3699
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3700
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3701
|
+
href: z.ZodOptional<z.ZodString>;
|
|
3702
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
3703
|
+
details: z.ZodOptional<z.ZodString>;
|
|
3704
|
+
}, "strip", z.ZodTypeAny, {
|
|
3705
|
+
details?: string | undefined;
|
|
3706
|
+
}, {
|
|
3707
|
+
details?: string | undefined;
|
|
3708
|
+
}>>;
|
|
3709
|
+
}, "strip", z.ZodTypeAny, {
|
|
3710
|
+
code?: number | undefined;
|
|
3711
|
+
message?: string | undefined;
|
|
3712
|
+
title?: string | undefined;
|
|
3713
|
+
href?: string | undefined;
|
|
3714
|
+
error_data?: {
|
|
3715
|
+
details?: string | undefined;
|
|
3716
|
+
} | undefined;
|
|
3717
|
+
}, {
|
|
3718
|
+
code?: number | undefined;
|
|
3719
|
+
message?: string | undefined;
|
|
3720
|
+
title?: string | undefined;
|
|
3721
|
+
href?: string | undefined;
|
|
3722
|
+
error_data?: {
|
|
3723
|
+
details?: string | undefined;
|
|
3724
|
+
} | undefined;
|
|
3725
|
+
}>, "many">>;
|
|
3116
3726
|
}, "strip", z.ZodTypeAny, {
|
|
3117
3727
|
id: string;
|
|
3118
3728
|
status: "sent" | "delivered" | "read" | "failed";
|
|
3119
3729
|
timestamp: string;
|
|
3120
3730
|
recipient_id?: string | undefined;
|
|
3731
|
+
errors?: {
|
|
3732
|
+
code?: number | undefined;
|
|
3733
|
+
message?: string | undefined;
|
|
3734
|
+
title?: string | undefined;
|
|
3735
|
+
href?: string | undefined;
|
|
3736
|
+
error_data?: {
|
|
3737
|
+
details?: string | undefined;
|
|
3738
|
+
} | undefined;
|
|
3739
|
+
}[] | undefined;
|
|
3121
3740
|
}, {
|
|
3122
3741
|
id: string;
|
|
3123
3742
|
status: "sent" | "delivered" | "read" | "failed";
|
|
3124
3743
|
timestamp: string;
|
|
3125
3744
|
recipient_id?: string | undefined;
|
|
3745
|
+
errors?: {
|
|
3746
|
+
code?: number | undefined;
|
|
3747
|
+
message?: string | undefined;
|
|
3748
|
+
title?: string | undefined;
|
|
3749
|
+
href?: string | undefined;
|
|
3750
|
+
error_data?: {
|
|
3751
|
+
details?: string | undefined;
|
|
3752
|
+
} | undefined;
|
|
3753
|
+
}[] | undefined;
|
|
3126
3754
|
}>, "many">>;
|
|
3127
3755
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3128
3756
|
display_phone_number: z.ZodString;
|
|
@@ -3201,6 +3829,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
3201
3829
|
}[];
|
|
3202
3830
|
text?: string | undefined;
|
|
3203
3831
|
} | undefined;
|
|
3832
|
+
location?: {
|
|
3833
|
+
latitude: number;
|
|
3834
|
+
longitude: number;
|
|
3835
|
+
name?: string | undefined;
|
|
3836
|
+
address?: string | undefined;
|
|
3837
|
+
url?: string | undefined;
|
|
3838
|
+
} | undefined;
|
|
3204
3839
|
context?: {
|
|
3205
3840
|
id?: string | undefined;
|
|
3206
3841
|
from?: string | undefined;
|
|
@@ -3228,6 +3863,15 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
3228
3863
|
status: "sent" | "delivered" | "read" | "failed";
|
|
3229
3864
|
timestamp: string;
|
|
3230
3865
|
recipient_id?: string | undefined;
|
|
3866
|
+
errors?: {
|
|
3867
|
+
code?: number | undefined;
|
|
3868
|
+
message?: string | undefined;
|
|
3869
|
+
title?: string | undefined;
|
|
3870
|
+
href?: string | undefined;
|
|
3871
|
+
error_data?: {
|
|
3872
|
+
details?: string | undefined;
|
|
3873
|
+
} | undefined;
|
|
3874
|
+
}[] | undefined;
|
|
3231
3875
|
}[] | undefined;
|
|
3232
3876
|
metadata?: {
|
|
3233
3877
|
display_phone_number: string;
|
|
@@ -3303,6 +3947,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
3303
3947
|
}[];
|
|
3304
3948
|
text?: string | undefined;
|
|
3305
3949
|
} | undefined;
|
|
3950
|
+
location?: {
|
|
3951
|
+
latitude: number;
|
|
3952
|
+
longitude: number;
|
|
3953
|
+
name?: string | undefined;
|
|
3954
|
+
address?: string | undefined;
|
|
3955
|
+
url?: string | undefined;
|
|
3956
|
+
} | undefined;
|
|
3306
3957
|
context?: {
|
|
3307
3958
|
id?: string | undefined;
|
|
3308
3959
|
from?: string | undefined;
|
|
@@ -3330,6 +3981,15 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
|
|
|
3330
3981
|
status: "sent" | "delivered" | "read" | "failed";
|
|
3331
3982
|
timestamp: string;
|
|
3332
3983
|
recipient_id?: string | undefined;
|
|
3984
|
+
errors?: {
|
|
3985
|
+
code?: number | undefined;
|
|
3986
|
+
message?: string | undefined;
|
|
3987
|
+
title?: string | undefined;
|
|
3988
|
+
href?: string | undefined;
|
|
3989
|
+
error_data?: {
|
|
3990
|
+
details?: string | undefined;
|
|
3991
|
+
} | undefined;
|
|
3992
|
+
}[] | undefined;
|
|
3333
3993
|
}[] | undefined;
|
|
3334
3994
|
metadata?: {
|
|
3335
3995
|
display_phone_number: string;
|
|
@@ -3536,6 +4196,25 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
3536
4196
|
}[];
|
|
3537
4197
|
text?: string | undefined;
|
|
3538
4198
|
}>>;
|
|
4199
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
4200
|
+
latitude: z.ZodNumber;
|
|
4201
|
+
longitude: z.ZodNumber;
|
|
4202
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4203
|
+
address: z.ZodOptional<z.ZodString>;
|
|
4204
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4205
|
+
}, "strip", z.ZodTypeAny, {
|
|
4206
|
+
latitude: number;
|
|
4207
|
+
longitude: number;
|
|
4208
|
+
name?: string | undefined;
|
|
4209
|
+
address?: string | undefined;
|
|
4210
|
+
url?: string | undefined;
|
|
4211
|
+
}, {
|
|
4212
|
+
latitude: number;
|
|
4213
|
+
longitude: number;
|
|
4214
|
+
name?: string | undefined;
|
|
4215
|
+
address?: string | undefined;
|
|
4216
|
+
url?: string | undefined;
|
|
4217
|
+
}>>;
|
|
3539
4218
|
context: z.ZodOptional<z.ZodObject<{
|
|
3540
4219
|
from: z.ZodOptional<z.ZodString>;
|
|
3541
4220
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -3629,6 +4308,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
3629
4308
|
}[];
|
|
3630
4309
|
text?: string | undefined;
|
|
3631
4310
|
} | undefined;
|
|
4311
|
+
location?: {
|
|
4312
|
+
latitude: number;
|
|
4313
|
+
longitude: number;
|
|
4314
|
+
name?: string | undefined;
|
|
4315
|
+
address?: string | undefined;
|
|
4316
|
+
url?: string | undefined;
|
|
4317
|
+
} | undefined;
|
|
3632
4318
|
context?: {
|
|
3633
4319
|
id?: string | undefined;
|
|
3634
4320
|
from?: string | undefined;
|
|
@@ -3701,6 +4387,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
3701
4387
|
}[];
|
|
3702
4388
|
text?: string | undefined;
|
|
3703
4389
|
} | undefined;
|
|
4390
|
+
location?: {
|
|
4391
|
+
latitude: number;
|
|
4392
|
+
longitude: number;
|
|
4393
|
+
name?: string | undefined;
|
|
4394
|
+
address?: string | undefined;
|
|
4395
|
+
url?: string | undefined;
|
|
4396
|
+
} | undefined;
|
|
3704
4397
|
context?: {
|
|
3705
4398
|
id?: string | undefined;
|
|
3706
4399
|
from?: string | undefined;
|
|
@@ -3751,16 +4444,63 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
3751
4444
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
3752
4445
|
timestamp: z.ZodString;
|
|
3753
4446
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
4447
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4448
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
4449
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4450
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4451
|
+
href: z.ZodOptional<z.ZodString>;
|
|
4452
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
4453
|
+
details: z.ZodOptional<z.ZodString>;
|
|
4454
|
+
}, "strip", z.ZodTypeAny, {
|
|
4455
|
+
details?: string | undefined;
|
|
4456
|
+
}, {
|
|
4457
|
+
details?: string | undefined;
|
|
4458
|
+
}>>;
|
|
4459
|
+
}, "strip", z.ZodTypeAny, {
|
|
4460
|
+
code?: number | undefined;
|
|
4461
|
+
message?: string | undefined;
|
|
4462
|
+
title?: string | undefined;
|
|
4463
|
+
href?: string | undefined;
|
|
4464
|
+
error_data?: {
|
|
4465
|
+
details?: string | undefined;
|
|
4466
|
+
} | undefined;
|
|
4467
|
+
}, {
|
|
4468
|
+
code?: number | undefined;
|
|
4469
|
+
message?: string | undefined;
|
|
4470
|
+
title?: string | undefined;
|
|
4471
|
+
href?: string | undefined;
|
|
4472
|
+
error_data?: {
|
|
4473
|
+
details?: string | undefined;
|
|
4474
|
+
} | undefined;
|
|
4475
|
+
}>, "many">>;
|
|
3754
4476
|
}, "strip", z.ZodTypeAny, {
|
|
3755
4477
|
id: string;
|
|
3756
4478
|
status: "sent" | "delivered" | "read" | "failed";
|
|
3757
4479
|
timestamp: string;
|
|
3758
4480
|
recipient_id?: string | undefined;
|
|
4481
|
+
errors?: {
|
|
4482
|
+
code?: number | undefined;
|
|
4483
|
+
message?: string | undefined;
|
|
4484
|
+
title?: string | undefined;
|
|
4485
|
+
href?: string | undefined;
|
|
4486
|
+
error_data?: {
|
|
4487
|
+
details?: string | undefined;
|
|
4488
|
+
} | undefined;
|
|
4489
|
+
}[] | undefined;
|
|
3759
4490
|
}, {
|
|
3760
4491
|
id: string;
|
|
3761
4492
|
status: "sent" | "delivered" | "read" | "failed";
|
|
3762
4493
|
timestamp: string;
|
|
3763
4494
|
recipient_id?: string | undefined;
|
|
4495
|
+
errors?: {
|
|
4496
|
+
code?: number | undefined;
|
|
4497
|
+
message?: string | undefined;
|
|
4498
|
+
title?: string | undefined;
|
|
4499
|
+
href?: string | undefined;
|
|
4500
|
+
error_data?: {
|
|
4501
|
+
details?: string | undefined;
|
|
4502
|
+
} | undefined;
|
|
4503
|
+
}[] | undefined;
|
|
3764
4504
|
}>, "many">>;
|
|
3765
4505
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
3766
4506
|
display_phone_number: z.ZodString;
|
|
@@ -3961,6 +4701,25 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
3961
4701
|
}[];
|
|
3962
4702
|
text?: string | undefined;
|
|
3963
4703
|
}>>;
|
|
4704
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
4705
|
+
latitude: z.ZodNumber;
|
|
4706
|
+
longitude: z.ZodNumber;
|
|
4707
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4708
|
+
address: z.ZodOptional<z.ZodString>;
|
|
4709
|
+
url: z.ZodOptional<z.ZodString>;
|
|
4710
|
+
}, "strip", z.ZodTypeAny, {
|
|
4711
|
+
latitude: number;
|
|
4712
|
+
longitude: number;
|
|
4713
|
+
name?: string | undefined;
|
|
4714
|
+
address?: string | undefined;
|
|
4715
|
+
url?: string | undefined;
|
|
4716
|
+
}, {
|
|
4717
|
+
latitude: number;
|
|
4718
|
+
longitude: number;
|
|
4719
|
+
name?: string | undefined;
|
|
4720
|
+
address?: string | undefined;
|
|
4721
|
+
url?: string | undefined;
|
|
4722
|
+
}>>;
|
|
3964
4723
|
context: z.ZodOptional<z.ZodObject<{
|
|
3965
4724
|
from: z.ZodOptional<z.ZodString>;
|
|
3966
4725
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -4054,6 +4813,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4054
4813
|
}[];
|
|
4055
4814
|
text?: string | undefined;
|
|
4056
4815
|
} | undefined;
|
|
4816
|
+
location?: {
|
|
4817
|
+
latitude: number;
|
|
4818
|
+
longitude: number;
|
|
4819
|
+
name?: string | undefined;
|
|
4820
|
+
address?: string | undefined;
|
|
4821
|
+
url?: string | undefined;
|
|
4822
|
+
} | undefined;
|
|
4057
4823
|
context?: {
|
|
4058
4824
|
id?: string | undefined;
|
|
4059
4825
|
from?: string | undefined;
|
|
@@ -4126,6 +4892,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4126
4892
|
}[];
|
|
4127
4893
|
text?: string | undefined;
|
|
4128
4894
|
} | undefined;
|
|
4895
|
+
location?: {
|
|
4896
|
+
latitude: number;
|
|
4897
|
+
longitude: number;
|
|
4898
|
+
name?: string | undefined;
|
|
4899
|
+
address?: string | undefined;
|
|
4900
|
+
url?: string | undefined;
|
|
4901
|
+
} | undefined;
|
|
4129
4902
|
context?: {
|
|
4130
4903
|
id?: string | undefined;
|
|
4131
4904
|
from?: string | undefined;
|
|
@@ -4176,16 +4949,63 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4176
4949
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
4177
4950
|
timestamp: z.ZodString;
|
|
4178
4951
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
4952
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4953
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
4954
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4955
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4956
|
+
href: z.ZodOptional<z.ZodString>;
|
|
4957
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
4958
|
+
details: z.ZodOptional<z.ZodString>;
|
|
4959
|
+
}, "strip", z.ZodTypeAny, {
|
|
4960
|
+
details?: string | undefined;
|
|
4961
|
+
}, {
|
|
4962
|
+
details?: string | undefined;
|
|
4963
|
+
}>>;
|
|
4964
|
+
}, "strip", z.ZodTypeAny, {
|
|
4965
|
+
code?: number | undefined;
|
|
4966
|
+
message?: string | undefined;
|
|
4967
|
+
title?: string | undefined;
|
|
4968
|
+
href?: string | undefined;
|
|
4969
|
+
error_data?: {
|
|
4970
|
+
details?: string | undefined;
|
|
4971
|
+
} | undefined;
|
|
4972
|
+
}, {
|
|
4973
|
+
code?: number | undefined;
|
|
4974
|
+
message?: string | undefined;
|
|
4975
|
+
title?: string | undefined;
|
|
4976
|
+
href?: string | undefined;
|
|
4977
|
+
error_data?: {
|
|
4978
|
+
details?: string | undefined;
|
|
4979
|
+
} | undefined;
|
|
4980
|
+
}>, "many">>;
|
|
4179
4981
|
}, "strip", z.ZodTypeAny, {
|
|
4180
4982
|
id: string;
|
|
4181
4983
|
status: "sent" | "delivered" | "read" | "failed";
|
|
4182
4984
|
timestamp: string;
|
|
4183
4985
|
recipient_id?: string | undefined;
|
|
4986
|
+
errors?: {
|
|
4987
|
+
code?: number | undefined;
|
|
4988
|
+
message?: string | undefined;
|
|
4989
|
+
title?: string | undefined;
|
|
4990
|
+
href?: string | undefined;
|
|
4991
|
+
error_data?: {
|
|
4992
|
+
details?: string | undefined;
|
|
4993
|
+
} | undefined;
|
|
4994
|
+
}[] | undefined;
|
|
4184
4995
|
}, {
|
|
4185
4996
|
id: string;
|
|
4186
4997
|
status: "sent" | "delivered" | "read" | "failed";
|
|
4187
4998
|
timestamp: string;
|
|
4188
4999
|
recipient_id?: string | undefined;
|
|
5000
|
+
errors?: {
|
|
5001
|
+
code?: number | undefined;
|
|
5002
|
+
message?: string | undefined;
|
|
5003
|
+
title?: string | undefined;
|
|
5004
|
+
href?: string | undefined;
|
|
5005
|
+
error_data?: {
|
|
5006
|
+
details?: string | undefined;
|
|
5007
|
+
} | undefined;
|
|
5008
|
+
}[] | undefined;
|
|
4189
5009
|
}>, "many">>;
|
|
4190
5010
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4191
5011
|
display_phone_number: z.ZodString;
|
|
@@ -4386,6 +5206,25 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4386
5206
|
}[];
|
|
4387
5207
|
text?: string | undefined;
|
|
4388
5208
|
}>>;
|
|
5209
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
5210
|
+
latitude: z.ZodNumber;
|
|
5211
|
+
longitude: z.ZodNumber;
|
|
5212
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5213
|
+
address: z.ZodOptional<z.ZodString>;
|
|
5214
|
+
url: z.ZodOptional<z.ZodString>;
|
|
5215
|
+
}, "strip", z.ZodTypeAny, {
|
|
5216
|
+
latitude: number;
|
|
5217
|
+
longitude: number;
|
|
5218
|
+
name?: string | undefined;
|
|
5219
|
+
address?: string | undefined;
|
|
5220
|
+
url?: string | undefined;
|
|
5221
|
+
}, {
|
|
5222
|
+
latitude: number;
|
|
5223
|
+
longitude: number;
|
|
5224
|
+
name?: string | undefined;
|
|
5225
|
+
address?: string | undefined;
|
|
5226
|
+
url?: string | undefined;
|
|
5227
|
+
}>>;
|
|
4389
5228
|
context: z.ZodOptional<z.ZodObject<{
|
|
4390
5229
|
from: z.ZodOptional<z.ZodString>;
|
|
4391
5230
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -4479,6 +5318,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4479
5318
|
}[];
|
|
4480
5319
|
text?: string | undefined;
|
|
4481
5320
|
} | undefined;
|
|
5321
|
+
location?: {
|
|
5322
|
+
latitude: number;
|
|
5323
|
+
longitude: number;
|
|
5324
|
+
name?: string | undefined;
|
|
5325
|
+
address?: string | undefined;
|
|
5326
|
+
url?: string | undefined;
|
|
5327
|
+
} | undefined;
|
|
4482
5328
|
context?: {
|
|
4483
5329
|
id?: string | undefined;
|
|
4484
5330
|
from?: string | undefined;
|
|
@@ -4551,6 +5397,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4551
5397
|
}[];
|
|
4552
5398
|
text?: string | undefined;
|
|
4553
5399
|
} | undefined;
|
|
5400
|
+
location?: {
|
|
5401
|
+
latitude: number;
|
|
5402
|
+
longitude: number;
|
|
5403
|
+
name?: string | undefined;
|
|
5404
|
+
address?: string | undefined;
|
|
5405
|
+
url?: string | undefined;
|
|
5406
|
+
} | undefined;
|
|
4554
5407
|
context?: {
|
|
4555
5408
|
id?: string | undefined;
|
|
4556
5409
|
from?: string | undefined;
|
|
@@ -4601,16 +5454,63 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4601
5454
|
status: z.ZodEnum<["sent", "delivered", "read", "failed"]>;
|
|
4602
5455
|
timestamp: z.ZodString;
|
|
4603
5456
|
recipient_id: z.ZodOptional<z.ZodString>;
|
|
5457
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5458
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
5459
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5460
|
+
message: z.ZodOptional<z.ZodString>;
|
|
5461
|
+
href: z.ZodOptional<z.ZodString>;
|
|
5462
|
+
error_data: z.ZodOptional<z.ZodObject<{
|
|
5463
|
+
details: z.ZodOptional<z.ZodString>;
|
|
5464
|
+
}, "strip", z.ZodTypeAny, {
|
|
5465
|
+
details?: string | undefined;
|
|
5466
|
+
}, {
|
|
5467
|
+
details?: string | undefined;
|
|
5468
|
+
}>>;
|
|
5469
|
+
}, "strip", z.ZodTypeAny, {
|
|
5470
|
+
code?: number | undefined;
|
|
5471
|
+
message?: string | undefined;
|
|
5472
|
+
title?: string | undefined;
|
|
5473
|
+
href?: string | undefined;
|
|
5474
|
+
error_data?: {
|
|
5475
|
+
details?: string | undefined;
|
|
5476
|
+
} | undefined;
|
|
5477
|
+
}, {
|
|
5478
|
+
code?: number | undefined;
|
|
5479
|
+
message?: string | undefined;
|
|
5480
|
+
title?: string | undefined;
|
|
5481
|
+
href?: string | undefined;
|
|
5482
|
+
error_data?: {
|
|
5483
|
+
details?: string | undefined;
|
|
5484
|
+
} | undefined;
|
|
5485
|
+
}>, "many">>;
|
|
4604
5486
|
}, "strip", z.ZodTypeAny, {
|
|
4605
5487
|
id: string;
|
|
4606
5488
|
status: "sent" | "delivered" | "read" | "failed";
|
|
4607
5489
|
timestamp: string;
|
|
4608
5490
|
recipient_id?: string | undefined;
|
|
5491
|
+
errors?: {
|
|
5492
|
+
code?: number | undefined;
|
|
5493
|
+
message?: string | undefined;
|
|
5494
|
+
title?: string | undefined;
|
|
5495
|
+
href?: string | undefined;
|
|
5496
|
+
error_data?: {
|
|
5497
|
+
details?: string | undefined;
|
|
5498
|
+
} | undefined;
|
|
5499
|
+
}[] | undefined;
|
|
4609
5500
|
}, {
|
|
4610
5501
|
id: string;
|
|
4611
5502
|
status: "sent" | "delivered" | "read" | "failed";
|
|
4612
5503
|
timestamp: string;
|
|
4613
5504
|
recipient_id?: string | undefined;
|
|
5505
|
+
errors?: {
|
|
5506
|
+
code?: number | undefined;
|
|
5507
|
+
message?: string | undefined;
|
|
5508
|
+
title?: string | undefined;
|
|
5509
|
+
href?: string | undefined;
|
|
5510
|
+
error_data?: {
|
|
5511
|
+
details?: string | undefined;
|
|
5512
|
+
} | undefined;
|
|
5513
|
+
}[] | undefined;
|
|
4614
5514
|
}>, "many">>;
|
|
4615
5515
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4616
5516
|
display_phone_number: z.ZodString;
|
|
@@ -4689,6 +5589,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4689
5589
|
}[];
|
|
4690
5590
|
text?: string | undefined;
|
|
4691
5591
|
} | undefined;
|
|
5592
|
+
location?: {
|
|
5593
|
+
latitude: number;
|
|
5594
|
+
longitude: number;
|
|
5595
|
+
name?: string | undefined;
|
|
5596
|
+
address?: string | undefined;
|
|
5597
|
+
url?: string | undefined;
|
|
5598
|
+
} | undefined;
|
|
4692
5599
|
context?: {
|
|
4693
5600
|
id?: string | undefined;
|
|
4694
5601
|
from?: string | undefined;
|
|
@@ -4716,6 +5623,15 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4716
5623
|
status: "sent" | "delivered" | "read" | "failed";
|
|
4717
5624
|
timestamp: string;
|
|
4718
5625
|
recipient_id?: string | undefined;
|
|
5626
|
+
errors?: {
|
|
5627
|
+
code?: number | undefined;
|
|
5628
|
+
message?: string | undefined;
|
|
5629
|
+
title?: string | undefined;
|
|
5630
|
+
href?: string | undefined;
|
|
5631
|
+
error_data?: {
|
|
5632
|
+
details?: string | undefined;
|
|
5633
|
+
} | undefined;
|
|
5634
|
+
}[] | undefined;
|
|
4719
5635
|
}[] | undefined;
|
|
4720
5636
|
metadata?: {
|
|
4721
5637
|
display_phone_number: string;
|
|
@@ -4791,6 +5707,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4791
5707
|
}[];
|
|
4792
5708
|
text?: string | undefined;
|
|
4793
5709
|
} | undefined;
|
|
5710
|
+
location?: {
|
|
5711
|
+
latitude: number;
|
|
5712
|
+
longitude: number;
|
|
5713
|
+
name?: string | undefined;
|
|
5714
|
+
address?: string | undefined;
|
|
5715
|
+
url?: string | undefined;
|
|
5716
|
+
} | undefined;
|
|
4794
5717
|
context?: {
|
|
4795
5718
|
id?: string | undefined;
|
|
4796
5719
|
from?: string | undefined;
|
|
@@ -4818,6 +5741,15 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4818
5741
|
status: "sent" | "delivered" | "read" | "failed";
|
|
4819
5742
|
timestamp: string;
|
|
4820
5743
|
recipient_id?: string | undefined;
|
|
5744
|
+
errors?: {
|
|
5745
|
+
code?: number | undefined;
|
|
5746
|
+
message?: string | undefined;
|
|
5747
|
+
title?: string | undefined;
|
|
5748
|
+
href?: string | undefined;
|
|
5749
|
+
error_data?: {
|
|
5750
|
+
details?: string | undefined;
|
|
5751
|
+
} | undefined;
|
|
5752
|
+
}[] | undefined;
|
|
4821
5753
|
}[] | undefined;
|
|
4822
5754
|
metadata?: {
|
|
4823
5755
|
display_phone_number: string;
|
|
@@ -4896,6 +5828,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4896
5828
|
}[];
|
|
4897
5829
|
text?: string | undefined;
|
|
4898
5830
|
} | undefined;
|
|
5831
|
+
location?: {
|
|
5832
|
+
latitude: number;
|
|
5833
|
+
longitude: number;
|
|
5834
|
+
name?: string | undefined;
|
|
5835
|
+
address?: string | undefined;
|
|
5836
|
+
url?: string | undefined;
|
|
5837
|
+
} | undefined;
|
|
4899
5838
|
context?: {
|
|
4900
5839
|
id?: string | undefined;
|
|
4901
5840
|
from?: string | undefined;
|
|
@@ -4923,6 +5862,15 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
4923
5862
|
status: "sent" | "delivered" | "read" | "failed";
|
|
4924
5863
|
timestamp: string;
|
|
4925
5864
|
recipient_id?: string | undefined;
|
|
5865
|
+
errors?: {
|
|
5866
|
+
code?: number | undefined;
|
|
5867
|
+
message?: string | undefined;
|
|
5868
|
+
title?: string | undefined;
|
|
5869
|
+
href?: string | undefined;
|
|
5870
|
+
error_data?: {
|
|
5871
|
+
details?: string | undefined;
|
|
5872
|
+
} | undefined;
|
|
5873
|
+
}[] | undefined;
|
|
4926
5874
|
}[] | undefined;
|
|
4927
5875
|
metadata?: {
|
|
4928
5876
|
display_phone_number: string;
|
|
@@ -5001,6 +5949,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
5001
5949
|
}[];
|
|
5002
5950
|
text?: string | undefined;
|
|
5003
5951
|
} | undefined;
|
|
5952
|
+
location?: {
|
|
5953
|
+
latitude: number;
|
|
5954
|
+
longitude: number;
|
|
5955
|
+
name?: string | undefined;
|
|
5956
|
+
address?: string | undefined;
|
|
5957
|
+
url?: string | undefined;
|
|
5958
|
+
} | undefined;
|
|
5004
5959
|
context?: {
|
|
5005
5960
|
id?: string | undefined;
|
|
5006
5961
|
from?: string | undefined;
|
|
@@ -5028,6 +5983,15 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
5028
5983
|
status: "sent" | "delivered" | "read" | "failed";
|
|
5029
5984
|
timestamp: string;
|
|
5030
5985
|
recipient_id?: string | undefined;
|
|
5986
|
+
errors?: {
|
|
5987
|
+
code?: number | undefined;
|
|
5988
|
+
message?: string | undefined;
|
|
5989
|
+
title?: string | undefined;
|
|
5990
|
+
href?: string | undefined;
|
|
5991
|
+
error_data?: {
|
|
5992
|
+
details?: string | undefined;
|
|
5993
|
+
} | undefined;
|
|
5994
|
+
}[] | undefined;
|
|
5031
5995
|
}[] | undefined;
|
|
5032
5996
|
metadata?: {
|
|
5033
5997
|
display_phone_number: string;
|
|
@@ -5109,6 +6073,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
5109
6073
|
}[];
|
|
5110
6074
|
text?: string | undefined;
|
|
5111
6075
|
} | undefined;
|
|
6076
|
+
location?: {
|
|
6077
|
+
latitude: number;
|
|
6078
|
+
longitude: number;
|
|
6079
|
+
name?: string | undefined;
|
|
6080
|
+
address?: string | undefined;
|
|
6081
|
+
url?: string | undefined;
|
|
6082
|
+
} | undefined;
|
|
5112
6083
|
context?: {
|
|
5113
6084
|
id?: string | undefined;
|
|
5114
6085
|
from?: string | undefined;
|
|
@@ -5136,6 +6107,15 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
5136
6107
|
status: "sent" | "delivered" | "read" | "failed";
|
|
5137
6108
|
timestamp: string;
|
|
5138
6109
|
recipient_id?: string | undefined;
|
|
6110
|
+
errors?: {
|
|
6111
|
+
code?: number | undefined;
|
|
6112
|
+
message?: string | undefined;
|
|
6113
|
+
title?: string | undefined;
|
|
6114
|
+
href?: string | undefined;
|
|
6115
|
+
error_data?: {
|
|
6116
|
+
details?: string | undefined;
|
|
6117
|
+
} | undefined;
|
|
6118
|
+
}[] | undefined;
|
|
5139
6119
|
}[] | undefined;
|
|
5140
6120
|
metadata?: {
|
|
5141
6121
|
display_phone_number: string;
|
|
@@ -5217,6 +6197,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
5217
6197
|
}[];
|
|
5218
6198
|
text?: string | undefined;
|
|
5219
6199
|
} | undefined;
|
|
6200
|
+
location?: {
|
|
6201
|
+
latitude: number;
|
|
6202
|
+
longitude: number;
|
|
6203
|
+
name?: string | undefined;
|
|
6204
|
+
address?: string | undefined;
|
|
6205
|
+
url?: string | undefined;
|
|
6206
|
+
} | undefined;
|
|
5220
6207
|
context?: {
|
|
5221
6208
|
id?: string | undefined;
|
|
5222
6209
|
from?: string | undefined;
|
|
@@ -5244,6 +6231,15 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
|
|
|
5244
6231
|
status: "sent" | "delivered" | "read" | "failed";
|
|
5245
6232
|
timestamp: string;
|
|
5246
6233
|
recipient_id?: string | undefined;
|
|
6234
|
+
errors?: {
|
|
6235
|
+
code?: number | undefined;
|
|
6236
|
+
message?: string | undefined;
|
|
6237
|
+
title?: string | undefined;
|
|
6238
|
+
href?: string | undefined;
|
|
6239
|
+
error_data?: {
|
|
6240
|
+
details?: string | undefined;
|
|
6241
|
+
} | undefined;
|
|
6242
|
+
}[] | undefined;
|
|
5247
6243
|
}[] | undefined;
|
|
5248
6244
|
metadata?: {
|
|
5249
6245
|
display_phone_number: string;
|
|
@@ -5272,4 +6268,4 @@ declare function resolveContactProfileName(params: {
|
|
|
5272
6268
|
readonly from: string;
|
|
5273
6269
|
}): string | undefined;
|
|
5274
6270
|
|
|
5275
|
-
export {
|
|
6271
|
+
export { whatsAppOrderSchema as A, whatsAppPhoneNumberQualityUpdateSchema as B, whatsAppQualityEventSchema as C, whatsAppStatusErrorSchema as D, whatsAppStatusSchema as E, whatsAppTemplateStatusEventSchema as F, whatsAppTemplateStatusUpdateSchema as G, whatsAppWebhookChangeSchema as H, whatsAppWebhookPayloadSchema as I, whatsAppWebhookValueSchema as J, type WhatsAppMessage as W, type WhatsAppStatus as a, type WhatsAppTemplateStatusUpdate as b, type WhatsAppPhoneNumberQualityUpdate as c, WHATSAPP_WEBHOOK_FIELDS as d, type WhatsAppContact as e, type WhatsAppInteractive as f, type WhatsAppLocation as g, type WhatsAppMedia as h, type WhatsAppMessageEcho as i, type WhatsAppMessageStatusValue as j, type WhatsAppOrder as k, type WhatsAppQualityEvent as l, type WhatsAppStatusError as m, type WhatsAppTemplateStatusEvent as n, type WhatsAppWebhookChange as o, type WhatsAppWebhookField as p, type WhatsAppWebhookPayload as q, type WhatsAppWebhookValue as r, resolveContactProfileName as s, whatsAppInteractiveSchema as t, whatsAppLocationSchema as u, whatsAppMediaSchema as v, whatsAppContactSchema as w, whatsAppMessageEchoSchema as x, whatsAppMessageSchema as y, whatsAppMessageStatusSchema as z };
|