meta-cloud-api 1.1.8 → 1.1.10

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.
@@ -1,671 +1,6 @@
1
+ import { BusinessVerticalEnum, ButtonPositionEnum, CategoryEnum, ComponentTypesEnum, CurrencyCodesEnum, DataLocalizationRegionEnum, HttpMethodsEnum, InteractiveTypesEnum, LanguagesEnum, MessageTypesEnum, ParametersTypesEnum, SubTypeEnum, TemplateStatusEnum, WabaConfigEnum } from "./enums-C_tIIGBV.js";
1
2
  import { IncomingHttpHeaders, IncomingMessage } from "http";
2
3
 
3
- //#region src/types/enums.d.ts
4
- declare enum CategoryEnum {
5
- Authentication = "AUTHENTICATION",
6
- Marketing = "MARKETING",
7
- Utility = "UTILITY",
8
- }
9
- declare enum TemplateStatusEnum {
10
- Approved = "APPROVED",
11
- Pending = "PENDING",
12
- Rejected = "REJECTED",
13
- }
14
- declare enum HttpMethodsEnum {
15
- Get = "GET",
16
- Post = "POST",
17
- Put = "PUT",
18
- Delete = "DELETE",
19
- }
20
- declare enum MessageTypesEnum {
21
- Audio = "audio",
22
- Contacts = "contacts",
23
- Document = "document",
24
- Image = "image",
25
- Interactive = "interactive",
26
- Location = "location",
27
- Reaction = "reaction",
28
- Sticker = "sticker",
29
- Template = "template",
30
- Text = "text",
31
- Video = "video",
32
- Button = "button",
33
- Order = "order",
34
- System = "system",
35
- Unknown = "unknown",
36
- Statuses = "statuses",
37
- '*' = "*",
38
- }
39
- declare enum ParametersTypesEnum {
40
- Action = "ACTION",
41
- CouponCode = "COUPON_CODE",
42
- Currency = "CURRENCY",
43
- DateTime = "DATE_TIME",
44
- Document = "DOCUMENT",
45
- ExpirationTimeMs = "EXPIRATION_TIME_MS",
46
- Image = "IMAGE",
47
- LimitedTimeOffer = "LIMITED_TIME_OFFER",
48
- Location = "LOCATION",
49
- OrderStatus = "ORDER_STATUS",
50
- Payload = "PAYLOAD",
51
- Product = "PRODUCT",
52
- Text = "TEXT",
53
- TtlMinutes = "TTL_MINUTES",
54
- Video = "VIDEO",
55
- WebviewInteraction = "WEBVIEW_INTERACTION",
56
- WebviewPresentation = "WEBVIEW_PRESENTATION",
57
- }
58
- declare enum InteractiveTypesEnum {
59
- Button = "button",
60
- List = "list",
61
- Product = "product",
62
- ProductList = "product_list",
63
- CtaUrl = "cta_url",
64
- LocationRequest = "location_request_message",
65
- AddressMessage = "address_message",
66
- Flow = "flow",
67
- }
68
- declare enum ButtonPositionEnum {
69
- First = 1,
70
- Second = 2,
71
- Third = 3,
72
- Fourth = 4,
73
- Fifth = 5,
74
- }
75
- declare enum SubTypeEnum {
76
- Catalog = "CATALOG",
77
- CopyCode = "COPY_CODE",
78
- Flow = "FLOW",
79
- Mpm = "MPM",
80
- OrderDetails = "ORDER_DETAILS",
81
- QuickReply = "QUICK_REPLY",
82
- Reminder = "REMINDER",
83
- Url = "URL",
84
- VoiceCall = "VOICE_CALL",
85
- }
86
- declare enum ComponentTypesEnum {
87
- Header = "HEADER",
88
- Body = "BODY",
89
- Button = "BUTTON",
90
- Footer = "FOOTER",
91
- }
92
- declare enum WabaConfigEnum {
93
- AppId = "M4D_APP_ID",
94
- Port = "WA_PORT",
95
- AppSecret = "M4D_APP_SECRET",
96
- PhoneNumberId = "WA_PHONE_NUMBER_ID",
97
- BusinessAcctId = "WA_BUSINESS_ACCOUNT_ID",
98
- APIVersion = "CLOUD_API_VERSION",
99
- AccessToken = "CLOUD_API_ACCESS_TOKEN",
100
- WebhookEndpoint = "WEBHOOK_ENDPOINT",
101
- WebhookVerificationToken = "WEBHOOK_VERIFICATION_TOKEN",
102
- ListenerPort = "LISTENER_PORT",
103
- MaxRetriesAfterWait = "MAX_RETRIES_AFTER_WAIT",
104
- RequestTimeout = "REQUEST_TIMEOUT",
105
- Debug = "DEBUG",
106
- PrivatePem = "FLOW_API_PRIVATE_PEM",
107
- Passphrase = "FLOW_API_PASSPHRASE",
108
- }
109
- declare enum ConversationTypesEnum {
110
- BusinessInitiated = "business_initiated",
111
- CustomerInitiated = "customer_initiated",
112
- ReferralConversion = "referral_conversion",
113
- }
114
- declare enum StatusEnum {
115
- Delivered = "delivered",
116
- Read = "read",
117
- Sent = "sent",
118
- }
119
- declare enum VideoMediaTypesEnum {
120
- Mp4 = "video/mp4",
121
- Threegp = "video/3gp",
122
- }
123
- declare enum StickerMediaTypesEnum {
124
- Webp = "image/webp",
125
- }
126
- declare enum ImageMediaTypesEnum {
127
- Jpeg = "image/jpeg",
128
- Png = "image/png",
129
- }
130
- declare enum DocumentMediaTypesEnum {
131
- Text = "text/plain",
132
- Pdf = "application/pdf",
133
- Ppt = "application/vnd.ms-powerpoint",
134
- Word = "application/msword",
135
- Excel = "application/vnd.ms-excel",
136
- OpenDoc = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
137
- OpenPres = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
138
- OpenSheet = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
139
- }
140
- declare enum AudioMediaTypesEnum {
141
- Aac = "audio/aac",
142
- Mp4 = "audio/mp4",
143
- Mpeg = "audio/mpeg",
144
- Amr = "audio/amr",
145
- Ogg = "audio/ogg",
146
- }
147
- declare enum WebhookTypesEnum {
148
- Audio = "audio",
149
- Button = "button",
150
- Document = "document",
151
- Text = "text",
152
- Image = "image",
153
- Interactive = "interactive",
154
- Order = "order",
155
- Sticker = "sticker",
156
- System = "system",
157
- Unknown = "unknown",
158
- Video = "video",
159
- }
160
- declare enum SystemChangeTypesEnum {
161
- CustomerChangedNumber = "customer_changed_number",
162
- CustomerIdentityChanged = "customer_identity_changed",
163
- }
164
- declare enum ReferralSourceTypesEnum {
165
- Ad = "ad",
166
- Post = "post",
167
- }
168
- declare enum RequestCodeMethodsEnum {
169
- Sms = "SMS",
170
- Voice = "VOICE",
171
- }
172
- declare enum LanguagesEnum {
173
- Afrikaans = "af",
174
- Albanian = "sq",
175
- Arabic = "ar",
176
- Azerbaijani = "az",
177
- Bengali = "bn",
178
- Bulgarian = "bg",
179
- Catalan = "ca",
180
- Chinese_CHN = "zh_CN",
181
- Chinese_HKG = "zh_HK",
182
- Chinese_TAI = "zh_TW",
183
- Croatian = "hr",
184
- Czech = "cs",
185
- Danish = "da",
186
- Dutch = "nl",
187
- English = "en",
188
- English_UK = "en_GB",
189
- English_US = "en_US",
190
- Estonian = "et",
191
- Filipino = "fil",
192
- Finnish = "fi",
193
- French = "fr",
194
- Georgian = "ka",
195
- German = "de",
196
- Greek = "el",
197
- Gujarati = "gu",
198
- Hausa = "ha",
199
- Hebrew = "he",
200
- Hindi = "hi",
201
- Hungarian = "hu",
202
- Indonesian = "id",
203
- Irish = "ga",
204
- Italian = "it",
205
- Japanese = "ja",
206
- Kannada = "kn",
207
- Kazakh = "kk",
208
- Kinyarwanda = "rw_RW",
209
- Korean = "ko",
210
- Kyrgyz_Kyrgyzstan = "ky_KG",
211
- Lao = "lo",
212
- Latvian = "lv",
213
- Lithuanian = "lt",
214
- Macedonian = "mk",
215
- Malay = "ms",
216
- Malayalam = "ml",
217
- Marathi = "mr",
218
- Norwegian = "nb",
219
- Persian = "fa",
220
- Polish = "pl",
221
- Portuguese_BR = "pt_BR",
222
- Portuguese_POR = "pt_PT",
223
- Punjabi = "pa",
224
- Romanian = "ro",
225
- Russian = "ru",
226
- Serbian = "sr",
227
- Slovak = "sk",
228
- Slovenian = "sl",
229
- Spanish = "es",
230
- Spanish_ARG = "es_AR",
231
- Spanish_SPA = "es_ES",
232
- Spanish_MEX = "es_MX",
233
- Swahili = "sw",
234
- Swedish = "sv",
235
- Tamil = "ta",
236
- Telugu = "te",
237
- Thai = "th",
238
- Turkish = "tr",
239
- Ukrainian = "uk",
240
- Urdu = "ur",
241
- Uzbek = "uz",
242
- Vietnamese = "vi",
243
- Zulu = "zu",
244
- }
245
- declare enum CurrencyCodesEnum {
246
- AFN = "AFN",
247
- EUR = "EUR",
248
- ALL = "ALL",
249
- DZD = "DZD",
250
- USD = "USD",
251
- AOA = "AOA",
252
- XCD = "XCD",
253
- ARS = "ARS",
254
- AMD = "AMD",
255
- AWG = "AWG",
256
- AUD = "AUD",
257
- AZN = "AZN",
258
- BSD = "BSD",
259
- BHD = "BHD",
260
- BDT = "BDT",
261
- BBD = "BBD",
262
- BYN = "BYN",
263
- BZD = "BZD",
264
- XOF = "XOF",
265
- BMD = "BMD",
266
- INR = "INR",
267
- BTN = "BTN",
268
- BOB = "BOB",
269
- BOV = "BOV",
270
- BAM = "BAM",
271
- BWP = "BWP",
272
- NOK = "NOK",
273
- BRL = "BRL",
274
- BND = "BND",
275
- BGN = "BGN",
276
- BIF = "BIF",
277
- CVE = "CVE",
278
- KHR = "KHR",
279
- XAF = "XAF",
280
- CAD = "CAD",
281
- KYD = "KYD",
282
- CLP = "CLP",
283
- CLF = "CLF",
284
- CNY = "CNY",
285
- COP = "COP",
286
- COU = "COU",
287
- KMF = "KMF",
288
- CDF = "CDF",
289
- NZD = "NZD",
290
- CRC = "CRC",
291
- HRK = "HRK",
292
- CUP = "CUP",
293
- CUC = "CUC",
294
- ANG = "ANG",
295
- CZK = "CZK",
296
- DKK = "DKK",
297
- DJF = "DJF",
298
- DOP = "DOP",
299
- EGP = "EGP",
300
- SVC = "SVC",
301
- ERN = "ERN",
302
- SZL = "SZL",
303
- ETB = "ETB",
304
- FKP = "FKP",
305
- FJD = "FJD",
306
- XPF = "XPF",
307
- GMD = "GMD",
308
- GEL = "GEL",
309
- GHS = "GHS",
310
- GIP = "GIP",
311
- GTQ = "GTQ",
312
- GBP = "GBP",
313
- GNF = "GNF",
314
- GYD = "GYD",
315
- HTG = "HTG",
316
- HNL = "HNL",
317
- HKD = "HKD",
318
- HUF = "HUF",
319
- ISK = "ISK",
320
- IDR = "IDR",
321
- XDR = "XDR",
322
- IRR = "IRR",
323
- IQD = "IQD",
324
- ILS = "ILS",
325
- JMD = "JMD",
326
- JPY = "JPY",
327
- JOD = "JOD",
328
- KZT = "KZT",
329
- KES = "KES",
330
- KPW = "KPW",
331
- KRW = "KRW",
332
- KWD = "KWD",
333
- KGS = "KGS",
334
- LAK = "LAK",
335
- LBP = "LBP",
336
- LSL = "LSL",
337
- ZAR = "ZAR",
338
- LRD = "LRD",
339
- LYD = "LYD",
340
- CHF = "CHF",
341
- MOP = "MOP",
342
- MKD = "MKD",
343
- MGA = "MGA",
344
- MWK = "MWK",
345
- MYR = "MYR",
346
- MVR = "MVR",
347
- MRU = "MRU",
348
- MUR = "MUR",
349
- XUA = "XUA",
350
- MXN = "MXN",
351
- MXV = "MXV",
352
- MDL = "MDL",
353
- MNT = "MNT",
354
- MAD = "MAD",
355
- MZN = "MZN",
356
- MMK = "MMK",
357
- NAD = "NAD",
358
- NPR = "NPR",
359
- NIO = "NIO",
360
- NGN = "NGN",
361
- OMR = "OMR",
362
- PKR = "PKR",
363
- PAB = "PAB",
364
- PGK = "PGK",
365
- PYG = "PYG",
366
- PEN = "PEN",
367
- PHP = "PHP",
368
- PLN = "PLN",
369
- QAR = "QAR",
370
- RON = "RON",
371
- RUB = "RUB",
372
- RWF = "RWF",
373
- SHP = "SHP",
374
- WST = "WST",
375
- STN = "STN",
376
- SAR = "SAR",
377
- RSD = "RSD",
378
- SCR = "SCR",
379
- SLL = "SLL",
380
- SGD = "SGD",
381
- XSU = "XSU",
382
- SBD = "SBD",
383
- SOS = "SOS",
384
- SSP = "SSP",
385
- LKR = "LKR",
386
- SDG = "SDG",
387
- SRD = "SRD",
388
- SEK = "SEK",
389
- CHE = "CHE",
390
- CHW = "CHW",
391
- SYP = "SYP",
392
- TWD = "TWD",
393
- TJS = "TJS",
394
- TZS = "TZS",
395
- THB = "THB",
396
- TOP = "TOP",
397
- TTD = "TTD",
398
- TND = "TND",
399
- TRY = "TRY",
400
- TMT = "TMT",
401
- UGX = "UGX",
402
- UAH = "UAH",
403
- AED = "AED",
404
- USN = "USN",
405
- UYU = "UYU",
406
- UYI = "UYI",
407
- UYW = "UYW",
408
- UZS = "UZS",
409
- VUV = "VUV",
410
- VES = "VES",
411
- VND = "VND",
412
- YER = "YER",
413
- ZMW = "ZMW",
414
- ZWL = "ZWL",
415
- XBA = "XBA",
416
- XBB = "XBB",
417
- XBC = "XBC",
418
- XBD = "XBD",
419
- XTS = "XTS",
420
- XXX = "XXX",
421
- XAU = "XAU",
422
- XPD = "XPD",
423
- XPT = "XPT",
424
- XAG = "XAG",
425
- AFA = "AFA",
426
- FIM = "FIM",
427
- ALK = "ALK",
428
- ADP = "ADP",
429
- ESP = "ESP",
430
- FRF = "FRF",
431
- AOK = "AOK",
432
- AON = "AON",
433
- AOR = "AOR",
434
- ARA = "ARA",
435
- ARP = "ARP",
436
- ARY = "ARY",
437
- RUR = "RUR",
438
- ATS = "ATS",
439
- AYM = "AYM",
440
- AZM = "AZM",
441
- BYB = "BYB",
442
- BYR = "BYR",
443
- BEC = "BEC",
444
- BEF = "BEF",
445
- BEL = "BEL",
446
- BOP = "BOP",
447
- BAD = "BAD",
448
- BRB = "BRB",
449
- BRC = "BRC",
450
- BRE = "BRE",
451
- BRN = "BRN",
452
- BRR = "BRR",
453
- BGJ = "BGJ",
454
- BGK = "BGK",
455
- BGL = "BGL",
456
- BUK = "BUK",
457
- HRD = "HRD",
458
- CYP = "CYP",
459
- CSJ = "CSJ",
460
- CSK = "CSK",
461
- ECS = "ECS",
462
- ECV = "ECV",
463
- GQE = "GQE",
464
- EEK = "EEK",
465
- XEU = "XEU",
466
- GEK = "GEK",
467
- DDM = "DDM",
468
- DEM = "DEM",
469
- GHC = "GHC",
470
- GHP = "GHP",
471
- GRD = "GRD",
472
- GNE = "GNE",
473
- GNS = "GNS",
474
- GWE = "GWE",
475
- GWP = "GWP",
476
- ITL = "ITL",
477
- ISJ = "ISJ",
478
- IEP = "IEP",
479
- ILP = "ILP",
480
- ILR = "ILR",
481
- LAJ = "LAJ",
482
- LVL = "LVL",
483
- LVR = "LVR",
484
- LSM = "LSM",
485
- ZAL = "ZAL",
486
- LTL = "LTL",
487
- LTT = "LTT",
488
- LUC = "LUC",
489
- LUF = "LUF",
490
- LUL = "LUL",
491
- MGF = "MGF",
492
- MVQ = "MVQ",
493
- MLF = "MLF",
494
- MTL = "MTL",
495
- MTP = "MTP",
496
- MRO = "MRO",
497
- MXP = "MXP",
498
- MZE = "MZE",
499
- MZM = "MZM",
500
- NLG = "NLG",
501
- NIC = "NIC",
502
- PEH = "PEH",
503
- PEI = "PEI",
504
- PES = "PES",
505
- PLZ = "PLZ",
506
- PTE = "PTE",
507
- ROK = "ROK",
508
- ROL = "ROL",
509
- STD = "STD",
510
- CSD = "CSD",
511
- SKK = "SKK",
512
- SIT = "SIT",
513
- RHD = "RHD",
514
- ESA = "ESA",
515
- ESB = "ESB",
516
- SDD = "SDD",
517
- SDP = "SDP",
518
- SRG = "SRG",
519
- CHC = "CHC",
520
- TJR = "TJR",
521
- TPE = "TPE",
522
- TRL = "TRL",
523
- TMM = "TMM",
524
- UGS = "UGS",
525
- UGW = "UGW",
526
- UAK = "UAK",
527
- SUR = "SUR",
528
- USS = "USS",
529
- UYN = "UYN",
530
- UYP = "UYP",
531
- VEB = "VEB",
532
- VEF = "VEF",
533
- VNC = "VNC",
534
- YDD = "YDD",
535
- YUD = "YUD",
536
- YUM = "YUM",
537
- YUN = "YUN",
538
- ZRN = "ZRN",
539
- ZRZ = "ZRZ",
540
- ZMK = "ZMK",
541
- ZWC = "ZWC",
542
- ZWD = "ZWD",
543
- ZWN = "ZWN",
544
- ZWR = "ZWR",
545
- XFO = "XFO",
546
- XRE = "XRE",
547
- XFU = "XFU",
548
- }
549
- declare enum DataLocalizationRegionEnum {
550
- AU = "AU",
551
- // Australia
552
- ID = "ID",
553
- // Indonesia
554
- IN = "IN",
555
- // India
556
- JP = "JP",
557
- // Japan
558
- SG = "SG",
559
- // Singapore
560
- KR = "KR",
561
- // South Korea
562
- DE = "DE",
563
- // EU (Germany)
564
- CH = "CH",
565
- // Switzerland
566
- GB = "GB",
567
- // United Kingdom
568
- BR = "BR",
569
- // Brazil
570
- BH = "BH",
571
- // Bahrain
572
- ZA = "ZA",
573
- // South Africa
574
- AE = "AE",
575
- // United Arab Emirates
576
- CA = "CA",
577
- }
578
- /**
579
- * Business category values for WhatsApp Business Profile.
580
- * These values map to specific strings displayed in the WhatsApp client.
581
- */
582
- declare enum BusinessVerticalEnum {
583
- /**
584
- * Alcoholic Beverages
585
- */
586
- ALCOHOL = "ALCOHOL",
587
- /**
588
- * Clothing and Apparel
589
- */
590
- APPAREL = "APPAREL",
591
- /**
592
- * Automotive
593
- */
594
- AUTO = "AUTO",
595
- /**
596
- * Beauty, Spa and Salon
597
- */
598
- BEAUTY = "BEAUTY",
599
- /**
600
- * Education
601
- */
602
- EDU = "EDU",
603
- /**
604
- * Entertainment
605
- */
606
- ENTERTAIN = "ENTERTAIN",
607
- /**
608
- * Event Planning and Service
609
- */
610
- EVENT_PLAN = "EVENT_PLAN",
611
- /**
612
- * Finance and Banking
613
- */
614
- FINANCE = "FINANCE",
615
- /**
616
- * Public Service
617
- */
618
- GOVT = "GOVT",
619
- /**
620
- * Food and Grocery
621
- */
622
- GROCERY = "GROCERY",
623
- /**
624
- * Medical and Health
625
- */
626
- HEALTH = "HEALTH",
627
- /**
628
- * Hotel and Lodging
629
- */
630
- HOTEL = "HOTEL",
631
- /**
632
- * Non-profit
633
- */
634
- NONPROFIT = "NONPROFIT",
635
- /**
636
- * Online Gambling & Gaming
637
- */
638
- ONLINE_GAMBLING = "ONLINE_GAMBLING",
639
- /**
640
- * Over-the-Counter Drugs
641
- */
642
- OTC_DRUGS = "OTC_DRUGS",
643
- /**
644
- * Other
645
- */
646
- OTHER = "OTHER",
647
- /**
648
- * Non-Online Gambling & Gaming (E.g. Brick and mortar)
649
- */
650
- PHYSICAL_GAMBLING = "PHYSICAL_GAMBLING",
651
- /**
652
- * Professional Services
653
- */
654
- PROF_SERVICES = "PROF_SERVICES",
655
- /**
656
- * Restaurant
657
- */
658
- RESTAURANT = "RESTAURANT",
659
- /**
660
- * Shopping and Retail
661
- */
662
- RETAIL = "RETAIL",
663
- /**
664
- * Travel and Transportation
665
- */
666
- TRAVEL = "TRAVEL",
667
- }
668
- //#endregion
669
4
  //#region src/types/config.d.ts
670
5
  type WhatsAppConfig = {
671
6
  accessToken: string;
@@ -845,9 +180,6 @@ interface UploadHandle {
845
180
  name: string;
846
181
  };
847
182
  }
848
- /**
849
- * Request parameters for creating upload session.
850
- */
851
183
  //#endregion
852
184
  //#region src/api/profile/types/common.d.ts
853
185
  /**
@@ -2334,10 +1666,6 @@ interface ButtonMessage extends BaseMessage {
2334
1666
  text: string;
2335
1667
  };
2336
1668
  }
2337
- /**
2338
- * Union type for all message types
2339
- */
2340
-
2341
1669
  /**
2342
1670
  * Represents a message received through the webhook
2343
1671
  * Based on Meta's documentation: https://developers.facebook.com/docs/whatsapp/cloud-api/webhooks/components#messages-object
@@ -2513,9 +1841,6 @@ interface WebhookEvent {
2513
1841
  */
2514
1842
  timestamp: number;
2515
1843
  }
2516
- /**
2517
- * Message handler function type
2518
- */
2519
1844
  //#endregion
2520
1845
  //#region src/api/qrCode/types/common.d.ts
2521
1846
  type QrCodeResponse = {
@@ -2658,6 +1983,31 @@ interface WABAClass {
2658
1983
  unsubscribeFromWaba(): Promise<ResponseSuccess>;
2659
1984
  }
2660
1985
  //#endregion
1986
+ //#region src/api/registration/types/common.d.ts
1987
+ type RegistrationRequest = {
1988
+ messaging_product: 'whatsapp';
1989
+ pin: string;
1990
+ data_localization_region?: DataLocalizationRegionEnum;
1991
+ };
1992
+ interface RegistrationClass {
1993
+ register(pin: string, dataLocalizationRegion?: DataLocalizationRegionEnum): Promise<ResponseSuccess>;
1994
+ deregister(): Promise<ResponseSuccess>;
1995
+ }
1996
+ //#endregion
1997
+ //#region src/api/twoStepVerification/types/common.d.ts
1998
+ type TwoStepVerificationRequest = {
1999
+ pin: string;
2000
+ };
2001
+ interface TwoStepVerificationClass {
2002
+ setTwoStepVerificationCode(pin: string): Promise<ResponseSuccess>;
2003
+ }
2004
+ //#endregion
2005
+ //#region src/api/encryption/types/publicKey.d.ts
2006
+ type EncryptionPublicKeyResponse = ResponseData<{
2007
+ business_public_key: string;
2008
+ business_public_key_signature_status: 'VALID' | 'MISMATCH';
2009
+ }>;
2010
+ //#endregion
2661
2011
  //#region src/utils/isMetaError.d.ts
2662
2012
  interface MetaError extends Error {
2663
2013
  error: {
@@ -2672,11 +2022,6 @@ interface MetaError extends Error {
2672
2022
  fbtrace_id: string;
2673
2023
  };
2674
2024
  }
2675
- /**
2676
- * Determines if the error is a Meta API error response
2677
- * @param error Any error object to check
2678
- * @returns Type guard indicating if error is a Meta API error
2679
- */
2680
2025
  //#endregion
2681
2026
  //#region src/api/flow/types/common.d.ts
2682
2027
  /**
@@ -3078,5 +2423,5 @@ interface FlowClass {
3078
2423
  }): Promise<FlowMigrationResponse>;
3079
2424
  }
3080
2425
  //#endregion
3081
- export { type AccountMode, type AudioMediaObject, AudioMediaTypesEnum, type AuthenticationTemplateOptions, type BaseClass, type BodyOptions, type BusinessProfileClass, type BusinessProfileData, type BusinessProfileField, type BusinessProfileFieldsParam, type BusinessProfileResponse, BusinessVerticalEnum, type ButtonOptions, ButtonPositionEnum, type CarouselCard, type CarouselOptions, type CatalogButton, type CatalogTemplateOptions, CategoryEnum, type CodeVerificationStatus, type ComponentTypes, ComponentTypesEnum, type ContactObject, ConversationTypesEnum, type CopyCodeButton, type CouponTemplateOptions, type CreateQrCodeRequest, CurrencyCodesEnum, type CurrencyParameter, type Cursors, DataLocalizationRegionEnum, type DateTimeParameter, type DocumentMediaObject, DocumentMediaTypesEnum, type Flow, FlowActionEnum, type FlowAsset, type FlowAssetsResponse, type FlowButton, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, type FlowType, FlowTypeEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type FooterOptions, type GeneralHeaderInterface, type GeneralMessageBody, type GeneralRequestBody, type HeaderOptions, type HealthStatus, type HealthStatusEntity, HttpMethodsEnum, type HttpsClientClass, type HttpsClientResponseClass, type ImageMediaObject, ImageMediaTypesEnum, type InteractiveObject, InteractiveTypesEnum, LanguagesEnum, type LimitedTimeOfferOptions, type LimitedTimeOfferTemplateOptions, type LocationObject, type LocationParameter, type LoggerInterface, type MPMButton, type MPMTemplateOptions, type MediaCardCarouselTemplateOptions, type MediaCarouselCard, type MediaClass, type MediaParameter, type MediaResponse, type MediasResponse, type MessageRequestBody, type MessageRequestParams, type MessageTemplateObject, MessageTypesEnum, type MessagesClass, type MessagesResponse, type MessagingLimitTier, type MetaError, type OTPButton, type OTPTemplateOptions, type Pagination, type PaginationCursors, type Paging, ParametersTypesEnum, type PhoneNumberButton, type PhoneNumberClass, type PhoneNumberResponse, type PhoneNumbersResponse, type PlatformType, type ProductCardCarouselTemplateOptions, type ProductCarouselCard, type ProductParameter, type ProductSection, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, type QualityRating, type QualityScore, type QuickReplyButton, type ReactionParams, ReferralSourceTypesEnum, RequestCodeMethodsEnum, type RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, type SPMButton, type SPMTemplateOptions, StatusEnum, type StatusParams, type StickerMediaObject, StickerMediaTypesEnum, SubTypeEnum, SystemChangeTypesEnum, type TemplateBody, type TemplateButton, type TemplateButtons, type TemplateCarousel, type TemplateClass, type TemplateDeleteParams, type TemplateFooter, type TemplateFormat, type TemplateGetParams, type TemplateHeader, type TemplateHeaderExample, type TemplateLimitedTimeOffer, type TemplateOptions, type TemplateParameter, type TemplateRequestBody, type TemplateResponse, TemplateStatusEnum, type TextMessageParams, type TextObject, type TextParameter, type Throughput, type ThroughputLevel, type TwoStepVerificationParams, type URLButton, type UpdateBusinessProfileRequest, type UpdateFlowResponse, type UpdateQrCodeRequest, type UpdateWabaSubscription, type UploadMediaResponse, type ValidateFlowJsonResponse, type VerifyCodeRequest, type VideoMediaObject, VideoMediaTypesEnum, type WABAClass, type WabaAccount, type WabaAccountFields, type WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaBusinessVerificationStatus, WabaConfigEnum, type WabaConfigType, type WabaHealthStatus, WabaHealthStatusCanSendMessage, type WabaHealthStatusEntity, type WabaHealthStatusError, type WabaSubscription, type WabaSubscriptions, type WebhookContact, type WebhookEvent, type WebhookMessage, WebhookTypesEnum, type WhatsAppConfig };
3082
- //# sourceMappingURL=types.d.ts.map
2426
+ export { type AccountMode, type AudioMediaObject, type AuthenticationTemplateOptions, type BaseClass, type BodyOptions, type BusinessProfileClass, type BusinessProfileData, type BusinessProfileField, type BusinessProfileFieldsParam, type BusinessProfileResponse, type ButtonOptions, type CarouselCard, type CarouselOptions, type CatalogButton, type CatalogTemplateOptions, type CodeVerificationStatus, type ComponentTypes, type ContactObject, type CopyCodeButton, type CouponTemplateOptions, CreateFlowResponse, type CreateQrCodeRequest, type CurrencyParameter, type Cursors, type DateTimeParameter, type DocumentMediaObject, type EncryptionPublicKeyResponse, type Flow, FlowActionEnum, type FlowAsset, type FlowAssetsResponse, type FlowButton, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, type FlowType, FlowTypeEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type FooterOptions, type GeneralHeaderInterface, type GeneralMessageBody, type GeneralRequestBody, type HeaderOptions, type HealthStatus, type HealthStatusEntity, type HttpsClientClass, type HttpsClientResponseClass, type ImageMediaObject, type InteractiveObject, type LimitedTimeOfferOptions, type LimitedTimeOfferTemplateOptions, type LocationObject, type LocationParameter, type LoggerInterface, type MPMButton, type MPMTemplateOptions, type MediaCardCarouselTemplateOptions, type MediaCarouselCard, MediaClass, type MediaParameter, MediaResponse, MediasResponse, type MessageRequestBody, type MessageRequestParams, type MessageTemplateObject, type MessagesClass, type MessagesResponse, type MessagingLimitTier, type MetaError, type OTPButton, type OTPTemplateOptions, type Pagination, type PaginationCursors, type Paging, type PhoneNumberButton, type PhoneNumberClass, type PhoneNumberResponse, type PhoneNumbersResponse, type PlatformType, type ProductCardCarouselTemplateOptions, type ProductCarouselCard, type ProductParameter, type ProductSection, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, type QualityRating, type QualityScore, type QuickReplyButton, type ReactionParams, type RegistrationClass, type RegistrationRequest, type RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, type SPMButton, type SPMTemplateOptions, type StatusParams, type StickerMediaObject, type TemplateBody, type TemplateButton, type TemplateButtons, type TemplateCarousel, type TemplateClass, type TemplateDeleteParams, type TemplateFooter, type TemplateFormat, type TemplateGetParams, type TemplateHeader, type TemplateHeaderExample, type TemplateLimitedTimeOffer, type TemplateOptions, type TemplateParameter, type TemplateRequestBody, type TemplateResponse, type TextMessageParams, type TextObject, type TextParameter, type Throughput, type ThroughputLevel, type TwoStepVerificationClass, type TwoStepVerificationParams, type TwoStepVerificationRequest, type URLButton, type UpdateBusinessProfileRequest, type UpdateFlowResponse, type UpdateQrCodeRequest, type UpdateWabaSubscription, UploadMediaResponse, type ValidateFlowJsonResponse, type VerifyCodeRequest, type VideoMediaObject, type WABAClass, type WabaAccount, type WabaAccountFields, type WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaBusinessVerificationStatus, type WabaConfigType, type WabaHealthStatus, WabaHealthStatusCanSendMessage, type WabaHealthStatusEntity, type WabaHealthStatusError, type WabaSubscription, type WabaSubscriptions, type WebhookContact, type WebhookEvent, type WebhookMessage, type WhatsAppConfig };
2427
+ //# sourceMappingURL=index.d.ts.map