meta-cloud-api 3.6.2 → 3.7.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/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
@@ -4814,8 +4814,40 @@ declare enum MessageStatus {
4814
4814
  }
4815
4815
  //#endregion
4816
4816
  //#region src/core/webhook/types/messaging.d.ts
4817
+ /**
4818
+ * Conversation Routing role identifier carried on handover events.
4819
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/overview/
4820
+ */
4821
+ type MessagingHandoverRole = 'ai_agent' | 'ctwa' | 'customer_service' | 'escalation' | 'marketing' | 'utility';
4822
+ /**
4823
+ * AI-generated summary of the conversation so far, delivered so a responder
4824
+ * picking up a thread has context without the full history. Sent only when the
4825
+ * receiving responder is not in standby and the business is eligible, so treat
4826
+ * it as optional. `summary.text` is model-generated prose — do not parse it.
4827
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/conversation-context/
4828
+ */
4829
+ interface ConversationContext {
4830
+ type: 'summary';
4831
+ summary: {
4832
+ text: string;
4833
+ };
4834
+ }
4817
4835
  interface MessagingHandoverControlPassed {
4818
- /** Optional metadata string passed with the handover */
4836
+ /** Role of the responder that passed control */
4837
+ previous_owner_role?: MessagingHandoverRole;
4838
+ /** Role of the responder that received control */
4839
+ new_owner_role?: MessagingHandoverRole;
4840
+ /** Optional metadata string (max 2,000 characters) passed by the caller */
4841
+ metadata?: string;
4842
+ /** Conversation summary, included conditionally */
4843
+ conversation_context?: ConversationContext;
4844
+ }
4845
+ interface MessagingHandoverControlTaken {
4846
+ /** Role of the responder that lost control */
4847
+ previous_owner_role?: MessagingHandoverRole;
4848
+ /** Role of the responder that took control (the escalation partner) */
4849
+ new_owner_role?: MessagingHandoverRole;
4850
+ /** Optional metadata string (max 2,000 characters) passed by the caller */
4819
4851
  metadata?: string;
4820
4852
  }
4821
4853
  interface MessagingHandoversValue {
@@ -4829,10 +4861,14 @@ interface MessagingHandoversValue {
4829
4861
  sender: {
4830
4862
  phone_number: string;
4831
4863
  };
4864
+ /** Handover event type */
4865
+ type?: 'control_passed' | 'control_taken';
4832
4866
  /** Unix timestamp of the event */
4833
4867
  timestamp: string;
4834
- /** Present when thread control is passed to another app */
4868
+ /** Present when thread control is passed to you */
4835
4869
  control_passed?: MessagingHandoverControlPassed;
4870
+ /** Present when the escalation partner took thread control from you */
4871
+ control_taken?: MessagingHandoverControlTaken;
4836
4872
  }
4837
4873
  interface MessagingHandoversWebhookValue {
4838
4874
  field: 'messaging_handovers';
@@ -5042,6 +5078,33 @@ interface PhoneNumberQualityUpdateWebhookValue {
5042
5078
  field: 'phone_number_quality_update';
5043
5079
  value: PhoneNumberQualityUpdateValue;
5044
5080
  }
5081
+ /**
5082
+ * Business username status
5083
+ * - `approved` — visible to WhatsApp users (also sent when Meta revokes a username and replaces it with a generated one)
5084
+ * - `deleted` — removed via the WhatsApp Business app, or because Meta revoked it
5085
+ * - `reserved` — reserved for the number but not yet visible to WhatsApp users
5086
+ */
5087
+ type BusinessUsernameStatus = 'approved' | 'deleted' | 'reserved';
5088
+ /**
5089
+ * Extra context for a username status change. `revoked` (currently the only
5090
+ * value) means Meta revoked the username.
5091
+ */
5092
+ type BusinessUsernameUpdateContext = 'revoked';
5093
+ interface BusinessUsernameUpdatesValue {
5094
+ display_phone_number: string;
5095
+ /** The username whose status changed. Omitted when `status` is `deleted`. */
5096
+ username?: string;
5097
+ status: BusinessUsernameStatus;
5098
+ /**
5099
+ * Present only when there is context beyond the status (added September 15, 2026).
5100
+ * An absent `context` does not by itself identify who initiated the change.
5101
+ */
5102
+ context?: BusinessUsernameUpdateContext;
5103
+ }
5104
+ interface BusinessUsernameUpdatesWebhookValue {
5105
+ field: 'business_username_updates';
5106
+ value: BusinessUsernameUpdatesValue;
5107
+ }
5045
5108
  //#endregion
5046
5109
  //#region src/core/webhook/types/security.d.ts
5047
5110
  /**
@@ -5162,6 +5225,7 @@ declare const WebhookField: {
5162
5225
  readonly AccountSettingsUpdate: "account_settings_update";
5163
5226
  readonly BusinessCapabilityUpdate: "business_capability_update";
5164
5227
  readonly BusinessStatusUpdate: "business_status_update";
5228
+ readonly BusinessUsernameUpdates: "business_username_updates";
5165
5229
  readonly PhoneNumberNameUpdate: "phone_number_name_update";
5166
5230
  readonly PhoneNumberQualityUpdate: "phone_number_quality_update";
5167
5231
  readonly MessageTemplateStatusUpdate: "message_template_status_update";
@@ -5199,6 +5263,11 @@ interface MessageWebhookValue {
5199
5263
  metadata: WebhookMetadata;
5200
5264
  contacts: Array<WebhookContact>;
5201
5265
  messages: Array<WhatsAppMessage>;
5266
+ /**
5267
+ * AI-generated conversation summary, included under Conversation Routing when
5268
+ * a thread is assigned to you without standby history. Optional.
5269
+ */
5270
+ conversation_context?: ConversationContext;
5202
5271
  }
5203
5272
  /**
5204
5273
  * Webhook value for status updates
@@ -5223,7 +5292,7 @@ type WebhookValue = MessageWebhookValue | StatusWebhookValue | ErrorWebhookValue
5223
5292
  /**
5224
5293
  * Union type for all webhook field values
5225
5294
  */
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;
5295
+ 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
5296
  interface WebhookPayload {
5228
5297
  object: 'whatsapp_business_account';
5229
5298
  entry: Array<{
@@ -5287,13 +5356,13 @@ type MetaErrorData = {
5287
5356
  interface MetaError extends Error {
5288
5357
  error: MetaErrorData;
5289
5358
  }
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];
5359
+ 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
5360
  type ApiPermissionErrorCode = number;
5292
5361
  type WhatsAppErrorCode = (typeof WHATSAPP_ERROR_CODES)[number] | ApiPermissionErrorCode;
5293
5362
  declare const AUTHORIZATION_ERROR_CODES: readonly [0, 3, 10, 190];
5294
5363
  declare const THROTTLING_ERROR_CODES: readonly [4, 80007, 130429, 131048, 131056];
5295
5364
  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];
5365
+ 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
5366
  declare const FLOW_ERROR_CODES: readonly [139000, 139001, 139002, 139003, 139004];
5298
5367
  declare const BLOCK_USER_ERROR_CODES: readonly [139100, 139101, 139102, 139103];
5299
5368
  declare const CALLING_ERROR_CODES: readonly [138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 613];
@@ -8402,6 +8471,149 @@ declare class TemplateApi extends BaseAPI implements TemplateClass {
8402
8471
  deleteTemplate(params: TemplateDeleteParams): Promise<ResponseSuccess>;
8403
8472
  }
8404
8473
  //#endregion
8474
+ //#region src/api/threadControl/types/threadControl.d.ts
8475
+ /**
8476
+ * Thread Control API Types
8477
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/
8478
+ */
8479
+ /**
8480
+ * Role identifiers a responder can hold under Conversation Routing.
8481
+ *
8482
+ * - `customer_service` — primary for the Service entry point
8483
+ * - `marketing` — primary for the Marketing Message Response entry point
8484
+ * - `utility` — primary for the Utility Response entry point
8485
+ * - `ctwa` — primary for the Click to WhatsApp entry point
8486
+ * - `ai_agent` — the designated AI agent (currently Meta Business Agent); only
8487
+ * available where Meta Business Agent is enabled on the account
8488
+ * - `escalation` — the account's designated escalation partner
8489
+ *
8490
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/overview/
8491
+ */
8492
+ type ThreadControlRole = 'ai_agent' | 'ctwa' | 'customer_service' | 'escalation' | 'marketing' | 'utility';
8493
+ /**
8494
+ * Identifies the WhatsApp user whose thread you are acting on. Provide exactly
8495
+ * one of `to` or `recipient`; Meta rejects a request carrying both or neither.
8496
+ */
8497
+ type ThreadControlUserIdentifier = {
8498
+ /** The WhatsApp user's phone number or wa_id. */to: string;
8499
+ recipient?: never;
8500
+ } | {
8501
+ to?: never;
8502
+ /**
8503
+ * The WhatsApp user's business-scoped user ID (BSUID). Preferred: a BSUID
8504
+ * stays stable for a user and business even if the phone number changes.
8505
+ */
8506
+ recipient: string;
8507
+ };
8508
+ type ThreadControlBaseParams = ThreadControlUserIdentifier & {
8509
+ /**
8510
+ * Free-form string (max 2,000 characters) forwarded verbatim to the receiving
8511
+ * app on the resulting `messaging_handovers` event.
8512
+ */
8513
+ metadata?: string;
8514
+ };
8515
+ /**
8516
+ * Parameters for passing thread ownership.
8517
+ */
8518
+ type PassThreadControlParams = ThreadControlBaseParams & {
8519
+ /**
8520
+ * Targeted pass configuration. When omitted, control passes to the account's
8521
+ * designated escalation partner (untargeted pass).
8522
+ */
8523
+ control_pass?: {
8524
+ /** The role receiving thread control. */target_role: ThreadControlRole;
8525
+ };
8526
+ };
8527
+ type ReleaseThreadControlParams = ThreadControlBaseParams;
8528
+ type TakeThreadControlParams = ThreadControlBaseParams;
8529
+ /**
8530
+ * Response returned by a successful pass, release, or take.
8531
+ */
8532
+ type ThreadControlResponse = {
8533
+ messaging_product: 'whatsapp';
8534
+ /**
8535
+ * Opaque identifier for this request. Include it when you contact support
8536
+ * about a specific call (added September 25, 2026).
8537
+ */
8538
+ request_id: string;
8539
+ };
8540
+ interface ThreadControlClass {
8541
+ pass(params: PassThreadControlParams): Promise<ThreadControlResponse>;
8542
+ release(params: ReleaseThreadControlParams): Promise<ThreadControlResponse>;
8543
+ take(params: TakeThreadControlParams): Promise<ThreadControlResponse>;
8544
+ }
8545
+ //#endregion
8546
+ //#region src/api/threadControl/ThreadControlApi.d.ts
8547
+ /**
8548
+ * API for Conversation Routing thread control.
8549
+ *
8550
+ * When more than one responder shares a WhatsApp account, Conversation Routing
8551
+ * gives each thread exactly one owner. Thread control lets a responder pass
8552
+ * ownership to another role, release the thread back to idle, or (escalation
8553
+ * partner only) take it. Routing itself is configured by the business in Meta
8554
+ * Business Suite, not through the API, and the account must be enrolled for
8555
+ * thread control before this endpoint accepts requests.
8556
+ *
8557
+ * There is no endpoint that reports the current owner: track ownership locally
8558
+ * from inbound messages, `messaging_handovers` events (`processor.onMessagingHandovers`),
8559
+ * and standby events, and reconcile after 24 hours of user inactivity, when the
8560
+ * thread returns to idle on its own.
8561
+ *
8562
+ * Endpoints covered:
8563
+ * - `POST /{PHONE_NUMBER_ID}/thread_control` - Pass, release, or take a thread
8564
+ *
8565
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/
8566
+ */
8567
+ declare class ThreadControlApi extends BaseAPI implements ThreadControlClass {
8568
+ private readonly endpoint;
8569
+ /**
8570
+ * Pass thread ownership from you (the current owner) to another responder.
8571
+ *
8572
+ * Without `control_pass`, control goes to the account's escalation partner.
8573
+ * With `control_pass.target_role`, control goes to that role. Meta rejects the
8574
+ * request if the thread is idle, you do not own it, the target is not enabled,
8575
+ * or the target already owns the thread. The new owner receives a
8576
+ * `control_passed` `messaging_handovers` event.
8577
+ *
8578
+ * @param params - The WhatsApp user (`to` or `recipient`), optional `metadata`, and optional `control_pass`.
8579
+ * @returns `{ messaging_product, request_id }`.
8580
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/#pass
8581
+ *
8582
+ * @example
8583
+ * ```typescript
8584
+ * const { request_id } = await client.threadControl.pass({
8585
+ * recipient: 'US.13491208655302741918',
8586
+ * metadata: 'WhatsApp user requested human agent',
8587
+ * control_pass: { target_role: 'customer_service' },
8588
+ * });
8589
+ * ```
8590
+ */
8591
+ pass(params: PassThreadControlParams): Promise<ThreadControlResponse>;
8592
+ /**
8593
+ * Release the thread back to idle. The WhatsApp user's next message is
8594
+ * re-routed by entry point. Releasing an idle thread succeeds; releasing a
8595
+ * thread you do not own is rejected (the escalation partner must take it first).
8596
+ * No `messaging_handovers` event fires for a release.
8597
+ *
8598
+ * @param params - The WhatsApp user (`to` or `recipient`) and optional `metadata`.
8599
+ * @returns `{ messaging_product, request_id }`.
8600
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/#release
8601
+ */
8602
+ release(params: ReleaseThreadControlParams): Promise<ThreadControlResponse>;
8603
+ /**
8604
+ * Take thread ownership. Only the account's designated escalation partner can
8605
+ * take a thread, regardless of who owns it; the previous owner receives a
8606
+ * `control_taken` `messaging_handovers` event. Sending a Service message as the
8607
+ * escalation partner takes the thread implicitly, without this call.
8608
+ *
8609
+ * @param params - The WhatsApp user (`to` or `recipient`) and optional `metadata`.
8610
+ * @returns `{ messaging_product, request_id }`.
8611
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/conversation-routing/thread-control/#take
8612
+ */
8613
+ take(params: TakeThreadControlParams): Promise<ThreadControlResponse>;
8614
+ private send;
8615
+ }
8616
+ //#endregion
8405
8617
  //#region src/api/twoStepVerification/TwoStepVerificationApi.d.ts
8406
8618
  /**
8407
8619
  * API for managing WhatsApp Two-Step Verification.
@@ -8636,6 +8848,7 @@ declare class WhatsApp {
8636
8848
  payments: PaymentsApi;
8637
8849
  phoneNumbers: PhoneNumberApi;
8638
8850
  solutions: SolutionsApi;
8851
+ threadControl: ThreadControlApi;
8639
8852
  twoStepVerification: TwoStepVerificationApi;
8640
8853
  flows: FlowApi;
8641
8854
  businessProfile: BusinessProfileApi;
@@ -8710,6 +8923,12 @@ type ProcessedMessage = {
8710
8923
  * For certain types like nfm_reply, this comes from message.context.id
8711
8924
  */
8712
8925
  messageId: string;
8926
+ /**
8927
+ * AI-generated conversation summary from `value.conversation_context`, present
8928
+ * under Conversation Routing when a thread is assigned to you without standby
8929
+ * history. Optional; never parse `summary.text`.
8930
+ */
8931
+ conversationContext?: ConversationContext;
8713
8932
  };
8714
8933
  /**
8715
8934
  * Processed status with metadata for handlers
@@ -8791,6 +9010,10 @@ type ProcessedBusinessStatusUpdate = {
8791
9010
  wabaId: string;
8792
9011
  value: BusinessStatusUpdateWebhookValue['value'];
8793
9012
  };
9013
+ type ProcessedBusinessUsernameUpdates = {
9014
+ wabaId: string;
9015
+ value: BusinessUsernameUpdatesWebhookValue['value'];
9016
+ };
8794
9017
  type ProcessedCalls = {
8795
9018
  wabaId: string;
8796
9019
  value: CallsWebhookValue['value'];
@@ -8948,6 +9171,7 @@ type SmbAppStateSyncHandler = WebhookHandler<ProcessedSmbAppStateSync>;
8948
9171
  type AccountSettingsUpdateHandler = WebhookHandler<ProcessedAccountSettingsUpdate>;
8949
9172
  type AutomaticEventsHandler = WebhookHandler<ProcessedAutomaticEvents>;
8950
9173
  type BusinessStatusUpdateHandler = WebhookHandler<ProcessedBusinessStatusUpdate>;
9174
+ type BusinessUsernameUpdatesHandler = WebhookHandler<ProcessedBusinessUsernameUpdates>;
8951
9175
  type CallsHandler = WebhookHandler<ProcessedCalls>;
8952
9176
  type GroupLifecycleUpdateHandler = WebhookHandler<ProcessedGroupLifecycleUpdate>;
8953
9177
  type GroupParticipantsUpdateHandler = WebhookHandler<ProcessedGroupParticipantsUpdate>;
@@ -9002,6 +9226,7 @@ declare function processWebhookMessages(request: Request, whatsapp: WhatsApp, ha
9002
9226
  accountSettingsUpdateHandler?: AccountSettingsUpdateHandler;
9003
9227
  automaticEventsHandler?: AutomaticEventsHandler;
9004
9228
  businessStatusUpdateHandler?: BusinessStatusUpdateHandler;
9229
+ businessUsernameUpdatesHandler?: BusinessUsernameUpdatesHandler;
9005
9230
  callsHandler?: CallsHandler;
9006
9231
  groupLifecycleUpdateHandler?: GroupLifecycleUpdateHandler;
9007
9232
  groupParticipantsUpdateHandler?: GroupParticipantsUpdateHandler;
@@ -9061,6 +9286,7 @@ declare class WebhookProcessor {
9061
9286
  private accountSettingsUpdateHandler;
9062
9287
  private automaticEventsHandler;
9063
9288
  private businessStatusUpdateHandler;
9289
+ private businessUsernameUpdatesHandler;
9064
9290
  private callsHandler;
9065
9291
  private groupLifecycleUpdateHandler;
9066
9292
  private groupParticipantsUpdateHandler;
@@ -9232,6 +9458,12 @@ declare class WebhookProcessor {
9232
9458
  * Register a handler for business_status_update webhook field
9233
9459
  */
9234
9460
  onBusinessStatusUpdate(handler: BusinessStatusUpdateHandler): void;
9461
+ /**
9462
+ * Register a handler for business_username_updates webhook field.
9463
+ * Check `value.context === 'revoked'` to tell a Meta revocation from a change the business made.
9464
+ * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#business_username_updates-webhook
9465
+ */
9466
+ onBusinessUsernameUpdates(handler: BusinessUsernameUpdatesHandler): void;
9235
9467
  /**
9236
9468
  * Register a handler for calls webhook field
9237
9469
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
@@ -9603,5 +9835,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
9603
9835
  */
9604
9836
  declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
9605
9837
  //#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 };
9838
+ 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
9839
  //# sourceMappingURL=index.d.mts.map