meta-cloud-api 3.1.0 → 3.2.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
@@ -1,8 +1,8 @@
1
1
  <div align="center">
2
2
  <img src="public/README.svg" alt="meta-cloud-api" width="120">
3
3
  <h1>meta-cloud-api</h1>
4
- <p><strong>WhatsApp TypeScript SDK</strong> — type-safe, modular, and production-ready.</p>
5
- <p>The complete SDK for the official <a href="https://developers.facebook.com/docs/whatsapp/cloud-api">WhatsApp Business Platform Cloud API</a>.</p>
4
+ <p><strong>The actively maintained TypeScript SDK for the official WhatsApp Cloud API.</strong></p>
5
+ <p>Meta <a href="https://github.com/WhatsApp/WhatsApp-Nodejs-SDK">archived their own Node.js SDK</a> in 2023. This one kept going.</p>
6
6
 
7
7
  [![npm version](https://img.shields.io/npm/v/meta-cloud-api.svg)](https://www.npmjs.com/package/meta-cloud-api)
8
8
  [![npm downloads](https://img.shields.io/npm/dm/meta-cloud-api.svg)](https://www.npmjs.com/package/meta-cloud-api)
@@ -43,14 +43,18 @@ await wa.messages.image({ to: '1234567890', link: 'https://example.com/image.png
43
43
 
44
44
  ## Why meta-cloud-api?
45
45
 
46
- | | meta-cloud-api |
47
- |---|---|
48
- | **Type Safety** | Full TypeScript strict mode — every request and response is typed |
49
- | **17 API Modules** | Messages, Media, Templates, Flows, Groups, Calling, Payments, and more |
50
- | **Webhook Adapters** | Built-in support for Express.js and Next.js (App Router & Pages Router) |
51
- | **Modular** | Tree-shakeable imports, use only what you need |
52
- | **Production Ready** | Error handling, typed error classes, rate limit support |
53
- | **Official API** | Built on the official WhatsApp Business Platform Cloud API |
46
+ > **Meta's own WhatsApp Node.js SDK has been [archived since June 2023](https://github.com/WhatsApp/WhatsApp-Nodejs-SDK)** — no fixes, no updates, no OpenAPI v23 support. meta-cloud-api is a maintained, type-safe alternative built on the same official Cloud API.
47
+
48
+ | | meta-cloud-api | Official SDK | Unofficial libraries (whatsapp-web.js, Baileys) |
49
+ |---|---|---|---|
50
+ | API basis | Official Cloud API | Official Cloud API | Reverse-engineered, unofficial |
51
+ | Account ban risk | None | None | Yes — violates WhatsApp ToS |
52
+ | Maintenance | Active (tracks OpenAPI v23) | **Archived since 2023** | Varies |
53
+ | TypeScript | Strict, full request/response types | Partial | Varies |
54
+ | API coverage | 20 modules (Messages, Flows, Calling, Payments, and more) | Messaging-focused | Personal-account features |
55
+ | Webhook adapters | Built-in Express.js + Next.js | Manual | Custom event system |
56
+
57
+ If you're building on the official Cloud API and don't want to bet on an unmaintained SDK, this is what the archived one would look like if Meta had kept shipping it.
54
58
 
55
59
  ## API Coverage
56
60
 
package/dist/index.d.mts CHANGED
@@ -36,6 +36,8 @@ declare enum MessageTypesEnum {
36
36
  Button = "button",
37
37
  Order = "order",
38
38
  System = "system",
39
+ Edit = "edit",
40
+ Revoke = "revoke",
39
41
  Unsupported = "unsupported",
40
42
  Unknown = "unknown",
41
43
  /**
@@ -89,6 +91,7 @@ declare enum SubTypeEnum {
89
91
  Flow = "FLOW",
90
92
  Mpm = "MPM",
91
93
  OrderDetails = "ORDER_DETAILS",
94
+ PhoneNumber = "PHONE_NUMBER",
92
95
  QuickReply = "QUICK_REPLY",
93
96
  Reminder = "REMINDER",
94
97
  Url = "URL",
@@ -1093,9 +1096,8 @@ type AddPhoneNumbersRequest = {
1093
1096
  [key: string]: unknown;
1094
1097
  };
1095
1098
  type SharePreVerifiedPhoneNumberRequest = {
1096
- preverified_phone_number_id: string;
1099
+ preverified_id: string;
1097
1100
  partner_business_id: string;
1098
- [key: string]: unknown;
1099
1101
  };
1100
1102
  type OnboardPartnersToMMLiteRequest = {
1101
1103
  solution_id?: string;
@@ -1228,10 +1230,38 @@ type CallSession = {
1228
1230
  sdp: string;
1229
1231
  };
1230
1232
  type CallAction = 'connect' | 'pre_accept' | 'accept' | 'reject' | 'terminate';
1233
+ type CallCaptureStatus = 'ENABLED' | 'DISABLED';
1234
+ /**
1235
+ * Supported announcement locales for call recording / transcription.
1236
+ * The announcement is played to both participants before capture starts.
1237
+ */
1238
+ type CallAnnouncementLanguage = 'en' | 'en_US' | 'en_AU' | 'en_CA' | 'en_GB' | 'en_IN' | 'en_NZ' | 'nl' | 'fr' | 'de' | 'hi' | 'it' | 'kn' | 'pt' | 'es' | 'es_ES' | 'te' | 'vi' | (string & {});
1239
+ /**
1240
+ * Per-call recording configuration. When status is ENABLED, `purpose` and
1241
+ * `announcement_language` are required; the recording arrives via the
1242
+ * `call_recording_available` webhook event.
1243
+ */
1244
+ type CallRecordingConfig = {
1245
+ status: CallCaptureStatus; /** Reason for recording, max 250 characters — required when status is ENABLED */
1246
+ purpose?: string; /** Locale of the pre-recording announcement — required when status is ENABLED */
1247
+ announcement_language?: CallAnnouncementLanguage;
1248
+ };
1249
+ /**
1250
+ * Per-call transcription configuration. When status is ENABLED, `purpose` and
1251
+ * `announcement_language` are required; the transcript arrives via the
1252
+ * `call_transcription_available` webhook event.
1253
+ */
1254
+ type CallTranscriptionConfig = {
1255
+ status: CallCaptureStatus; /** Reason for transcription, max 250 characters — required when status is ENABLED */
1256
+ purpose?: string; /** Locale of the pre-transcription announcement — required when status is ENABLED */
1257
+ announcement_language?: CallAnnouncementLanguage;
1258
+ };
1231
1259
  type InitiateCallRequest = {
1232
1260
  to: string;
1233
1261
  session: CallSession;
1234
1262
  biz_opaque_callback_data?: string;
1263
+ recording?: CallRecordingConfig;
1264
+ transcription?: CallTranscriptionConfig;
1235
1265
  };
1236
1266
  type PreAcceptCallRequest = {
1237
1267
  call_id: string;
@@ -1241,6 +1271,8 @@ type AcceptCallRequest = {
1241
1271
  call_id: string;
1242
1272
  session?: CallSession;
1243
1273
  biz_opaque_callback_data?: string;
1274
+ recording?: CallRecordingConfig;
1275
+ transcription?: CallTranscriptionConfig;
1244
1276
  };
1245
1277
  type RejectCallRequest = {
1246
1278
  call_id: string;
@@ -1331,6 +1363,8 @@ declare class CallingApi extends BaseAPI implements CallingClass {
1331
1363
  * @param params.to - The recipient's WhatsApp phone number.
1332
1364
  * @param params.session - The call session configuration.
1333
1365
  * @param params.biz_opaque_callback_data - Optional opaque data passed back in webhooks.
1366
+ * @param params.recording - Optional per-call recording configuration.
1367
+ * @param params.transcription - Optional per-call transcription configuration.
1334
1368
  * @returns The initiated call response with call ID and status.
1335
1369
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
1336
1370
  */
@@ -1352,6 +1386,8 @@ declare class CallingApi extends BaseAPI implements CallingClass {
1352
1386
  * @param params.call_id - The ID of the call to accept.
1353
1387
  * @param params.session - Optional session configuration for the call.
1354
1388
  * @param params.biz_opaque_callback_data - Optional opaque data passed back in webhooks.
1389
+ * @param params.recording - Optional per-call recording configuration.
1390
+ * @param params.transcription - Optional per-call transcription configuration.
1355
1391
  * @returns The call action response confirming acceptance.
1356
1392
  * @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
1357
1393
  */
@@ -2056,14 +2092,13 @@ type MessagesResponse = GeneralMessageBody & {
2056
2092
  message_status?: 'accepted' | 'held_for_quality_assessment' | 'paused';
2057
2093
  }>;
2058
2094
  };
2059
- type EncryptedMessageRequest = GeneralMessageBody & {
2060
- to: string;
2061
- type?: string;
2062
- encrypted?: Record<string, unknown>;
2063
- jwe?: string;
2064
- [key: string]: unknown;
2095
+ type EncryptedMessageRequest = {
2096
+ messaging_product: 'whatsapp';
2097
+ encrypted_contents: string;
2098
+ };
2099
+ type EncryptedMessagesResponse = {
2100
+ encrypted_contents: string;
2065
2101
  };
2066
- type EncryptedMessagesResponse = MessagesResponse;
2067
2102
  declare class MessagesClass extends BaseClass {
2068
2103
  text(params: TextMessageParams): Promise<MessagesResponse>;
2069
2104
  template(params: MessageRequestParams<MessageTemplateObject<ComponentTypesEnum>>): Promise<MessagesResponse>;
@@ -2273,9 +2308,10 @@ type CreatePhoneNumberResponse = {
2273
2308
  [key: string]: unknown;
2274
2309
  };
2275
2310
  type UpdatePhoneNumberStatusRequest = {
2276
- status?: string;
2277
- account_mode?: AccountMode;
2278
- [key: string]: unknown;
2311
+ connection_status?: 'CONNECTED' | 'DISCONNECTED' | (string & {});
2312
+ webhook_url?: string;
2313
+ whatsapp_business_api_data?: Record<string, unknown>;
2314
+ pin?: string;
2279
2315
  };
2280
2316
  type PhoneNumberSettingsFieldsParam = string[] | string;
2281
2317
  type PhoneNumberSettingsParams = {
@@ -2354,6 +2390,34 @@ type PhoneNumbersResponse = {
2354
2390
  data: PhoneNumberResponse[];
2355
2391
  paging: Paging;
2356
2392
  };
2393
+ /**
2394
+ * Username status.
2395
+ *
2396
+ * - "approved" — Username has been approved and will be visible when the feature is available
2397
+ * - "reserved" — Username is reserved and approved, but not yet visible to users
2398
+ */
2399
+ type UsernameStatus = 'approved' | 'reserved' | (string & {});
2400
+ /**
2401
+ * Behavior when the desired username is already in use by another phone number
2402
+ * in the same portfolio.
2403
+ *
2404
+ * - "none" — Default; do not transfer a username already in use elsewhere
2405
+ * - "force_transfer" — Move the username from another phone number in the portfolio.
2406
+ * If the API returns error code 147005, retry the request with "force_transfer".
2407
+ */
2408
+ type UsernameTransferAction = 'none' | 'force_transfer';
2409
+ type UpdateUsernameRequest = {
2410
+ username: string; /** Optional. Defaults to "none". */
2411
+ transfer_action?: UsernameTransferAction;
2412
+ };
2413
+ type UsernameResponse = {
2414
+ username?: string;
2415
+ status?: UsernameStatus;
2416
+ [key: string]: unknown;
2417
+ };
2418
+ type UsernameSuggestionsResponse = {
2419
+ [key: string]: unknown;
2420
+ };
2357
2421
  type RequestVerificationCodeRequest = {
2358
2422
  code_method: 'SMS' | 'VOICE';
2359
2423
  language: string;
@@ -2415,6 +2479,10 @@ interface PhoneNumberClass {
2415
2479
  updateOfficialBusinessAccountStatus(params: UpdateOfficialBusinessAccountStatusRequest): Promise<ResponseSuccess>;
2416
2480
  getBusinessComplianceInfo(): Promise<BusinessComplianceInfoResponse>;
2417
2481
  updateBusinessComplianceInfo(params: UpdateBusinessComplianceInfoRequest): Promise<ResponseSuccess>;
2482
+ getUsername(): Promise<UsernameResponse>;
2483
+ updateUsername(params: UpdateUsernameRequest): Promise<ResponseSuccess>;
2484
+ deleteUsername(): Promise<ResponseSuccess>;
2485
+ getUsernameSuggestions(): Promise<UsernameSuggestionsResponse>;
2418
2486
  }
2419
2487
  //#endregion
2420
2488
  //#region src/api/profile/types/upload.d.ts
@@ -3154,10 +3222,12 @@ type UpdateWabaAccountRequest = {
3154
3222
  timezone_id?: string;
3155
3223
  [key: string]: unknown;
3156
3224
  };
3225
+ type AssignedUsersListParams = WabaListParams & {
3226
+ business: string;
3227
+ };
3157
3228
  type AssignedUserRequest = {
3158
3229
  user: string;
3159
- tasks?: string[];
3160
- [key: string]: unknown;
3230
+ tasks: string[];
3161
3231
  };
3162
3232
  type RemoveAssignedUserRequest = {
3163
3233
  user: string;
@@ -3188,7 +3258,7 @@ interface WABAClass {
3188
3258
  getAllWabaSubscriptions(): Promise<WabaSubscriptions>;
3189
3259
  updateWabaSubscription(params: UpdateWabaSubscription): Promise<ResponseSuccess>;
3190
3260
  unsubscribeFromWaba(): Promise<ResponseSuccess>;
3191
- getAssignedUsers(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
3261
+ getAssignedUsers(params: AssignedUsersListParams, wabaId?: string): Promise<WabaListResponse>;
3192
3262
  addAssignedUser(params: AssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
3193
3263
  removeAssignedUser(params: RemoveAssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
3194
3264
  getInProgressOnBehalfRequests(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
@@ -3566,8 +3636,12 @@ interface BusinessStatusUpdateWebhookValue {
3566
3636
  * - "call_status" — Business-initiated call started ringing or was accepted (business-initiated only)
3567
3637
  * - "media_update" — Consumer-side media event; apply the new SDP to your peer connection (business-initiated only)
3568
3638
  * - "terminate" — Call ended for any reason
3639
+ * - "call_created" — A call was created on a SIP-enabled number; SIP call webhooks do not include
3640
+ * the `session` object since call signaling is handled via SIP rather than WebRTC
3641
+ * - "call_recording_available" — A call recording is ready for download (7-day retention)
3642
+ * - "call_transcription_available" — A call transcript is ready for download (7-day retention)
3569
3643
  */
3570
- type CallEventType = 'connect' | 'call_status' | 'media_update' | 'terminate';
3644
+ type CallEventType = 'connect' | 'call_status' | 'media_update' | 'terminate' | 'call_created' | 'call_recording_available' | 'call_transcription_available';
3571
3645
  /**
3572
3646
  * Direction of the call.
3573
3647
  *
@@ -3604,6 +3678,31 @@ interface CallSession$1 {
3604
3678
  /** Contains the SDP offer from Meta; generate an answer and apply to your peer connection */
3605
3679
  sdp_renegotiation: CallSdpRenegotiation;
3606
3680
  }
3681
+ /**
3682
+ * Call recording media payload (call_recording_available event).
3683
+ * Download the audio via the Media API or the short-lived URL (valid ~5 minutes).
3684
+ */
3685
+ interface CallRecordingMedia {
3686
+ type: 'audio';
3687
+ audio: {
3688
+ /** Media asset ID for retrieval via the Media API */id: string; /** Base64-encoded SHA-256 hash for integrity verification */
3689
+ sha256: string; /** e.g. "audio/ogg; codecs=opus" */
3690
+ mime_type: string; /** Short-lived download URL (valid ~5 minutes) */
3691
+ url: string;
3692
+ };
3693
+ }
3694
+ /**
3695
+ * Call transcript document payload (call_transcription_available event).
3696
+ * The document is a JSON transcript; download via the Media API or the short-lived URL.
3697
+ */
3698
+ interface CallTranscriptDocument {
3699
+ document: {
3700
+ /** Media asset ID for retrieval via the Media API */id: string; /** Base64-encoded SHA-256 hash for integrity verification */
3701
+ sha256: string; /** Always "application/json" */
3702
+ mime_type: string; /** Short-lived download URL (valid ~5 minutes) */
3703
+ url: string;
3704
+ };
3705
+ }
3607
3706
  interface CallEntry {
3608
3707
  /** Unique ID for the call — use in accept / reject / terminate API calls */
3609
3708
  id: string;
@@ -3614,12 +3713,18 @@ interface CallEntry {
3614
3713
  event: CallEventType;
3615
3714
  /** Unix timestamp */
3616
3715
  timestamp: number;
3617
- /** Callee of the call (Page ID) — present on connect */
3716
+ /** Callee of the call (Page ID) — present on connect / call_created */
3618
3717
  to?: string;
3619
- /** Caller of the call (PSID) — present on connect */
3718
+ /** Caller of the call (PSID) — present on connect / call_created */
3620
3719
  from?: string;
3621
3720
  /** Whether the call was business- or user-initiated — present on connect */
3622
3721
  call_direction?: CallDirection;
3722
+ /** Whether the call was business- or user-initiated — present on call_created (SIP) */
3723
+ direction?: CallDirection;
3724
+ /** Business-scoped user ID of the caller, when Meta includes it */
3725
+ from_user_id?: string;
3726
+ /** Parent business-scoped user ID of the caller, when Meta includes it */
3727
+ from_parent_user_id?: string;
3623
3728
  /** PSID of the consumer — present on call_status */
3624
3729
  recipient_id?: string;
3625
3730
  /** Ringing or accepted — present on call_status */
@@ -3638,6 +3743,10 @@ interface CallEntry {
3638
3743
  * Present on terminate.
3639
3744
  */
3640
3745
  duration?: number;
3746
+ /** Recorded call audio — present on call_recording_available */
3747
+ call_recording?: CallRecordingMedia;
3748
+ /** Call transcript document — present on call_transcription_available */
3749
+ call_transcript?: CallTranscriptDocument;
3641
3750
  }
3642
3751
  interface CallContact {
3643
3752
  profile: {
@@ -4071,6 +4180,43 @@ interface SystemMessage extends BaseMessage {
4071
4180
  type: 'user_changed_number';
4072
4181
  };
4073
4182
  }
4183
+ /**
4184
+ * Message edit webhook — only available for WhatsApp Business app users (Coexistence).
4185
+ * Business-side edits made in the WhatsApp Business app are identified by
4186
+ * business-scoped user IDs when present.
4187
+ */
4188
+ interface EditMessage extends BaseMessage {
4189
+ type: MessageTypesEnum.Edit;
4190
+ /** Business-scoped user ID of the sender, when the edit originated business-side */
4191
+ from_user_id?: string;
4192
+ /** Parent business-scoped user ID of the sender, when the edit originated business-side */
4193
+ from_parent_user_id?: string;
4194
+ edit: {
4195
+ original_message_id: string; /** The edited message content (text, media with caption, etc.) */
4196
+ message: {
4197
+ context?: {
4198
+ id: string;
4199
+ };
4200
+ type: MessageTypesEnum | string;
4201
+ [key: string]: unknown;
4202
+ };
4203
+ };
4204
+ }
4205
+ /**
4206
+ * Message revoke (delete) webhook — only available for WhatsApp Business app users (Coexistence).
4207
+ * Business-side revokes made in the WhatsApp Business app are identified by
4208
+ * business-scoped user IDs when present.
4209
+ */
4210
+ interface RevokeMessage extends BaseMessage {
4211
+ type: MessageTypesEnum.Revoke;
4212
+ /** Business-scoped user ID of the sender, when the revoke originated business-side */
4213
+ from_user_id?: string;
4214
+ /** Parent business-scoped user ID of the sender, when the revoke originated business-side */
4215
+ from_parent_user_id?: string;
4216
+ revoke: {
4217
+ original_message_id: string;
4218
+ };
4219
+ }
4074
4220
  interface UnsupportedMessage extends BaseMessage {
4075
4221
  type: MessageTypesEnum.Unsupported;
4076
4222
  errors: Array<WebhookError>;
@@ -4078,7 +4224,7 @@ interface UnsupportedMessage extends BaseMessage {
4078
4224
  type GroupMessage = {
4079
4225
  group_id: string;
4080
4226
  } & (TextMessage | ImageMessage | VideoMessage | AudioMessage | DocumentMessage | LocationMessage | ContactsMessage);
4081
- type WhatsAppMessage = TextMessage | ImageMessage | VideoMessage | AudioMessage | DocumentMessage | StickerMessage | InteractiveMessage | ButtonMessage | LocationMessage | ContactsMessage | ReactionMessage | OrderMessage | SystemMessage | UnsupportedMessage | GroupMessage;
4227
+ type WhatsAppMessage = TextMessage | ImageMessage | VideoMessage | AudioMessage | DocumentMessage | StickerMessage | InteractiveMessage | ButtonMessage | LocationMessage | ContactsMessage | ReactionMessage | OrderMessage | SystemMessage | EditMessage | RevokeMessage | UnsupportedMessage | GroupMessage;
4082
4228
  //#endregion
4083
4229
  //#region src/core/webhook/types/history.d.ts
4084
4230
  /**
@@ -4772,7 +4918,7 @@ type MetaErrorData = {
4772
4918
  interface MetaError extends Error {
4773
4919
  error: MetaErrorData;
4774
4920
  }
4775
- 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, 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, 200005, 200006, 200007, 1752041, 2388001, 2388012, 2388019, 2388040, 2388047, 2388072, 2388073, 2388091, 2388093, 2388103, 2388293, 2388299, 2494100, 2593079, 2593085, 2593107, 2593108];
4921
+ 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, 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];
4776
4922
  type ApiPermissionErrorCode = number;
4777
4923
  type WhatsAppErrorCode = (typeof WHATSAPP_ERROR_CODES)[number] | ApiPermissionErrorCode;
4778
4924
  declare const AUTHORIZATION_ERROR_CODES: readonly [0, 3, 10, 190];
@@ -6216,8 +6362,12 @@ type MessageHistoryListParams = {
6216
6362
  after?: string;
6217
6363
  before?: string;
6218
6364
  };
6219
- type MessageHistoryEventListParams = MessageHistoryListParams & {
6220
- delivery_status?: string;
6365
+ type MessageHistoryEventListParams = {
6366
+ status_filter?: 'SENT' | 'DELIVERED' | 'READ' | 'FAILED' | (string & {});
6367
+ fields?: MessageHistoryFieldsParam;
6368
+ limit?: number;
6369
+ after?: string;
6370
+ before?: string;
6221
6371
  };
6222
6372
  type MessageHistoryItem = Record<string, unknown>;
6223
6373
  type MessageHistoryResponse<T = MessageHistoryItem> = {
@@ -6232,7 +6382,7 @@ interface MessageHistoryClass {
6232
6382
  //#endregion
6233
6383
  //#region src/api/messageHistory/MessageHistoryApi.d.ts
6234
6384
  declare class MessageHistoryApi extends BaseAPI implements MessageHistoryClass {
6235
- private toQuery;
6385
+ private resolveFields;
6236
6386
  getMessageHistory(params?: MessageHistoryListParams): Promise<MessageHistoryResponse>;
6237
6387
  getMessageHistoryEvents(messageHistoryId: string, params?: MessageHistoryEventListParams): Promise<MessageHistoryResponse>;
6238
6388
  }
@@ -7219,6 +7369,50 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
7219
7369
  updateOfficialBusinessAccountStatus(params: UpdateOfficialBusinessAccountStatusRequest): Promise<ResponseSuccess>;
7220
7370
  getBusinessComplianceInfo(): Promise<BusinessComplianceInfoResponse>;
7221
7371
  updateBusinessComplianceInfo(params: UpdateBusinessComplianceInfoRequest): Promise<ResponseSuccess>;
7372
+ /**
7373
+ * Get the username currently associated with the business phone number.
7374
+ *
7375
+ * @returns A promise that resolves with the username and its status
7376
+ * (`'approved'` or `'reserved'`).
7377
+ *
7378
+ * @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
7379
+ */
7380
+ getUsername(): Promise<UsernameResponse>;
7381
+ /**
7382
+ * Adopt or change the username for the business phone number.
7383
+ *
7384
+ * If the desired username is already in use by another phone number in your
7385
+ * portfolio, the API responds with error code `147005`; retry with
7386
+ * `transfer_action: 'force_transfer'` to move the username to this number.
7387
+ *
7388
+ * @param params - The username request.
7389
+ * @param params.username - The desired username.
7390
+ * @param params.transfer_action - Optional. `'none'` (default) or `'force_transfer'`.
7391
+ * @returns A promise that resolves with a success indicator.
7392
+ *
7393
+ * @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
7394
+ *
7395
+ * @example
7396
+ * ```ts
7397
+ * await whatsappClient.phoneNumbers.updateUsername({
7398
+ * username: 'jaspersmarket',
7399
+ * transfer_action: 'force_transfer',
7400
+ * });
7401
+ * ```
7402
+ */
7403
+ updateUsername(params: UpdateUsernameRequest): Promise<ResponseSuccess>;
7404
+ /**
7405
+ * Delete the username associated with the business phone number.
7406
+ *
7407
+ * @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
7408
+ */
7409
+ deleteUsername(): Promise<ResponseSuccess>;
7410
+ /**
7411
+ * Get username suggestions for the business phone number.
7412
+ *
7413
+ * @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
7414
+ */
7415
+ getUsernameSuggestions(): Promise<UsernameSuggestionsResponse>;
7222
7416
  }
7223
7417
  //#endregion
7224
7418
  //#region src/api/profile/BusinessProfileApi.d.ts
@@ -7542,10 +7736,13 @@ type SolutionDeactivationRequest = {
7542
7736
  reason?: string;
7543
7737
  [key: string]: unknown;
7544
7738
  };
7739
+ type SolutionMigrationIntent = 'INITIATE_MIGRATION' | 'CANCEL_MIGRATION' | 'CONFIRM_MIGRATION' | 'SCHEDULE_MIGRATION';
7545
7740
  type SetSolutionMigrationIntentRequest = {
7546
- solution_id?: string;
7547
- intent?: string;
7548
- [key: string]: unknown;
7741
+ solution_id: string;
7742
+ migration_intent: SolutionMigrationIntent;
7743
+ target_solution_id?: string;
7744
+ migration_reason?: string;
7745
+ scheduled_migration_time?: string;
7549
7746
  };
7550
7747
  interface SolutionsClass {
7551
7748
  createWhatsAppBusinessSolution(applicationId: string, request: CreateWhatsAppBusinessSolutionRequest): Promise<SolutionGraphObject>;
@@ -7872,7 +8069,7 @@ declare class WabaApi extends BaseAPI implements WABAClass {
7872
8069
  * await whatsappClient.waba.unsubscribeFromWaba();
7873
8070
  */
7874
8071
  unsubscribeFromWaba(): Promise<ResponseSuccess>;
7875
- getAssignedUsers(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
8072
+ getAssignedUsers(params: AssignedUsersListParams, wabaId?: string): Promise<WabaListResponse>;
7876
8073
  addAssignedUser(params: AssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
7877
8074
  removeAssignedUser(params: RemoveAssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
7878
8075
  getInProgressOnBehalfRequests(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
@@ -8968,5 +9165,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
8968
9165
  */
8969
9166
  declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
8970
9167
  //#endregion
8971
- export { AUTHORIZATION_ERROR_CODES, AcceptCallRequest, AcceptSolutionRequest, AccountMode, AddPhoneNumbersRequest, ApiPermissionErrorCode, AssignedUserRequest, AudioMediaObject, AudioMediaTypes, AudioMediaTypesEnum, AudioMediaTypesType, AudioMessage, AudioMessageHandler, AudioProcessedMessage, AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, BaseApiRequest, BaseApiResponse, BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, BodyOptions, BusinessApi, BusinessClass, BusinessComplianceInfoResponse, BusinessFieldsParam, BusinessGraphListResponse, BusinessGraphObject, BusinessListParams, BusinessProfileApi, BusinessProfileClass, BusinessProfileData, BusinessProfileField, BusinessProfileFieldsParam, BusinessProfileResponse, BusinessVerticalEnum, ButtonMessage, ButtonMessageHandler, ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, ButtonProcessedMessage, CALLING_ERROR_CODES, CallAction, CallActionResponse, CallHours, CallHoursDay, CallHoursStatus, CallIconVisibility, CallPermission, CallPermissionAction, CallPermissionLimit, CallPermissionsResponse, CallSdpType, CallSession, CallbackPermissionStatus, CallingApi, CallingClass, CallingSettings, CallingSettingsResponse, CallingStatus, CarouselCard, CarouselOptions, CatalogButton, CatalogTemplateOptions, Category, CategoryEnum, CategoryType, CodeVerificationStatus, CommerceApi, CommerceClass, CommerceSetting, CommerceSettingsResponse, ComponentType, ComponentTypeType, ComponentTypes, ComponentTypesEnum, ContactInfo, ContactObject, ContactsMessage, ContactsMessageHandler, ContactsProcessedMessage, ConversationTypes, ConversationTypesEnum, ConversationTypesType, ConversationalAutomationRequest, ConversationalAutomationResponse, ConversationalCommand, ConversationalPrompt, CopyCodeButton, CouponTemplateOptions, CreateFlowResponse, CreateOBOMobilityIntentRequest, CreatePhoneNumberRequest, CreatePhoneNumberResponse, CreateQrCodeRequest, CreateScheduleRequest, CreateUploadSessionParams, CreateWhatsAppBusinessSolutionRequest, CurrencyCodesEnum, CurrencyParameter, CursorPaginationParams, Cursors, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, DateTimeParameter, DocumentMediaObject, DocumentMediaTypes, DocumentMediaTypesEnum, DocumentMediaTypesType, DocumentMessage, DocumentMessageHandler, DocumentProcessedMessage, EncryptedMessageRequest, EncryptedMessagesResponse, EncryptionApi, EncryptionClass, EncryptionKeyPair, EncryptionPublicKeyResponse, ErrorWebhookValue, ExpressRequest, ExpressResponse, ExpressWebhookConfig, FLOW_ERROR_CODES, FailedUserInfo, Flow, FlowActionEnum, FlowApi, FlowAsset, FlowAssetsResponse, FlowButton, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHandler, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowType, FlowTypeEnum, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, FooterOptions, GROUP_ERROR_CODES, GeneralHeaderInterface, GeneralMessageBody, GeneralRequestBody, GetUploadHandleParams, GraphObject, GroupCreateRequest, GroupCreateResponse, GroupInfoField, GroupInfoFieldsParam, GroupInfoResponse, GroupInviteLinkResponse, GroupJoinApprovalMode, GroupJoinRequest, GroupJoinRequestError, GroupJoinRequestFailure, GroupJoinRequestsActionResponse, GroupJoinRequestsResponse, GroupListParams, GroupListResponse, GroupMessage, GroupParticipant, GroupParticipantInput, GroupParticipantsRequest, GroupSettingsResponse, GroupsApi, GroupsClass, HeaderOptions, HealthStatus, HealthStatusEntity, HolidaySchedule, HostPlatform, HttpMethods, HttpMethodsEnum, HttpMethodsType, HttpsClientClass, HttpsClientResponseClass, INTEGRITY_ERROR_CODES, ImageMediaObject, ImageMediaTypes, ImageMediaTypesEnum, ImageMediaTypesType, ImageMessage, ImageMessageHandler, ImageProcessedMessage, InitiateCallRequest, InitiateCallResponse, InteractiveButtonReplyMessage, InteractiveListReplyMessage, InteractiveMessage, InteractiveMessageHandler, InteractiveObject, InteractiveProcessedMessage, InteractiveReply, InteractiveTypes, InteractiveTypesEnum, InteractiveTypesType, Languages, LanguagesEnum, LanguagesType, LimitedTimeOfferOptions, LimitedTimeOfferTemplateOptions, ListBlockedUsersParams, ListBlockedUsersResponse, LocationInfo, LocationMessage, LocationMessageHandler, LocationObject, LocationParameter, LocationProcessedMessage, Logger, LoggerInterface, MPMButton, MPMTemplateOptions, MarketingMessageRequest, MarketingMessagesApi, MarketingMessagesClass, MediaApi, MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, MediaInfo, MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, MessageHandler, MessageHistoryApi, MessageHistoryClass, MessageHistoryEventListParams, MessageHistoryFieldsParam, MessageHistoryItem, MessageHistoryListParams, MessageHistoryResponse, MessageRecipientType, MessageRequestBody, MessageRequestParams, MessageStatus, MessageTemplateObject, MessageTemplateRequestBody, MessageTypes, MessageTypesEnum, MessageTypesType, MessageWebhookValue, MessagesClass, MessagesResponse, MessagingLimitTier, MetaError, MetaErrorData, MetaErrorDetail, NextFunction, NextJsAppWebhookConfig, NextJsWebhookConfig, OTPButton, OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, OrderInfo, OrderMessage, OrderMessageHandler, OrderProcessedMessage, Pagination, PaginationCursors, Paging, PagingCursors, PagingInfo, ParametersTypes, ParametersTypesEnum, ParametersTypesType, PaymentConfiguration, PaymentConfigurationCode, PaymentConfigurationCreateRequest, PaymentConfigurationCreateResponse, PaymentConfigurationDeleteRequest, PaymentConfigurationOauthLinkRequest, PaymentConfigurationOauthLinkResponse, PaymentConfigurationProvider, PaymentConfigurationStatus, PaymentConfigurationUpdateRequest, PaymentConfigurationUpdateResponse, PaymentConfigurationsResponse, PaymentsApi, PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, PreAcceptCallRequest, ProcessedMessage, ProcessedStatus, ProductCardCarouselTemplateOptions, ProductCarouselCard, ProductParameter, ProductSection, QrCodeApi, QrCodeClass, QrCodeResponse, QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, ReactionInfo, ReactionMessage, ReactionMessageHandler, ReactionParams, ReactionProcessedMessage, ReferralSourceTypes, ReferralSourceTypesEnum, ReferralSourceTypesType, RegistrationApi, RegistrationClass, RegistrationRequest, RejectCallRequest, RejectSolutionRequest, RemoveAssignedUserRequest, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, RequesterClass, RequesterResponseInterface, ResponseData, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody, ResponsePagination, ResponseSuccess, SEND_MESSAGE_ERROR_CODES, SPMButton, SPMTemplateOptions, SetOBOMobilityIntentRequest, SetSolutionMigrationIntentRequest, SharePreVerifiedPhoneNumberRequest, SipServer, SipSettings, SipStatus, SolutionDeactivationRequest, SolutionFieldsParam, SolutionGraphObject, SolutionListParams, SolutionListResponse, SolutionsApi, SolutionsClass, Status, StatusEnum, StatusHandler, StatusParams, StatusResponse, StatusType, StatusWebhook, StatusWebhookValue, StickerMediaObject, StickerMediaTypes, StickerMediaTypesEnum, StickerMediaTypesType, StickerMessage, StickerMessageHandler, StickerProcessedMessage, SubType, SubTypeEnum, SubTypeType, SystemChangeTypes, SystemChangeTypesEnum, SystemChangeTypesType, SystemMessage, SystemMessageHandler, SystemProcessedMessage, THROTTLING_ERROR_CODES, TemplateApi, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, TemplateOptions, TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatus, TemplateStatusEnum, TemplateStatusType, TerminateCallRequest, TextMessage, TextMessageHandler, TextMessageParams, TextObject, TextParameter, TextProcessedMessage, Throughput, ThroughputLevel, ThroughputResponse, TwoStepVerificationApi, TwoStepVerificationClass, TwoStepVerificationParams, TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnifiedCertStatus, UnsupportedMessage, UpdateBusinessComplianceInfoRequest, UpdateBusinessProfileRequest, UpdateCallingSettingsRequest, UpdateCommerceSettingsRequest, UpdateFlowResponse, UpdateGroupSettingsRequest, UpdateOfficialBusinessAccountStatusRequest, UpdatePhoneNumberSettingsRequest, UpdatePhoneNumberStatusRequest, UpdateQrCodeRequest, UpdateWabaAccountRequest, UpdateWabaSubscription, UpdateWhatsAppBusinessProfileRequest, UploadBusinessProfileResponse, UploadHandle, UploadMediaParams, UploadMediaResponse, UploadSession, UploadSessionResponse, ValidateFlowJsonResponse, VerifyCodeRequest, VerifyPreVerifiedPhoneNumberCodeRequest, VideoMediaObject, VideoMediaTypes, VideoMediaTypesEnum, VideoMediaTypesType, VideoMessage, VideoMessageHandler, VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, WabaConfigType, WabaFieldsParam, WabaGraphObject, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaListParams, WabaListResponse, WabaSubscription, WabaSubscriptions, WebhookContact, WebhookEvent, WebhookHandlerContext, WebhookMessage, WebhookPayload, WebhookProcessor, WebhookResponse, WebhookTypes, WebhookTypesEnum, WebhookTypesType, WebhookValue, WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, WhatsAppConfig, WhatsAppError, WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, 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 };
9168
+ 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, 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, 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 MarketingMessageRequest, MarketingMessagesApi, type MarketingMessagesClass, MediaApi, type MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, type MediaInfo, type MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, 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, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, 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 };
8972
9169
  //# sourceMappingURL=index.d.mts.map