@adatechnology/meta-whatsapp-contracts 0.3.0 → 0.4.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.
@@ -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;
@@ -769,6 +822,25 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
769
822
  }[];
770
823
  text?: string | undefined;
771
824
  }>>;
825
+ location: z.ZodOptional<z.ZodObject<{
826
+ latitude: z.ZodNumber;
827
+ longitude: z.ZodNumber;
828
+ name: z.ZodOptional<z.ZodString>;
829
+ address: z.ZodOptional<z.ZodString>;
830
+ url: z.ZodOptional<z.ZodString>;
831
+ }, "strip", z.ZodTypeAny, {
832
+ latitude: number;
833
+ longitude: number;
834
+ name?: string | undefined;
835
+ address?: string | undefined;
836
+ url?: string | undefined;
837
+ }, {
838
+ latitude: number;
839
+ longitude: number;
840
+ name?: string | undefined;
841
+ address?: string | undefined;
842
+ url?: string | undefined;
843
+ }>>;
772
844
  context: z.ZodOptional<z.ZodObject<{
773
845
  from: z.ZodOptional<z.ZodString>;
774
846
  id: z.ZodOptional<z.ZodString>;
@@ -862,6 +934,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
862
934
  }[];
863
935
  text?: string | undefined;
864
936
  } | undefined;
937
+ location?: {
938
+ latitude: number;
939
+ longitude: number;
940
+ name?: string | undefined;
941
+ address?: string | undefined;
942
+ url?: string | undefined;
943
+ } | undefined;
865
944
  context?: {
866
945
  id?: string | undefined;
867
946
  from?: string | undefined;
@@ -934,6 +1013,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
934
1013
  }[];
935
1014
  text?: string | undefined;
936
1015
  } | undefined;
1016
+ location?: {
1017
+ latitude: number;
1018
+ longitude: number;
1019
+ name?: string | undefined;
1020
+ address?: string | undefined;
1021
+ url?: string | undefined;
1022
+ } | undefined;
937
1023
  context?: {
938
1024
  id?: string | undefined;
939
1025
  from?: string | undefined;
@@ -1194,6 +1280,25 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
1194
1280
  }[];
1195
1281
  text?: string | undefined;
1196
1282
  }>>;
1283
+ location: z.ZodOptional<z.ZodObject<{
1284
+ latitude: z.ZodNumber;
1285
+ longitude: z.ZodNumber;
1286
+ name: z.ZodOptional<z.ZodString>;
1287
+ address: z.ZodOptional<z.ZodString>;
1288
+ url: z.ZodOptional<z.ZodString>;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ latitude: number;
1291
+ longitude: number;
1292
+ name?: string | undefined;
1293
+ address?: string | undefined;
1294
+ url?: string | undefined;
1295
+ }, {
1296
+ latitude: number;
1297
+ longitude: number;
1298
+ name?: string | undefined;
1299
+ address?: string | undefined;
1300
+ url?: string | undefined;
1301
+ }>>;
1197
1302
  context: z.ZodOptional<z.ZodObject<{
1198
1303
  from: z.ZodOptional<z.ZodString>;
1199
1304
  id: z.ZodOptional<z.ZodString>;
@@ -1287,6 +1392,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
1287
1392
  }[];
1288
1393
  text?: string | undefined;
1289
1394
  } | undefined;
1395
+ location?: {
1396
+ latitude: number;
1397
+ longitude: number;
1398
+ name?: string | undefined;
1399
+ address?: string | undefined;
1400
+ url?: string | undefined;
1401
+ } | undefined;
1290
1402
  context?: {
1291
1403
  id?: string | undefined;
1292
1404
  from?: string | undefined;
@@ -1359,6 +1471,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
1359
1471
  }[];
1360
1472
  text?: string | undefined;
1361
1473
  } | undefined;
1474
+ location?: {
1475
+ latitude: number;
1476
+ longitude: number;
1477
+ name?: string | undefined;
1478
+ address?: string | undefined;
1479
+ url?: string | undefined;
1480
+ } | undefined;
1362
1481
  context?: {
1363
1482
  id?: string | undefined;
1364
1483
  from?: string | undefined;
@@ -1619,6 +1738,25 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
1619
1738
  }[];
1620
1739
  text?: string | undefined;
1621
1740
  }>>;
1741
+ location: z.ZodOptional<z.ZodObject<{
1742
+ latitude: z.ZodNumber;
1743
+ longitude: z.ZodNumber;
1744
+ name: z.ZodOptional<z.ZodString>;
1745
+ address: z.ZodOptional<z.ZodString>;
1746
+ url: z.ZodOptional<z.ZodString>;
1747
+ }, "strip", z.ZodTypeAny, {
1748
+ latitude: number;
1749
+ longitude: number;
1750
+ name?: string | undefined;
1751
+ address?: string | undefined;
1752
+ url?: string | undefined;
1753
+ }, {
1754
+ latitude: number;
1755
+ longitude: number;
1756
+ name?: string | undefined;
1757
+ address?: string | undefined;
1758
+ url?: string | undefined;
1759
+ }>>;
1622
1760
  context: z.ZodOptional<z.ZodObject<{
1623
1761
  from: z.ZodOptional<z.ZodString>;
1624
1762
  id: z.ZodOptional<z.ZodString>;
@@ -1712,6 +1850,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
1712
1850
  }[];
1713
1851
  text?: string | undefined;
1714
1852
  } | undefined;
1853
+ location?: {
1854
+ latitude: number;
1855
+ longitude: number;
1856
+ name?: string | undefined;
1857
+ address?: string | undefined;
1858
+ url?: string | undefined;
1859
+ } | undefined;
1715
1860
  context?: {
1716
1861
  id?: string | undefined;
1717
1862
  from?: string | undefined;
@@ -1784,6 +1929,13 @@ declare const whatsAppWebhookValueSchema: z.ZodObject<{
1784
1929
  }[];
1785
1930
  text?: string | undefined;
1786
1931
  } | undefined;
1932
+ location?: {
1933
+ latitude: number;
1934
+ longitude: number;
1935
+ name?: string | undefined;
1936
+ address?: string | undefined;
1937
+ url?: string | undefined;
1938
+ } | undefined;
1787
1939
  context?: {
1788
1940
  id?: string | undefined;
1789
1941
  from?: string | undefined;
@@ -2048,6 +2200,25 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2048
2200
  }[];
2049
2201
  text?: string | undefined;
2050
2202
  }>>;
2203
+ location: z.ZodOptional<z.ZodObject<{
2204
+ latitude: z.ZodNumber;
2205
+ longitude: z.ZodNumber;
2206
+ name: z.ZodOptional<z.ZodString>;
2207
+ address: z.ZodOptional<z.ZodString>;
2208
+ url: z.ZodOptional<z.ZodString>;
2209
+ }, "strip", z.ZodTypeAny, {
2210
+ latitude: number;
2211
+ longitude: number;
2212
+ name?: string | undefined;
2213
+ address?: string | undefined;
2214
+ url?: string | undefined;
2215
+ }, {
2216
+ latitude: number;
2217
+ longitude: number;
2218
+ name?: string | undefined;
2219
+ address?: string | undefined;
2220
+ url?: string | undefined;
2221
+ }>>;
2051
2222
  context: z.ZodOptional<z.ZodObject<{
2052
2223
  from: z.ZodOptional<z.ZodString>;
2053
2224
  id: z.ZodOptional<z.ZodString>;
@@ -2141,6 +2312,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2141
2312
  }[];
2142
2313
  text?: string | undefined;
2143
2314
  } | undefined;
2315
+ location?: {
2316
+ latitude: number;
2317
+ longitude: number;
2318
+ name?: string | undefined;
2319
+ address?: string | undefined;
2320
+ url?: string | undefined;
2321
+ } | undefined;
2144
2322
  context?: {
2145
2323
  id?: string | undefined;
2146
2324
  from?: string | undefined;
@@ -2213,6 +2391,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2213
2391
  }[];
2214
2392
  text?: string | undefined;
2215
2393
  } | undefined;
2394
+ location?: {
2395
+ latitude: number;
2396
+ longitude: number;
2397
+ name?: string | undefined;
2398
+ address?: string | undefined;
2399
+ url?: string | undefined;
2400
+ } | undefined;
2216
2401
  context?: {
2217
2402
  id?: string | undefined;
2218
2403
  from?: string | undefined;
@@ -2473,6 +2658,25 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2473
2658
  }[];
2474
2659
  text?: string | undefined;
2475
2660
  }>>;
2661
+ location: z.ZodOptional<z.ZodObject<{
2662
+ latitude: z.ZodNumber;
2663
+ longitude: z.ZodNumber;
2664
+ name: z.ZodOptional<z.ZodString>;
2665
+ address: z.ZodOptional<z.ZodString>;
2666
+ url: z.ZodOptional<z.ZodString>;
2667
+ }, "strip", z.ZodTypeAny, {
2668
+ latitude: number;
2669
+ longitude: number;
2670
+ name?: string | undefined;
2671
+ address?: string | undefined;
2672
+ url?: string | undefined;
2673
+ }, {
2674
+ latitude: number;
2675
+ longitude: number;
2676
+ name?: string | undefined;
2677
+ address?: string | undefined;
2678
+ url?: string | undefined;
2679
+ }>>;
2476
2680
  context: z.ZodOptional<z.ZodObject<{
2477
2681
  from: z.ZodOptional<z.ZodString>;
2478
2682
  id: z.ZodOptional<z.ZodString>;
@@ -2566,6 +2770,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2566
2770
  }[];
2567
2771
  text?: string | undefined;
2568
2772
  } | undefined;
2773
+ location?: {
2774
+ latitude: number;
2775
+ longitude: number;
2776
+ name?: string | undefined;
2777
+ address?: string | undefined;
2778
+ url?: string | undefined;
2779
+ } | undefined;
2569
2780
  context?: {
2570
2781
  id?: string | undefined;
2571
2782
  from?: string | undefined;
@@ -2638,6 +2849,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2638
2849
  }[];
2639
2850
  text?: string | undefined;
2640
2851
  } | undefined;
2852
+ location?: {
2853
+ latitude: number;
2854
+ longitude: number;
2855
+ name?: string | undefined;
2856
+ address?: string | undefined;
2857
+ url?: string | undefined;
2858
+ } | undefined;
2641
2859
  context?: {
2642
2860
  id?: string | undefined;
2643
2861
  from?: string | undefined;
@@ -2898,6 +3116,25 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2898
3116
  }[];
2899
3117
  text?: string | undefined;
2900
3118
  }>>;
3119
+ location: z.ZodOptional<z.ZodObject<{
3120
+ latitude: z.ZodNumber;
3121
+ longitude: z.ZodNumber;
3122
+ name: z.ZodOptional<z.ZodString>;
3123
+ address: z.ZodOptional<z.ZodString>;
3124
+ url: z.ZodOptional<z.ZodString>;
3125
+ }, "strip", z.ZodTypeAny, {
3126
+ latitude: number;
3127
+ longitude: number;
3128
+ name?: string | undefined;
3129
+ address?: string | undefined;
3130
+ url?: string | undefined;
3131
+ }, {
3132
+ latitude: number;
3133
+ longitude: number;
3134
+ name?: string | undefined;
3135
+ address?: string | undefined;
3136
+ url?: string | undefined;
3137
+ }>>;
2901
3138
  context: z.ZodOptional<z.ZodObject<{
2902
3139
  from: z.ZodOptional<z.ZodString>;
2903
3140
  id: z.ZodOptional<z.ZodString>;
@@ -2991,6 +3228,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
2991
3228
  }[];
2992
3229
  text?: string | undefined;
2993
3230
  } | undefined;
3231
+ location?: {
3232
+ latitude: number;
3233
+ longitude: number;
3234
+ name?: string | undefined;
3235
+ address?: string | undefined;
3236
+ url?: string | undefined;
3237
+ } | undefined;
2994
3238
  context?: {
2995
3239
  id?: string | undefined;
2996
3240
  from?: string | undefined;
@@ -3063,6 +3307,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
3063
3307
  }[];
3064
3308
  text?: string | undefined;
3065
3309
  } | undefined;
3310
+ location?: {
3311
+ latitude: number;
3312
+ longitude: number;
3313
+ name?: string | undefined;
3314
+ address?: string | undefined;
3315
+ url?: string | undefined;
3316
+ } | undefined;
3066
3317
  context?: {
3067
3318
  id?: string | undefined;
3068
3319
  from?: string | undefined;
@@ -3201,6 +3452,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
3201
3452
  }[];
3202
3453
  text?: string | undefined;
3203
3454
  } | undefined;
3455
+ location?: {
3456
+ latitude: number;
3457
+ longitude: number;
3458
+ name?: string | undefined;
3459
+ address?: string | undefined;
3460
+ url?: string | undefined;
3461
+ } | undefined;
3204
3462
  context?: {
3205
3463
  id?: string | undefined;
3206
3464
  from?: string | undefined;
@@ -3303,6 +3561,13 @@ declare const whatsAppWebhookChangeSchema: z.ZodObject<{
3303
3561
  }[];
3304
3562
  text?: string | undefined;
3305
3563
  } | undefined;
3564
+ location?: {
3565
+ latitude: number;
3566
+ longitude: number;
3567
+ name?: string | undefined;
3568
+ address?: string | undefined;
3569
+ url?: string | undefined;
3570
+ } | undefined;
3306
3571
  context?: {
3307
3572
  id?: string | undefined;
3308
3573
  from?: string | undefined;
@@ -3536,6 +3801,25 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
3536
3801
  }[];
3537
3802
  text?: string | undefined;
3538
3803
  }>>;
3804
+ location: z.ZodOptional<z.ZodObject<{
3805
+ latitude: z.ZodNumber;
3806
+ longitude: z.ZodNumber;
3807
+ name: z.ZodOptional<z.ZodString>;
3808
+ address: z.ZodOptional<z.ZodString>;
3809
+ url: z.ZodOptional<z.ZodString>;
3810
+ }, "strip", z.ZodTypeAny, {
3811
+ latitude: number;
3812
+ longitude: number;
3813
+ name?: string | undefined;
3814
+ address?: string | undefined;
3815
+ url?: string | undefined;
3816
+ }, {
3817
+ latitude: number;
3818
+ longitude: number;
3819
+ name?: string | undefined;
3820
+ address?: string | undefined;
3821
+ url?: string | undefined;
3822
+ }>>;
3539
3823
  context: z.ZodOptional<z.ZodObject<{
3540
3824
  from: z.ZodOptional<z.ZodString>;
3541
3825
  id: z.ZodOptional<z.ZodString>;
@@ -3629,6 +3913,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
3629
3913
  }[];
3630
3914
  text?: string | undefined;
3631
3915
  } | undefined;
3916
+ location?: {
3917
+ latitude: number;
3918
+ longitude: number;
3919
+ name?: string | undefined;
3920
+ address?: string | undefined;
3921
+ url?: string | undefined;
3922
+ } | undefined;
3632
3923
  context?: {
3633
3924
  id?: string | undefined;
3634
3925
  from?: string | undefined;
@@ -3701,6 +3992,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
3701
3992
  }[];
3702
3993
  text?: string | undefined;
3703
3994
  } | undefined;
3995
+ location?: {
3996
+ latitude: number;
3997
+ longitude: number;
3998
+ name?: string | undefined;
3999
+ address?: string | undefined;
4000
+ url?: string | undefined;
4001
+ } | undefined;
3704
4002
  context?: {
3705
4003
  id?: string | undefined;
3706
4004
  from?: string | undefined;
@@ -3961,6 +4259,25 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
3961
4259
  }[];
3962
4260
  text?: string | undefined;
3963
4261
  }>>;
4262
+ location: z.ZodOptional<z.ZodObject<{
4263
+ latitude: z.ZodNumber;
4264
+ longitude: z.ZodNumber;
4265
+ name: z.ZodOptional<z.ZodString>;
4266
+ address: z.ZodOptional<z.ZodString>;
4267
+ url: z.ZodOptional<z.ZodString>;
4268
+ }, "strip", z.ZodTypeAny, {
4269
+ latitude: number;
4270
+ longitude: number;
4271
+ name?: string | undefined;
4272
+ address?: string | undefined;
4273
+ url?: string | undefined;
4274
+ }, {
4275
+ latitude: number;
4276
+ longitude: number;
4277
+ name?: string | undefined;
4278
+ address?: string | undefined;
4279
+ url?: string | undefined;
4280
+ }>>;
3964
4281
  context: z.ZodOptional<z.ZodObject<{
3965
4282
  from: z.ZodOptional<z.ZodString>;
3966
4283
  id: z.ZodOptional<z.ZodString>;
@@ -4054,6 +4371,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4054
4371
  }[];
4055
4372
  text?: string | undefined;
4056
4373
  } | undefined;
4374
+ location?: {
4375
+ latitude: number;
4376
+ longitude: number;
4377
+ name?: string | undefined;
4378
+ address?: string | undefined;
4379
+ url?: string | undefined;
4380
+ } | undefined;
4057
4381
  context?: {
4058
4382
  id?: string | undefined;
4059
4383
  from?: string | undefined;
@@ -4126,6 +4450,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4126
4450
  }[];
4127
4451
  text?: string | undefined;
4128
4452
  } | undefined;
4453
+ location?: {
4454
+ latitude: number;
4455
+ longitude: number;
4456
+ name?: string | undefined;
4457
+ address?: string | undefined;
4458
+ url?: string | undefined;
4459
+ } | undefined;
4129
4460
  context?: {
4130
4461
  id?: string | undefined;
4131
4462
  from?: string | undefined;
@@ -4386,6 +4717,25 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4386
4717
  }[];
4387
4718
  text?: string | undefined;
4388
4719
  }>>;
4720
+ location: z.ZodOptional<z.ZodObject<{
4721
+ latitude: z.ZodNumber;
4722
+ longitude: z.ZodNumber;
4723
+ name: z.ZodOptional<z.ZodString>;
4724
+ address: z.ZodOptional<z.ZodString>;
4725
+ url: z.ZodOptional<z.ZodString>;
4726
+ }, "strip", z.ZodTypeAny, {
4727
+ latitude: number;
4728
+ longitude: number;
4729
+ name?: string | undefined;
4730
+ address?: string | undefined;
4731
+ url?: string | undefined;
4732
+ }, {
4733
+ latitude: number;
4734
+ longitude: number;
4735
+ name?: string | undefined;
4736
+ address?: string | undefined;
4737
+ url?: string | undefined;
4738
+ }>>;
4389
4739
  context: z.ZodOptional<z.ZodObject<{
4390
4740
  from: z.ZodOptional<z.ZodString>;
4391
4741
  id: z.ZodOptional<z.ZodString>;
@@ -4479,6 +4829,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4479
4829
  }[];
4480
4830
  text?: string | undefined;
4481
4831
  } | undefined;
4832
+ location?: {
4833
+ latitude: number;
4834
+ longitude: number;
4835
+ name?: string | undefined;
4836
+ address?: string | undefined;
4837
+ url?: string | undefined;
4838
+ } | undefined;
4482
4839
  context?: {
4483
4840
  id?: string | undefined;
4484
4841
  from?: string | undefined;
@@ -4551,6 +4908,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4551
4908
  }[];
4552
4909
  text?: string | undefined;
4553
4910
  } | undefined;
4911
+ location?: {
4912
+ latitude: number;
4913
+ longitude: number;
4914
+ name?: string | undefined;
4915
+ address?: string | undefined;
4916
+ url?: string | undefined;
4917
+ } | undefined;
4554
4918
  context?: {
4555
4919
  id?: string | undefined;
4556
4920
  from?: string | undefined;
@@ -4689,6 +5053,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4689
5053
  }[];
4690
5054
  text?: string | undefined;
4691
5055
  } | undefined;
5056
+ location?: {
5057
+ latitude: number;
5058
+ longitude: number;
5059
+ name?: string | undefined;
5060
+ address?: string | undefined;
5061
+ url?: string | undefined;
5062
+ } | undefined;
4692
5063
  context?: {
4693
5064
  id?: string | undefined;
4694
5065
  from?: string | undefined;
@@ -4791,6 +5162,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4791
5162
  }[];
4792
5163
  text?: string | undefined;
4793
5164
  } | undefined;
5165
+ location?: {
5166
+ latitude: number;
5167
+ longitude: number;
5168
+ name?: string | undefined;
5169
+ address?: string | undefined;
5170
+ url?: string | undefined;
5171
+ } | undefined;
4794
5172
  context?: {
4795
5173
  id?: string | undefined;
4796
5174
  from?: string | undefined;
@@ -4896,6 +5274,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
4896
5274
  }[];
4897
5275
  text?: string | undefined;
4898
5276
  } | undefined;
5277
+ location?: {
5278
+ latitude: number;
5279
+ longitude: number;
5280
+ name?: string | undefined;
5281
+ address?: string | undefined;
5282
+ url?: string | undefined;
5283
+ } | undefined;
4899
5284
  context?: {
4900
5285
  id?: string | undefined;
4901
5286
  from?: string | undefined;
@@ -5001,6 +5386,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
5001
5386
  }[];
5002
5387
  text?: string | undefined;
5003
5388
  } | undefined;
5389
+ location?: {
5390
+ latitude: number;
5391
+ longitude: number;
5392
+ name?: string | undefined;
5393
+ address?: string | undefined;
5394
+ url?: string | undefined;
5395
+ } | undefined;
5004
5396
  context?: {
5005
5397
  id?: string | undefined;
5006
5398
  from?: string | undefined;
@@ -5109,6 +5501,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
5109
5501
  }[];
5110
5502
  text?: string | undefined;
5111
5503
  } | undefined;
5504
+ location?: {
5505
+ latitude: number;
5506
+ longitude: number;
5507
+ name?: string | undefined;
5508
+ address?: string | undefined;
5509
+ url?: string | undefined;
5510
+ } | undefined;
5112
5511
  context?: {
5113
5512
  id?: string | undefined;
5114
5513
  from?: string | undefined;
@@ -5217,6 +5616,13 @@ declare const whatsAppWebhookPayloadSchema: z.ZodObject<{
5217
5616
  }[];
5218
5617
  text?: string | undefined;
5219
5618
  } | undefined;
5619
+ location?: {
5620
+ latitude: number;
5621
+ longitude: number;
5622
+ name?: string | undefined;
5623
+ address?: string | undefined;
5624
+ url?: string | undefined;
5625
+ } | undefined;
5220
5626
  context?: {
5221
5627
  id?: string | undefined;
5222
5628
  from?: string | undefined;
@@ -5272,4 +5678,4 @@ declare function resolveContactProfileName(params: {
5272
5678
  readonly from: string;
5273
5679
  }): string | undefined;
5274
5680
 
5275
- export { whatsAppStatusSchema as A, whatsAppTemplateStatusEventSchema as B, whatsAppTemplateStatusUpdateSchema as C, whatsAppWebhookChangeSchema as D, whatsAppWebhookPayloadSchema as E, whatsAppWebhookValueSchema as F, WHATSAPP_WEBHOOK_FIELDS as W, type WhatsAppContact as a, type WhatsAppInteractive as b, type WhatsAppMedia as c, type WhatsAppMessage as d, type WhatsAppMessageEcho as e, type WhatsAppMessageStatusValue as f, type WhatsAppOrder as g, type WhatsAppPhoneNumberQualityUpdate as h, type WhatsAppQualityEvent as i, type WhatsAppStatus as j, type WhatsAppTemplateStatusEvent as k, type WhatsAppTemplateStatusUpdate as l, type WhatsAppWebhookChange as m, type WhatsAppWebhookField as n, type WhatsAppWebhookPayload as o, type WhatsAppWebhookValue as p, whatsAppInteractiveSchema as q, resolveContactProfileName as r, whatsAppMediaSchema as s, whatsAppMessageEchoSchema as t, whatsAppMessageSchema as u, whatsAppMessageStatusSchema as v, whatsAppContactSchema as w, whatsAppOrderSchema as x, whatsAppPhoneNumberQualityUpdateSchema as y, whatsAppQualityEventSchema as z };
5681
+ export { whatsAppPhoneNumberQualityUpdateSchema as A, whatsAppQualityEventSchema as B, whatsAppStatusSchema as C, whatsAppTemplateStatusEventSchema as D, whatsAppTemplateStatusUpdateSchema as E, whatsAppWebhookChangeSchema as F, whatsAppWebhookPayloadSchema as G, whatsAppWebhookValueSchema as H, 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 WhatsAppTemplateStatusEvent as m, type WhatsAppWebhookChange as n, type WhatsAppWebhookField as o, type WhatsAppWebhookPayload as p, type WhatsAppWebhookValue as q, resolveContactProfileName as r, whatsAppInteractiveSchema as s, whatsAppLocationSchema as t, whatsAppMediaSchema as u, whatsAppMessageEchoSchema as v, whatsAppContactSchema as w, whatsAppMessageSchema as x, whatsAppMessageStatusSchema as y, whatsAppOrderSchema as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/meta-whatsapp-contracts",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Shared types, zod schemas, and port interfaces for the meta-whatsapp trio (contracts only — no runtime behavior)",
5
5
  "publishConfig": {
6
6
  "access": "public"