meta-cloud-api 2.1.0 → 2.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/dist/index.d.ts +149 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js.map +1 -1
- package/dist/types/index.d.ts +14 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1467,7 +1467,7 @@ interface TextMessageParams extends MessageRequestParams<TextObject | string> {
|
|
|
1467
1467
|
//#region src/api/messages/types/template.d.ts
|
|
1468
1468
|
type LanguageObject = {
|
|
1469
1469
|
policy: 'deterministic';
|
|
1470
|
-
code: LanguagesEnum;
|
|
1470
|
+
code: LanguagesEnum | (string & {});
|
|
1471
1471
|
};
|
|
1472
1472
|
type ParametersObject<T extends ParametersTypesEnum> = {
|
|
1473
1473
|
type: T;
|
|
@@ -1680,28 +1680,28 @@ type HeaderObject = {
|
|
|
1680
1680
|
video?: VideoMediaObject$1;
|
|
1681
1681
|
};
|
|
1682
1682
|
type ButtonInteractiveObject = {
|
|
1683
|
-
type: InteractiveTypesEnum.Button;
|
|
1683
|
+
type: InteractiveTypesEnum.Button | 'button';
|
|
1684
1684
|
body: SimpleTextObject;
|
|
1685
1685
|
footer?: SimpleTextObject;
|
|
1686
1686
|
header?: HeaderObject;
|
|
1687
1687
|
action: ActionObject;
|
|
1688
1688
|
};
|
|
1689
1689
|
type ListInteractiveObject = {
|
|
1690
|
-
type: InteractiveTypesEnum.List;
|
|
1690
|
+
type: InteractiveTypesEnum.List | 'list';
|
|
1691
1691
|
body: SimpleTextObject;
|
|
1692
1692
|
footer?: SimpleTextObject;
|
|
1693
1693
|
header?: HeaderObject;
|
|
1694
1694
|
action: ActionObject;
|
|
1695
1695
|
};
|
|
1696
1696
|
type ProductInteractiveObject = {
|
|
1697
|
-
type: InteractiveTypesEnum.Product;
|
|
1697
|
+
type: InteractiveTypesEnum.Product | 'product';
|
|
1698
1698
|
body?: SimpleTextObject;
|
|
1699
1699
|
footer?: SimpleTextObject;
|
|
1700
1700
|
header?: HeaderObject;
|
|
1701
1701
|
action: ActionObject;
|
|
1702
1702
|
};
|
|
1703
1703
|
type ProductListInteractiveObject = {
|
|
1704
|
-
type: InteractiveTypesEnum.ProductList;
|
|
1704
|
+
type: InteractiveTypesEnum.ProductList | 'product_list';
|
|
1705
1705
|
body: SimpleTextObject;
|
|
1706
1706
|
footer?: SimpleTextObject;
|
|
1707
1707
|
header: HeaderObject;
|
|
@@ -1716,7 +1716,7 @@ type CtaUrlActionObject = {
|
|
|
1716
1716
|
parameters: CtaUrlParameters;
|
|
1717
1717
|
};
|
|
1718
1718
|
type CtaUrlInteractiveObject = {
|
|
1719
|
-
type: InteractiveTypesEnum.CtaUrl;
|
|
1719
|
+
type: InteractiveTypesEnum.CtaUrl | 'cta_url';
|
|
1720
1720
|
body?: SimpleTextObject;
|
|
1721
1721
|
footer?: SimpleTextObject;
|
|
1722
1722
|
header?: HeaderObject;
|
|
@@ -1726,7 +1726,7 @@ type LocationRequestActionObject = {
|
|
|
1726
1726
|
name: 'send_location';
|
|
1727
1727
|
};
|
|
1728
1728
|
type LocationRequestInteractiveObject = {
|
|
1729
|
-
type: InteractiveTypesEnum.LocationRequest;
|
|
1729
|
+
type: InteractiveTypesEnum.LocationRequest | 'location_request_message';
|
|
1730
1730
|
body: SimpleTextObject;
|
|
1731
1731
|
footer?: SimpleTextObject;
|
|
1732
1732
|
header?: HeaderObject;
|
|
@@ -1761,7 +1761,7 @@ type AddressMessageActionObject = {
|
|
|
1761
1761
|
parameters: AddressMessageParameters;
|
|
1762
1762
|
};
|
|
1763
1763
|
type AddressMessageInteractiveObject = {
|
|
1764
|
-
type: InteractiveTypesEnum.AddressMessage;
|
|
1764
|
+
type: InteractiveTypesEnum.AddressMessage | 'address_message';
|
|
1765
1765
|
body: SimpleTextObject;
|
|
1766
1766
|
footer?: SimpleTextObject;
|
|
1767
1767
|
header?: HeaderObject;
|
|
@@ -1773,8 +1773,8 @@ type FlowParameters = {
|
|
|
1773
1773
|
flow_name?: string;
|
|
1774
1774
|
flow_cta: string;
|
|
1775
1775
|
mode?: 'draft' | 'published';
|
|
1776
|
-
flow_token
|
|
1777
|
-
flow_action
|
|
1776
|
+
flow_token?: string;
|
|
1777
|
+
flow_action?: 'navigate' | 'data_exchange';
|
|
1778
1778
|
flow_action_payload?: {
|
|
1779
1779
|
screen?: string;
|
|
1780
1780
|
data?: Record<string, string>;
|
|
@@ -1785,7 +1785,7 @@ type FlowActionObject = {
|
|
|
1785
1785
|
parameters: FlowParameters;
|
|
1786
1786
|
};
|
|
1787
1787
|
type FlowInteractiveObject = {
|
|
1788
|
-
type: InteractiveTypesEnum.Flow;
|
|
1788
|
+
type: InteractiveTypesEnum.Flow | 'flow';
|
|
1789
1789
|
body: SimpleTextObject;
|
|
1790
1790
|
footer?: SimpleTextObject;
|
|
1791
1791
|
header?: HeaderObject;
|
|
@@ -1831,7 +1831,7 @@ type CarouselActionObject = {
|
|
|
1831
1831
|
cards: Array<MediaCarouselCard$1 | ProductCarouselCard$1>;
|
|
1832
1832
|
};
|
|
1833
1833
|
type CarouselInteractiveObject = {
|
|
1834
|
-
type: InteractiveTypesEnum.Carousel;
|
|
1834
|
+
type: InteractiveTypesEnum.Carousel | 'carousel';
|
|
1835
1835
|
body: SimpleTextObject;
|
|
1836
1836
|
action: CarouselActionObject;
|
|
1837
1837
|
};
|
|
@@ -1890,7 +1890,7 @@ declare class MessagesClass extends BaseClass {
|
|
|
1890
1890
|
image(params: MessageRequestParams<ImageMediaObject>): Promise<MessagesResponse>;
|
|
1891
1891
|
video(params: MessageRequestParams<VideoMediaObject>): Promise<MessagesResponse>;
|
|
1892
1892
|
sticker(params: MessageRequestParams<StickerMediaObject>): Promise<MessagesResponse>;
|
|
1893
|
-
contacts(params: MessageRequestParams<[
|
|
1893
|
+
contacts(params: MessageRequestParams<ContactObject[]>): Promise<MessagesResponse>;
|
|
1894
1894
|
location(params: MessageRequestParams<LocationObject>): Promise<MessagesResponse>;
|
|
1895
1895
|
interactive(params: MessageRequestParams<InteractiveObject>): Promise<MessagesResponse>;
|
|
1896
1896
|
interactiveList(params: MessageRequestParams<InteractiveObject & {
|
|
@@ -2534,7 +2534,7 @@ type TemplateGetParams = {
|
|
|
2534
2534
|
status?: TemplateStatusEnum;
|
|
2535
2535
|
};
|
|
2536
2536
|
type TemplateDeleteParams = {
|
|
2537
|
-
hsm_id
|
|
2537
|
+
hsm_id?: string;
|
|
2538
2538
|
name: string;
|
|
2539
2539
|
};
|
|
2540
2540
|
declare class TemplateClass {
|
|
@@ -4867,7 +4867,7 @@ declare class MediaApi extends BaseAPI implements MediaClass {
|
|
|
4867
4867
|
* This conditional type resolves the correct payload interface based on the {@link MessageTypesEnum} value,
|
|
4868
4868
|
* ensuring type-safe message construction at compile time.
|
|
4869
4869
|
*/
|
|
4870
|
-
type MessagePayloadType<T extends MessageTypesEnum> = T extends MessageTypesEnum.Audio ? AudioMediaObject : T extends MessageTypesEnum.Contacts ? [
|
|
4870
|
+
type MessagePayloadType<T extends MessageTypesEnum> = T extends MessageTypesEnum.Audio ? AudioMediaObject : T extends MessageTypesEnum.Contacts ? ContactObject[] : T extends MessageTypesEnum.Document ? DocumentMediaObject : T extends MessageTypesEnum.Image ? ImageMediaObject : T extends MessageTypesEnum.Interactive ? InteractiveObject : T extends MessageTypesEnum.Location ? LocationObject : T extends MessageTypesEnum.Template ? MessageTemplateObject<ComponentTypesEnum> : T extends MessageTypesEnum.Sticker ? StickerMediaObject : T extends MessageTypesEnum.Text ? TextObject : T extends MessageTypesEnum.Video ? VideoMediaObject : T extends MessageTypesEnum.Reaction ? {
|
|
4871
4871
|
message_id: string;
|
|
4872
4872
|
emoji: string;
|
|
4873
4873
|
} : never;
|
|
@@ -5011,7 +5011,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
5011
5011
|
* });
|
|
5012
5012
|
* ```
|
|
5013
5013
|
*/
|
|
5014
|
-
contacts(params: MessageRequestParams<[
|
|
5014
|
+
contacts(params: MessageRequestParams<ContactObject[]>): Promise<MessagesResponse>;
|
|
5015
5015
|
/**
|
|
5016
5016
|
* Sends a document message via the WhatsApp Cloud API.
|
|
5017
5017
|
*
|
|
@@ -5321,7 +5321,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
5321
5321
|
* ```
|
|
5322
5322
|
*/
|
|
5323
5323
|
interactiveList(params: MessageRequestParams<InteractiveObject & {
|
|
5324
|
-
type: InteractiveTypesEnum.List;
|
|
5324
|
+
type: InteractiveTypesEnum.List | 'list';
|
|
5325
5325
|
}>): Promise<MessagesResponse>;
|
|
5326
5326
|
/**
|
|
5327
5327
|
* Sends a Call-to-Action (CTA) URL button interactive message via the WhatsApp Cloud API.
|
|
@@ -5349,7 +5349,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
5349
5349
|
* ```
|
|
5350
5350
|
*/
|
|
5351
5351
|
interactiveCtaUrl(params: MessageRequestParams<InteractiveObject & {
|
|
5352
|
-
type: InteractiveTypesEnum.CtaUrl;
|
|
5352
|
+
type: InteractiveTypesEnum.CtaUrl | 'cta_url';
|
|
5353
5353
|
}>): Promise<MessagesResponse>;
|
|
5354
5354
|
/**
|
|
5355
5355
|
* Sends a location request interactive message via the WhatsApp Cloud API.
|
|
@@ -5439,7 +5439,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
5439
5439
|
* ```
|
|
5440
5440
|
*/
|
|
5441
5441
|
interactiveReplyButtons(params: MessageRequestParams<InteractiveObject & {
|
|
5442
|
-
type: InteractiveTypesEnum.Button;
|
|
5442
|
+
type: InteractiveTypesEnum.Button | 'button';
|
|
5443
5443
|
}>): Promise<MessagesResponse>;
|
|
5444
5444
|
/**
|
|
5445
5445
|
* Sends a flow interactive message via the WhatsApp Cloud API.
|
|
@@ -5472,7 +5472,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
5472
5472
|
* ```
|
|
5473
5473
|
*/
|
|
5474
5474
|
interactiveFlow(params: MessageRequestParams<InteractiveObject & {
|
|
5475
|
-
type: InteractiveTypesEnum.Flow;
|
|
5475
|
+
type: InteractiveTypesEnum.Flow | 'flow';
|
|
5476
5476
|
}>): Promise<MessagesResponse>;
|
|
5477
5477
|
/**
|
|
5478
5478
|
* Sends a carousel interactive message via the WhatsApp Cloud API.
|
|
@@ -6794,7 +6794,7 @@ declare class WebhookProcessor {
|
|
|
6794
6794
|
processVerification(mode: string | null, token: string | null, challenge: string | null): Promise<WebhookResponse>;
|
|
6795
6795
|
processWebhook(request: Request): Promise<WebhookResponse>;
|
|
6796
6796
|
processFlow(request: Request): Promise<WebhookResponse>;
|
|
6797
|
-
onMessage(type: MessageTypesEnum, handler: MessageHandler): void;
|
|
6797
|
+
onMessage(type: MessageTypesEnum | string, handler: MessageHandler): void;
|
|
6798
6798
|
onStatus(handler: StatusHandler): void;
|
|
6799
6799
|
onMessagePreProcess(handler: MessageHandler): void;
|
|
6800
6800
|
onMessagePostProcess(handler: MessageHandler): void;
|
|
@@ -7027,9 +7027,136 @@ declare function nextjsPagesWebhookHandler<TRequest extends BaseApiRequest, TRes
|
|
|
7027
7027
|
processor: WebhookProcessor;
|
|
7028
7028
|
};
|
|
7029
7029
|
//#endregion
|
|
7030
|
+
//#region src/core/webhook/utils/extractMessageText.d.ts
|
|
7031
|
+
/**
|
|
7032
|
+
* Extracts a human-readable display text from any incoming WhatsApp message.
|
|
7033
|
+
*
|
|
7034
|
+
* Useful for logging, notifications, chat previews, and storing message summaries.
|
|
7035
|
+
*
|
|
7036
|
+
* @param message - The incoming WhatsApp message from a webhook handler
|
|
7037
|
+
* @returns A display-friendly string representing the message content
|
|
7038
|
+
*
|
|
7039
|
+
* @example
|
|
7040
|
+
* ```ts
|
|
7041
|
+
* handler.processor.onText(async (whatsapp, processed) => {
|
|
7042
|
+
* const text = extractMessageText(processed.message);
|
|
7043
|
+
* console.log(`Message from ${processed.message.from}: ${text}`);
|
|
7044
|
+
* });
|
|
7045
|
+
* ```
|
|
7046
|
+
*/
|
|
7047
|
+
declare function extractMessageText(message: WhatsAppMessage): string;
|
|
7048
|
+
//#endregion
|
|
7030
7049
|
//#region src/core/webhook/utils/generateXHub256Sig.d.ts
|
|
7031
7050
|
declare const generateXHub256Sig: (body: string, appSecret: string) => string;
|
|
7032
7051
|
//#endregion
|
|
7052
|
+
//#region src/core/webhook/utils/messageHelpers.d.ts
|
|
7053
|
+
declare function isTextMessage(msg: WhatsAppMessage): msg is TextMessage;
|
|
7054
|
+
declare function isImageMessage(msg: WhatsAppMessage): msg is ImageMessage;
|
|
7055
|
+
declare function isVideoMessage(msg: WhatsAppMessage): msg is VideoMessage;
|
|
7056
|
+
declare function isAudioMessage(msg: WhatsAppMessage): msg is AudioMessage;
|
|
7057
|
+
declare function isDocumentMessage(msg: WhatsAppMessage): msg is DocumentMessage;
|
|
7058
|
+
declare function isStickerMessage(msg: WhatsAppMessage): msg is StickerMessage;
|
|
7059
|
+
declare function isInteractiveMessage(msg: WhatsAppMessage): msg is InteractiveMessage;
|
|
7060
|
+
declare function isButtonMessage(msg: WhatsAppMessage): msg is ButtonMessage;
|
|
7061
|
+
declare function isLocationMessage(msg: WhatsAppMessage): msg is LocationMessage;
|
|
7062
|
+
declare function isContactsMessage(msg: WhatsAppMessage): msg is ContactsMessage;
|
|
7063
|
+
declare function isReactionMessage(msg: WhatsAppMessage): msg is ReactionMessage;
|
|
7064
|
+
declare function isOrderMessage(msg: WhatsAppMessage): msg is OrderMessage;
|
|
7065
|
+
declare function isSystemMessage(msg: WhatsAppMessage): msg is SystemMessage;
|
|
7066
|
+
declare function isButtonReply(msg: WhatsAppMessage): msg is InteractiveButtonReplyMessage;
|
|
7067
|
+
declare function isListReply(msg: WhatsAppMessage): msg is InteractiveListReplyMessage;
|
|
7068
|
+
declare function isNfmReply(msg: WhatsAppMessage): msg is InteractiveNfmReplyMessage;
|
|
7069
|
+
type MediaInfo = {
|
|
7070
|
+
id: string;
|
|
7071
|
+
mimeType: string;
|
|
7072
|
+
sha256: string;
|
|
7073
|
+
caption?: string;
|
|
7074
|
+
filename?: string;
|
|
7075
|
+
animated?: boolean;
|
|
7076
|
+
voice?: boolean;
|
|
7077
|
+
};
|
|
7078
|
+
/**
|
|
7079
|
+
* Extract media info from image/video/audio/document/sticker messages.
|
|
7080
|
+
* Returns null if the message is not a media message.
|
|
7081
|
+
*
|
|
7082
|
+
* @example
|
|
7083
|
+
* ```ts
|
|
7084
|
+
* const media = getMediaInfo(message);
|
|
7085
|
+
* if (media) {
|
|
7086
|
+
* const url = await sdk.media.get(media.id);
|
|
7087
|
+
* }
|
|
7088
|
+
* ```
|
|
7089
|
+
*/
|
|
7090
|
+
declare function getMediaInfo(msg: WhatsAppMessage): MediaInfo | null;
|
|
7091
|
+
type InteractiveReply = {
|
|
7092
|
+
type: 'button_reply' | 'list_reply' | 'nfm_reply';
|
|
7093
|
+
id: string;
|
|
7094
|
+
title: string;
|
|
7095
|
+
description?: string;
|
|
7096
|
+
responseJson?: string;
|
|
7097
|
+
};
|
|
7098
|
+
/**
|
|
7099
|
+
* Extract the user's selection from interactive messages (button reply, list reply, nfm reply).
|
|
7100
|
+
* Returns null if not an interactive message.
|
|
7101
|
+
*
|
|
7102
|
+
* @example
|
|
7103
|
+
* ```ts
|
|
7104
|
+
* const reply = getInteractiveReply(message);
|
|
7105
|
+
* if (reply) {
|
|
7106
|
+
* console.log(`User selected: ${reply.title} (id: ${reply.id})`);
|
|
7107
|
+
* }
|
|
7108
|
+
* ```
|
|
7109
|
+
*/
|
|
7110
|
+
declare function getInteractiveReply(msg: WhatsAppMessage): InteractiveReply | null;
|
|
7111
|
+
type LocationInfo = {
|
|
7112
|
+
latitude: number;
|
|
7113
|
+
longitude: number;
|
|
7114
|
+
name?: string;
|
|
7115
|
+
address?: string;
|
|
7116
|
+
url?: string;
|
|
7117
|
+
};
|
|
7118
|
+
/**
|
|
7119
|
+
* Extract location data from a location message.
|
|
7120
|
+
* Returns null if not a location message.
|
|
7121
|
+
*/
|
|
7122
|
+
declare function getLocationInfo(msg: WhatsAppMessage): LocationInfo | null;
|
|
7123
|
+
type ContactInfo = {
|
|
7124
|
+
formattedName: string;
|
|
7125
|
+
firstName?: string;
|
|
7126
|
+
lastName?: string;
|
|
7127
|
+
phones: string[];
|
|
7128
|
+
emails: string[];
|
|
7129
|
+
};
|
|
7130
|
+
/**
|
|
7131
|
+
* Extract contact info from a contacts message.
|
|
7132
|
+
* Returns empty array if not a contacts message.
|
|
7133
|
+
*/
|
|
7134
|
+
declare function getContactsInfo(msg: WhatsAppMessage): ContactInfo[];
|
|
7135
|
+
type ReactionInfo = {
|
|
7136
|
+
messageId: string;
|
|
7137
|
+
emoji: string | null;
|
|
7138
|
+
};
|
|
7139
|
+
/**
|
|
7140
|
+
* Extract reaction data from a reaction message.
|
|
7141
|
+
* Returns null if not a reaction message.
|
|
7142
|
+
*/
|
|
7143
|
+
declare function getReactionInfo(msg: WhatsAppMessage): ReactionInfo | null;
|
|
7144
|
+
type OrderInfo = {
|
|
7145
|
+
catalogId: string;
|
|
7146
|
+
text?: string;
|
|
7147
|
+
items: Array<{
|
|
7148
|
+
productId: string;
|
|
7149
|
+
quantity: number;
|
|
7150
|
+
price: number;
|
|
7151
|
+
currency: string;
|
|
7152
|
+
}>;
|
|
7153
|
+
};
|
|
7154
|
+
/**
|
|
7155
|
+
* Extract order data from an order message.
|
|
7156
|
+
* Returns null if not an order message.
|
|
7157
|
+
*/
|
|
7158
|
+
declare function getOrderInfo(msg: WhatsAppMessage): OrderInfo | null;
|
|
7159
|
+
//#endregion
|
|
7033
7160
|
//#region src/utils/buildFieldsQueryString.d.ts
|
|
7034
7161
|
declare function buildFieldsQueryString(fields?: string[] | string): string;
|
|
7035
7162
|
//#endregion
|
|
@@ -7098,5 +7225,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
|
|
|
7098
7225
|
*/
|
|
7099
7226
|
declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
|
|
7100
7227
|
//#endregion
|
|
7101
|
-
export { AUTHORIZATION_ERROR_CODES, AcceptCallRequest, AccountMode, ApiPermissionErrorCode, AudioMediaObject, AudioMediaTypesEnum, AudioMessage, AudioMessageHandler, AudioProcessedMessage, AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, BaseApiRequest, BaseApiResponse, BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, BodyOptions, BusinessProfileApi, BusinessProfileClass, BusinessProfileData, BusinessProfileField, BusinessProfileFieldsParam, BusinessProfileResponse, BusinessVerticalEnum, ButtonMessage, ButtonMessageHandler, ButtonOptions, ButtonPositionEnum, 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, CategoryEnum, CodeVerificationStatus, CommerceApi, CommerceClass, CommerceSetting, CommerceSettingsResponse, ComponentTypes, ComponentTypesEnum, ContactObject, ContactsMessage, ContactsMessageHandler, ContactsProcessedMessage, ConversationTypesEnum, CopyCodeButton, CouponTemplateOptions, CreateFlowResponse, CreateQrCodeRequest, CreateUploadSessionParams, CurrencyCodesEnum, CurrencyParameter, Cursors, DataLocalizationRegionEnum, DateTimeParameter, DocumentMediaObject, DocumentMediaTypesEnum, DocumentMessage, DocumentMessageHandler, DocumentProcessedMessage, 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, GroupCreateRequest, GroupCreateResponse, GroupInfoField, GroupInfoFieldsParam, GroupInfoResponse, GroupInviteLinkResponse, GroupJoinApprovalMode, GroupJoinRequest, GroupJoinRequestError, GroupJoinRequestFailure, GroupJoinRequestsActionResponse, GroupJoinRequestsResponse, GroupListParams, GroupListResponse, GroupMessage, GroupParticipant, GroupSettingsResponse, GroupsApi, GroupsClass, HeaderOptions, HealthStatus, HealthStatusEntity, HolidaySchedule, HttpMethodsEnum, HttpsClientClass, HttpsClientResponseClass, INTEGRITY_ERROR_CODES, ImageMediaObject, ImageMediaTypesEnum, ImageMessage, ImageMessageHandler, ImageProcessedMessage, InitiateCallRequest, InitiateCallResponse, InteractiveButtonReplyMessage, InteractiveListReplyMessage, InteractiveMessage, InteractiveMessageHandler, InteractiveObject, InteractiveProcessedMessage, InteractiveTypesEnum, LanguagesEnum, LimitedTimeOfferOptions, LimitedTimeOfferTemplateOptions, ListBlockedUsersParams, ListBlockedUsersResponse, LocationMessage, LocationMessageHandler, LocationObject, LocationParameter, LocationProcessedMessage, Logger, LoggerInterface, MPMButton, MPMTemplateOptions, MarketingMessageRequest, MarketingMessagesApi, MarketingMessagesClass, MediaApi, MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, MessageHandler, MessageRequestBody, MessageRequestParams, MessageStatus, MessageTemplateObject, MessageTypesEnum, MessageWebhookValue, MessagesClass, MessagesResponse, MessagingLimitTier, MetaError, MetaErrorData, MetaErrorDetail, NextFunction, NextJsAppWebhookConfig, NextJsWebhookConfig, OTPButton, OTPTemplateOptions, OrderMessage, OrderMessageHandler, OrderProcessedMessage, Pagination, PaginationCursors, Paging, PagingCursors, PagingInfo, ParametersTypesEnum, PaymentConfiguration, PaymentConfigurationCode, PaymentConfigurationCreateRequest, PaymentConfigurationCreateResponse, PaymentConfigurationDeleteRequest, PaymentConfigurationOauthLinkRequest, PaymentConfigurationOauthLinkResponse, PaymentConfigurationProvider, PaymentConfigurationStatus, PaymentConfigurationUpdateRequest, PaymentConfigurationUpdateResponse, PaymentConfigurationsResponse, PaymentsApi, PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberResponse, PhoneNumbersResponse, PlatformType, PreAcceptCallRequest, ProcessedMessage, ProcessedStatus, ProductCardCarouselTemplateOptions, ProductCarouselCard, ProductParameter, ProductSection, QrCodeApi, QrCodeClass, QrCodeResponse, QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, ReactionMessage, ReactionMessageHandler, ReactionParams, ReactionProcessedMessage, ReferralSourceTypesEnum, RegistrationApi, RegistrationClass, RegistrationRequest, RejectCallRequest, RequestCodeMethodsEnum, RequestVerificationCodeRequest, RequesterClass, RequesterResponseInterface, ResponseData, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody, ResponsePagination, ResponseSuccess, SEND_MESSAGE_ERROR_CODES, SPMButton, SPMTemplateOptions, SipServer, SipSettings, SipStatus, StatusEnum, StatusHandler, StatusParams, StatusWebhook, StatusWebhookValue, StickerMediaObject, StickerMediaTypesEnum, StickerMessage, StickerMessageHandler, StickerProcessedMessage, SubTypeEnum, SystemChangeTypesEnum, SystemMessage, SystemMessageHandler, SystemProcessedMessage, THROTTLING_ERROR_CODES, TemplateApi, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, TemplateOptions, TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatusEnum, TerminateCallRequest, TextMessage, TextMessageHandler, TextMessageParams, TextObject, TextParameter, TextProcessedMessage, Throughput, ThroughputLevel, TwoStepVerificationApi, TwoStepVerificationClass, TwoStepVerificationParams, TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnsupportedMessage, UpdateBusinessProfileRequest, UpdateCallingSettingsRequest, UpdateCommerceSettingsRequest, UpdateFlowResponse, UpdateGroupSettingsRequest, UpdateQrCodeRequest, UpdateWabaSubscription, UploadBusinessProfileResponse, UploadHandle, UploadMediaParams, UploadMediaResponse, UploadSession, UploadSessionResponse, ValidateFlowJsonResponse, VerifyCodeRequest, VideoMediaObject, VideoMediaTypesEnum, VideoMessage, VideoMessageHandler, VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, WabaConfigType, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaSubscription, WabaSubscriptions, WebhookContact, WebhookEvent, WebhookMessage, WebhookPayload, WebhookProcessor, WebhookResponse, WebhookTypesEnum, WebhookValue, WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, WhatsAppConfig, WhatsAppError, WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, buildFieldsQueryString, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, encryptFlowResponse, expressWebhookHandler, formatConfigTable, generateEncryption, generateXHub256Sig, isApiPermissionErrorCode, isAuthorizationErrorCode, isBlockUserErrorCode, isCallingErrorCode, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isIntegrityErrorCode, isMetaError, isSendMessageErrorCode, isThrottlingErrorCode, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, objectToQueryString, processFlowRequest, processWebhookMessages };
|
|
7228
|
+
export { AUTHORIZATION_ERROR_CODES, AcceptCallRequest, AccountMode, ApiPermissionErrorCode, AudioMediaObject, AudioMediaTypesEnum, AudioMessage, AudioMessageHandler, AudioProcessedMessage, AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, BaseApiRequest, BaseApiResponse, BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, BodyOptions, BusinessProfileApi, BusinessProfileClass, BusinessProfileData, BusinessProfileField, BusinessProfileFieldsParam, BusinessProfileResponse, BusinessVerticalEnum, ButtonMessage, ButtonMessageHandler, ButtonOptions, ButtonPositionEnum, 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, CategoryEnum, CodeVerificationStatus, CommerceApi, CommerceClass, CommerceSetting, CommerceSettingsResponse, ComponentTypes, ComponentTypesEnum, ContactInfo, ContactObject, ContactsMessage, ContactsMessageHandler, ContactsProcessedMessage, ConversationTypesEnum, CopyCodeButton, CouponTemplateOptions, CreateFlowResponse, CreateQrCodeRequest, CreateUploadSessionParams, CurrencyCodesEnum, CurrencyParameter, Cursors, DataLocalizationRegionEnum, DateTimeParameter, DocumentMediaObject, DocumentMediaTypesEnum, DocumentMessage, DocumentMessageHandler, DocumentProcessedMessage, 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, GroupCreateRequest, GroupCreateResponse, GroupInfoField, GroupInfoFieldsParam, GroupInfoResponse, GroupInviteLinkResponse, GroupJoinApprovalMode, GroupJoinRequest, GroupJoinRequestError, GroupJoinRequestFailure, GroupJoinRequestsActionResponse, GroupJoinRequestsResponse, GroupListParams, GroupListResponse, GroupMessage, GroupParticipant, GroupSettingsResponse, GroupsApi, GroupsClass, HeaderOptions, HealthStatus, HealthStatusEntity, HolidaySchedule, HttpMethodsEnum, HttpsClientClass, HttpsClientResponseClass, INTEGRITY_ERROR_CODES, ImageMediaObject, ImageMediaTypesEnum, ImageMessage, ImageMessageHandler, ImageProcessedMessage, InitiateCallRequest, InitiateCallResponse, InteractiveButtonReplyMessage, InteractiveListReplyMessage, InteractiveMessage, InteractiveMessageHandler, InteractiveObject, InteractiveProcessedMessage, InteractiveReply, InteractiveTypesEnum, LanguagesEnum, 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, MessageRequestBody, MessageRequestParams, MessageStatus, MessageTemplateObject, MessageTypesEnum, MessageWebhookValue, MessagesClass, MessagesResponse, MessagingLimitTier, MetaError, MetaErrorData, MetaErrorDetail, NextFunction, NextJsAppWebhookConfig, NextJsWebhookConfig, OTPButton, OTPTemplateOptions, OrderInfo, OrderMessage, OrderMessageHandler, OrderProcessedMessage, Pagination, PaginationCursors, Paging, PagingCursors, PagingInfo, ParametersTypesEnum, PaymentConfiguration, PaymentConfigurationCode, PaymentConfigurationCreateRequest, PaymentConfigurationCreateResponse, PaymentConfigurationDeleteRequest, PaymentConfigurationOauthLinkRequest, PaymentConfigurationOauthLinkResponse, PaymentConfigurationProvider, PaymentConfigurationStatus, PaymentConfigurationUpdateRequest, PaymentConfigurationUpdateResponse, PaymentConfigurationsResponse, PaymentsApi, PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberResponse, PhoneNumbersResponse, PlatformType, PreAcceptCallRequest, ProcessedMessage, ProcessedStatus, ProductCardCarouselTemplateOptions, ProductCarouselCard, ProductParameter, ProductSection, QrCodeApi, QrCodeClass, QrCodeResponse, QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, ReactionInfo, ReactionMessage, ReactionMessageHandler, ReactionParams, ReactionProcessedMessage, ReferralSourceTypesEnum, RegistrationApi, RegistrationClass, RegistrationRequest, RejectCallRequest, RequestCodeMethodsEnum, RequestVerificationCodeRequest, RequesterClass, RequesterResponseInterface, ResponseData, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody, ResponsePagination, ResponseSuccess, SEND_MESSAGE_ERROR_CODES, SPMButton, SPMTemplateOptions, SipServer, SipSettings, SipStatus, StatusEnum, StatusHandler, StatusParams, StatusWebhook, StatusWebhookValue, StickerMediaObject, StickerMediaTypesEnum, StickerMessage, StickerMessageHandler, StickerProcessedMessage, SubTypeEnum, SystemChangeTypesEnum, SystemMessage, SystemMessageHandler, SystemProcessedMessage, THROTTLING_ERROR_CODES, TemplateApi, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, TemplateOptions, TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatusEnum, TerminateCallRequest, TextMessage, TextMessageHandler, TextMessageParams, TextObject, TextParameter, TextProcessedMessage, Throughput, ThroughputLevel, TwoStepVerificationApi, TwoStepVerificationClass, TwoStepVerificationParams, TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnsupportedMessage, UpdateBusinessProfileRequest, UpdateCallingSettingsRequest, UpdateCommerceSettingsRequest, UpdateFlowResponse, UpdateGroupSettingsRequest, UpdateQrCodeRequest, UpdateWabaSubscription, UploadBusinessProfileResponse, UploadHandle, UploadMediaParams, UploadMediaResponse, UploadSession, UploadSessionResponse, ValidateFlowJsonResponse, VerifyCodeRequest, VideoMediaObject, VideoMediaTypesEnum, VideoMessage, VideoMessageHandler, VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, WabaConfigType, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaSubscription, WabaSubscriptions, WebhookContact, WebhookEvent, WebhookMessage, WebhookPayload, WebhookProcessor, WebhookResponse, WebhookTypesEnum, WebhookValue, WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, WhatsAppConfig, WhatsAppError, WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, 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 };
|
|
7102
7229
|
//# sourceMappingURL=index.d.ts.map
|