meta-cloud-api 3.1.1 → 3.3.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 +14 -10
- package/dist/index.d.mts +334 -10
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/enums.d.ts +19 -2
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +1 -1
- package/dist/types/enums.js.map +1 -1
- package/dist/types/index.d.ts +221 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +17 -13
package/dist/index.d.mts
CHANGED
|
@@ -3,13 +3,27 @@ import { IncomingHttpHeaders, IncomingMessage } from "node:http";
|
|
|
3
3
|
|
|
4
4
|
//#region src/types/enums.d.ts
|
|
5
5
|
declare namespace enums_d_exports {
|
|
6
|
-
export { AudioMediaTypesEnum, BusinessVerticalEnum, ButtonPositionEnum, CategoryEnum, ComponentTypesEnum, ConversationTypesEnum, CurrencyCodesEnum, DataLocalizationRegionEnum, DocumentMediaTypesEnum, HttpMethodsEnum, ImageMediaTypesEnum, InteractiveTypesEnum, LanguagesEnum, MessageTypesEnum, ParametersTypesEnum, ReferralSourceTypesEnum, RequestCodeMethodsEnum, StatusEnum, StickerMediaTypesEnum, SubTypeEnum, SystemChangeTypesEnum, TemplateStatusEnum, VideoMediaTypesEnum, WabaConfigEnum, WebhookTypesEnum };
|
|
6
|
+
export { AudioMediaTypesEnum, BusinessVerticalEnum, ButtonPositionEnum, CategoryEnum, ComponentTypesEnum, ConversationTypesEnum, CurrencyCodesEnum, DataLocalizationRegionEnum, DocumentMediaTypesEnum, HttpMethodsEnum, ImageMediaTypesEnum, InteractiveTypesEnum, LanguagesEnum, MessageCategoryEnum, MessageTypesEnum, ParametersTypesEnum, ReferralSourceTypesEnum, RequestCodeMethodsEnum, StatusEnum, StickerMediaTypesEnum, SubTypeEnum, SystemChangeTypesEnum, TemplateStatusEnum, VideoMediaTypesEnum, WabaConfigEnum, WebhookTypesEnum };
|
|
7
7
|
}
|
|
8
8
|
declare enum CategoryEnum {
|
|
9
9
|
Authentication = "AUTHENTICATION",
|
|
10
10
|
Marketing = "MARKETING",
|
|
11
11
|
Utility = "UTILITY"
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Direct Send message categories, sent as the top-level `category` field on
|
|
15
|
+
* `POST /{PHONE_NUMBER_ID}/messages`.
|
|
16
|
+
*
|
|
17
|
+
* Omitting the field is equivalent to `Service` and keeps the existing
|
|
18
|
+
* free-form send behavior (outside Direct Send).
|
|
19
|
+
*
|
|
20
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/send-utility-and-authentication-messages | Direct Send}
|
|
21
|
+
*/
|
|
22
|
+
declare enum MessageCategoryEnum {
|
|
23
|
+
Authentication = "authentication",
|
|
24
|
+
Service = "service",
|
|
25
|
+
Utility = "utility"
|
|
26
|
+
}
|
|
13
27
|
declare enum TemplateStatusEnum {
|
|
14
28
|
Approved = "APPROVED",
|
|
15
29
|
Pending = "PENDING",
|
|
@@ -36,6 +50,8 @@ declare enum MessageTypesEnum {
|
|
|
36
50
|
Button = "button",
|
|
37
51
|
Order = "order",
|
|
38
52
|
System = "system",
|
|
53
|
+
Edit = "edit",
|
|
54
|
+
Revoke = "revoke",
|
|
39
55
|
Unsupported = "unsupported",
|
|
40
56
|
Unknown = "unknown",
|
|
41
57
|
/**
|
|
@@ -74,7 +90,8 @@ declare enum InteractiveTypesEnum {
|
|
|
74
90
|
Carousel = "carousel",
|
|
75
91
|
LocationRequest = "location_request_message",
|
|
76
92
|
AddressMessage = "address_message",
|
|
77
|
-
Flow = "flow"
|
|
93
|
+
Flow = "flow",
|
|
94
|
+
VoiceCall = "voice_call"
|
|
78
95
|
}
|
|
79
96
|
declare enum ButtonPositionEnum {
|
|
80
97
|
First = 1,
|
|
@@ -1228,10 +1245,38 @@ type CallSession = {
|
|
|
1228
1245
|
sdp: string;
|
|
1229
1246
|
};
|
|
1230
1247
|
type CallAction = 'connect' | 'pre_accept' | 'accept' | 'reject' | 'terminate';
|
|
1248
|
+
type CallCaptureStatus = 'ENABLED' | 'DISABLED';
|
|
1249
|
+
/**
|
|
1250
|
+
* Supported announcement locales for call recording / transcription.
|
|
1251
|
+
* The announcement is played to both participants before capture starts.
|
|
1252
|
+
*/
|
|
1253
|
+
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 & {});
|
|
1254
|
+
/**
|
|
1255
|
+
* Per-call recording configuration. When status is ENABLED, `purpose` and
|
|
1256
|
+
* `announcement_language` are required; the recording arrives via the
|
|
1257
|
+
* `call_recording_available` webhook event.
|
|
1258
|
+
*/
|
|
1259
|
+
type CallRecordingConfig = {
|
|
1260
|
+
status: CallCaptureStatus; /** Reason for recording, max 250 characters — required when status is ENABLED */
|
|
1261
|
+
purpose?: string; /** Locale of the pre-recording announcement — required when status is ENABLED */
|
|
1262
|
+
announcement_language?: CallAnnouncementLanguage;
|
|
1263
|
+
};
|
|
1264
|
+
/**
|
|
1265
|
+
* Per-call transcription configuration. When status is ENABLED, `purpose` and
|
|
1266
|
+
* `announcement_language` are required; the transcript arrives via the
|
|
1267
|
+
* `call_transcription_available` webhook event.
|
|
1268
|
+
*/
|
|
1269
|
+
type CallTranscriptionConfig = {
|
|
1270
|
+
status: CallCaptureStatus; /** Reason for transcription, max 250 characters — required when status is ENABLED */
|
|
1271
|
+
purpose?: string; /** Locale of the pre-transcription announcement — required when status is ENABLED */
|
|
1272
|
+
announcement_language?: CallAnnouncementLanguage;
|
|
1273
|
+
};
|
|
1231
1274
|
type InitiateCallRequest = {
|
|
1232
1275
|
to: string;
|
|
1233
1276
|
session: CallSession;
|
|
1234
1277
|
biz_opaque_callback_data?: string;
|
|
1278
|
+
recording?: CallRecordingConfig;
|
|
1279
|
+
transcription?: CallTranscriptionConfig;
|
|
1235
1280
|
};
|
|
1236
1281
|
type PreAcceptCallRequest = {
|
|
1237
1282
|
call_id: string;
|
|
@@ -1241,6 +1286,8 @@ type AcceptCallRequest = {
|
|
|
1241
1286
|
call_id: string;
|
|
1242
1287
|
session?: CallSession;
|
|
1243
1288
|
biz_opaque_callback_data?: string;
|
|
1289
|
+
recording?: CallRecordingConfig;
|
|
1290
|
+
transcription?: CallTranscriptionConfig;
|
|
1244
1291
|
};
|
|
1245
1292
|
type RejectCallRequest = {
|
|
1246
1293
|
call_id: string;
|
|
@@ -1331,6 +1378,8 @@ declare class CallingApi extends BaseAPI implements CallingClass {
|
|
|
1331
1378
|
* @param params.to - The recipient's WhatsApp phone number.
|
|
1332
1379
|
* @param params.session - The call session configuration.
|
|
1333
1380
|
* @param params.biz_opaque_callback_data - Optional opaque data passed back in webhooks.
|
|
1381
|
+
* @param params.recording - Optional per-call recording configuration.
|
|
1382
|
+
* @param params.transcription - Optional per-call transcription configuration.
|
|
1334
1383
|
* @returns The initiated call response with call ID and status.
|
|
1335
1384
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
|
|
1336
1385
|
*/
|
|
@@ -1352,6 +1401,8 @@ declare class CallingApi extends BaseAPI implements CallingClass {
|
|
|
1352
1401
|
* @param params.call_id - The ID of the call to accept.
|
|
1353
1402
|
* @param params.session - Optional session configuration for the call.
|
|
1354
1403
|
* @param params.biz_opaque_callback_data - Optional opaque data passed back in webhooks.
|
|
1404
|
+
* @param params.recording - Optional per-call recording configuration.
|
|
1405
|
+
* @param params.transcription - Optional per-call transcription configuration.
|
|
1355
1406
|
* @returns The call action response confirming acceptance.
|
|
1356
1407
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/calling/reference/
|
|
1357
1408
|
*/
|
|
@@ -1870,6 +1921,32 @@ type CallPermissionRequestInteractiveObject = {
|
|
|
1870
1921
|
header?: HeaderObject;
|
|
1871
1922
|
action: CallPermissionRequestActionObject;
|
|
1872
1923
|
};
|
|
1924
|
+
type VoiceCallParameters = {
|
|
1925
|
+
/** Button label. Maximum 20 characters. Defaults to "Call on WhatsApp" when omitted. */display_text?: string; /** Active duration in minutes, 1 to 43200 (30 days). Defaults to 10080 (7 days). */
|
|
1926
|
+
ttl_minutes?: number;
|
|
1927
|
+
};
|
|
1928
|
+
type VoiceCallActionObject = {
|
|
1929
|
+
name: 'voice_call';
|
|
1930
|
+
parameters?: VoiceCallParameters;
|
|
1931
|
+
};
|
|
1932
|
+
/**
|
|
1933
|
+
* "Call on WhatsApp" voice call button, a Direct Send interactive type.
|
|
1934
|
+
*
|
|
1935
|
+
* Send it on its own with a top-level `category: 'utility'`; it cannot be combined
|
|
1936
|
+
* with CTA URL or reply buttons, and footers are not allowed. Calling must be
|
|
1937
|
+
* enabled on the business phone number first, otherwise the send fails with
|
|
1938
|
+
* error `138000`.
|
|
1939
|
+
*
|
|
1940
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/supported-message-types | Direct Send supported message types}
|
|
1941
|
+
*/
|
|
1942
|
+
type VoiceCallInteractiveObject = {
|
|
1943
|
+
type: InteractiveTypesEnum.VoiceCall | 'voice_call';
|
|
1944
|
+
body: SimpleTextObject; /** Text header only, maximum 60 characters. */
|
|
1945
|
+
header?: HeaderObject & {
|
|
1946
|
+
type: 'text';
|
|
1947
|
+
};
|
|
1948
|
+
action: VoiceCallActionObject;
|
|
1949
|
+
};
|
|
1873
1950
|
type CtaUrlParameters = {
|
|
1874
1951
|
display_text: string;
|
|
1875
1952
|
url: string;
|
|
@@ -1998,7 +2075,7 @@ type CarouselInteractiveObject = {
|
|
|
1998
2075
|
body: SimpleTextObject;
|
|
1999
2076
|
action: CarouselActionObject;
|
|
2000
2077
|
};
|
|
2001
|
-
type InteractiveObject = ButtonInteractiveObject | ListInteractiveObject | ProductInteractiveObject | ProductListInteractiveObject | CatalogMessageInteractiveObject | CallPermissionRequestInteractiveObject | CtaUrlInteractiveObject | CarouselInteractiveObject | LocationRequestInteractiveObject | AddressMessageInteractiveObject | FlowInteractiveObject;
|
|
2078
|
+
type InteractiveObject = ButtonInteractiveObject | ListInteractiveObject | ProductInteractiveObject | ProductListInteractiveObject | CatalogMessageInteractiveObject | CallPermissionRequestInteractiveObject | CtaUrlInteractiveObject | VoiceCallInteractiveObject | CarouselInteractiveObject | LocationRequestInteractiveObject | AddressMessageInteractiveObject | FlowInteractiveObject;
|
|
2002
2079
|
//#endregion
|
|
2003
2080
|
//#region src/api/messages/types/reaction.d.ts
|
|
2004
2081
|
interface ReactionParams {
|
|
@@ -2029,17 +2106,54 @@ type ConTextObject = {
|
|
|
2029
2106
|
message_id: string;
|
|
2030
2107
|
};
|
|
2031
2108
|
type MessageRecipientType = 'individual' | 'group';
|
|
2109
|
+
/**
|
|
2110
|
+
* Category of a Direct Send message. Omitting it is equivalent to `'service'`
|
|
2111
|
+
* and keeps the existing free-form Cloud API send behavior.
|
|
2112
|
+
*
|
|
2113
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/send-utility-and-authentication-messages | Direct Send}
|
|
2114
|
+
*/
|
|
2115
|
+
type DirectSendCategory = MessageCategoryEnum | 'authentication' | 'service' | 'utility';
|
|
2116
|
+
/**
|
|
2117
|
+
* Optional Direct Send configuration.
|
|
2118
|
+
*
|
|
2119
|
+
* Supplying `template_name` makes message-to-template attribution predictable:
|
|
2120
|
+
* Direct Send creates or reuses a template with that exact name instead of
|
|
2121
|
+
* auto-matching. Supported for `category: 'utility'` only.
|
|
2122
|
+
*
|
|
2123
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/business-named-templates | Business-named templates}
|
|
2124
|
+
*/
|
|
2125
|
+
type DirectSendConfig = {
|
|
2126
|
+
/**
|
|
2127
|
+
* Unique template name within the WABA.
|
|
2128
|
+
* Lowercase alphanumeric characters and underscores only (`^[a-z0-9_]+$`), max 512 characters.
|
|
2129
|
+
*/
|
|
2130
|
+
template_name?: string;
|
|
2131
|
+
};
|
|
2132
|
+
/** Direct Send options accepted by `MessagesApi.bodyBuilder`. */
|
|
2133
|
+
type DirectSendOptions = {
|
|
2134
|
+
category?: DirectSendCategory;
|
|
2135
|
+
directSendConfig?: DirectSendConfig;
|
|
2136
|
+
};
|
|
2032
2137
|
type MessageRequestBody<T extends MessageTypesEnum> = GeneralMessageBody & {
|
|
2033
2138
|
recipient_type?: MessageRecipientType;
|
|
2034
2139
|
to: string;
|
|
2035
2140
|
context?: ConTextObject;
|
|
2036
2141
|
type?: T;
|
|
2142
|
+
category?: DirectSendCategory;
|
|
2143
|
+
direct_send_config?: DirectSendConfig;
|
|
2037
2144
|
};
|
|
2038
2145
|
interface MessageRequestParams<T> {
|
|
2039
2146
|
body: T;
|
|
2040
2147
|
to: string;
|
|
2041
2148
|
recipientType?: MessageRecipientType;
|
|
2042
2149
|
replyMessageId?: string;
|
|
2150
|
+
/**
|
|
2151
|
+
* Direct Send category. Set to `'utility'` or `'authentication'` to send a
|
|
2152
|
+
* business-initiated message without a pre-approved template.
|
|
2153
|
+
*/
|
|
2154
|
+
category?: DirectSendCategory;
|
|
2155
|
+
/** Direct Send configuration, applied only when {@link MessageRequestParams.category} is set. */
|
|
2156
|
+
directSendConfig?: DirectSendConfig;
|
|
2043
2157
|
}
|
|
2044
2158
|
interface StatusParams {
|
|
2045
2159
|
status: StatusObject['status'];
|
|
@@ -2080,6 +2194,9 @@ declare class MessagesClass extends BaseClass {
|
|
|
2080
2194
|
interactiveCtaUrl(params: MessageRequestParams<InteractiveObject & {
|
|
2081
2195
|
type: InteractiveTypesEnum.CtaUrl;
|
|
2082
2196
|
}>): Promise<MessagesResponse>;
|
|
2197
|
+
interactiveVoiceCall(params: MessageRequestParams<InteractiveObject & {
|
|
2198
|
+
type: InteractiveTypesEnum.VoiceCall;
|
|
2199
|
+
}>): Promise<MessagesResponse>;
|
|
2083
2200
|
interactiveLocationRequest(params: MessageRequestParams<InteractiveObject & {
|
|
2084
2201
|
type: InteractiveTypesEnum.LocationRequest;
|
|
2085
2202
|
}>): Promise<MessagesResponse>;
|
|
@@ -2354,6 +2471,34 @@ type PhoneNumbersResponse = {
|
|
|
2354
2471
|
data: PhoneNumberResponse[];
|
|
2355
2472
|
paging: Paging;
|
|
2356
2473
|
};
|
|
2474
|
+
/**
|
|
2475
|
+
* Username status.
|
|
2476
|
+
*
|
|
2477
|
+
* - "approved" — Username has been approved and will be visible when the feature is available
|
|
2478
|
+
* - "reserved" — Username is reserved and approved, but not yet visible to users
|
|
2479
|
+
*/
|
|
2480
|
+
type UsernameStatus = 'approved' | 'reserved' | (string & {});
|
|
2481
|
+
/**
|
|
2482
|
+
* Behavior when the desired username is already in use by another phone number
|
|
2483
|
+
* in the same portfolio.
|
|
2484
|
+
*
|
|
2485
|
+
* - "none" — Default; do not transfer a username already in use elsewhere
|
|
2486
|
+
* - "force_transfer" — Move the username from another phone number in the portfolio.
|
|
2487
|
+
* If the API returns error code 147005, retry the request with "force_transfer".
|
|
2488
|
+
*/
|
|
2489
|
+
type UsernameTransferAction = 'none' | 'force_transfer';
|
|
2490
|
+
type UpdateUsernameRequest = {
|
|
2491
|
+
username: string; /** Optional. Defaults to "none". */
|
|
2492
|
+
transfer_action?: UsernameTransferAction;
|
|
2493
|
+
};
|
|
2494
|
+
type UsernameResponse = {
|
|
2495
|
+
username?: string;
|
|
2496
|
+
status?: UsernameStatus;
|
|
2497
|
+
[key: string]: unknown;
|
|
2498
|
+
};
|
|
2499
|
+
type UsernameSuggestionsResponse = {
|
|
2500
|
+
[key: string]: unknown;
|
|
2501
|
+
};
|
|
2357
2502
|
type RequestVerificationCodeRequest = {
|
|
2358
2503
|
code_method: 'SMS' | 'VOICE';
|
|
2359
2504
|
language: string;
|
|
@@ -2415,6 +2560,10 @@ interface PhoneNumberClass {
|
|
|
2415
2560
|
updateOfficialBusinessAccountStatus(params: UpdateOfficialBusinessAccountStatusRequest): Promise<ResponseSuccess>;
|
|
2416
2561
|
getBusinessComplianceInfo(): Promise<BusinessComplianceInfoResponse>;
|
|
2417
2562
|
updateBusinessComplianceInfo(params: UpdateBusinessComplianceInfoRequest): Promise<ResponseSuccess>;
|
|
2563
|
+
getUsername(): Promise<UsernameResponse>;
|
|
2564
|
+
updateUsername(params: UpdateUsernameRequest): Promise<ResponseSuccess>;
|
|
2565
|
+
deleteUsername(): Promise<ResponseSuccess>;
|
|
2566
|
+
getUsernameSuggestions(): Promise<UsernameSuggestionsResponse>;
|
|
2418
2567
|
}
|
|
2419
2568
|
//#endregion
|
|
2420
2569
|
//#region src/api/profile/types/upload.d.ts
|
|
@@ -3568,8 +3717,12 @@ interface BusinessStatusUpdateWebhookValue {
|
|
|
3568
3717
|
* - "call_status" — Business-initiated call started ringing or was accepted (business-initiated only)
|
|
3569
3718
|
* - "media_update" — Consumer-side media event; apply the new SDP to your peer connection (business-initiated only)
|
|
3570
3719
|
* - "terminate" — Call ended for any reason
|
|
3720
|
+
* - "call_created" — A call was created on a SIP-enabled number; SIP call webhooks do not include
|
|
3721
|
+
* the `session` object since call signaling is handled via SIP rather than WebRTC
|
|
3722
|
+
* - "call_recording_available" — A call recording is ready for download (7-day retention)
|
|
3723
|
+
* - "call_transcription_available" — A call transcript is ready for download (7-day retention)
|
|
3571
3724
|
*/
|
|
3572
|
-
type CallEventType = 'connect' | 'call_status' | 'media_update' | 'terminate';
|
|
3725
|
+
type CallEventType = 'connect' | 'call_status' | 'media_update' | 'terminate' | 'call_created' | 'call_recording_available' | 'call_transcription_available';
|
|
3573
3726
|
/**
|
|
3574
3727
|
* Direction of the call.
|
|
3575
3728
|
*
|
|
@@ -3606,6 +3759,31 @@ interface CallSession$1 {
|
|
|
3606
3759
|
/** Contains the SDP offer from Meta; generate an answer and apply to your peer connection */
|
|
3607
3760
|
sdp_renegotiation: CallSdpRenegotiation;
|
|
3608
3761
|
}
|
|
3762
|
+
/**
|
|
3763
|
+
* Call recording media payload (call_recording_available event).
|
|
3764
|
+
* Download the audio via the Media API or the short-lived URL (valid ~5 minutes).
|
|
3765
|
+
*/
|
|
3766
|
+
interface CallRecordingMedia {
|
|
3767
|
+
type: 'audio';
|
|
3768
|
+
audio: {
|
|
3769
|
+
/** Media asset ID for retrieval via the Media API */id: string; /** Base64-encoded SHA-256 hash for integrity verification */
|
|
3770
|
+
sha256: string; /** e.g. "audio/ogg; codecs=opus" */
|
|
3771
|
+
mime_type: string; /** Short-lived download URL (valid ~5 minutes) */
|
|
3772
|
+
url: string;
|
|
3773
|
+
};
|
|
3774
|
+
}
|
|
3775
|
+
/**
|
|
3776
|
+
* Call transcript document payload (call_transcription_available event).
|
|
3777
|
+
* The document is a JSON transcript; download via the Media API or the short-lived URL.
|
|
3778
|
+
*/
|
|
3779
|
+
interface CallTranscriptDocument {
|
|
3780
|
+
document: {
|
|
3781
|
+
/** Media asset ID for retrieval via the Media API */id: string; /** Base64-encoded SHA-256 hash for integrity verification */
|
|
3782
|
+
sha256: string; /** Always "application/json" */
|
|
3783
|
+
mime_type: string; /** Short-lived download URL (valid ~5 minutes) */
|
|
3784
|
+
url: string;
|
|
3785
|
+
};
|
|
3786
|
+
}
|
|
3609
3787
|
interface CallEntry {
|
|
3610
3788
|
/** Unique ID for the call — use in accept / reject / terminate API calls */
|
|
3611
3789
|
id: string;
|
|
@@ -3616,12 +3794,18 @@ interface CallEntry {
|
|
|
3616
3794
|
event: CallEventType;
|
|
3617
3795
|
/** Unix timestamp */
|
|
3618
3796
|
timestamp: number;
|
|
3619
|
-
/** Callee of the call (Page ID) — present on connect */
|
|
3797
|
+
/** Callee of the call (Page ID) — present on connect / call_created */
|
|
3620
3798
|
to?: string;
|
|
3621
|
-
/** Caller of the call (PSID) — present on connect */
|
|
3799
|
+
/** Caller of the call (PSID) — present on connect / call_created */
|
|
3622
3800
|
from?: string;
|
|
3623
3801
|
/** Whether the call was business- or user-initiated — present on connect */
|
|
3624
3802
|
call_direction?: CallDirection;
|
|
3803
|
+
/** Whether the call was business- or user-initiated — present on call_created (SIP) */
|
|
3804
|
+
direction?: CallDirection;
|
|
3805
|
+
/** Business-scoped user ID of the caller, when Meta includes it */
|
|
3806
|
+
from_user_id?: string;
|
|
3807
|
+
/** Parent business-scoped user ID of the caller, when Meta includes it */
|
|
3808
|
+
from_parent_user_id?: string;
|
|
3625
3809
|
/** PSID of the consumer — present on call_status */
|
|
3626
3810
|
recipient_id?: string;
|
|
3627
3811
|
/** Ringing or accepted — present on call_status */
|
|
@@ -3640,6 +3824,10 @@ interface CallEntry {
|
|
|
3640
3824
|
* Present on terminate.
|
|
3641
3825
|
*/
|
|
3642
3826
|
duration?: number;
|
|
3827
|
+
/** Recorded call audio — present on call_recording_available */
|
|
3828
|
+
call_recording?: CallRecordingMedia;
|
|
3829
|
+
/** Call transcript document — present on call_transcription_available */
|
|
3830
|
+
call_transcript?: CallTranscriptDocument;
|
|
3643
3831
|
}
|
|
3644
3832
|
interface CallContact {
|
|
3645
3833
|
profile: {
|
|
@@ -4073,6 +4261,43 @@ interface SystemMessage extends BaseMessage {
|
|
|
4073
4261
|
type: 'user_changed_number';
|
|
4074
4262
|
};
|
|
4075
4263
|
}
|
|
4264
|
+
/**
|
|
4265
|
+
* Message edit webhook — only available for WhatsApp Business app users (Coexistence).
|
|
4266
|
+
* Business-side edits made in the WhatsApp Business app are identified by
|
|
4267
|
+
* business-scoped user IDs when present.
|
|
4268
|
+
*/
|
|
4269
|
+
interface EditMessage extends BaseMessage {
|
|
4270
|
+
type: MessageTypesEnum.Edit;
|
|
4271
|
+
/** Business-scoped user ID of the sender, when the edit originated business-side */
|
|
4272
|
+
from_user_id?: string;
|
|
4273
|
+
/** Parent business-scoped user ID of the sender, when the edit originated business-side */
|
|
4274
|
+
from_parent_user_id?: string;
|
|
4275
|
+
edit: {
|
|
4276
|
+
original_message_id: string; /** The edited message content (text, media with caption, etc.) */
|
|
4277
|
+
message: {
|
|
4278
|
+
context?: {
|
|
4279
|
+
id: string;
|
|
4280
|
+
};
|
|
4281
|
+
type: MessageTypesEnum | string;
|
|
4282
|
+
[key: string]: unknown;
|
|
4283
|
+
};
|
|
4284
|
+
};
|
|
4285
|
+
}
|
|
4286
|
+
/**
|
|
4287
|
+
* Message revoke (delete) webhook — only available for WhatsApp Business app users (Coexistence).
|
|
4288
|
+
* Business-side revokes made in the WhatsApp Business app are identified by
|
|
4289
|
+
* business-scoped user IDs when present.
|
|
4290
|
+
*/
|
|
4291
|
+
interface RevokeMessage extends BaseMessage {
|
|
4292
|
+
type: MessageTypesEnum.Revoke;
|
|
4293
|
+
/** Business-scoped user ID of the sender, when the revoke originated business-side */
|
|
4294
|
+
from_user_id?: string;
|
|
4295
|
+
/** Parent business-scoped user ID of the sender, when the revoke originated business-side */
|
|
4296
|
+
from_parent_user_id?: string;
|
|
4297
|
+
revoke: {
|
|
4298
|
+
original_message_id: string;
|
|
4299
|
+
};
|
|
4300
|
+
}
|
|
4076
4301
|
interface UnsupportedMessage extends BaseMessage {
|
|
4077
4302
|
type: MessageTypesEnum.Unsupported;
|
|
4078
4303
|
errors: Array<WebhookError>;
|
|
@@ -4080,7 +4305,7 @@ interface UnsupportedMessage extends BaseMessage {
|
|
|
4080
4305
|
type GroupMessage = {
|
|
4081
4306
|
group_id: string;
|
|
4082
4307
|
} & (TextMessage | ImageMessage | VideoMessage | AudioMessage | DocumentMessage | LocationMessage | ContactsMessage);
|
|
4083
|
-
type WhatsAppMessage = TextMessage | ImageMessage | VideoMessage | AudioMessage | DocumentMessage | StickerMessage | InteractiveMessage | ButtonMessage | LocationMessage | ContactsMessage | ReactionMessage | OrderMessage | SystemMessage | UnsupportedMessage | GroupMessage;
|
|
4308
|
+
type WhatsAppMessage = TextMessage | ImageMessage | VideoMessage | AudioMessage | DocumentMessage | StickerMessage | InteractiveMessage | ButtonMessage | LocationMessage | ContactsMessage | ReactionMessage | OrderMessage | SystemMessage | EditMessage | RevokeMessage | UnsupportedMessage | GroupMessage;
|
|
4084
4309
|
//#endregion
|
|
4085
4310
|
//#region src/core/webhook/types/history.d.ts
|
|
4086
4311
|
/**
|
|
@@ -4520,6 +4745,13 @@ interface StatusWebhook {
|
|
|
4520
4745
|
recipient_participant_id?: string;
|
|
4521
4746
|
recipient_identity_key_hash?: string;
|
|
4522
4747
|
biz_opaque_callback_data?: string;
|
|
4748
|
+
/**
|
|
4749
|
+
* ID of the template used to send a Direct Send message.
|
|
4750
|
+
* Present only on statuses for messages sent with a `category` field.
|
|
4751
|
+
*
|
|
4752
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/supported-message-types | Direct Send}
|
|
4753
|
+
*/
|
|
4754
|
+
template_id?: string;
|
|
4523
4755
|
conversation?: {
|
|
4524
4756
|
id: string;
|
|
4525
4757
|
expiration_timestamp?: string;
|
|
@@ -4774,7 +5006,7 @@ type MetaErrorData = {
|
|
|
4774
5006
|
interface MetaError extends Error {
|
|
4775
5007
|
error: MetaErrorData;
|
|
4776
5008
|
}
|
|
4777
|
-
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];
|
|
5009
|
+
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];
|
|
4778
5010
|
type ApiPermissionErrorCode = number;
|
|
4779
5011
|
type WhatsAppErrorCode = (typeof WHATSAPP_ERROR_CODES)[number] | ApiPermissionErrorCode;
|
|
4780
5012
|
declare const AUTHORIZATION_ERROR_CODES: readonly [0, 3, 10, 190];
|
|
@@ -4880,6 +5112,12 @@ declare const Category: {
|
|
|
4880
5112
|
readonly Utility: "UTILITY";
|
|
4881
5113
|
};
|
|
4882
5114
|
type CategoryType = (typeof Category)[keyof typeof Category];
|
|
5115
|
+
declare const MessageCategory: {
|
|
5116
|
+
readonly Authentication: "authentication";
|
|
5117
|
+
readonly Service: "service";
|
|
5118
|
+
readonly Utility: "utility";
|
|
5119
|
+
};
|
|
5120
|
+
type MessageCategoryType = (typeof MessageCategory)[keyof typeof MessageCategory];
|
|
4883
5121
|
declare const TemplateStatus: {
|
|
4884
5122
|
readonly Approved: "APPROVED";
|
|
4885
5123
|
readonly Pending: "PENDING";
|
|
@@ -4944,6 +5182,7 @@ declare const InteractiveTypes: {
|
|
|
4944
5182
|
readonly LocationRequest: "location_request_message";
|
|
4945
5183
|
readonly AddressMessage: "address_message";
|
|
4946
5184
|
readonly Flow: "flow";
|
|
5185
|
+
readonly VoiceCall: "voice_call";
|
|
4947
5186
|
};
|
|
4948
5187
|
type InteractiveTypesType = (typeof InteractiveTypes)[keyof typeof InteractiveTypes];
|
|
4949
5188
|
declare const ButtonPosition: {
|
|
@@ -6275,6 +6514,7 @@ type MessagePayloadType<T extends MessageTypesEnum> = T extends MessageTypesEnum
|
|
|
6275
6514
|
* - {@link MessagesApi.interactive | interactive} - Send interactive messages (generic)
|
|
6276
6515
|
* - {@link MessagesApi.interactiveList | interactiveList} - Send list interactive messages
|
|
6277
6516
|
* - {@link MessagesApi.interactiveCtaUrl | interactiveCtaUrl} - Send CTA URL interactive messages
|
|
6517
|
+
* - {@link MessagesApi.interactiveVoiceCall | interactiveVoiceCall} - Send "Call on WhatsApp" voice call button messages
|
|
6278
6518
|
* - {@link MessagesApi.interactiveLocationRequest | interactiveLocationRequest} - Send location request messages
|
|
6279
6519
|
* - {@link MessagesApi.interactiveAddressMessage | interactiveAddressMessage} - Send address message interactive messages
|
|
6280
6520
|
* - {@link MessagesApi.interactiveReplyButtons | interactiveReplyButtons} - Send reply button interactive messages
|
|
@@ -6312,9 +6552,12 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6312
6552
|
* @param payload - The message payload object matching the specified type
|
|
6313
6553
|
* @param to - The recipient's phone number in international format (e.g., "1234567890")
|
|
6314
6554
|
* @param replyMessageId - Optional message ID to reply to, setting the message context
|
|
6555
|
+
* @param recipientType - Whether `to` addresses an individual or a group
|
|
6556
|
+
* @param directSend - Optional Direct Send options (`category` and `directSendConfig`)
|
|
6315
6557
|
* @returns The formatted request body ready to be serialized and sent
|
|
6316
6558
|
*
|
|
6317
6559
|
* @see {@link https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages | Messages API Reference}
|
|
6560
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/ | Direct Send}
|
|
6318
6561
|
*
|
|
6319
6562
|
* @example
|
|
6320
6563
|
* ```ts
|
|
@@ -6325,7 +6568,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6325
6568
|
* );
|
|
6326
6569
|
* ```
|
|
6327
6570
|
*/
|
|
6328
|
-
bodyBuilder<T extends MessageTypesEnum>(type: T, payload: MessagePayloadType<T>, to: string, replyMessageId?: string, recipientType?: MessageRecipientType): MessageRequestBody<T>;
|
|
6571
|
+
bodyBuilder<T extends MessageTypesEnum>(type: T, payload: MessagePayloadType<T>, to: string, replyMessageId?: string, recipientType?: MessageRecipientType, directSend?: DirectSendOptions): MessageRequestBody<T>;
|
|
6329
6572
|
/**
|
|
6330
6573
|
* Sends a request to the WhatsApp Cloud API messages endpoint.
|
|
6331
6574
|
*
|
|
@@ -6735,6 +6978,43 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6735
6978
|
interactiveCtaUrl(params: MessageRequestParams<InteractiveObject & {
|
|
6736
6979
|
type: InteractiveTypesEnum.CtaUrl | 'cta_url';
|
|
6737
6980
|
}>): Promise<MessagesResponse>;
|
|
6981
|
+
/**
|
|
6982
|
+
* Sends a "Call on WhatsApp" voice call button message via Direct Send.
|
|
6983
|
+
*
|
|
6984
|
+
* The button lets the recipient tap to start a WhatsApp voice call to your business
|
|
6985
|
+
* phone number. It is a Direct Send interactive type, so the request is always sent
|
|
6986
|
+
* with `category: 'utility'`; the button must be sent on its own and cannot be
|
|
6987
|
+
* combined with CTA URL or reply buttons, and footers are not supported.
|
|
6988
|
+
*
|
|
6989
|
+
* Calling must be enabled on the business phone number first
|
|
6990
|
+
* (`POST /{PHONE_NUMBER_ID}/settings` with `{ calling: { status: 'ENABLED' } }`) and the
|
|
6991
|
+
* app must be subscribed to the `calls` webhook field, otherwise the send fails with
|
|
6992
|
+
* error `138000`.
|
|
6993
|
+
*
|
|
6994
|
+
* @param params - The voice call interactive message parameters
|
|
6995
|
+
* @param params.body - Interactive object with `type: 'voice_call'` and a `voice_call` action
|
|
6996
|
+
* @param params.to - Recipient phone number in international format
|
|
6997
|
+
* @param params.replyMessageId - Optional message ID to reply to
|
|
6998
|
+
* @param params.directSendConfig - Optional Direct Send template attribution config
|
|
6999
|
+
* @returns A promise resolving to the message response with the sent message ID
|
|
7000
|
+
*
|
|
7001
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/supported-message-types | Direct Send supported message types}
|
|
7002
|
+
*
|
|
7003
|
+
* @example
|
|
7004
|
+
* ```ts
|
|
7005
|
+
* await client.messages.interactiveVoiceCall({
|
|
7006
|
+
* body: {
|
|
7007
|
+
* type: 'voice_call',
|
|
7008
|
+
* body: { text: 'Call our support team for help with your order.' },
|
|
7009
|
+
* action: { name: 'voice_call', parameters: { display_text: 'Call Support', ttl_minutes: 1440 } },
|
|
7010
|
+
* },
|
|
7011
|
+
* to: '1234567890',
|
|
7012
|
+
* });
|
|
7013
|
+
* ```
|
|
7014
|
+
*/
|
|
7015
|
+
interactiveVoiceCall(params: MessageRequestParams<InteractiveObject & {
|
|
7016
|
+
type: InteractiveTypesEnum.VoiceCall | 'voice_call';
|
|
7017
|
+
}>): Promise<MessagesResponse>;
|
|
6738
7018
|
/**
|
|
6739
7019
|
* Sends a location request interactive message via the WhatsApp Cloud API.
|
|
6740
7020
|
*
|
|
@@ -7225,6 +7505,50 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
|
|
|
7225
7505
|
updateOfficialBusinessAccountStatus(params: UpdateOfficialBusinessAccountStatusRequest): Promise<ResponseSuccess>;
|
|
7226
7506
|
getBusinessComplianceInfo(): Promise<BusinessComplianceInfoResponse>;
|
|
7227
7507
|
updateBusinessComplianceInfo(params: UpdateBusinessComplianceInfoRequest): Promise<ResponseSuccess>;
|
|
7508
|
+
/**
|
|
7509
|
+
* Get the username currently associated with the business phone number.
|
|
7510
|
+
*
|
|
7511
|
+
* @returns A promise that resolves with the username and its status
|
|
7512
|
+
* (`'approved'` or `'reserved'`).
|
|
7513
|
+
*
|
|
7514
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
|
|
7515
|
+
*/
|
|
7516
|
+
getUsername(): Promise<UsernameResponse>;
|
|
7517
|
+
/**
|
|
7518
|
+
* Adopt or change the username for the business phone number.
|
|
7519
|
+
*
|
|
7520
|
+
* If the desired username is already in use by another phone number in your
|
|
7521
|
+
* portfolio, the API responds with error code `147005`; retry with
|
|
7522
|
+
* `transfer_action: 'force_transfer'` to move the username to this number.
|
|
7523
|
+
*
|
|
7524
|
+
* @param params - The username request.
|
|
7525
|
+
* @param params.username - The desired username.
|
|
7526
|
+
* @param params.transfer_action - Optional. `'none'` (default) or `'force_transfer'`.
|
|
7527
|
+
* @returns A promise that resolves with a success indicator.
|
|
7528
|
+
*
|
|
7529
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
|
|
7530
|
+
*
|
|
7531
|
+
* @example
|
|
7532
|
+
* ```ts
|
|
7533
|
+
* await whatsappClient.phoneNumbers.updateUsername({
|
|
7534
|
+
* username: 'jaspersmarket',
|
|
7535
|
+
* transfer_action: 'force_transfer',
|
|
7536
|
+
* });
|
|
7537
|
+
* ```
|
|
7538
|
+
*/
|
|
7539
|
+
updateUsername(params: UpdateUsernameRequest): Promise<ResponseSuccess>;
|
|
7540
|
+
/**
|
|
7541
|
+
* Delete the username associated with the business phone number.
|
|
7542
|
+
*
|
|
7543
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
|
|
7544
|
+
*/
|
|
7545
|
+
deleteUsername(): Promise<ResponseSuccess>;
|
|
7546
|
+
/**
|
|
7547
|
+
* Get username suggestions for the business phone number.
|
|
7548
|
+
*
|
|
7549
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/usernames/ | Usernames}
|
|
7550
|
+
*/
|
|
7551
|
+
getUsernameSuggestions(): Promise<UsernameSuggestionsResponse>;
|
|
7228
7552
|
}
|
|
7229
7553
|
//#endregion
|
|
7230
7554
|
//#region src/api/profile/BusinessProfileApi.d.ts
|
|
@@ -8977,5 +9301,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
|
|
|
8977
9301
|
*/
|
|
8978
9302
|
declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
|
|
8979
9303
|
//#endregion
|
|
8980
|
-
export { AUTHORIZATION_ERROR_CODES, AcceptCallRequest, AcceptSolutionRequest, AccountMode, AddPhoneNumbersRequest, ApiPermissionErrorCode, AssignedUserRequest, AssignedUsersListParams, 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, SolutionMigrationIntent, 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 };
|
|
9304
|
+
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 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 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, 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 };
|
|
8981
9305
|
//# sourceMappingURL=index.d.mts.map
|