meta-cloud-api 3.6.2 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -76,6 +76,7 @@ wa.twoStepVerification // 2FA management
76
76
  wa.encryption // End-to-end encryption
77
77
  wa.blockUsers // Block/unblock users
78
78
  wa.contactBook // Delete a BSUID contact book entry
79
+ wa.threadControl // Conversation Routing: pass, release, take threads
79
80
  wa.waba // WhatsApp Business Account management
80
81
  ```
81
82
 
package/dist/index.d.mts CHANGED
@@ -4784,7 +4784,8 @@ interface StatusWebhook {
4784
4784
  * window; from October 1, 2026, a 1:1 service delivery inside the
4785
4785
  * business phone number's free tier.
4786
4786
  * - `free_entry_point` — message sent inside an open free entry point
4787
- * window.
4787
+ * window. Since September 28, 2026 the window may stay open for up to
4788
+ * 7 days (previously 72 hours).
4788
4789
  * - `free_group_customer_service` — through September 30, 2026, a group
4789
4790
  * utility or non-template message delivered inside an open group
4790
4791
  * customer service window; from October 1, 2026, a group service
@@ -4814,8 +4815,40 @@ declare enum MessageStatus {
4814
4815
  }
4815
4816
  //#endregion
4816
4817
  //#region src/core/webhook/types/messaging.d.ts
4818
+ /**
4819
+ * Conversation Routing role identifier carried on handover events.
4820
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/overview/
4821
+ */
4822
+ type MessagingHandoverRole = 'ai_agent' | 'ctwa' | 'customer_service' | 'escalation' | 'marketing' | 'utility';
4823
+ /**
4824
+ * AI-generated summary of the conversation so far, delivered so a responder
4825
+ * picking up a thread has context without the full history. Sent only when the
4826
+ * receiving responder is not in standby and the business is eligible, so treat
4827
+ * it as optional. `summary.text` is model-generated prose — do not parse it.
4828
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/conversation-context/
4829
+ */
4830
+ interface ConversationContext {
4831
+ type: 'summary';
4832
+ summary: {
4833
+ text: string;
4834
+ };
4835
+ }
4817
4836
  interface MessagingHandoverControlPassed {
4818
- /** Optional metadata string passed with the handover */
4837
+ /** Role of the responder that passed control */
4838
+ previous_owner_role?: MessagingHandoverRole;
4839
+ /** Role of the responder that received control */
4840
+ new_owner_role?: MessagingHandoverRole;
4841
+ /** Optional metadata string (max 2,000 characters) passed by the caller */
4842
+ metadata?: string;
4843
+ /** Conversation summary, included conditionally */
4844
+ conversation_context?: ConversationContext;
4845
+ }
4846
+ interface MessagingHandoverControlTaken {
4847
+ /** Role of the responder that lost control */
4848
+ previous_owner_role?: MessagingHandoverRole;
4849
+ /** Role of the responder that took control (the escalation partner) */
4850
+ new_owner_role?: MessagingHandoverRole;
4851
+ /** Optional metadata string (max 2,000 characters) passed by the caller */
4819
4852
  metadata?: string;
4820
4853
  }
4821
4854
  interface MessagingHandoversValue {
@@ -4829,10 +4862,14 @@ interface MessagingHandoversValue {
4829
4862
  sender: {
4830
4863
  phone_number: string;
4831
4864
  };
4865
+ /** Handover event type */
4866
+ type?: 'control_passed' | 'control_taken';
4832
4867
  /** Unix timestamp of the event */
4833
4868
  timestamp: string;
4834
- /** Present when thread control is passed to another app */
4869
+ /** Present when thread control is passed to you */
4835
4870
  control_passed?: MessagingHandoverControlPassed;
4871
+ /** Present when the escalation partner took thread control from you */
4872
+ control_taken?: MessagingHandoverControlTaken;
4836
4873
  }
4837
4874
  interface MessagingHandoversWebhookValue {
4838
4875
  field: 'messaging_handovers';
@@ -5042,6 +5079,33 @@ interface PhoneNumberQualityUpdateWebhookValue {
5042
5079
  field: 'phone_number_quality_update';
5043
5080
  value: PhoneNumberQualityUpdateValue;
5044
5081
  }
5082
+ /**
5083
+ * Business username status
5084
+ * - `approved` — visible to WhatsApp users (also sent when Meta revokes a username and replaces it with a generated one)
5085
+ * - `deleted` — removed via the WhatsApp Business app, or because Meta revoked it
5086
+ * - `reserved` — reserved for the number but not yet visible to WhatsApp users
5087
+ */
5088
+ type BusinessUsernameStatus = 'approved' | 'deleted' | 'reserved';
5089
+ /**
5090
+ * Extra context for a username status change. `revoked` (currently the only
5091
+ * value) means Meta revoked the username.
5092
+ */
5093
+ type BusinessUsernameUpdateContext = 'revoked';
5094
+ interface BusinessUsernameUpdatesValue {
5095
+ display_phone_number: string;
5096
+ /** The username whose status changed. Omitted when `status` is `deleted`. */
5097
+ username?: string;
5098
+ status: BusinessUsernameStatus;
5099
+ /**
5100
+ * Present only when there is context beyond the status (added September 15, 2026).
5101
+ * An absent `context` does not by itself identify who initiated the change.
5102
+ */
5103
+ context?: BusinessUsernameUpdateContext;
5104
+ }
5105
+ interface BusinessUsernameUpdatesWebhookValue {
5106
+ field: 'business_username_updates';
5107
+ value: BusinessUsernameUpdatesValue;
5108
+ }
5045
5109
  //#endregion
5046
5110
  //#region src/core/webhook/types/security.d.ts
5047
5111
  /**
@@ -5162,6 +5226,7 @@ declare const WebhookField: {
5162
5226
  readonly AccountSettingsUpdate: "account_settings_update";
5163
5227
  readonly BusinessCapabilityUpdate: "business_capability_update";
5164
5228
  readonly BusinessStatusUpdate: "business_status_update";
5229
+ readonly BusinessUsernameUpdates: "business_username_updates";
5165
5230
  readonly PhoneNumberNameUpdate: "phone_number_name_update";
5166
5231
  readonly PhoneNumberQualityUpdate: "phone_number_quality_update";
5167
5232
  readonly MessageTemplateStatusUpdate: "message_template_status_update";
@@ -5199,6 +5264,11 @@ interface MessageWebhookValue {
5199
5264
  metadata: WebhookMetadata;
5200
5265
  contacts: Array<WebhookContact>;
5201
5266
  messages: Array<WhatsAppMessage>;
5267
+ /**
5268
+ * AI-generated conversation summary, included under Conversation Routing when
5269
+ * a thread is assigned to you without standby history. Optional.
5270
+ */
5271
+ conversation_context?: ConversationContext;
5202
5272
  }
5203
5273
  /**
5204
5274
  * Webhook value for status updates
@@ -5223,7 +5293,7 @@ type WebhookValue = MessageWebhookValue | StatusWebhookValue | ErrorWebhookValue
5223
5293
  /**
5224
5294
  * Union type for all webhook field values
5225
5295
  */
5226
- type WebhookFieldValue = AccountUpdateWebhookValue | AccountReviewUpdateWebhookValue | AccountAlertsWebhookValue | AccountSettingsUpdateWebhookValue | AutomaticEventsWebhookValue | BusinessCapabilityUpdateWebhookValue | BusinessStatusUpdateWebhookValue | CallsWebhookValue | FlowsWebhookValue | GroupLifecycleUpdateWebhookValue | GroupParticipantsUpdateWebhookValue | GroupSettingsUpdateWebhookValue | GroupStatusUpdateWebhookValue | HistoryWebhookValue | MessageEchoesWebhookValue | MessageTemplateComponentsUpdateWebhookValue | MessageTemplateQualityUpdateWebhookValue | MessageTemplateStatusUpdateWebhookValue | MessagingHandoversWebhookValue | PartnerSolutionsWebhookValue | PaymentConfigurationUpdateWebhookValue | PhoneNumberNameUpdateWebhookValue | PhoneNumberQualityUpdateWebhookValue | SecurityWebhookValue | SmbAppStateSyncWebhookValue | SmbMessageEchoesWebhookValue | StandbyWebhookValue | TemplateCategoryUpdateWebhookValue | TemplateCorrectCategoryDetectionWebhookValue | TrackingEventsWebhookValue | UserPreferencesWebhookValue;
5296
+ type WebhookFieldValue = AccountUpdateWebhookValue | AccountReviewUpdateWebhookValue | AccountAlertsWebhookValue | AccountSettingsUpdateWebhookValue | AutomaticEventsWebhookValue | BusinessCapabilityUpdateWebhookValue | BusinessStatusUpdateWebhookValue | BusinessUsernameUpdatesWebhookValue | CallsWebhookValue | FlowsWebhookValue | GroupLifecycleUpdateWebhookValue | GroupParticipantsUpdateWebhookValue | GroupSettingsUpdateWebhookValue | GroupStatusUpdateWebhookValue | HistoryWebhookValue | MessageEchoesWebhookValue | MessageTemplateComponentsUpdateWebhookValue | MessageTemplateQualityUpdateWebhookValue | MessageTemplateStatusUpdateWebhookValue | MessagingHandoversWebhookValue | PartnerSolutionsWebhookValue | PaymentConfigurationUpdateWebhookValue | PhoneNumberNameUpdateWebhookValue | PhoneNumberQualityUpdateWebhookValue | SecurityWebhookValue | SmbAppStateSyncWebhookValue | SmbMessageEchoesWebhookValue | StandbyWebhookValue | TemplateCategoryUpdateWebhookValue | TemplateCorrectCategoryDetectionWebhookValue | TrackingEventsWebhookValue | UserPreferencesWebhookValue;
5227
5297
  interface WebhookPayload {
5228
5298
  object: 'whatsapp_business_account';
5229
5299
  entry: Array<{
@@ -5287,13 +5357,13 @@ type MetaErrorData = {
5287
5357
  interface MetaError extends Error {
5288
5358
  error: MetaErrorData;
5289
5359
  }
5290
- 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, 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, 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, 2593079, 2593085, 2593107, 2593108];
5360
+ 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, 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, 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];
5291
5361
  type ApiPermissionErrorCode = number;
5292
5362
  type WhatsAppErrorCode = (typeof WHATSAPP_ERROR_CODES)[number] | ApiPermissionErrorCode;
5293
5363
  declare const AUTHORIZATION_ERROR_CODES: readonly [0, 3, 10, 190];
5294
5364
  declare const THROTTLING_ERROR_CODES: readonly [4, 80007, 130429, 131048, 131056];
5295
5365
  declare const INTEGRITY_ERROR_CODES: readonly [368, 130497, 131031];
5296
- 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, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 135000, 137000];
5366
+ 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, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 135000, 137000];
5297
5367
  declare const FLOW_ERROR_CODES: readonly [139000, 139001, 139002, 139003, 139004];
5298
5368
  declare const BLOCK_USER_ERROR_CODES: readonly [139100, 139101, 139102, 139103];
5299
5369
  declare const CALLING_ERROR_CODES: readonly [138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 613];
@@ -8402,6 +8472,149 @@ declare class TemplateApi extends BaseAPI implements TemplateClass {
8402
8472
  deleteTemplate(params: TemplateDeleteParams): Promise<ResponseSuccess>;
8403
8473
  }
8404
8474
  //#endregion
8475
+ //#region src/api/threadControl/types/threadControl.d.ts
8476
+ /**
8477
+ * Thread Control API Types
8478
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/
8479
+ */
8480
+ /**
8481
+ * Role identifiers a responder can hold under Conversation Routing.
8482
+ *
8483
+ * - `customer_service` — primary for the Service entry point
8484
+ * - `marketing` — primary for the Marketing Message Response entry point
8485
+ * - `utility` — primary for the Utility Response entry point
8486
+ * - `ctwa` — primary for the Click to WhatsApp entry point
8487
+ * - `ai_agent` — the designated AI agent (currently Meta Business Agent); only
8488
+ * available where Meta Business Agent is enabled on the account
8489
+ * - `escalation` — the account's designated escalation partner
8490
+ *
8491
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/overview/
8492
+ */
8493
+ type ThreadControlRole = 'ai_agent' | 'ctwa' | 'customer_service' | 'escalation' | 'marketing' | 'utility';
8494
+ /**
8495
+ * Identifies the WhatsApp user whose thread you are acting on. Provide exactly
8496
+ * one of `to` or `recipient`; Meta rejects a request carrying both or neither.
8497
+ */
8498
+ type ThreadControlUserIdentifier = {
8499
+ /** The WhatsApp user's phone number or wa_id. */to: string;
8500
+ recipient?: never;
8501
+ } | {
8502
+ to?: never;
8503
+ /**
8504
+ * The WhatsApp user's business-scoped user ID (BSUID). Preferred: a BSUID
8505
+ * stays stable for a user and business even if the phone number changes.
8506
+ */
8507
+ recipient: string;
8508
+ };
8509
+ type ThreadControlBaseParams = ThreadControlUserIdentifier & {
8510
+ /**
8511
+ * Free-form string (max 2,000 characters) forwarded verbatim to the receiving
8512
+ * app on the resulting `messaging_handovers` event.
8513
+ */
8514
+ metadata?: string;
8515
+ };
8516
+ /**
8517
+ * Parameters for passing thread ownership.
8518
+ */
8519
+ type PassThreadControlParams = ThreadControlBaseParams & {
8520
+ /**
8521
+ * Targeted pass configuration. When omitted, control passes to the account's
8522
+ * designated escalation partner (untargeted pass).
8523
+ */
8524
+ control_pass?: {
8525
+ /** The role receiving thread control. */target_role: ThreadControlRole;
8526
+ };
8527
+ };
8528
+ type ReleaseThreadControlParams = ThreadControlBaseParams;
8529
+ type TakeThreadControlParams = ThreadControlBaseParams;
8530
+ /**
8531
+ * Response returned by a successful pass, release, or take.
8532
+ */
8533
+ type ThreadControlResponse = {
8534
+ messaging_product: 'whatsapp';
8535
+ /**
8536
+ * Opaque identifier for this request. Include it when you contact support
8537
+ * about a specific call (added September 25, 2026).
8538
+ */
8539
+ request_id: string;
8540
+ };
8541
+ interface ThreadControlClass {
8542
+ pass(params: PassThreadControlParams): Promise<ThreadControlResponse>;
8543
+ release(params: ReleaseThreadControlParams): Promise<ThreadControlResponse>;
8544
+ take(params: TakeThreadControlParams): Promise<ThreadControlResponse>;
8545
+ }
8546
+ //#endregion
8547
+ //#region src/api/threadControl/ThreadControlApi.d.ts
8548
+ /**
8549
+ * API for Conversation Routing thread control.
8550
+ *
8551
+ * When more than one responder shares a WhatsApp account, Conversation Routing
8552
+ * gives each thread exactly one owner. Thread control lets a responder pass
8553
+ * ownership to another role, release the thread back to idle, or (escalation
8554
+ * partner only) take it. Routing itself is configured by the business in Meta
8555
+ * Business Suite, not through the API, and the account must be enrolled for
8556
+ * thread control before this endpoint accepts requests.
8557
+ *
8558
+ * There is no endpoint that reports the current owner: track ownership locally
8559
+ * from inbound messages, `messaging_handovers` events (`processor.onMessagingHandovers`),
8560
+ * and standby events, and reconcile after 24 hours of user inactivity, when the
8561
+ * thread returns to idle on its own.
8562
+ *
8563
+ * Endpoints covered:
8564
+ * - `POST /{PHONE_NUMBER_ID}/thread_control` - Pass, release, or take a thread
8565
+ *
8566
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/
8567
+ */
8568
+ declare class ThreadControlApi extends BaseAPI implements ThreadControlClass {
8569
+ private readonly endpoint;
8570
+ /**
8571
+ * Pass thread ownership from you (the current owner) to another responder.
8572
+ *
8573
+ * Without `control_pass`, control goes to the account's escalation partner.
8574
+ * With `control_pass.target_role`, control goes to that role. Meta rejects the
8575
+ * request if the thread is idle, you do not own it, the target is not enabled,
8576
+ * or the target already owns the thread. The new owner receives a
8577
+ * `control_passed` `messaging_handovers` event.
8578
+ *
8579
+ * @param params - The WhatsApp user (`to` or `recipient`), optional `metadata`, and optional `control_pass`.
8580
+ * @returns `{ messaging_product, request_id }`.
8581
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/#pass
8582
+ *
8583
+ * @example
8584
+ * ```typescript
8585
+ * const { request_id } = await client.threadControl.pass({
8586
+ * recipient: 'US.13491208655302741918',
8587
+ * metadata: 'WhatsApp user requested human agent',
8588
+ * control_pass: { target_role: 'customer_service' },
8589
+ * });
8590
+ * ```
8591
+ */
8592
+ pass(params: PassThreadControlParams): Promise<ThreadControlResponse>;
8593
+ /**
8594
+ * Release the thread back to idle. The WhatsApp user's next message is
8595
+ * re-routed by entry point. Releasing an idle thread succeeds; releasing a
8596
+ * thread you do not own is rejected (the escalation partner must take it first).
8597
+ * No `messaging_handovers` event fires for a release.
8598
+ *
8599
+ * @param params - The WhatsApp user (`to` or `recipient`) and optional `metadata`.
8600
+ * @returns `{ messaging_product, request_id }`.
8601
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/#release
8602
+ */
8603
+ release(params: ReleaseThreadControlParams): Promise<ThreadControlResponse>;
8604
+ /**
8605
+ * Take thread ownership. Only the account's designated escalation partner can
8606
+ * take a thread, regardless of who owns it; the previous owner receives a
8607
+ * `control_taken` `messaging_handovers` event. Sending a Service message as the
8608
+ * escalation partner takes the thread implicitly, without this call.
8609
+ *
8610
+ * @param params - The WhatsApp user (`to` or `recipient`) and optional `metadata`.
8611
+ * @returns `{ messaging_product, request_id }`.
8612
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/#take
8613
+ */
8614
+ take(params: TakeThreadControlParams): Promise<ThreadControlResponse>;
8615
+ private send;
8616
+ }
8617
+ //#endregion
8405
8618
  //#region src/api/twoStepVerification/TwoStepVerificationApi.d.ts
8406
8619
  /**
8407
8620
  * API for managing WhatsApp Two-Step Verification.
@@ -8636,6 +8849,7 @@ declare class WhatsApp {
8636
8849
  payments: PaymentsApi;
8637
8850
  phoneNumbers: PhoneNumberApi;
8638
8851
  solutions: SolutionsApi;
8852
+ threadControl: ThreadControlApi;
8639
8853
  twoStepVerification: TwoStepVerificationApi;
8640
8854
  flows: FlowApi;
8641
8855
  businessProfile: BusinessProfileApi;
@@ -8710,6 +8924,12 @@ type ProcessedMessage = {
8710
8924
  * For certain types like nfm_reply, this comes from message.context.id
8711
8925
  */
8712
8926
  messageId: string;
8927
+ /**
8928
+ * AI-generated conversation summary from `value.conversation_context`, present
8929
+ * under Conversation Routing when a thread is assigned to you without standby
8930
+ * history. Optional; never parse `summary.text`.
8931
+ */
8932
+ conversationContext?: ConversationContext;
8713
8933
  };
8714
8934
  /**
8715
8935
  * Processed status with metadata for handlers
@@ -8791,6 +9011,10 @@ type ProcessedBusinessStatusUpdate = {
8791
9011
  wabaId: string;
8792
9012
  value: BusinessStatusUpdateWebhookValue['value'];
8793
9013
  };
9014
+ type ProcessedBusinessUsernameUpdates = {
9015
+ wabaId: string;
9016
+ value: BusinessUsernameUpdatesWebhookValue['value'];
9017
+ };
8794
9018
  type ProcessedCalls = {
8795
9019
  wabaId: string;
8796
9020
  value: CallsWebhookValue['value'];
@@ -8948,6 +9172,7 @@ type SmbAppStateSyncHandler = WebhookHandler<ProcessedSmbAppStateSync>;
8948
9172
  type AccountSettingsUpdateHandler = WebhookHandler<ProcessedAccountSettingsUpdate>;
8949
9173
  type AutomaticEventsHandler = WebhookHandler<ProcessedAutomaticEvents>;
8950
9174
  type BusinessStatusUpdateHandler = WebhookHandler<ProcessedBusinessStatusUpdate>;
9175
+ type BusinessUsernameUpdatesHandler = WebhookHandler<ProcessedBusinessUsernameUpdates>;
8951
9176
  type CallsHandler = WebhookHandler<ProcessedCalls>;
8952
9177
  type GroupLifecycleUpdateHandler = WebhookHandler<ProcessedGroupLifecycleUpdate>;
8953
9178
  type GroupParticipantsUpdateHandler = WebhookHandler<ProcessedGroupParticipantsUpdate>;
@@ -9002,6 +9227,7 @@ declare function processWebhookMessages(request: Request, whatsapp: WhatsApp, ha
9002
9227
  accountSettingsUpdateHandler?: AccountSettingsUpdateHandler;
9003
9228
  automaticEventsHandler?: AutomaticEventsHandler;
9004
9229
  businessStatusUpdateHandler?: BusinessStatusUpdateHandler;
9230
+ businessUsernameUpdatesHandler?: BusinessUsernameUpdatesHandler;
9005
9231
  callsHandler?: CallsHandler;
9006
9232
  groupLifecycleUpdateHandler?: GroupLifecycleUpdateHandler;
9007
9233
  groupParticipantsUpdateHandler?: GroupParticipantsUpdateHandler;
@@ -9061,6 +9287,7 @@ declare class WebhookProcessor {
9061
9287
  private accountSettingsUpdateHandler;
9062
9288
  private automaticEventsHandler;
9063
9289
  private businessStatusUpdateHandler;
9290
+ private businessUsernameUpdatesHandler;
9064
9291
  private callsHandler;
9065
9292
  private groupLifecycleUpdateHandler;
9066
9293
  private groupParticipantsUpdateHandler;
@@ -9232,6 +9459,12 @@ declare class WebhookProcessor {
9232
9459
  * Register a handler for business_status_update webhook field
9233
9460
  */
9234
9461
  onBusinessStatusUpdate(handler: BusinessStatusUpdateHandler): void;
9462
+ /**
9463
+ * Register a handler for business_username_updates webhook field.
9464
+ * Check `value.context === 'revoked'` to tell a Meta revocation from a change the business made.
9465
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#business_username_updates-webhook
9466
+ */
9467
+ onBusinessUsernameUpdates(handler: BusinessUsernameUpdatesHandler): void;
9235
9468
  /**
9236
9469
  * Register a handler for calls webhook field
9237
9470
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
@@ -9603,5 +9836,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
9603
9836
  */
9604
9837
  declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
9605
9838
  //#endregion
9606
- 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, BusinessVerticalEnum, type ButtonMessage, type ButtonMessageHandler, type ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, type ButtonProcessedMessage, CALLING_ERROR_CODES, 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, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, type DateTimeParameter, 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, FailedUserInfo, 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, 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, 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, MPMButton, type MPMTemplateOptions, type MarketingMessageBidSpec, type MarketingMessageRequest, MarketingMessagesApi, type MarketingMessagesClass, MediaApi, type MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, type MediaInfo, type MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, MessageCategory, MessageCategoryEnum, MessageCategoryType, 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 MetaError, type MetaErrorData, type MetaErrorDetail, type NextFunction, type NextJsAppWebhookConfig, type NextJsWebhookConfig, OTPButton, type OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, type OrderInfo, type OrderMessage, type OrderMessageHandler, type OrderProcessedMessage, type Pagination, type PaginationCursors, type Paging, PagingCursors, PagingInfo, ParametersTypes, ParametersTypesEnum, ParametersTypesType, type PaymentConfiguration, type PaymentConfigurationCode, type PaymentConfigurationCreateRequest, type PaymentConfigurationCreateResponse, type PaymentConfigurationDeleteRequest, type PaymentConfigurationOauthLinkRequest, type PaymentConfigurationOauthLinkResponse, type PaymentConfigurationProvider, type PaymentConfigurationStatus, type PaymentConfigurationUpdateRequest, type PaymentConfigurationUpdateResponse, type PaymentConfigurationsResponse, PaymentsApi, type PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, type PreAcceptCallRequest, type ProcessedMessage, type ProcessedStatus, type ProductCardCarouselTemplateOptions, ProductCarouselCard, type ProductParameter, type ProductSection, QrCodeApi, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, type ReactionInfo, type ReactionMessage, type ReactionMessageHandler, type ReactionParams, type ReactionProcessedMessage, ReferralSourceTypes, ReferralSourceTypesEnum, ReferralSourceTypesType, RegistrationApi, type RegistrationClass, type RegistrationRequest, type RejectCallRequest, RejectSolutionRequest, RemoveAssignedUserRequest, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, 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, 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, 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, type UploadMediaParams, UploadMediaResponse, type UploadSession, type UploadSessionResponse, 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, WabaSubscription, WabaSubscriptions, type WebhookContact, type WebhookEvent, type WebhookHandlerContext, type WebhookMessage, type WebhookPayload, WebhookProcessor, type WebhookResponse, WebhookTypes, WebhookTypesEnum, WebhookTypesType, type WebhookValue, type WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, type WhatsAppConfig, WhatsAppError, type WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, type WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, WhatsAppValidationError, buildFieldsQueryString, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, encryptFlowResponse, expressWebhookHandler, extractMessageText, formatConfigTable, generateEncryption, generateXHub256Sig, getContactsInfo, getInteractiveReply, getLocationInfo, getMediaInfo, getOrderInfo, getReactionInfo, isApiPermissionErrorCode, isAudioMessage, isAuthorizationErrorCode, isBlockUserErrorCode, isButtonMessage, isButtonReply, isCallingErrorCode, isContactsMessage, isDocumentMessage, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isImageMessage, isIntegrityErrorCode, isInteractiveMessage, isListReply, isLocationMessage, isMetaError, isNfmReply, isOrderMessage, isReactionMessage, isSendMessageErrorCode, isStickerMessage, isSystemMessage, isTextMessage, isThrottlingErrorCode, isVideoMessage, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, objectToQueryString, processFlowRequest, processWebhookMessages };
9839
+ 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, BusinessVerticalEnum, type ButtonMessage, type ButtonMessageHandler, type ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, type ButtonProcessedMessage, CALLING_ERROR_CODES, 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, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, type DateTimeParameter, 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, FailedUserInfo, 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, 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, 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, MPMButton, type MPMTemplateOptions, type MarketingMessageBidSpec, type MarketingMessageRequest, MarketingMessagesApi, type MarketingMessagesClass, MediaApi, type MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, type MediaInfo, type MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, MessageCategory, MessageCategoryEnum, MessageCategoryType, 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 MetaError, type MetaErrorData, type MetaErrorDetail, type NextFunction, type NextJsAppWebhookConfig, type NextJsWebhookConfig, OTPButton, type OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, type OrderInfo, type OrderMessage, type OrderMessageHandler, type OrderProcessedMessage, 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, PaymentsApi, type PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, type PreAcceptCallRequest, type ProcessedMessage, type ProcessedStatus, type ProductCardCarouselTemplateOptions, ProductCarouselCard, type ProductParameter, type ProductSection, QrCodeApi, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, 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, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, 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, type UploadMediaParams, UploadMediaResponse, type UploadSession, type UploadSessionResponse, 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, WabaSubscription, WabaSubscriptions, type WebhookContact, type WebhookEvent, type WebhookHandlerContext, type WebhookMessage, type WebhookPayload, WebhookProcessor, type WebhookResponse, WebhookTypes, WebhookTypesEnum, WebhookTypesType, type WebhookValue, type WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, type WhatsAppConfig, WhatsAppError, type WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, type WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, WhatsAppValidationError, buildFieldsQueryString, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, encryptFlowResponse, expressWebhookHandler, extractMessageText, formatConfigTable, generateEncryption, generateXHub256Sig, getContactsInfo, getInteractiveReply, getLocationInfo, getMediaInfo, getOrderInfo, getReactionInfo, isApiPermissionErrorCode, isAudioMessage, isAuthorizationErrorCode, isBlockUserErrorCode, isButtonMessage, isButtonReply, isCallingErrorCode, isContactsMessage, isDocumentMessage, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isImageMessage, isIntegrityErrorCode, isInteractiveMessage, isListReply, isLocationMessage, isMetaError, isNfmReply, isOrderMessage, isReactionMessage, isSendMessageErrorCode, isStickerMessage, isSystemMessage, isTextMessage, isThrottlingErrorCode, isVideoMessage, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, objectToQueryString, processFlowRequest, processWebhookMessages };
9607
9840
  //# sourceMappingURL=index.d.mts.map