meta-cloud-api 3.12.0 → 3.13.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.d.mts CHANGED
@@ -229,7 +229,9 @@ declare enum StickerMediaTypesEnum {
229
229
  }
230
230
  declare enum ImageMediaTypesEnum {
231
231
  Jpeg = "image/jpeg",
232
- Png = "image/png"
232
+ Png = "image/png",
233
+ /** Static WebP only; transcoded to JPEG. Animated WebP is rejected. */
234
+ Webp = "image/webp"
233
235
  }
234
236
  declare enum DocumentMediaTypesEnum {
235
237
  Text = "text/plain",
@@ -1488,6 +1490,14 @@ type CallPermissionAction = {
1488
1490
  can_perform_action: boolean;
1489
1491
  limits?: CallPermissionLimit[];
1490
1492
  };
1493
+ /**
1494
+ * Identify the WhatsApp user by phone number (`userWaId`) or BSUID (`recipient`).
1495
+ * At least one is required.
1496
+ */
1497
+ type GetCallPermissionsParams = {
1498
+ userWaId?: string;
1499
+ recipient?: string;
1500
+ };
1491
1501
  type CallPermissionsResponse = {
1492
1502
  messaging_product: 'whatsapp';
1493
1503
  permission: CallPermission;
@@ -1525,28 +1535,38 @@ type CallTranscriptionConfig = {
1525
1535
  purpose?: string; /** Locale of the pre-transcription announcement — required when status is ENABLED */
1526
1536
  announcement_language?: CallAnnouncementLanguage;
1527
1537
  };
1528
- type InitiateCallRequest = {
1529
- to: string;
1538
+ /**
1539
+ * ID of the Messaging account handling the call. Include it when the access
1540
+ * token has messaging access to more than one Messaging account on the business
1541
+ * phone number, and send the same value on every request for a call.
1542
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/account-model-evolution/messaging#calling-api
1543
+ */
1544
+ type MessagingAccountIdParam = {
1545
+ messaging_account_id?: string;
1546
+ };
1547
+ type InitiateCallRequest = MessagingAccountIdParam & {
1548
+ /** Callee phone number. Required unless `recipient` is provided; takes precedence when both are set. */to?: string; /** Callee business-scoped user ID (BSUID) or parent BSUID. Use instead of, or in addition to, `to`. */
1549
+ recipient?: string;
1530
1550
  session: CallSession;
1531
1551
  biz_opaque_callback_data?: string;
1532
1552
  recording?: CallRecordingConfig;
1533
1553
  transcription?: CallTranscriptionConfig;
1534
1554
  };
1535
- type PreAcceptCallRequest = {
1555
+ type PreAcceptCallRequest = MessagingAccountIdParam & {
1536
1556
  call_id: string;
1537
1557
  session?: CallSession;
1538
1558
  };
1539
- type AcceptCallRequest = {
1559
+ type AcceptCallRequest = MessagingAccountIdParam & {
1540
1560
  call_id: string;
1541
1561
  session?: CallSession;
1542
1562
  biz_opaque_callback_data?: string;
1543
1563
  recording?: CallRecordingConfig;
1544
1564
  transcription?: CallTranscriptionConfig;
1545
1565
  };
1546
- type RejectCallRequest = {
1566
+ type RejectCallRequest = MessagingAccountIdParam & {
1547
1567
  call_id: string;
1548
1568
  };
1549
- type TerminateCallRequest = {
1569
+ type TerminateCallRequest = MessagingAccountIdParam & {
1550
1570
  call_id: string;
1551
1571
  };
1552
1572
  type InitiateCallResponse = {
@@ -1565,9 +1585,7 @@ interface CallingClass {
1565
1585
  fields?: string[] | string;
1566
1586
  include_sip_credentials?: boolean;
1567
1587
  }): Promise<CallingSettingsResponse>;
1568
- getCallPermissions(params: {
1569
- userWaId: string;
1570
- }): Promise<CallPermissionsResponse>;
1588
+ getCallPermissions(params: GetCallPermissionsParams): Promise<CallPermissionsResponse>;
1571
1589
  initiateCall(params: InitiateCallRequest): Promise<InitiateCallResponse>;
1572
1590
  preAcceptCall(params: PreAcceptCallRequest): Promise<CallActionResponse>;
1573
1591
  acceptCall(params: AcceptCallRequest): Promise<CallActionResponse>;
@@ -1618,19 +1636,20 @@ declare class CallingApi extends BaseAPI implements CallingClass {
1618
1636
  * Get calling permissions for a specific WhatsApp user.
1619
1637
  *
1620
1638
  * @param params - The request parameters.
1621
- * @param params.userWaId - The WhatsApp ID of the user to check permissions for.
1639
+ * @param params.userWaId - The WhatsApp ID of the user to check permissions for. Required unless `recipient` is set.
1640
+ * @param params.recipient - The user's business-scoped user ID (BSUID) or parent BSUID, used instead of `userWaId`.
1622
1641
  * @returns The call permissions for the specified user.
1623
1642
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
1624
1643
  */
1625
- getCallPermissions(params: {
1626
- userWaId: string;
1627
- }): Promise<CallPermissionsResponse>;
1644
+ getCallPermissions(params: GetCallPermissionsParams): Promise<CallPermissionsResponse>;
1628
1645
  /**
1629
1646
  * Initiate an outbound call to a WhatsApp user.
1630
1647
  *
1631
1648
  * @param params - The call initiation parameters.
1632
- * @param params.to - The recipient's WhatsApp phone number.
1649
+ * @param params.to - The recipient's WhatsApp phone number. Required unless `recipient` is set.
1650
+ * @param params.recipient - The recipient's business-scoped user ID (BSUID) or parent BSUID. `to` takes precedence when both are set.
1633
1651
  * @param params.session - The call session configuration.
1652
+ * @param params.messaging_account_id - Optional Messaging account placing the call (required when the token reaches more than one).
1634
1653
  * @param params.biz_opaque_callback_data - Optional opaque data passed back in webhooks.
1635
1654
  * @param params.recording - Optional per-call recording configuration.
1636
1655
  * @param params.transcription - Optional per-call transcription configuration.
@@ -1643,6 +1662,7 @@ declare class CallingApi extends BaseAPI implements CallingClass {
1643
1662
  *
1644
1663
  * @param params - The pre-accept request parameters.
1645
1664
  * @param params.call_id - The ID of the call to pre-accept.
1665
+ * @param params.messaging_account_id - Optional Messaging account handling the call; send the same value on every request for the call.
1646
1666
  * @param params.session - Optional session configuration for the call.
1647
1667
  * @returns The call action response confirming the pre-accept.
1648
1668
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
@@ -1653,6 +1673,7 @@ declare class CallingApi extends BaseAPI implements CallingClass {
1653
1673
  *
1654
1674
  * @param params - The accept request parameters.
1655
1675
  * @param params.call_id - The ID of the call to accept.
1676
+ * @param params.messaging_account_id - Optional Messaging account handling the call; send the same value on every request for the call.
1656
1677
  * @param params.session - Optional session configuration for the call.
1657
1678
  * @param params.biz_opaque_callback_data - Optional opaque data passed back in webhooks.
1658
1679
  * @param params.recording - Optional per-call recording configuration.
@@ -1666,6 +1687,7 @@ declare class CallingApi extends BaseAPI implements CallingClass {
1666
1687
  *
1667
1688
  * @param params - The reject request parameters.
1668
1689
  * @param params.call_id - The ID of the call to reject.
1690
+ * @param params.messaging_account_id - Optional Messaging account handling the call; send the same value on every request for the call.
1669
1691
  * @returns The call action response confirming rejection.
1670
1692
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
1671
1693
  */
@@ -1675,6 +1697,7 @@ declare class CallingApi extends BaseAPI implements CallingClass {
1675
1697
  *
1676
1698
  * @param params - The terminate request parameters.
1677
1699
  * @param params.call_id - The ID of the call to terminate.
1700
+ * @param params.messaging_account_id - Optional Messaging account handling the call; send the same value on every request for the call.
1678
1701
  * @returns The call action response confirming termination.
1679
1702
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
1680
1703
  */
@@ -2257,21 +2280,59 @@ type ReplyButtonObject = {
2257
2280
  reply: ButtonObject;
2258
2281
  };
2259
2282
  /**
2260
- * One-time password (OTP) copy code button for a Direct Send authentication
2261
- * message (`category: 'authentication'`, `interactive.type: 'button'`). The
2262
- * message must carry exactly one button, and `code` must also appear as a
2263
- * standalone value in `interactive.body.text`.
2283
+ * Android app that can receive the code for one-tap autofill and zero-tap OTP
2284
+ * experiences.
2285
+ */
2286
+ type OtpSupportedApp = {
2287
+ /** Android package name. Maximum 224 characters, at least two dot-separated segments. */package_name: string; /** App signing-key hash: exactly 11 characters of letters, numbers, `+`, `/`, or `=`. */
2288
+ signature_hash: string;
2289
+ };
2290
+ type OtpButtonBase = {
2291
+ /** The OTP: 4 to 10 ASCII alphanumeric characters. Must also appear standalone in `interactive.body.text`. */code: string; /** Copy code button label. Defaults to "Copy Code"; maximum 25 characters, no variables, line breaks, URLs, or emoji. */
2292
+ text?: string; /** Code expiration in minutes, 1 to 90. Defaults to 10. */
2293
+ code_expiration_minutes?: number;
2294
+ };
2295
+ /** Copy code: a button that copies the code to the clipboard. */
2296
+ type OtpCopyCodeParams = OtpButtonBase & {
2297
+ otp_type: 'copy_code';
2298
+ };
2299
+ /**
2300
+ * One-tap autofill: on eligible Android devices, tapping the button opens the app
2301
+ * and delivers the code. Falls back to a copy code button.
2302
+ */
2303
+ type OtpOneTapParams = OtpButtonBase & {
2304
+ otp_type: 'one_tap'; /** Autofill button label. Defaults to "Autofill"; maximum 25 characters. */
2305
+ autofill_text?: string; /** One to five Android apps (unique `package_name`) that can receive the code. */
2306
+ supported_apps: OtpSupportedApp[];
2307
+ };
2308
+ /**
2309
+ * Zero-tap: on eligible Android devices, broadcasts the code to the app without a
2310
+ * button tap. Falls back to one-tap autofill, then copy code.
2311
+ */
2312
+ type OtpZeroTapParams = OtpButtonBase & {
2313
+ otp_type: 'zero_tap';
2314
+ /**
2315
+ * The business's affirmation that its zero-tap use is subject to the WhatsApp
2316
+ * Terms for WhatsApp Business Platform and that users expect automatic code
2317
+ * retrieval. Must be `true` on every zero-tap request; missing, `false`, or
2318
+ * `null` is rejected with error 131009.
2319
+ */
2320
+ zero_tap_terms_accepted: true; /** Autofill button label. Defaults to "Autofill"; maximum 25 characters. */
2321
+ autofill_text?: string; /** One to five Android apps (unique `package_name`) that can receive the code. */
2322
+ supported_apps: OtpSupportedApp[];
2323
+ };
2324
+ /**
2325
+ * One-time password (OTP) button for a Direct Send authentication message
2326
+ * (`category: 'authentication'`, `interactive.type: 'button'`). The message must
2327
+ * carry exactly one button, and `code` must also appear as a standalone value in
2328
+ * `interactive.body.text`. `otp_type` selects copy code, one-tap autofill, or
2329
+ * zero-tap; `zero_tap_terms_accepted` is only allowed (and required) for zero-tap.
2264
2330
  *
2265
2331
  * @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/supported-message-types#interactive-authentication-messages | Direct Send interactive authentication messages}
2266
2332
  */
2267
2333
  type OtpButtonObject = {
2268
2334
  type: 'otp';
2269
- otp: {
2270
- /** The OTP: 4 to 10 ASCII alphanumeric characters. */code: string; /** Copy code experience. Only `copy_code` is supported. */
2271
- otp_type: 'copy_code'; /** Button label. Defaults to "Copy Code"; maximum 25 characters, no variables, line breaks, URLs, or emoji. */
2272
- text?: string; /** Code expiration in minutes, 1 to 90. Defaults to 10. */
2273
- code_expiration_minutes?: number;
2274
- };
2335
+ otp: OtpCopyCodeParams | OtpOneTapParams | OtpZeroTapParams;
2275
2336
  };
2276
2337
  type ActionObject = {
2277
2338
  button?: string;
@@ -2500,7 +2561,9 @@ type InteractiveObject = ButtonInteractiveObject | ListInteractiveObject | Produ
2500
2561
  interface ReactionParams {
2501
2562
  messageId: string;
2502
2563
  emoji: string;
2503
- to: string;
2564
+ to?: string;
2565
+ /** Business-scoped user ID (BSUID) or parent BSUID; `to` takes precedence when both are set. */
2566
+ recipient?: string;
2504
2567
  recipientType?: MessageRecipientType;
2505
2568
  }
2506
2569
  //#endregion
@@ -2554,8 +2617,9 @@ type DirectSendOptions = {
2554
2617
  directSendConfig?: DirectSendConfig;
2555
2618
  };
2556
2619
  type MessageRequestBody<T extends MessageTypesEnum> = GeneralMessageBody & {
2557
- recipient_type?: MessageRecipientType;
2558
- to: string;
2620
+ recipient_type?: MessageRecipientType; /** Recipient phone number. Optional when `recipient` (BSUID) is provided. */
2621
+ to?: string; /** Business-scoped user ID (BSUID) or parent BSUID. `to` takes precedence when both are set. */
2622
+ recipient?: string;
2559
2623
  context?: ConTextObject;
2560
2624
  type?: T;
2561
2625
  category?: DirectSendCategory;
@@ -2563,7 +2627,14 @@ type MessageRequestBody<T extends MessageTypesEnum> = GeneralMessageBody & {
2563
2627
  };
2564
2628
  interface MessageRequestParams<T> {
2565
2629
  body: T;
2566
- to: string;
2630
+ /** Recipient phone number. Required unless `recipient` is provided. */
2631
+ to?: string;
2632
+ /**
2633
+ * Business-scoped user ID (BSUID) or parent BSUID of the recipient. Use instead of,
2634
+ * or in addition to, `to`; if both are set, `to` takes precedence.
2635
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/business-scoped-user-ids
2636
+ */
2637
+ recipient?: string;
2567
2638
  recipientType?: MessageRecipientType;
2568
2639
  replyMessageId?: string;
2569
2640
  /**
@@ -3918,7 +3989,7 @@ interface WABAClass {
3918
3989
  * WABA event types for account_update webhook.
3919
3990
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/account_update
3920
3991
  */
3921
- type AccountUpdateEvent = 'ACCOUNT_DELETED' | 'ACCOUNT_OFFBOARDED' | 'ACCOUNT_RECONNECTED' | 'ACCOUNT_RESTRICTION' | 'ACCOUNT_VIOLATION' | 'AD_ACCOUNT_LINKED' | 'AUTH_INTL_PRICE_ELIGIBILITY_UPDATE' | 'BUSINESS_PRIMARY_LOCATION_COUNTRY_UPDATE' | 'DISABLED_UPDATE' | 'MM_LITE_TERMS_SIGNED' | 'PARTNER_ADDED' | 'PARTNER_APP_INSTALLED' | 'PARTNER_APP_UNINSTALLED' | 'PARTNER_CLIENT_CERTIFICATION_STATUS_UPDATE' | 'PARTNER_REMOVED' | 'VERIFIED_ACCOUNT' | 'VOLUME_BASED_PRICING_TIER_UPDATE';
3992
+ type AccountUpdateEvent = 'ACCOUNT_DELETED' | 'ACCOUNT_OFFBOARDED' | 'ACCOUNT_RECONNECTED' | 'ACCOUNT_RESTRICTION' | 'ACCOUNT_VIOLATION' | 'AD_ACCOUNT_LINKED' | 'AUTH_INTL_PRICE_ELIGIBILITY_UPDATE' | 'CALLING_TIER_UPDATE' | 'BUSINESS_PRIMARY_LOCATION_COUNTRY_UPDATE' | 'DISABLED_UPDATE' | 'MM_LITE_TERMS_SIGNED' | 'PARTNER_ADDED' | 'PARTNER_APP_INSTALLED' | 'PARTNER_APP_UNINSTALLED' | 'PARTNER_CLIENT_CERTIFICATION_STATUS_UPDATE' | 'PARTNER_REMOVED' | 'VERIFIED_ACCOUNT' | 'VOLUME_BASED_PRICING_TIER_UPDATE';
3922
3993
  /**
3923
3994
  * WABA ban state — present on DISABLED_UPDATE events.
3924
3995
  */
@@ -3986,6 +4057,13 @@ interface AuthInternationalRateEligibility {
3986
4057
  start_time: number;
3987
4058
  }>;
3988
4059
  }
4060
+ /** Business-initiated calling tier for quality-based calling */
4061
+ type CallingLimitTier = 'CALLING_TIER_NO_ACCESS' | 'CALLING_TIER_1K' | 'CALLING_TIER_15K' | 'CALLING_TIER_UNLIMITED';
4062
+ /** Present on CALLING_TIER_UPDATE events */
4063
+ interface CallingLimitInfo {
4064
+ current_limit: CallingLimitTier;
4065
+ previous_limit: CallingLimitTier;
4066
+ }
3989
4067
  /** Present on VOLUME_BASED_PRICING_TIER_UPDATE events */
3990
4068
  interface VolumeTierInfo {
3991
4069
  /** Unix timestamp of the tier update */
@@ -4041,6 +4119,8 @@ interface AccountUpdateValue {
4041
4119
  waba_info?: AccountUpdateWabaInfo;
4042
4120
  /** Present on AUTH_INTL_PRICE_ELIGIBILITY_UPDATE events */
4043
4121
  auth_international_rate_eligibility?: AuthInternationalRateEligibility;
4122
+ /** Present on CALLING_TIER_UPDATE events */
4123
+ calling_limit_info?: CallingLimitInfo;
4044
4124
  /** Present on VOLUME_BASED_PRICING_TIER_UPDATE events */
4045
4125
  volume_tier_info?: VolumeTierInfo;
4046
4126
  /** Present on PARTNER_REMOVED events where business used WhatsApp Business app + Cloud API */
@@ -4359,8 +4439,12 @@ interface CallEntry {
4359
4439
  event: CallEventType;
4360
4440
  /** Unix timestamp */
4361
4441
  timestamp: number;
4362
- /** Callee of the call (Page ID) — present on connect / call_created */
4442
+ /** Callee of the call (Page ID) — present on connect / call_created. May be omitted when the user has a username and the phone number is hidden. */
4363
4443
  to?: string;
4444
+ /** BSUID of the callee (business-initiated calls) */
4445
+ to_user_id?: string;
4446
+ /** Parent BSUID of the callee, only when parent BSUIDs are enabled */
4447
+ to_parent_user_id?: string;
4364
4448
  /** Caller of the call (PSID) — present on connect / call_created */
4365
4449
  from?: string;
4366
4450
  /** Whether the call was business- or user-initiated — present on connect */
@@ -4373,6 +4457,10 @@ interface CallEntry {
4373
4457
  from_parent_user_id?: string;
4374
4458
  /** PSID of the consumer — present on call_status */
4375
4459
  recipient_id?: string;
4460
+ /** BSUID of the callee — present on call_status */
4461
+ recipient_user_id?: string;
4462
+ /** Parent BSUID of the callee, only when parent BSUIDs are enabled — present on call_status */
4463
+ recipient_parent_user_id?: string;
4376
4464
  /** Ringing or accepted — present on call_status */
4377
4465
  call_status?: CallStatusValue;
4378
4466
  /** SDP session information; apply the offer to your local peer connection — present on media_update */
@@ -4399,10 +4487,12 @@ interface CallContact {
4399
4487
  /** Display name of the caller */name: string; /** Business-scoped username, when Meta includes it */
4400
4488
  username?: string;
4401
4489
  };
4402
- /** WhatsApp ID of the caller */
4403
- wa_id: string;
4490
+ /** WhatsApp ID of the caller. May be omitted when the user has a username and the phone number is hidden. */
4491
+ wa_id?: string;
4404
4492
  /** Business-scoped user ID, when Meta includes it */
4405
4493
  user_id?: string;
4494
+ /** Parent business-scoped user ID, only when parent BSUIDs are enabled */
4495
+ parent_user_id?: string;
4406
4496
  }
4407
4497
  interface CallsValue {
4408
4498
  messaging_product: 'whatsapp';
@@ -5858,7 +5948,7 @@ type MetaErrorData = {
5858
5948
  interface MetaError extends Error {
5859
5949
  error: MetaErrorData;
5860
5950
  }
5861
- declare const WHATSAPP_ERROR_CODES: readonly [0, 1, 2, 3, 4, 10, 33, 100, 190, 200, 299, 368, 613, 80007, 130429, 130472, 130497, 131000, 131005, 131008, 131009, 131016, 131020, 131021, 131026, 131030, 131031, 131037, 131041, 131042, 131044, 131045, 131047, 131048, 131049, 131050, 131051, 131052, 131053, 131055, 131056, 131057, 131059, 131061, 131062, 131063, 131065, 131070, 131201, 131202, 131203, 131204, 131207, 131208, 131209, 131210, 131211, 131212, 131213, 131214, 131215, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 133000, 133004, 133005, 133006, 133008, 133009, 133010, 133015, 133016, 134011, 134100, 134101, 134102, 135000, 137000, 138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 138038, 139000, 139001, 139002, 139003, 139004, 139100, 139101, 139102, 139103, 147005, 200005, 200006, 200007, 1752041, 2388001, 2388012, 2388019, 2388040, 2388047, 2388072, 2388073, 2388091, 2388093, 2388103, 2388293, 2388299, 2494100, 2494191, 2593079, 2593085, 2593107, 2593108];
5951
+ declare const WHATSAPP_ERROR_CODES: readonly [0, 1, 2, 3, 4, 10, 33, 100, 190, 200, 299, 368, 613, 80007, 130429, 130472, 130497, 131000, 131005, 131008, 131009, 131016, 131020, 131021, 131026, 131030, 131031, 131037, 131041, 131042, 131044, 131045, 131047, 131048, 131049, 131050, 131051, 131052, 131053, 131055, 131056, 131057, 131059, 131061, 131062, 131063, 131065, 131070, 131201, 131202, 131203, 131204, 131207, 131208, 131209, 131210, 131211, 131212, 131213, 131214, 131215, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 133000, 133004, 133005, 133006, 133008, 133009, 133010, 133015, 133016, 134011, 134100, 134101, 134102, 135000, 137000, 138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 138037, 138038, 139000, 139001, 139002, 139003, 139004, 139100, 139101, 139102, 139103, 147005, 200005, 200006, 200007, 1752041, 2388001, 2388012, 2388019, 2388040, 2388047, 2388072, 2388073, 2388091, 2388093, 2388103, 2388293, 2388299, 2494100, 2494191, 2593079, 2593085, 2593107, 2593108];
5862
5952
  type ApiPermissionErrorCode = number;
5863
5953
  type WhatsAppErrorCode = (typeof WHATSAPP_ERROR_CODES)[number] | ApiPermissionErrorCode;
5864
5954
  declare const AUTHORIZATION_ERROR_CODES: readonly [0, 3, 10, 190];
@@ -5867,7 +5957,7 @@ declare const INTEGRITY_ERROR_CODES: readonly [368, 130497, 131031];
5867
5957
  declare const SEND_MESSAGE_ERROR_CODES: readonly [130472, 131000, 131005, 131008, 131009, 131016, 131021, 131026, 131030, 131042, 131044, 131045, 131047, 131050, 131051, 131052, 131053, 131056, 131057, 131048, 131061, 131062, 131063, 131065, 131070, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 135000, 137000];
5868
5958
  declare const FLOW_ERROR_CODES: readonly [139000, 139001, 139002, 139003, 139004];
5869
5959
  declare const BLOCK_USER_ERROR_CODES: readonly [139100, 139101, 139102, 139103];
5870
- declare const CALLING_ERROR_CODES: readonly [138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 138038, 613];
5960
+ declare const CALLING_ERROR_CODES: readonly [138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 138037, 138038, 613];
5871
5961
  declare const GROUP_ERROR_CODES: readonly [131020, 131041, 131059, 131201, 131202, 131203, 131204, 131207, 131208, 131209, 131210, 131211, 131212, 131213, 131214, 131215];
5872
5962
  declare function isWhatsAppErrorCode(code: number): code is WhatsAppErrorCode;
5873
5963
  declare function isApiPermissionErrorCode(code: number): code is ApiPermissionErrorCode;
@@ -6092,7 +6182,8 @@ declare const StickerMediaTypes: {
6092
6182
  type StickerMediaTypesType = (typeof StickerMediaTypes)[keyof typeof StickerMediaTypes];
6093
6183
  declare const ImageMediaTypes: {
6094
6184
  readonly Jpeg: "image/jpeg";
6095
- readonly Png: "image/png";
6185
+ readonly Png: "image/png"; /** Static WebP only; transcoded to JPEG. Animated WebP is rejected. */
6186
+ readonly Webp: "image/webp";
6096
6187
  };
6097
6188
  type ImageMediaTypesType = (typeof ImageMediaTypes)[keyof typeof ImageMediaTypes];
6098
6189
  declare const DocumentMediaTypes: {
@@ -7201,7 +7292,7 @@ declare class MarketingMessagesApi extends BaseAPI implements MarketingMessagesC
7201
7292
  * |------|-----------|----------|
7202
7293
  * | Audio | audio/aac, audio/mp4, audio/mpeg, audio/amr, audio/ogg | 16 MB |
7203
7294
  * | Document | Various (PDF, DOC, DOCX, PPT, XLS, etc.) | 100 MB |
7204
- * | Image | image/jpeg, image/png | 5 MB |
7295
+ * | Image | image/jpeg, image/png, image/webp (static) | 5 MB |
7205
7296
  * | Sticker | image/webp | 100 KB (animated), 500 KB (static) |
7206
7297
  * | Video | video/mp4, video/3gp | 16 MB |
7207
7298
  *
@@ -7396,7 +7487,7 @@ type MessagePayloadType<T extends MessageTypesEnum> = T extends MessageTypesEnum
7396
7487
  * - {@link MessagesApi.interactiveList | interactiveList} - Send list interactive messages
7397
7488
  * - {@link MessagesApi.interactiveCtaUrl | interactiveCtaUrl} - Send CTA URL interactive messages
7398
7489
  * - {@link MessagesApi.interactiveVoiceCall | interactiveVoiceCall} - Send "Call on WhatsApp" voice call button messages
7399
- * - {@link MessagesApi.interactiveOtp | interactiveOtp} - Send Direct Send authentication OTP copy code button messages
7490
+ * - {@link MessagesApi.interactiveOtp | interactiveOtp} - Send Direct Send authentication OTP button messages (copy code, one-tap autofill, zero-tap)
7400
7491
  * - {@link MessagesApi.interactiveLocationRequest | interactiveLocationRequest} - Send location request messages
7401
7492
  * - {@link MessagesApi.interactiveAddressMessage | interactiveAddressMessage} - Send address message interactive messages
7402
7493
  * - {@link MessagesApi.interactiveReplyButtons | interactiveReplyButtons} - Send reply button interactive messages
@@ -7432,10 +7523,11 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
7432
7523
  *
7433
7524
  * @param type - The type of message to send (e.g., text, image, template)
7434
7525
  * @param payload - The message payload object matching the specified type
7435
- * @param to - The recipient's phone number in international format (e.g., "1234567890")
7526
+ * @param to - The recipient's phone number in international format (e.g., "1234567890"). Optional when `recipient` is set.
7436
7527
  * @param replyMessageId - Optional message ID to reply to, setting the message context
7437
7528
  * @param recipientType - Whether `to` addresses an individual or a group
7438
7529
  * @param directSend - Optional Direct Send options (`category` and `directSendConfig`)
7530
+ * @param recipient - Optional business-scoped user ID (BSUID) or parent BSUID. Use instead of, or with, `to`; `to` takes precedence when both are set.
7439
7531
  * @returns The formatted request body ready to be serialized and sent
7440
7532
  *
7441
7533
  * @see {@link https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages | Messages API Reference}
@@ -7450,7 +7542,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
7450
7542
  * );
7451
7543
  * ```
7452
7544
  */
7453
- bodyBuilder<T extends MessageTypesEnum>(type: T, payload: MessagePayloadType<T>, to: string, replyMessageId?: string, recipientType?: MessageRecipientType, directSend?: DirectSendOptions): MessageRequestBody<T>;
7545
+ bodyBuilder<T extends MessageTypesEnum>(type: T, payload: MessagePayloadType<T>, to: string | undefined, replyMessageId?: string, recipientType?: MessageRecipientType, directSend?: DirectSendOptions, recipient?: string): MessageRequestBody<T>;
7454
7546
  /**
7455
7547
  * Sends a request to the WhatsApp Cloud API messages endpoint.
7456
7548
  *
@@ -7553,7 +7645,8 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
7553
7645
  * Sends an image message via the WhatsApp Cloud API.
7554
7646
  *
7555
7647
  * Images can be specified by media ID or public URL.
7556
- * Supported formats: image/jpeg, image/png. Maximum file size: 5 MB.
7648
+ * Supported formats: image/jpeg, image/png, and static image/webp (transcoded to
7649
+ * JPEG; animated WebP and images over 4,096 px on an edge are rejected). Maximum file size: 5 MB.
7557
7650
  *
7558
7651
  * @param params - The image message parameters
7559
7652
  * @param params.body - Image media object containing `id` or `link`, and optional `caption`
@@ -7903,7 +7996,12 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
7903
7996
  }>): Promise<MessagesResponse>;
7904
7997
  /**
7905
7998
  * Sends a Direct Send authentication message with a one-time password (OTP)
7906
- * copy code button, without pre-creating an authentication template.
7999
+ * button (copy code, one-tap autofill, or zero-tap), without pre-creating an
8000
+ * authentication template.
8001
+ *
8002
+ * `otp_type: 'one_tap'` and `'zero_tap'` require `supported_apps` (1 to 5 Android
8003
+ * apps); `'zero_tap'` also requires `zero_tap_terms_accepted: true`, which must be
8004
+ * omitted for the other types (error 131009 otherwise).
7907
8005
  *
7908
8006
  * The request is always sent with `category: 'authentication'`. The interactive
7909
8007
  * object must be `type: 'button'` with exactly one `{ type: 'otp' }` button, and
@@ -7933,6 +8031,28 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
7933
8031
  * },
7934
8032
  * to: '1234567890',
7935
8033
  * });
8034
+ *
8035
+ * // Zero-tap with one-tap and copy code fallback
8036
+ * await client.messages.interactiveOtp({
8037
+ * body: {
8038
+ * type: 'button',
8039
+ * body: { text: 'Your verification code is 123456.' },
8040
+ * action: {
8041
+ * buttons: [
8042
+ * {
8043
+ * type: 'otp',
8044
+ * otp: {
8045
+ * code: '123456',
8046
+ * otp_type: 'zero_tap',
8047
+ * zero_tap_terms_accepted: true,
8048
+ * supported_apps: [{ package_name: 'com.example.app', signature_hash: 'K8a/AINcGX7' }],
8049
+ * },
8050
+ * },
8051
+ * ],
8052
+ * },
8053
+ * },
8054
+ * to: '1234567890',
8055
+ * });
7936
8056
  * ```
7937
8057
  */
7938
8058
  interactiveOtp(params: MessageRequestParams<InteractiveObject & {
@@ -10743,5 +10863,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
10743
10863
  */
10744
10864
  declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
10745
10865
  //#endregion
10746
- export { AUTHORIZATION_ERROR_CODES, type AcceptCallRequest, AcceptSolutionRequest, AccountMode, AddPhoneNumbersRequest, type ApiPermissionErrorCode, AssignedUserRequest, AssignedUsersListParams, type AudioMediaObject, AudioMediaTypes, AudioMediaTypesEnum, AudioMediaTypesType, type AudioMessage, type AudioMessageHandler, type AudioProcessedMessage, type AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, type BaseApiRequest, type BaseApiResponse, type BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, type BodyOptions, BusinessApi, BusinessClass, BusinessComplianceInfoResponse, BusinessFieldsParam, BusinessGraphListResponse, BusinessGraphObject, BusinessListParams, BusinessProfileApi, type BusinessProfileClass, type BusinessProfileData, type BusinessProfileField, type BusinessProfileFieldsParam, type BusinessProfileResponse, type BusinessUseCaseUsage, BusinessVerticalEnum, type ButtonMessage, type ButtonMessageHandler, type ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, type ButtonProcessedMessage, CALLING_ERROR_CODES, CUSTOMER_SERVICE_WINDOW_MS, type CallAction, type CallActionResponse, type CallAnnouncementLanguage, type CallCaptureStatus, type CallHours, type CallHoursDay, type CallHoursStatus, type CallIconVisibility, type CallPermission, type CallPermissionAction, type CallPermissionLimit, type CallPermissionsResponse, type CallRecordingConfig, type CallSdpType, type CallSession, type CallTranscriptionConfig, type CallbackPermissionStatus, CallingApi, type CallingClass, type CallingSettings, type CallingSettingsResponse, type CallingStatus, CarouselCard, type CarouselOptions, CatalogButton, type CatalogTemplateOptions, Category, CategoryEnum, CategoryType, CodeVerificationStatus, CommerceApi, type CommerceClass, type CommerceSetting, type CommerceSettingsResponse, ComponentType, ComponentTypeType, ComponentTypes, ComponentTypesEnum, ContactBookApi, ContactBookClass, type ContactInfo, type ContactObject, type ContactsMessage, type ContactsMessageHandler, type ContactsProcessedMessage, ConversationTypes, ConversationTypesEnum, ConversationTypesType, ConversationalAutomationRequest, ConversationalAutomationResponse, ConversationalCommand, ConversationalPrompt, CopyCodeButton, type CouponTemplateOptions, type CreateFlowResponse, CreateOBOMobilityIntentRequest, CreatePhoneNumberRequest, CreatePhoneNumberResponse, type CreateQrCodeRequest, CreateScheduleRequest, type CreateUploadSessionParams, CreateWhatsAppBusinessSolutionRequest, CurrencyCodesEnum, type CurrencyParameter, CursorPaginationParams, Cursors, type CustomerServiceWindowOptions, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, type DateTimeParameter, type DecryptedFlowRequest, type DedupeStore, DeleteContactBookEntryParams, DeleteContactBookEntryResponse, type DirectSendCategory, type DirectSendConfig, type DirectSendOptions, type DocumentMediaObject, DocumentMediaTypes, DocumentMediaTypesEnum, DocumentMediaTypesType, type DocumentMessage, type DocumentMessageHandler, type DocumentProcessedMessage, type EncryptedMessageRequest, type EncryptedMessagesResponse, EncryptionApi, type EncryptionClass, type EncryptionKeyPair, type EncryptionPublicKeyResponse, type ErrorWebhookValue, type ExpressRequest, type ExpressResponse, type ExpressWebhookConfig, FLOW_ERROR_CODES, FREE_ENTRY_POINT_WINDOW_MS, FailedUserInfo, type FastifyWebhookConfig, type FastifyWebhookHandlers, type FastifyWebhookReply, type FastifyWebhookRequest, type Flow, FlowActionEnum, FlowApi, type FlowAsset, type FlowAssetsResponse, FlowButton, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHandler, 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 FreeEntryPointWindowOptions, GROUP_ERROR_CODES, type GeneralHeaderInterface, type GeneralMessageBody, type GeneralRequestBody, type GetUploadHandleParams, GraphObject, type GroupCreateRequest, type GroupCreateResponse, type GroupInfoField, type GroupInfoFieldsParam, type GroupInfoResponse, type GroupInviteLinkResponse, type GroupJoinApprovalMode, type GroupJoinRequest, type GroupJoinRequestError, type GroupJoinRequestFailure, type GroupJoinRequestsActionResponse, type GroupJoinRequestsResponse, type GroupListParams, type GroupListResponse, type GroupMessage, type GroupParticipant, type GroupParticipantInput, type GroupParticipantsRequest, type GroupSettingsResponse, GroupsApi, type GroupsClass, type HeaderOptions, HealthStatus, HealthStatusEntity, type HolidaySchedule, type HonoWebhookConfig, type HonoWebhookContext, type HonoWebhookHandlers, HostPlatform, HttpMethods, HttpMethodsEnum, HttpMethodsType, type HttpsClientClass, type HttpsClientResponseClass, INTEGRITY_ERROR_CODES, type ImageMediaObject, ImageMediaTypes, ImageMediaTypesEnum, ImageMediaTypesType, type ImageMessage, type ImageMessageHandler, type ImageProcessedMessage, type InitiateCallRequest, type InitiateCallResponse, type InteractiveButtonReplyMessage, type InteractiveListReplyMessage, type InteractiveMessage, type InteractiveMessageHandler, type InteractiveObject, type InteractiveProcessedMessage, type InteractiveReply, InteractiveTypes, InteractiveTypesEnum, InteractiveTypesType, Languages, LanguagesEnum, LanguagesType, type LimitedTimeOfferOptions, type LimitedTimeOfferTemplateOptions, ListBlockedUsersParams, ListBlockedUsersResponse, type LocationInfo, type LocationMessage, type LocationMessageHandler, type LocationObject, type LocationParameter, type LocationProcessedMessage, Logger, type LoggerInterface, MAX_FREE_ENTRY_POINT_WINDOW_MS, MPMButton, type MPMTemplateOptions, type MarketingMessageBidSpec, type MarketingMessageRequest, MarketingMessagesApi, type MarketingMessagesClass, type MarketingMessagesLinkClickData, MediaApi, type MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, type MediaInfo, type MediaParameter, MediaResponse, MediasResponse, MemoryDedupeStore, type MemoryDedupeStoreOptions, MessagesApi as MessageApi, MessagesApi, MessageCategory, MessageCategoryEnum, MessageCategoryType, type MessageDeliveryStatus, type MessageHandler, MessageHistoryApi, MessageHistoryClass, MessageHistoryEventListParams, MessageHistoryFieldsParam, MessageHistoryItem, MessageHistoryListParams, MessageHistoryResponse, type MessageRecipientType, type MessageRequestBody, type MessageRequestParams, type MessageStatus, MessageTemplateObject, MessageTemplateRequestBody, MessageTypes, MessageTypesEnum, MessageTypesType, type MessageWebhookValue, type MessagesClass, type MessagesResponse, MessagingLimitTier, type MessagingWindow, type MetaError, type MetaErrorData, type MetaErrorDetail, type NextFunction, type NextJsAppWebhookConfig, type NextJsAppWebhookHandlers, type NextJsWebhookConfig, type NonMessageWebhookField, OTPButton, type OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, type OrderInfo, type OrderMessage, type OrderMessageHandler, type OrderProcessedMessage, type OtpButtonObject, type Pagination, type PaginationCursors, type Paging, PagingCursors, PagingInfo, ParametersTypes, ParametersTypesEnum, ParametersTypesType, PassThreadControlParams, type PaymentConfiguration, type PaymentConfigurationCode, type PaymentConfigurationCreateRequest, type PaymentConfigurationCreateResponse, type PaymentConfigurationDeleteRequest, type PaymentConfigurationOauthLinkRequest, type PaymentConfigurationOauthLinkResponse, type PaymentConfigurationProvider, type PaymentConfigurationStatus, type PaymentConfigurationUpdateRequest, type PaymentConfigurationUpdateResponse, type PaymentConfigurationsResponse, PaymentRequestActionParametersObject, PaymentRequestAmount, PaymentRequestButton, PaymentRequestButtonSetting, PaymentRequestObject, PaymentRequestSetting, PaymentsApi, type PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, type PreAcceptCallRequest, type ProcessWebhookOptions, type ProcessedMessage, type ProcessedStatus, type ProcessedUserAction, type ProcessedWebhookField, type ProductCardCarouselTemplateOptions, ProductCarouselCard, type ProductParameter, type ProductSection, QrCodeApi, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, type RateLimitHeadersInput, type RateLimitInfo, type RateLimitInfoContext, type RateLimitInfoListener, type RateLimitUsage, type ReactionInfo, type ReactionMessage, type ReactionMessageHandler, type ReactionParams, type ReactionProcessedMessage, ReferralSourceTypes, ReferralSourceTypesEnum, ReferralSourceTypesType, RegistrationApi, type RegistrationClass, type RegistrationRequest, type RejectCallRequest, RejectSolutionRequest, ReleaseThreadControlParams, RemoveAssignedUserRequest, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, type RequestHook, type RequestHookContext, type RequestHooks, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseHook, type ResponseHookContext, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, type RetryConfig, SEND_MESSAGE_ERROR_CODES, SPMButton, type SPMTemplateOptions, SetOBOMobilityIntentRequest, SetSolutionMigrationIntentRequest, SharePreVerifiedPhoneNumberRequest, type SipServer, type SipSettings, type SipStatus, SolutionDeactivationRequest, SolutionFieldsParam, SolutionGraphObject, SolutionListParams, SolutionListResponse, SolutionMigrationIntent, SolutionsApi, SolutionsClass, Status, StatusEnum, type StatusHandler, type StatusParams, type StatusResponse, StatusType, type StatusWebhook, type StatusWebhookValue, type StickerMediaObject, StickerMediaTypes, StickerMediaTypesEnum, StickerMediaTypesType, type StickerMessage, type StickerMessageHandler, type StickerProcessedMessage, SubType, SubTypeEnum, SubTypeType, SystemChangeTypes, SystemChangeTypesEnum, SystemChangeTypesType, type SystemMessage, type SystemMessageHandler, type SystemProcessedMessage, THROTTLING_ERROR_CODES, TakeThreadControlParams, TemplateApi, TemplateBidSpec, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, TemplateOptimizationSpec, type TemplateOptions, type TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatus, TemplateStatusEnum, TemplateStatusType, type TerminateCallRequest, type TextMessage, type TextMessageHandler, type TextMessageParams, type TextObject, type TextParameter, type TextProcessedMessage, ThreadControlApi, ThreadControlBaseParams, ThreadControlClass, ThreadControlResponse, ThreadControlRole, ThreadControlUserIdentifier, Throughput, ThroughputLevel, ThroughputResponse, TwoStepVerificationApi, type TwoStepVerificationClass, TwoStepVerificationParams, type TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnifiedCertStatus, type UnsupportedMessage, UpdateBusinessComplianceInfoRequest, type UpdateBusinessProfileRequest, type UpdateCallingSettingsRequest, type UpdateCommerceSettingsRequest, type UpdateFlowResponse, type UpdateGroupSettingsRequest, UpdateOfficialBusinessAccountStatusRequest, UpdatePhoneNumberSettingsRequest, UpdatePhoneNumberStatusRequest, type UpdateQrCodeRequest, UpdateUsernameRequest, UpdateWabaAccountRequest, UpdateWabaSubscription, UpdateWhatsAppBusinessProfileRequest, type UploadBusinessProfileResponse, type UploadHandle, UploadMediaInput, UploadMediaOptions, type UploadMediaParams, UploadMediaResponse, type UploadSession, type UploadSessionResponse, type UserAction, type UserActionHandler, type UserActionType, type UserActionsWebhookValue, UsernameResponse, UsernameStatus, UsernameSuggestionsResponse, UsernameTransferAction, type ValidateFlowJsonResponse, VerifyCodeRequest, VerifyPreVerifiedPhoneNumberCodeRequest, type VideoMediaObject, VideoMediaTypes, VideoMediaTypesEnum, VideoMediaTypesType, type VideoMessage, type VideoMessageHandler, type VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, type WabaConfigType, WabaFieldsParam, WabaGraphObject, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaListParams, WabaListResponse, WabaServicePricingPolicy, WabaSubscription, WabaSubscriptions, type WebhookContact, type WebhookDedupeConfig, type WebhookDedupeOptions, type WebhookEvent, type WebhookFieldHandler, type WebhookFieldHandlerMap, type WebhookFieldHandlerOptions, type WebhookFieldType, type WebhookFieldValue, type WebhookFieldValueMap, type WebhookHandlerContext, type WebhookMessage, type WebhookPayload, WebhookProcessor, type WebhookResponse, type WebhookSignatureOptions, WebhookTypes, WebhookTypesEnum, WebhookTypesType, type WebhookValue, type WeeklyOperatingHours, WhatsApp, WhatsApp as default, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, type WhatsAppConfig, WhatsAppError, type WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, type WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, WhatsAppValidationError, type WindowTimestamp, bold, buildFieldsQueryString, bulletList, canSendFreeformMessage, compareMessageStatus, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, decryptFlowRequestAsync, encryptFlowResponse, encryptFlowResponseAsync, expressWebhookHandler, extractMessageText, fastifyWebhookHandler, formatConfigTable, generateEncryption, generateXHub256Sig, generateXHub256SigAsync, getContactsInfo, getCustomerServiceWindow, getFreeEntryPointWindow, getInteractiveReply, getLocationInfo, getMediaInfo, getOrderInfo, getReactionInfo, honoWebhookHandler, inlineCode, isApiPermissionErrorCode, isAudioMessage, isAuthorizationErrorCode, isBlockUserErrorCode, isButtonMessage, isButtonReply, isCallingErrorCode, isContactsMessage, isDocumentMessage, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isImageMessage, isIntegrityErrorCode, isInteractiveMessage, isListReply, isLocationMessage, isMessageStatusAdvance, isMetaError, isNfmReply, isOrderMessage, isReactionMessage, isSendMessageErrorCode, isStickerMessage, isSystemMessage, isTextMessage, isThrottlingErrorCode, isValidWebhookSignature, isVideoMessage, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, italic, monospace, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, numberedList, objectToQueryString, parseRateLimitHeaders, parseRetryAfter, processFlowRequest, processWebhookMessages, quote, resolveMessageStatus, strikethrough, verifyWebhookSignature };
10866
+ export { AUTHORIZATION_ERROR_CODES, type AcceptCallRequest, AcceptSolutionRequest, AccountMode, AddPhoneNumbersRequest, type ApiPermissionErrorCode, AssignedUserRequest, AssignedUsersListParams, type AudioMediaObject, AudioMediaTypes, AudioMediaTypesEnum, AudioMediaTypesType, type AudioMessage, type AudioMessageHandler, type AudioProcessedMessage, type AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, type BaseApiRequest, type BaseApiResponse, type BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, type BodyOptions, BusinessApi, BusinessClass, BusinessComplianceInfoResponse, BusinessFieldsParam, BusinessGraphListResponse, BusinessGraphObject, BusinessListParams, BusinessProfileApi, type BusinessProfileClass, type BusinessProfileData, type BusinessProfileField, type BusinessProfileFieldsParam, type BusinessProfileResponse, type BusinessUseCaseUsage, BusinessVerticalEnum, type ButtonMessage, type ButtonMessageHandler, type ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, type ButtonProcessedMessage, CALLING_ERROR_CODES, CUSTOMER_SERVICE_WINDOW_MS, type CallAction, type CallActionResponse, type CallAnnouncementLanguage, type CallCaptureStatus, type CallHours, type CallHoursDay, type CallHoursStatus, type CallIconVisibility, type CallPermission, type CallPermissionAction, type CallPermissionLimit, type CallPermissionsResponse, type CallRecordingConfig, type CallSdpType, type CallSession, type CallTranscriptionConfig, type CallbackPermissionStatus, CallingApi, type CallingClass, type CallingSettings, type CallingSettingsResponse, type CallingStatus, CarouselCard, type CarouselOptions, CatalogButton, type CatalogTemplateOptions, Category, CategoryEnum, CategoryType, CodeVerificationStatus, CommerceApi, type CommerceClass, type CommerceSetting, type CommerceSettingsResponse, ComponentType, ComponentTypeType, ComponentTypes, ComponentTypesEnum, ContactBookApi, ContactBookClass, type ContactInfo, type ContactObject, type ContactsMessage, type ContactsMessageHandler, type ContactsProcessedMessage, ConversationTypes, ConversationTypesEnum, ConversationTypesType, ConversationalAutomationRequest, ConversationalAutomationResponse, ConversationalCommand, ConversationalPrompt, CopyCodeButton, type CouponTemplateOptions, type CreateFlowResponse, CreateOBOMobilityIntentRequest, CreatePhoneNumberRequest, CreatePhoneNumberResponse, type CreateQrCodeRequest, CreateScheduleRequest, type CreateUploadSessionParams, CreateWhatsAppBusinessSolutionRequest, CurrencyCodesEnum, type CurrencyParameter, CursorPaginationParams, Cursors, type CustomerServiceWindowOptions, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, type DateTimeParameter, type DecryptedFlowRequest, type DedupeStore, DeleteContactBookEntryParams, DeleteContactBookEntryResponse, type DirectSendCategory, type DirectSendConfig, type DirectSendOptions, type DocumentMediaObject, DocumentMediaTypes, DocumentMediaTypesEnum, DocumentMediaTypesType, type DocumentMessage, type DocumentMessageHandler, type DocumentProcessedMessage, type EncryptedMessageRequest, type EncryptedMessagesResponse, EncryptionApi, type EncryptionClass, type EncryptionKeyPair, type EncryptionPublicKeyResponse, type ErrorWebhookValue, type ExpressRequest, type ExpressResponse, type ExpressWebhookConfig, FLOW_ERROR_CODES, FREE_ENTRY_POINT_WINDOW_MS, FailedUserInfo, type FastifyWebhookConfig, type FastifyWebhookHandlers, type FastifyWebhookReply, type FastifyWebhookRequest, type Flow, FlowActionEnum, FlowApi, type FlowAsset, type FlowAssetsResponse, FlowButton, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHandler, 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 FreeEntryPointWindowOptions, GROUP_ERROR_CODES, type GeneralHeaderInterface, type GeneralMessageBody, type GeneralRequestBody, type GetUploadHandleParams, GraphObject, type GroupCreateRequest, type GroupCreateResponse, type GroupInfoField, type GroupInfoFieldsParam, type GroupInfoResponse, type GroupInviteLinkResponse, type GroupJoinApprovalMode, type GroupJoinRequest, type GroupJoinRequestError, type GroupJoinRequestFailure, type GroupJoinRequestsActionResponse, type GroupJoinRequestsResponse, type GroupListParams, type GroupListResponse, type GroupMessage, type GroupParticipant, type GroupParticipantInput, type GroupParticipantsRequest, type GroupSettingsResponse, GroupsApi, type GroupsClass, type HeaderOptions, HealthStatus, HealthStatusEntity, type HolidaySchedule, type HonoWebhookConfig, type HonoWebhookContext, type HonoWebhookHandlers, HostPlatform, HttpMethods, HttpMethodsEnum, HttpMethodsType, type HttpsClientClass, type HttpsClientResponseClass, INTEGRITY_ERROR_CODES, type ImageMediaObject, ImageMediaTypes, ImageMediaTypesEnum, ImageMediaTypesType, type ImageMessage, type ImageMessageHandler, type ImageProcessedMessage, type InitiateCallRequest, type InitiateCallResponse, type InteractiveButtonReplyMessage, type InteractiveListReplyMessage, type InteractiveMessage, type InteractiveMessageHandler, type InteractiveObject, type InteractiveProcessedMessage, type InteractiveReply, InteractiveTypes, InteractiveTypesEnum, InteractiveTypesType, Languages, LanguagesEnum, LanguagesType, type LimitedTimeOfferOptions, type LimitedTimeOfferTemplateOptions, ListBlockedUsersParams, ListBlockedUsersResponse, type LocationInfo, type LocationMessage, type LocationMessageHandler, type LocationObject, type LocationParameter, type LocationProcessedMessage, Logger, type LoggerInterface, MAX_FREE_ENTRY_POINT_WINDOW_MS, MPMButton, type MPMTemplateOptions, type MarketingMessageBidSpec, type MarketingMessageRequest, MarketingMessagesApi, type MarketingMessagesClass, type MarketingMessagesLinkClickData, MediaApi, type MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, type MediaInfo, type MediaParameter, MediaResponse, MediasResponse, MemoryDedupeStore, type MemoryDedupeStoreOptions, MessagesApi as MessageApi, MessagesApi, MessageCategory, MessageCategoryEnum, MessageCategoryType, type MessageDeliveryStatus, type MessageHandler, MessageHistoryApi, MessageHistoryClass, MessageHistoryEventListParams, MessageHistoryFieldsParam, MessageHistoryItem, MessageHistoryListParams, MessageHistoryResponse, type MessageRecipientType, type MessageRequestBody, type MessageRequestParams, type MessageStatus, MessageTemplateObject, MessageTemplateRequestBody, MessageTypes, MessageTypesEnum, MessageTypesType, type MessageWebhookValue, type MessagesClass, type MessagesResponse, MessagingLimitTier, type MessagingWindow, type MetaError, type MetaErrorData, type MetaErrorDetail, type NextFunction, type NextJsAppWebhookConfig, type NextJsAppWebhookHandlers, type NextJsWebhookConfig, type NonMessageWebhookField, OTPButton, type OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, type OrderInfo, type OrderMessage, type OrderMessageHandler, type OrderProcessedMessage, type OtpButtonObject, type OtpCopyCodeParams, type OtpOneTapParams, type OtpSupportedApp, type OtpZeroTapParams, type Pagination, type PaginationCursors, type Paging, PagingCursors, PagingInfo, ParametersTypes, ParametersTypesEnum, ParametersTypesType, PassThreadControlParams, type PaymentConfiguration, type PaymentConfigurationCode, type PaymentConfigurationCreateRequest, type PaymentConfigurationCreateResponse, type PaymentConfigurationDeleteRequest, type PaymentConfigurationOauthLinkRequest, type PaymentConfigurationOauthLinkResponse, type PaymentConfigurationProvider, type PaymentConfigurationStatus, type PaymentConfigurationUpdateRequest, type PaymentConfigurationUpdateResponse, type PaymentConfigurationsResponse, PaymentRequestActionParametersObject, PaymentRequestAmount, PaymentRequestButton, PaymentRequestButtonSetting, PaymentRequestObject, PaymentRequestSetting, PaymentsApi, type PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, type PreAcceptCallRequest, type ProcessWebhookOptions, type ProcessedMessage, type ProcessedStatus, type ProcessedUserAction, type ProcessedWebhookField, type ProductCardCarouselTemplateOptions, ProductCarouselCard, type ProductParameter, type ProductSection, QrCodeApi, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, type RateLimitHeadersInput, type RateLimitInfo, type RateLimitInfoContext, type RateLimitInfoListener, type RateLimitUsage, type ReactionInfo, type ReactionMessage, type ReactionMessageHandler, type ReactionParams, type ReactionProcessedMessage, ReferralSourceTypes, ReferralSourceTypesEnum, ReferralSourceTypesType, RegistrationApi, type RegistrationClass, type RegistrationRequest, type RejectCallRequest, RejectSolutionRequest, ReleaseThreadControlParams, RemoveAssignedUserRequest, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, type RequestHook, type RequestHookContext, type RequestHooks, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseHook, type ResponseHookContext, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, type RetryConfig, SEND_MESSAGE_ERROR_CODES, SPMButton, type SPMTemplateOptions, SetOBOMobilityIntentRequest, SetSolutionMigrationIntentRequest, SharePreVerifiedPhoneNumberRequest, type SipServer, type SipSettings, type SipStatus, SolutionDeactivationRequest, SolutionFieldsParam, SolutionGraphObject, SolutionListParams, SolutionListResponse, SolutionMigrationIntent, SolutionsApi, SolutionsClass, Status, StatusEnum, type StatusHandler, type StatusParams, type StatusResponse, StatusType, type StatusWebhook, type StatusWebhookValue, type StickerMediaObject, StickerMediaTypes, StickerMediaTypesEnum, StickerMediaTypesType, type StickerMessage, type StickerMessageHandler, type StickerProcessedMessage, SubType, SubTypeEnum, SubTypeType, SystemChangeTypes, SystemChangeTypesEnum, SystemChangeTypesType, type SystemMessage, type SystemMessageHandler, type SystemProcessedMessage, THROTTLING_ERROR_CODES, TakeThreadControlParams, TemplateApi, TemplateBidSpec, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, TemplateOptimizationSpec, type TemplateOptions, type TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatus, TemplateStatusEnum, TemplateStatusType, type TerminateCallRequest, type TextMessage, type TextMessageHandler, type TextMessageParams, type TextObject, type TextParameter, type TextProcessedMessage, ThreadControlApi, ThreadControlBaseParams, ThreadControlClass, ThreadControlResponse, ThreadControlRole, ThreadControlUserIdentifier, Throughput, ThroughputLevel, ThroughputResponse, TwoStepVerificationApi, type TwoStepVerificationClass, TwoStepVerificationParams, type TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnifiedCertStatus, type UnsupportedMessage, UpdateBusinessComplianceInfoRequest, type UpdateBusinessProfileRequest, type UpdateCallingSettingsRequest, type UpdateCommerceSettingsRequest, type UpdateFlowResponse, type UpdateGroupSettingsRequest, UpdateOfficialBusinessAccountStatusRequest, UpdatePhoneNumberSettingsRequest, UpdatePhoneNumberStatusRequest, type UpdateQrCodeRequest, UpdateUsernameRequest, UpdateWabaAccountRequest, UpdateWabaSubscription, UpdateWhatsAppBusinessProfileRequest, type UploadBusinessProfileResponse, type UploadHandle, UploadMediaInput, UploadMediaOptions, type UploadMediaParams, UploadMediaResponse, type UploadSession, type UploadSessionResponse, type UserAction, type UserActionHandler, type UserActionType, type UserActionsWebhookValue, UsernameResponse, UsernameStatus, UsernameSuggestionsResponse, UsernameTransferAction, type ValidateFlowJsonResponse, VerifyCodeRequest, VerifyPreVerifiedPhoneNumberCodeRequest, type VideoMediaObject, VideoMediaTypes, VideoMediaTypesEnum, VideoMediaTypesType, type VideoMessage, type VideoMessageHandler, type VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, type WabaConfigType, WabaFieldsParam, WabaGraphObject, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaListParams, WabaListResponse, WabaServicePricingPolicy, WabaSubscription, WabaSubscriptions, type WebhookContact, type WebhookDedupeConfig, type WebhookDedupeOptions, type WebhookEvent, type WebhookFieldHandler, type WebhookFieldHandlerMap, type WebhookFieldHandlerOptions, type WebhookFieldType, type WebhookFieldValue, type WebhookFieldValueMap, type WebhookHandlerContext, type WebhookMessage, type WebhookPayload, WebhookProcessor, type WebhookResponse, type WebhookSignatureOptions, WebhookTypes, WebhookTypesEnum, WebhookTypesType, type WebhookValue, type WeeklyOperatingHours, WhatsApp, WhatsApp as default, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, type WhatsAppConfig, WhatsAppError, type WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, type WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, WhatsAppValidationError, type WindowTimestamp, bold, buildFieldsQueryString, bulletList, canSendFreeformMessage, compareMessageStatus, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, decryptFlowRequestAsync, encryptFlowResponse, encryptFlowResponseAsync, expressWebhookHandler, extractMessageText, fastifyWebhookHandler, formatConfigTable, generateEncryption, generateXHub256Sig, generateXHub256SigAsync, getContactsInfo, getCustomerServiceWindow, getFreeEntryPointWindow, getInteractiveReply, getLocationInfo, getMediaInfo, getOrderInfo, getReactionInfo, honoWebhookHandler, inlineCode, isApiPermissionErrorCode, isAudioMessage, isAuthorizationErrorCode, isBlockUserErrorCode, isButtonMessage, isButtonReply, isCallingErrorCode, isContactsMessage, isDocumentMessage, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isImageMessage, isIntegrityErrorCode, isInteractiveMessage, isListReply, isLocationMessage, isMessageStatusAdvance, isMetaError, isNfmReply, isOrderMessage, isReactionMessage, isSendMessageErrorCode, isStickerMessage, isSystemMessage, isTextMessage, isThrottlingErrorCode, isValidWebhookSignature, isVideoMessage, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, italic, monospace, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, numberedList, objectToQueryString, parseRateLimitHeaders, parseRetryAfter, processFlowRequest, processWebhookMessages, quote, resolveMessageStatus, strikethrough, verifyWebhookSignature };
10747
10867
  //# sourceMappingURL=index.d.mts.map