meta-cloud-api 2.6.0 → 3.0.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 → index.d.mts} +410 -78
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +21 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/enums.d.ts +27 -25
- 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 +367 -38
- 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 +2 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -4
- package/dist/utils/index.js.map +1 -1
- package/package.json +20 -20
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- /package/dist/{chunk.js → chunk.mjs} +0 -0
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk.js";
|
|
2
1
|
import { Agent } from "node:https";
|
|
3
2
|
import { IncomingHttpHeaders, IncomingMessage } from "node:http";
|
|
4
3
|
|
|
5
4
|
//#region src/types/enums.d.ts
|
|
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 };
|
|
7
|
+
}
|
|
6
8
|
declare enum CategoryEnum {
|
|
7
9
|
Authentication = "AUTHENTICATION",
|
|
8
10
|
Marketing = "MARKETING",
|
|
9
|
-
Utility = "UTILITY"
|
|
11
|
+
Utility = "UTILITY"
|
|
10
12
|
}
|
|
11
13
|
declare enum TemplateStatusEnum {
|
|
12
14
|
Approved = "APPROVED",
|
|
13
15
|
Pending = "PENDING",
|
|
14
|
-
Rejected = "REJECTED"
|
|
16
|
+
Rejected = "REJECTED"
|
|
15
17
|
}
|
|
16
18
|
declare enum HttpMethodsEnum {
|
|
17
19
|
Get = "GET",
|
|
18
20
|
Post = "POST",
|
|
19
21
|
Put = "PUT",
|
|
20
|
-
Delete = "DELETE"
|
|
22
|
+
Delete = "DELETE"
|
|
21
23
|
}
|
|
22
24
|
declare enum MessageTypesEnum {
|
|
23
25
|
Audio = "audio",
|
|
@@ -40,7 +42,7 @@ declare enum MessageTypesEnum {
|
|
|
40
42
|
* @deprecated Use WebhookProcessor.onStatus() instead of onMessage(MessageTypesEnum.Statuses)
|
|
41
43
|
*/
|
|
42
44
|
Statuses = "statuses",
|
|
43
|
-
'*' = "*"
|
|
45
|
+
'*' = "*"
|
|
44
46
|
}
|
|
45
47
|
declare enum ParametersTypesEnum {
|
|
46
48
|
Action = "ACTION",
|
|
@@ -59,25 +61,27 @@ declare enum ParametersTypesEnum {
|
|
|
59
61
|
TtlMinutes = "TTL_MINUTES",
|
|
60
62
|
Video = "VIDEO",
|
|
61
63
|
WebviewInteraction = "WEBVIEW_INTERACTION",
|
|
62
|
-
WebviewPresentation = "WEBVIEW_PRESENTATION"
|
|
64
|
+
WebviewPresentation = "WEBVIEW_PRESENTATION"
|
|
63
65
|
}
|
|
64
66
|
declare enum InteractiveTypesEnum {
|
|
65
67
|
Button = "button",
|
|
66
68
|
List = "list",
|
|
67
69
|
Product = "product",
|
|
68
70
|
ProductList = "product_list",
|
|
71
|
+
CatalogMessage = "catalog_message",
|
|
72
|
+
CallPermissionRequest = "call_permission_request",
|
|
69
73
|
CtaUrl = "cta_url",
|
|
70
74
|
Carousel = "carousel",
|
|
71
75
|
LocationRequest = "location_request_message",
|
|
72
76
|
AddressMessage = "address_message",
|
|
73
|
-
Flow = "flow"
|
|
77
|
+
Flow = "flow"
|
|
74
78
|
}
|
|
75
79
|
declare enum ButtonPositionEnum {
|
|
76
80
|
First = 1,
|
|
77
81
|
Second = 2,
|
|
78
82
|
Third = 3,
|
|
79
83
|
Fourth = 4,
|
|
80
|
-
Fifth = 5
|
|
84
|
+
Fifth = 5
|
|
81
85
|
}
|
|
82
86
|
declare enum SubTypeEnum {
|
|
83
87
|
Catalog = "CATALOG",
|
|
@@ -88,13 +92,13 @@ declare enum SubTypeEnum {
|
|
|
88
92
|
QuickReply = "QUICK_REPLY",
|
|
89
93
|
Reminder = "REMINDER",
|
|
90
94
|
Url = "URL",
|
|
91
|
-
VoiceCall = "VOICE_CALL"
|
|
95
|
+
VoiceCall = "VOICE_CALL"
|
|
92
96
|
}
|
|
93
97
|
declare enum ComponentTypesEnum {
|
|
94
98
|
Header = "HEADER",
|
|
95
99
|
Body = "BODY",
|
|
96
100
|
Button = "BUTTON",
|
|
97
|
-
Footer = "FOOTER"
|
|
101
|
+
Footer = "FOOTER"
|
|
98
102
|
}
|
|
99
103
|
declare enum WabaConfigEnum {
|
|
100
104
|
AppId = "M4D_APP_ID",
|
|
@@ -111,28 +115,28 @@ declare enum WabaConfigEnum {
|
|
|
111
115
|
RequestTimeout = "REQUEST_TIMEOUT",
|
|
112
116
|
Debug = "DEBUG",
|
|
113
117
|
PrivatePem = "FLOW_API_PRIVATE_PEM",
|
|
114
|
-
Passphrase = "FLOW_API_PASSPHRASE"
|
|
118
|
+
Passphrase = "FLOW_API_PASSPHRASE"
|
|
115
119
|
}
|
|
116
120
|
declare enum ConversationTypesEnum {
|
|
117
121
|
BusinessInitiated = "business_initiated",
|
|
118
122
|
CustomerInitiated = "customer_initiated",
|
|
119
|
-
ReferralConversion = "referral_conversion"
|
|
123
|
+
ReferralConversion = "referral_conversion"
|
|
120
124
|
}
|
|
121
125
|
declare enum StatusEnum {
|
|
122
126
|
Delivered = "delivered",
|
|
123
127
|
Read = "read",
|
|
124
|
-
Sent = "sent"
|
|
128
|
+
Sent = "sent"
|
|
125
129
|
}
|
|
126
130
|
declare enum VideoMediaTypesEnum {
|
|
127
131
|
Mp4 = "video/mp4",
|
|
128
|
-
Threegp = "video/3gp"
|
|
132
|
+
Threegp = "video/3gp"
|
|
129
133
|
}
|
|
130
134
|
declare enum StickerMediaTypesEnum {
|
|
131
|
-
Webp = "image/webp"
|
|
135
|
+
Webp = "image/webp"
|
|
132
136
|
}
|
|
133
137
|
declare enum ImageMediaTypesEnum {
|
|
134
138
|
Jpeg = "image/jpeg",
|
|
135
|
-
Png = "image/png"
|
|
139
|
+
Png = "image/png"
|
|
136
140
|
}
|
|
137
141
|
declare enum DocumentMediaTypesEnum {
|
|
138
142
|
Text = "text/plain",
|
|
@@ -142,14 +146,14 @@ declare enum DocumentMediaTypesEnum {
|
|
|
142
146
|
Excel = "application/vnd.ms-excel",
|
|
143
147
|
OpenDoc = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
144
148
|
OpenPres = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
145
|
-
OpenSheet = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
149
|
+
OpenSheet = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
146
150
|
}
|
|
147
151
|
declare enum AudioMediaTypesEnum {
|
|
148
152
|
Aac = "audio/aac",
|
|
149
153
|
Mp4 = "audio/mp4",
|
|
150
154
|
Mpeg = "audio/mpeg",
|
|
151
155
|
Amr = "audio/amr",
|
|
152
|
-
Ogg = "audio/ogg"
|
|
156
|
+
Ogg = "audio/ogg"
|
|
153
157
|
}
|
|
154
158
|
declare enum WebhookTypesEnum {
|
|
155
159
|
Audio = "audio",
|
|
@@ -162,19 +166,19 @@ declare enum WebhookTypesEnum {
|
|
|
162
166
|
Sticker = "sticker",
|
|
163
167
|
System = "system",
|
|
164
168
|
Unknown = "unknown",
|
|
165
|
-
Video = "video"
|
|
169
|
+
Video = "video"
|
|
166
170
|
}
|
|
167
171
|
declare enum SystemChangeTypesEnum {
|
|
168
172
|
CustomerChangedNumber = "customer_changed_number",
|
|
169
|
-
CustomerIdentityChanged = "customer_identity_changed"
|
|
173
|
+
CustomerIdentityChanged = "customer_identity_changed"
|
|
170
174
|
}
|
|
171
175
|
declare enum ReferralSourceTypesEnum {
|
|
172
176
|
Ad = "ad",
|
|
173
|
-
Post = "post"
|
|
177
|
+
Post = "post"
|
|
174
178
|
}
|
|
175
179
|
declare enum RequestCodeMethodsEnum {
|
|
176
180
|
Sms = "SMS",
|
|
177
|
-
Voice = "VOICE"
|
|
181
|
+
Voice = "VOICE"
|
|
178
182
|
}
|
|
179
183
|
declare enum LanguagesEnum {
|
|
180
184
|
Afrikaans = "af",
|
|
@@ -247,7 +251,7 @@ declare enum LanguagesEnum {
|
|
|
247
251
|
Urdu = "ur",
|
|
248
252
|
Uzbek = "uz",
|
|
249
253
|
Vietnamese = "vi",
|
|
250
|
-
Zulu = "zu"
|
|
254
|
+
Zulu = "zu"
|
|
251
255
|
}
|
|
252
256
|
declare enum CurrencyCodesEnum {
|
|
253
257
|
AFN = "AFN",
|
|
@@ -551,7 +555,7 @@ declare enum CurrencyCodesEnum {
|
|
|
551
555
|
ZWR = "ZWR",
|
|
552
556
|
XFO = "XFO",
|
|
553
557
|
XRE = "XRE",
|
|
554
|
-
XFU = "XFU"
|
|
558
|
+
XFU = "XFU"
|
|
555
559
|
}
|
|
556
560
|
declare enum DataLocalizationRegionEnum {
|
|
557
561
|
AU = "AU",
|
|
@@ -580,7 +584,7 @@ declare enum DataLocalizationRegionEnum {
|
|
|
580
584
|
// South Africa
|
|
581
585
|
AE = "AE",
|
|
582
586
|
// United Arab Emirates
|
|
583
|
-
CA = "CA"
|
|
587
|
+
CA = "CA"
|
|
584
588
|
}
|
|
585
589
|
/**
|
|
586
590
|
* Business category values for WhatsApp Business Profile.
|
|
@@ -670,7 +674,7 @@ declare enum BusinessVerticalEnum {
|
|
|
670
674
|
/**
|
|
671
675
|
* Travel and Transportation
|
|
672
676
|
*/
|
|
673
|
-
TRAVEL = "TRAVEL"
|
|
677
|
+
TRAVEL = "TRAVEL"
|
|
674
678
|
}
|
|
675
679
|
//#endregion
|
|
676
680
|
//#region src/types/config.d.ts
|
|
@@ -722,8 +726,7 @@ type WhatsAppConfig = {
|
|
|
722
726
|
maxRetriesAfterWait?: number;
|
|
723
727
|
requestTimeout?: number;
|
|
724
728
|
privatePem?: string;
|
|
725
|
-
passphrase?: string;
|
|
726
|
-
/** Automatic retry configuration for throttling errors. */
|
|
729
|
+
passphrase?: string; /** Automatic retry configuration for throttling errors. */
|
|
727
730
|
retry?: RetryConfig;
|
|
728
731
|
};
|
|
729
732
|
type WabaConfigType = {
|
|
@@ -1708,6 +1711,7 @@ type ReplyButtonObject = {
|
|
|
1708
1711
|
reply: ButtonObject;
|
|
1709
1712
|
};
|
|
1710
1713
|
type ActionObject = {
|
|
1714
|
+
button?: string;
|
|
1711
1715
|
buttons?: ReplyButtonObject[];
|
|
1712
1716
|
catalog_id?: string;
|
|
1713
1717
|
product_retailer_id?: string;
|
|
@@ -1718,6 +1722,7 @@ type HeaderObject = {
|
|
|
1718
1722
|
document?: DocumentMediaObject$1;
|
|
1719
1723
|
image?: ImageMediaObject$1;
|
|
1720
1724
|
text?: string;
|
|
1725
|
+
sub_text?: string;
|
|
1721
1726
|
video?: VideoMediaObject$1;
|
|
1722
1727
|
};
|
|
1723
1728
|
type ButtonInteractiveObject = {
|
|
@@ -1748,6 +1753,30 @@ type ProductListInteractiveObject = {
|
|
|
1748
1753
|
header: HeaderObject;
|
|
1749
1754
|
action: ActionObject;
|
|
1750
1755
|
};
|
|
1756
|
+
type CatalogMessageParameters = {
|
|
1757
|
+
thumbnail_product_retailer_id: string;
|
|
1758
|
+
};
|
|
1759
|
+
type CatalogMessageActionObject = {
|
|
1760
|
+
name: 'catalog_message';
|
|
1761
|
+
parameters?: CatalogMessageParameters;
|
|
1762
|
+
};
|
|
1763
|
+
type CatalogMessageInteractiveObject = {
|
|
1764
|
+
type: InteractiveTypesEnum.CatalogMessage | 'catalog_message';
|
|
1765
|
+
body?: SimpleTextObject;
|
|
1766
|
+
footer?: SimpleTextObject;
|
|
1767
|
+
header?: HeaderObject;
|
|
1768
|
+
action: CatalogMessageActionObject;
|
|
1769
|
+
};
|
|
1770
|
+
type CallPermissionRequestActionObject = {
|
|
1771
|
+
name: 'call_permission_request';
|
|
1772
|
+
};
|
|
1773
|
+
type CallPermissionRequestInteractiveObject = {
|
|
1774
|
+
type: InteractiveTypesEnum.CallPermissionRequest | 'call_permission_request';
|
|
1775
|
+
body?: SimpleTextObject;
|
|
1776
|
+
footer?: SimpleTextObject;
|
|
1777
|
+
header?: HeaderObject;
|
|
1778
|
+
action: CallPermissionRequestActionObject;
|
|
1779
|
+
};
|
|
1751
1780
|
type CtaUrlParameters = {
|
|
1752
1781
|
display_text: string;
|
|
1753
1782
|
url: string;
|
|
@@ -1876,13 +1905,14 @@ type CarouselInteractiveObject = {
|
|
|
1876
1905
|
body: SimpleTextObject;
|
|
1877
1906
|
action: CarouselActionObject;
|
|
1878
1907
|
};
|
|
1879
|
-
type InteractiveObject = ButtonInteractiveObject | ListInteractiveObject | ProductInteractiveObject | ProductListInteractiveObject | CtaUrlInteractiveObject | CarouselInteractiveObject | LocationRequestInteractiveObject | AddressMessageInteractiveObject | FlowInteractiveObject;
|
|
1908
|
+
type InteractiveObject = ButtonInteractiveObject | ListInteractiveObject | ProductInteractiveObject | ProductListInteractiveObject | CatalogMessageInteractiveObject | CallPermissionRequestInteractiveObject | CtaUrlInteractiveObject | CarouselInteractiveObject | LocationRequestInteractiveObject | AddressMessageInteractiveObject | FlowInteractiveObject;
|
|
1880
1909
|
//#endregion
|
|
1881
1910
|
//#region src/api/messages/types/reaction.d.ts
|
|
1882
1911
|
interface ReactionParams {
|
|
1883
1912
|
messageId: string;
|
|
1884
1913
|
emoji: string;
|
|
1885
1914
|
to: string;
|
|
1915
|
+
recipientType?: MessageRecipientType;
|
|
1886
1916
|
}
|
|
1887
1917
|
//#endregion
|
|
1888
1918
|
//#region src/api/messages/types/common.d.ts
|
|
@@ -1893,11 +1923,21 @@ type GeneralMessageBody = GeneralRequestBody & {
|
|
|
1893
1923
|
*/
|
|
1894
1924
|
messaging_product: 'whatsapp';
|
|
1895
1925
|
};
|
|
1926
|
+
type StatusObject = {
|
|
1927
|
+
status: 'read' | 'typing';
|
|
1928
|
+
message_id: string;
|
|
1929
|
+
typing_indicator?: TypingIndicatorObject;
|
|
1930
|
+
};
|
|
1931
|
+
type TypingIndicatorObject = {
|
|
1932
|
+
type: 'text';
|
|
1933
|
+
};
|
|
1934
|
+
type StatusResponse = ResponseSuccess;
|
|
1896
1935
|
type ConTextObject = {
|
|
1897
1936
|
message_id: string;
|
|
1898
1937
|
};
|
|
1938
|
+
type MessageRecipientType = 'individual' | 'group';
|
|
1899
1939
|
type MessageRequestBody<T extends MessageTypesEnum> = GeneralMessageBody & {
|
|
1900
|
-
recipient_type?:
|
|
1940
|
+
recipient_type?: MessageRecipientType;
|
|
1901
1941
|
to: string;
|
|
1902
1942
|
context?: ConTextObject;
|
|
1903
1943
|
type?: T;
|
|
@@ -1905,23 +1945,23 @@ type MessageRequestBody<T extends MessageTypesEnum> = GeneralMessageBody & {
|
|
|
1905
1945
|
interface MessageRequestParams<T> {
|
|
1906
1946
|
body: T;
|
|
1907
1947
|
to: string;
|
|
1948
|
+
recipientType?: MessageRecipientType;
|
|
1908
1949
|
replyMessageId?: string;
|
|
1909
1950
|
}
|
|
1910
1951
|
interface StatusParams {
|
|
1911
|
-
status:
|
|
1952
|
+
status: StatusObject['status'];
|
|
1912
1953
|
messageId: string;
|
|
1913
|
-
typingIndicator?:
|
|
1914
|
-
type: string;
|
|
1915
|
-
};
|
|
1954
|
+
typingIndicator?: TypingIndicatorObject;
|
|
1916
1955
|
}
|
|
1917
1956
|
type MessagesResponse = GeneralMessageBody & {
|
|
1918
|
-
contacts:
|
|
1957
|
+
contacts: Array<{
|
|
1919
1958
|
input: string;
|
|
1920
1959
|
wa_id: string;
|
|
1921
|
-
}
|
|
1922
|
-
messages:
|
|
1960
|
+
}>;
|
|
1961
|
+
messages: Array<{
|
|
1923
1962
|
id: string;
|
|
1924
|
-
|
|
1963
|
+
message_status?: 'accepted' | 'held_for_quality_assessment' | 'paused';
|
|
1964
|
+
}>;
|
|
1925
1965
|
};
|
|
1926
1966
|
declare class MessagesClass extends BaseClass {
|
|
1927
1967
|
text(params: TextMessageParams): Promise<MessagesResponse>;
|
|
@@ -1958,11 +1998,11 @@ declare class MessagesClass extends BaseClass {
|
|
|
1958
1998
|
reaction(params: ReactionParams): Promise<MessagesResponse>;
|
|
1959
1999
|
markAsRead(params: {
|
|
1960
2000
|
messageId: string;
|
|
1961
|
-
}): Promise<
|
|
2001
|
+
}): Promise<StatusResponse>;
|
|
1962
2002
|
showTypingIndicator(params: {
|
|
1963
2003
|
messageId: string;
|
|
1964
|
-
}): Promise<
|
|
1965
|
-
status(params: StatusParams): Promise<
|
|
2004
|
+
}): Promise<StatusResponse>;
|
|
2005
|
+
status(params: StatusParams): Promise<StatusResponse>;
|
|
1966
2006
|
}
|
|
1967
2007
|
//#endregion
|
|
1968
2008
|
//#region src/api/marketingMessages/types/marketingMessages.d.ts
|
|
@@ -1974,6 +2014,7 @@ type MarketingMessageRequest = {
|
|
|
1974
2014
|
to: string;
|
|
1975
2015
|
template: MessageTemplateObject<ComponentTypesEnum>;
|
|
1976
2016
|
message_activity_sharing?: boolean;
|
|
2017
|
+
product_policy?: 'CLOUD_API_FALLBACK' | 'STRICT';
|
|
1977
2018
|
};
|
|
1978
2019
|
interface MarketingMessagesClass {
|
|
1979
2020
|
sendTemplateMessage(params: MarketingMessageRequest): Promise<MessagesResponse>;
|
|
@@ -2075,12 +2116,15 @@ interface PaymentsClass {
|
|
|
2075
2116
|
}
|
|
2076
2117
|
//#endregion
|
|
2077
2118
|
//#region src/api/phone/types/common.d.ts
|
|
2078
|
-
type QualityRating = 'GREEN' | 'YELLOW' | 'RED' | 'NA';
|
|
2119
|
+
type QualityRating = 'GREEN' | 'YELLOW' | 'RED' | 'NA' | 'UNKNOWN';
|
|
2079
2120
|
type AccountMode = 'LIVE' | 'SANDBOX';
|
|
2080
2121
|
type CodeVerificationStatus = 'NOT_VERIFIED' | 'VERIFIED' | 'EXPIRED' | 'PENDING' | 'DELETED' | 'MIGRATED' | 'BANNED' | 'RESTRICTED' | 'RATE_LIMITED' | 'FLAGGED' | 'CONNECTED' | 'DISCONNECTED' | 'UNKNOWN' | 'UNVERIFIED';
|
|
2081
2122
|
type MessagingLimitTier = 'TIER_50' | 'TIER_250' | 'TIER_1K' | 'TIER_10K' | 'TIER_100K' | 'TIER_UNLIMITED';
|
|
2082
2123
|
type PlatformType = 'CLOUD_API' | 'ON_PREMISE' | 'NOT_APPLICABLE';
|
|
2083
2124
|
type ThroughputLevel = 'STANDARD' | 'HIGH' | 'NOT_APPLICABLE';
|
|
2125
|
+
type PhoneNumberStatus = 'PENDING' | 'LINKED' | 'UNLINKED' | 'DELETED' | 'MIGRATED' | 'BANNED' | 'RESTRICTED';
|
|
2126
|
+
type UnifiedCertStatus = 'APPROVED' | 'PENDING' | 'REJECTED' | 'EXPIRED' | 'NONE' | string;
|
|
2127
|
+
type HostPlatform = 'CLOUD_API' | 'ON_PREMISE' | 'NOT_APPLICABLE' | string;
|
|
2084
2128
|
type HealthStatusEntity = {
|
|
2085
2129
|
entity_type: string;
|
|
2086
2130
|
id: string;
|
|
@@ -2102,8 +2146,18 @@ type QualityScore = {
|
|
|
2102
2146
|
type Throughput = {
|
|
2103
2147
|
level: ThroughputLevel;
|
|
2104
2148
|
};
|
|
2105
|
-
type PhoneNumberField = 'display_phone_number' | 'id' | 'quality_rating' | 'verified_name' | 'account_mode' | 'certificate' | 'code_verification_status' | 'conversational_automation' | 'eligibility_for_api_business_global_search' | 'health_status' | 'is_official_business_account' | 'is_on_biz_app' | 'is_pin_enabled' | 'is_preverified_number' | 'last_onboarded_time' | 'messaging_limit_tier' | 'name_status' | 'new_certificate' | 'new_name_status' | 'platform_type' | 'quality_score' | 'search_visibility' | 'status' | 'throughput';
|
|
2149
|
+
type PhoneNumberField = 'country_code' | 'country_dial_code' | 'display_phone_number' | 'id' | 'quality_rating' | 'verified_name' | 'account_mode' | 'certificate' | 'code_verification_status' | 'conversational_automation' | 'eligibility_for_api_business_global_search' | 'health_status' | 'host_platform' | 'is_official_business_account' | 'is_on_biz_app' | 'is_pin_enabled' | 'is_preverified_number' | 'last_onboarded_time' | 'messaging_limit_tier' | 'name_status' | 'new_certificate' | 'new_name_status' | 'platform_type' | 'quality_score' | 'search_visibility' | 'status' | 'throughput' | 'unified_cert_status' | 'username';
|
|
2106
2150
|
type PhoneNumberFieldsParam = PhoneNumberField[] | string;
|
|
2151
|
+
type PhoneNumberSort = 'creation_time.asc' | 'creation_time.desc' | 'last_onboarded_time.asc' | 'last_onboarded_time.desc' | (string & {});
|
|
2152
|
+
type PhoneNumberFilter = Record<string, unknown>;
|
|
2153
|
+
type PhoneNumbersListParams = {
|
|
2154
|
+
fields?: PhoneNumberFieldsParam;
|
|
2155
|
+
filtering?: PhoneNumberFilter[] | string;
|
|
2156
|
+
sort?: PhoneNumberSort;
|
|
2157
|
+
limit?: number;
|
|
2158
|
+
after?: string;
|
|
2159
|
+
before?: string;
|
|
2160
|
+
};
|
|
2107
2161
|
type PhoneNumberResponse = {
|
|
2108
2162
|
display_phone_number: string;
|
|
2109
2163
|
id: string;
|
|
@@ -2113,8 +2167,11 @@ type PhoneNumberResponse = {
|
|
|
2113
2167
|
certificate?: string;
|
|
2114
2168
|
code_verification_status?: CodeVerificationStatus;
|
|
2115
2169
|
conversational_automation?: Record<string, unknown>;
|
|
2170
|
+
country_code?: string;
|
|
2171
|
+
country_dial_code?: string;
|
|
2116
2172
|
eligibility_for_api_business_global_search?: string;
|
|
2117
2173
|
health_status?: HealthStatus;
|
|
2174
|
+
host_platform?: HostPlatform;
|
|
2118
2175
|
is_official_business_account?: boolean;
|
|
2119
2176
|
is_on_biz_app?: boolean;
|
|
2120
2177
|
is_pin_enabled?: boolean;
|
|
@@ -2127,8 +2184,10 @@ type PhoneNumberResponse = {
|
|
|
2127
2184
|
platform_type?: PlatformType;
|
|
2128
2185
|
quality_score?: QualityScore;
|
|
2129
2186
|
search_visibility?: string;
|
|
2130
|
-
status?: CodeVerificationStatus;
|
|
2187
|
+
status?: PhoneNumberStatus | CodeVerificationStatus;
|
|
2131
2188
|
throughput?: Throughput;
|
|
2189
|
+
unified_cert_status?: UnifiedCertStatus;
|
|
2190
|
+
username?: string;
|
|
2132
2191
|
};
|
|
2133
2192
|
type Cursors = {
|
|
2134
2193
|
before: string;
|
|
@@ -2185,7 +2244,7 @@ type ThroughputResponse = {
|
|
|
2185
2244
|
};
|
|
2186
2245
|
interface PhoneNumberClass {
|
|
2187
2246
|
getPhoneNumberById(fields?: PhoneNumberFieldsParam): Promise<PhoneNumberResponse>;
|
|
2188
|
-
getPhoneNumbers(): Promise<PhoneNumbersResponse>;
|
|
2247
|
+
getPhoneNumbers(params?: PhoneNumbersListParams): Promise<PhoneNumbersResponse>;
|
|
2189
2248
|
requestVerificationCode(params: RequestVerificationCodeRequest): Promise<ResponseSuccess>;
|
|
2190
2249
|
verifyCode(params: VerifyCodeRequest): Promise<ResponseSuccess>;
|
|
2191
2250
|
setConversationalAutomation(params: ConversationalAutomationRequest): Promise<ResponseSuccess>;
|
|
@@ -2824,7 +2883,7 @@ declare enum WabaAccountReviewStatus {
|
|
|
2824
2883
|
Approved = "APPROVED",
|
|
2825
2884
|
Active = "ACTIVE",
|
|
2826
2885
|
Inactive = "INACTIVE",
|
|
2827
|
-
Disabled = "DISABLED"
|
|
2886
|
+
Disabled = "DISABLED"
|
|
2828
2887
|
}
|
|
2829
2888
|
/**
|
|
2830
2889
|
* WABA health status for message sending capability
|
|
@@ -2832,7 +2891,7 @@ declare enum WabaAccountReviewStatus {
|
|
|
2832
2891
|
declare enum WabaHealthStatusCanSendMessage {
|
|
2833
2892
|
Blocked = "BLOCKED",
|
|
2834
2893
|
Limited = "LIMITED",
|
|
2835
|
-
Available = "AVAILABLE"
|
|
2894
|
+
Available = "AVAILABLE"
|
|
2836
2895
|
}
|
|
2837
2896
|
/**
|
|
2838
2897
|
* WABA account status enumeration
|
|
@@ -2841,7 +2900,7 @@ declare enum WabaAccountStatus {
|
|
|
2841
2900
|
Approved = "APPROVED",
|
|
2842
2901
|
Active = "ACTIVE",
|
|
2843
2902
|
Inactive = "INACTIVE",
|
|
2844
|
-
Disabled = "DISABLED"
|
|
2903
|
+
Disabled = "DISABLED"
|
|
2845
2904
|
}
|
|
2846
2905
|
/**
|
|
2847
2906
|
* Business verification status enumeration
|
|
@@ -2850,7 +2909,7 @@ declare enum WabaBusinessVerificationStatus {
|
|
|
2850
2909
|
Verified = "verified",
|
|
2851
2910
|
PendingSubmission = "pending_submission",
|
|
2852
2911
|
Unverified = "unverified",
|
|
2853
|
-
Rejected = "rejected"
|
|
2912
|
+
Rejected = "rejected"
|
|
2854
2913
|
}
|
|
2855
2914
|
/**
|
|
2856
2915
|
* WABA health status error details
|
|
@@ -2989,9 +3048,7 @@ interface AuthInternationalRateEligibility {
|
|
|
2989
3048
|
start_time: number;
|
|
2990
3049
|
/** Countries with different start times */
|
|
2991
3050
|
exception_countries?: Array<{
|
|
2992
|
-
/** ISO 3166-1 alpha-2 country code */
|
|
2993
|
-
country_code: string;
|
|
2994
|
-
/** Unix timestamp for this country's start time */
|
|
3051
|
+
/** ISO 3166-1 alpha-2 country code */country_code: string; /** Unix timestamp for this country's start time */
|
|
2995
3052
|
start_time: number;
|
|
2996
3053
|
}>;
|
|
2997
3054
|
}
|
|
@@ -3145,8 +3202,10 @@ interface AccountSettingsUpdateWebhookValue {
|
|
|
3145
3202
|
*/
|
|
3146
3203
|
interface WebhookContact {
|
|
3147
3204
|
wa_id: string;
|
|
3205
|
+
user_id?: string;
|
|
3148
3206
|
profile: {
|
|
3149
3207
|
name: string;
|
|
3208
|
+
username?: string;
|
|
3150
3209
|
};
|
|
3151
3210
|
identity_key_hash?: string;
|
|
3152
3211
|
}
|
|
@@ -3359,11 +3418,13 @@ interface CallEntry {
|
|
|
3359
3418
|
}
|
|
3360
3419
|
interface CallContact {
|
|
3361
3420
|
profile: {
|
|
3362
|
-
/** Display name of the caller */
|
|
3363
|
-
|
|
3421
|
+
/** Display name of the caller */name: string; /** Business-scoped username, when Meta includes it */
|
|
3422
|
+
username?: string;
|
|
3364
3423
|
};
|
|
3365
3424
|
/** WhatsApp ID of the caller */
|
|
3366
3425
|
wa_id: string;
|
|
3426
|
+
/** Business-scoped user ID, when Meta includes it */
|
|
3427
|
+
user_id?: string;
|
|
3367
3428
|
}
|
|
3368
3429
|
interface CallsValue {
|
|
3369
3430
|
messaging_product: 'whatsapp';
|
|
@@ -3438,8 +3499,7 @@ interface GroupWebhookError {
|
|
|
3438
3499
|
/** Short title for the error */
|
|
3439
3500
|
title: string;
|
|
3440
3501
|
error_data?: {
|
|
3441
|
-
/** Detailed error description */
|
|
3442
|
-
details: string;
|
|
3502
|
+
/** Detailed error description */details: string;
|
|
3443
3503
|
};
|
|
3444
3504
|
}
|
|
3445
3505
|
interface GroupAddedParticipant {
|
|
@@ -4106,9 +4166,7 @@ interface UserPreferenceEntry {
|
|
|
4106
4166
|
}
|
|
4107
4167
|
interface UserPreferencesContact {
|
|
4108
4168
|
profile: {
|
|
4109
|
-
/** Display name of the user */
|
|
4110
|
-
name: string;
|
|
4111
|
-
/** WhatsApp username, if available */
|
|
4169
|
+
/** Display name of the user */name: string; /** WhatsApp username, if available */
|
|
4112
4170
|
username?: string;
|
|
4113
4171
|
};
|
|
4114
4172
|
/** WhatsApp ID of the user */
|
|
@@ -4259,7 +4317,7 @@ declare enum MessageStatus {
|
|
|
4259
4317
|
DELIVERED = "delivered",
|
|
4260
4318
|
READ = "read",
|
|
4261
4319
|
SENT = "sent",
|
|
4262
|
-
FAILED = "failed"
|
|
4320
|
+
FAILED = "failed"
|
|
4263
4321
|
}
|
|
4264
4322
|
//#endregion
|
|
4265
4323
|
//#region src/core/webhook/types/template.d.ts
|
|
@@ -4581,6 +4639,281 @@ declare function isWhatsAppCallingError(error: unknown): error is WhatsAppCallin
|
|
|
4581
4639
|
declare function isWhatsAppGroupError(error: unknown): error is WhatsAppGroupError;
|
|
4582
4640
|
declare function normalizeMetaError(errorData: unknown, statusCode?: number): MetaError;
|
|
4583
4641
|
//#endregion
|
|
4642
|
+
//#region src/types/constants.d.ts
|
|
4643
|
+
/**
|
|
4644
|
+
* As-const alternatives to enums.
|
|
4645
|
+
*
|
|
4646
|
+
* Every enum in enums.ts gets a matching `as const` object and a union type here.
|
|
4647
|
+
* Use whichever style you prefer:
|
|
4648
|
+
* - Enum: CategoryEnum.Marketing
|
|
4649
|
+
* - Const: Category.Marketing (value: 'MARKETING')
|
|
4650
|
+
* - Type: CategoryType (union: 'AUTHENTICATION' | 'MARKETING' | 'UTILITY')
|
|
4651
|
+
*/
|
|
4652
|
+
declare const Category: {
|
|
4653
|
+
readonly Authentication: "AUTHENTICATION";
|
|
4654
|
+
readonly Marketing: "MARKETING";
|
|
4655
|
+
readonly Utility: "UTILITY";
|
|
4656
|
+
};
|
|
4657
|
+
type CategoryType = (typeof Category)[keyof typeof Category];
|
|
4658
|
+
declare const TemplateStatus: {
|
|
4659
|
+
readonly Approved: "APPROVED";
|
|
4660
|
+
readonly Pending: "PENDING";
|
|
4661
|
+
readonly Rejected: "REJECTED";
|
|
4662
|
+
};
|
|
4663
|
+
type TemplateStatusType = (typeof TemplateStatus)[keyof typeof TemplateStatus];
|
|
4664
|
+
declare const HttpMethods: {
|
|
4665
|
+
readonly Get: "GET";
|
|
4666
|
+
readonly Post: "POST";
|
|
4667
|
+
readonly Put: "PUT";
|
|
4668
|
+
readonly Delete: "DELETE";
|
|
4669
|
+
};
|
|
4670
|
+
type HttpMethodsType = (typeof HttpMethods)[keyof typeof HttpMethods];
|
|
4671
|
+
declare const MessageTypes: {
|
|
4672
|
+
readonly Audio: "audio";
|
|
4673
|
+
readonly Contacts: "contacts";
|
|
4674
|
+
readonly Document: "document";
|
|
4675
|
+
readonly Image: "image";
|
|
4676
|
+
readonly Interactive: "interactive";
|
|
4677
|
+
readonly Location: "location";
|
|
4678
|
+
readonly Reaction: "reaction";
|
|
4679
|
+
readonly Sticker: "sticker";
|
|
4680
|
+
readonly Template: "template";
|
|
4681
|
+
readonly Text: "text";
|
|
4682
|
+
readonly Video: "video";
|
|
4683
|
+
readonly Button: "button";
|
|
4684
|
+
readonly Order: "order";
|
|
4685
|
+
readonly System: "system";
|
|
4686
|
+
readonly Unsupported: "unsupported";
|
|
4687
|
+
readonly Unknown: "unknown"; /** @deprecated Use WebhookProcessor.onStatus() instead */
|
|
4688
|
+
readonly Statuses: "statuses";
|
|
4689
|
+
readonly All: "*";
|
|
4690
|
+
};
|
|
4691
|
+
type MessageTypesType = (typeof MessageTypes)[keyof typeof MessageTypes];
|
|
4692
|
+
declare const ParametersTypes: {
|
|
4693
|
+
readonly Action: "ACTION";
|
|
4694
|
+
readonly CouponCode: "COUPON_CODE";
|
|
4695
|
+
readonly Currency: "CURRENCY";
|
|
4696
|
+
readonly DateTime: "DATE_TIME";
|
|
4697
|
+
readonly Document: "DOCUMENT";
|
|
4698
|
+
readonly ExpirationTimeMs: "EXPIRATION_TIME_MS";
|
|
4699
|
+
readonly Image: "IMAGE";
|
|
4700
|
+
readonly LimitedTimeOffer: "LIMITED_TIME_OFFER";
|
|
4701
|
+
readonly Location: "LOCATION";
|
|
4702
|
+
readonly OrderStatus: "ORDER_STATUS";
|
|
4703
|
+
readonly Payload: "PAYLOAD";
|
|
4704
|
+
readonly Product: "PRODUCT";
|
|
4705
|
+
readonly Text: "TEXT";
|
|
4706
|
+
readonly TtlMinutes: "TTL_MINUTES";
|
|
4707
|
+
readonly Video: "VIDEO";
|
|
4708
|
+
readonly WebviewInteraction: "WEBVIEW_INTERACTION";
|
|
4709
|
+
readonly WebviewPresentation: "WEBVIEW_PRESENTATION";
|
|
4710
|
+
};
|
|
4711
|
+
type ParametersTypesType = (typeof ParametersTypes)[keyof typeof ParametersTypes];
|
|
4712
|
+
declare const InteractiveTypes: {
|
|
4713
|
+
readonly Button: "button";
|
|
4714
|
+
readonly List: "list";
|
|
4715
|
+
readonly Product: "product";
|
|
4716
|
+
readonly ProductList: "product_list";
|
|
4717
|
+
readonly CtaUrl: "cta_url";
|
|
4718
|
+
readonly Carousel: "carousel";
|
|
4719
|
+
readonly LocationRequest: "location_request_message";
|
|
4720
|
+
readonly AddressMessage: "address_message";
|
|
4721
|
+
readonly Flow: "flow";
|
|
4722
|
+
};
|
|
4723
|
+
type InteractiveTypesType = (typeof InteractiveTypes)[keyof typeof InteractiveTypes];
|
|
4724
|
+
declare const ButtonPosition: {
|
|
4725
|
+
readonly First: 1;
|
|
4726
|
+
readonly Second: 2;
|
|
4727
|
+
readonly Third: 3;
|
|
4728
|
+
readonly Fourth: 4;
|
|
4729
|
+
readonly Fifth: 5;
|
|
4730
|
+
};
|
|
4731
|
+
type ButtonPositionType = (typeof ButtonPosition)[keyof typeof ButtonPosition];
|
|
4732
|
+
declare const SubType: {
|
|
4733
|
+
readonly Catalog: "CATALOG";
|
|
4734
|
+
readonly CopyCode: "COPY_CODE";
|
|
4735
|
+
readonly Flow: "FLOW";
|
|
4736
|
+
readonly Mpm: "MPM";
|
|
4737
|
+
readonly OrderDetails: "ORDER_DETAILS";
|
|
4738
|
+
readonly QuickReply: "QUICK_REPLY";
|
|
4739
|
+
readonly Reminder: "REMINDER";
|
|
4740
|
+
readonly Url: "URL";
|
|
4741
|
+
readonly VoiceCall: "VOICE_CALL";
|
|
4742
|
+
};
|
|
4743
|
+
type SubTypeType = (typeof SubType)[keyof typeof SubType];
|
|
4744
|
+
declare const ComponentType: {
|
|
4745
|
+
readonly Header: "HEADER";
|
|
4746
|
+
readonly Body: "BODY";
|
|
4747
|
+
readonly Button: "BUTTON";
|
|
4748
|
+
readonly Footer: "FOOTER";
|
|
4749
|
+
};
|
|
4750
|
+
type ComponentTypeType = (typeof ComponentType)[keyof typeof ComponentType];
|
|
4751
|
+
declare const ConversationTypes: {
|
|
4752
|
+
readonly BusinessInitiated: "business_initiated";
|
|
4753
|
+
readonly CustomerInitiated: "customer_initiated";
|
|
4754
|
+
readonly ReferralConversion: "referral_conversion";
|
|
4755
|
+
};
|
|
4756
|
+
type ConversationTypesType = (typeof ConversationTypes)[keyof typeof ConversationTypes];
|
|
4757
|
+
declare const Status: {
|
|
4758
|
+
readonly Delivered: "delivered";
|
|
4759
|
+
readonly Read: "read";
|
|
4760
|
+
readonly Sent: "sent";
|
|
4761
|
+
};
|
|
4762
|
+
type StatusType = (typeof Status)[keyof typeof Status];
|
|
4763
|
+
declare const VideoMediaTypes: {
|
|
4764
|
+
readonly Mp4: "video/mp4";
|
|
4765
|
+
readonly Threegp: "video/3gp";
|
|
4766
|
+
};
|
|
4767
|
+
type VideoMediaTypesType = (typeof VideoMediaTypes)[keyof typeof VideoMediaTypes];
|
|
4768
|
+
declare const StickerMediaTypes: {
|
|
4769
|
+
readonly Webp: "image/webp";
|
|
4770
|
+
};
|
|
4771
|
+
type StickerMediaTypesType = (typeof StickerMediaTypes)[keyof typeof StickerMediaTypes];
|
|
4772
|
+
declare const ImageMediaTypes: {
|
|
4773
|
+
readonly Jpeg: "image/jpeg";
|
|
4774
|
+
readonly Png: "image/png";
|
|
4775
|
+
};
|
|
4776
|
+
type ImageMediaTypesType = (typeof ImageMediaTypes)[keyof typeof ImageMediaTypes];
|
|
4777
|
+
declare const DocumentMediaTypes: {
|
|
4778
|
+
readonly Text: "text/plain";
|
|
4779
|
+
readonly Pdf: "application/pdf";
|
|
4780
|
+
readonly Ppt: "application/vnd.ms-powerpoint";
|
|
4781
|
+
readonly Word: "application/msword";
|
|
4782
|
+
readonly Excel: "application/vnd.ms-excel";
|
|
4783
|
+
readonly OpenDoc: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
4784
|
+
readonly OpenPres: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
4785
|
+
readonly OpenSheet: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
4786
|
+
};
|
|
4787
|
+
type DocumentMediaTypesType = (typeof DocumentMediaTypes)[keyof typeof DocumentMediaTypes];
|
|
4788
|
+
declare const AudioMediaTypes: {
|
|
4789
|
+
readonly Aac: "audio/aac";
|
|
4790
|
+
readonly Mp4: "audio/mp4";
|
|
4791
|
+
readonly Mpeg: "audio/mpeg";
|
|
4792
|
+
readonly Amr: "audio/amr";
|
|
4793
|
+
readonly Ogg: "audio/ogg";
|
|
4794
|
+
};
|
|
4795
|
+
type AudioMediaTypesType = (typeof AudioMediaTypes)[keyof typeof AudioMediaTypes];
|
|
4796
|
+
declare const WebhookTypes: {
|
|
4797
|
+
readonly Audio: "audio";
|
|
4798
|
+
readonly Button: "button";
|
|
4799
|
+
readonly Document: "document";
|
|
4800
|
+
readonly Text: "text";
|
|
4801
|
+
readonly Image: "image";
|
|
4802
|
+
readonly Interactive: "interactive";
|
|
4803
|
+
readonly Order: "order";
|
|
4804
|
+
readonly Sticker: "sticker";
|
|
4805
|
+
readonly System: "system";
|
|
4806
|
+
readonly Unknown: "unknown";
|
|
4807
|
+
readonly Video: "video";
|
|
4808
|
+
};
|
|
4809
|
+
type WebhookTypesType = (typeof WebhookTypes)[keyof typeof WebhookTypes];
|
|
4810
|
+
declare const SystemChangeTypes: {
|
|
4811
|
+
readonly CustomerChangedNumber: "customer_changed_number";
|
|
4812
|
+
readonly CustomerIdentityChanged: "customer_identity_changed";
|
|
4813
|
+
};
|
|
4814
|
+
type SystemChangeTypesType = (typeof SystemChangeTypes)[keyof typeof SystemChangeTypes];
|
|
4815
|
+
declare const ReferralSourceTypes: {
|
|
4816
|
+
readonly Ad: "ad";
|
|
4817
|
+
readonly Post: "post";
|
|
4818
|
+
};
|
|
4819
|
+
type ReferralSourceTypesType = (typeof ReferralSourceTypes)[keyof typeof ReferralSourceTypes];
|
|
4820
|
+
declare const RequestCodeMethods: {
|
|
4821
|
+
readonly Sms: "SMS";
|
|
4822
|
+
readonly Voice: "VOICE";
|
|
4823
|
+
};
|
|
4824
|
+
type RequestCodeMethodsType = (typeof RequestCodeMethods)[keyof typeof RequestCodeMethods];
|
|
4825
|
+
declare const Languages: {
|
|
4826
|
+
readonly Afrikaans: "af";
|
|
4827
|
+
readonly Albanian: "sq";
|
|
4828
|
+
readonly Arabic: "ar";
|
|
4829
|
+
readonly Azerbaijani: "az";
|
|
4830
|
+
readonly Bengali: "bn";
|
|
4831
|
+
readonly Bulgarian: "bg";
|
|
4832
|
+
readonly Catalan: "ca";
|
|
4833
|
+
readonly Chinese_CHN: "zh_CN";
|
|
4834
|
+
readonly Chinese_HKG: "zh_HK";
|
|
4835
|
+
readonly Chinese_TAI: "zh_TW";
|
|
4836
|
+
readonly Croatian: "hr";
|
|
4837
|
+
readonly Czech: "cs";
|
|
4838
|
+
readonly Danish: "da";
|
|
4839
|
+
readonly Dutch: "nl";
|
|
4840
|
+
readonly English: "en";
|
|
4841
|
+
readonly English_UK: "en_GB";
|
|
4842
|
+
readonly English_US: "en_US";
|
|
4843
|
+
readonly Estonian: "et";
|
|
4844
|
+
readonly Filipino: "fil";
|
|
4845
|
+
readonly Finnish: "fi";
|
|
4846
|
+
readonly French: "fr";
|
|
4847
|
+
readonly Georgian: "ka";
|
|
4848
|
+
readonly German: "de";
|
|
4849
|
+
readonly Greek: "el";
|
|
4850
|
+
readonly Gujarati: "gu";
|
|
4851
|
+
readonly Hausa: "ha";
|
|
4852
|
+
readonly Hebrew: "he";
|
|
4853
|
+
readonly Hindi: "hi";
|
|
4854
|
+
readonly Hungarian: "hu";
|
|
4855
|
+
readonly Indonesian: "id";
|
|
4856
|
+
readonly Irish: "ga";
|
|
4857
|
+
readonly Italian: "it";
|
|
4858
|
+
readonly Japanese: "ja";
|
|
4859
|
+
readonly Kannada: "kn";
|
|
4860
|
+
readonly Kazakh: "kk";
|
|
4861
|
+
readonly Kinyarwanda: "rw_RW";
|
|
4862
|
+
readonly Korean: "ko";
|
|
4863
|
+
readonly Kyrgyz_Kyrgyzstan: "ky_KG";
|
|
4864
|
+
readonly Lao: "lo";
|
|
4865
|
+
readonly Latvian: "lv";
|
|
4866
|
+
readonly Lithuanian: "lt";
|
|
4867
|
+
readonly Macedonian: "mk";
|
|
4868
|
+
readonly Malay: "ms";
|
|
4869
|
+
readonly Malayalam: "ml";
|
|
4870
|
+
readonly Marathi: "mr";
|
|
4871
|
+
readonly Norwegian: "nb";
|
|
4872
|
+
readonly Persian: "fa";
|
|
4873
|
+
readonly Polish: "pl";
|
|
4874
|
+
readonly Portuguese_BR: "pt_BR";
|
|
4875
|
+
readonly Portuguese_POR: "pt_PT";
|
|
4876
|
+
readonly Punjabi: "pa";
|
|
4877
|
+
readonly Romanian: "ro";
|
|
4878
|
+
readonly Russian: "ru";
|
|
4879
|
+
readonly Serbian: "sr";
|
|
4880
|
+
readonly Slovak: "sk";
|
|
4881
|
+
readonly Slovenian: "sl";
|
|
4882
|
+
readonly Spanish: "es";
|
|
4883
|
+
readonly Spanish_ARG: "es_AR";
|
|
4884
|
+
readonly Spanish_SPA: "es_ES";
|
|
4885
|
+
readonly Spanish_MEX: "es_MX";
|
|
4886
|
+
readonly Swahili: "sw";
|
|
4887
|
+
readonly Swedish: "sv";
|
|
4888
|
+
readonly Tamil: "ta";
|
|
4889
|
+
readonly Telugu: "te";
|
|
4890
|
+
readonly Thai: "th";
|
|
4891
|
+
readonly Turkish: "tr";
|
|
4892
|
+
readonly Ukrainian: "uk";
|
|
4893
|
+
readonly Urdu: "ur";
|
|
4894
|
+
readonly Uzbek: "uz";
|
|
4895
|
+
readonly Vietnamese: "vi";
|
|
4896
|
+
readonly Zulu: "zu";
|
|
4897
|
+
};
|
|
4898
|
+
type LanguagesType = (typeof Languages)[keyof typeof Languages];
|
|
4899
|
+
declare const DataLocalizationRegion: {
|
|
4900
|
+
readonly AU: "AU";
|
|
4901
|
+
readonly ID: "ID";
|
|
4902
|
+
readonly IN: "IN";
|
|
4903
|
+
readonly JP: "JP";
|
|
4904
|
+
readonly SG: "SG";
|
|
4905
|
+
readonly KR: "KR";
|
|
4906
|
+
readonly DE: "DE";
|
|
4907
|
+
readonly CH: "CH";
|
|
4908
|
+
readonly GB: "GB";
|
|
4909
|
+
readonly BR: "BR";
|
|
4910
|
+
readonly BH: "BH";
|
|
4911
|
+
readonly ZA: "ZA";
|
|
4912
|
+
readonly AE: "AE";
|
|
4913
|
+
readonly CA: "CA";
|
|
4914
|
+
};
|
|
4915
|
+
type DataLocalizationRegionType = (typeof DataLocalizationRegion)[keyof typeof DataLocalizationRegion];
|
|
4916
|
+
//#endregion
|
|
4584
4917
|
//#region src/types/httpsClient.d.ts
|
|
4585
4918
|
type ResponseHeaderValue = string | string[] | undefined;
|
|
4586
4919
|
type ResponseHeaders = Record<string, ResponseHeaderValue>;
|
|
@@ -4616,7 +4949,7 @@ declare enum FlowStatusEnum {
|
|
|
4616
4949
|
Published = "PUBLISHED",
|
|
4617
4950
|
Throttled = "THROTTLED",
|
|
4618
4951
|
Blocked = "BLOCKED",
|
|
4619
|
-
Deprecated = "DEPRECATED"
|
|
4952
|
+
Deprecated = "DEPRECATED"
|
|
4620
4953
|
}
|
|
4621
4954
|
/**
|
|
4622
4955
|
* Enum for Flow Categories
|
|
@@ -4629,12 +4962,12 @@ declare enum FlowCategoryEnum {
|
|
|
4629
4962
|
ContactUs = "CONTACT_US",
|
|
4630
4963
|
CustomerSupport = "CUSTOMER_SUPPORT",
|
|
4631
4964
|
Survey = "SURVEY",
|
|
4632
|
-
Other = "OTHER"
|
|
4965
|
+
Other = "OTHER"
|
|
4633
4966
|
}
|
|
4634
4967
|
declare enum FlowActionEnum {
|
|
4635
4968
|
INIT = "INIT",
|
|
4636
4969
|
BACK = "BACK",
|
|
4637
|
-
DATA_EXCHANGE = "data_exchange"
|
|
4970
|
+
DATA_EXCHANGE = "data_exchange"
|
|
4638
4971
|
}
|
|
4639
4972
|
/**
|
|
4640
4973
|
* Enum for Flow Types in webhook handlers
|
|
@@ -4648,7 +4981,7 @@ declare enum FlowTypeEnum {
|
|
|
4648
4981
|
/** Error notification requests */
|
|
4649
4982
|
Error = "error",
|
|
4650
4983
|
/** Match all flow action types */
|
|
4651
|
-
All = "*"
|
|
4984
|
+
All = "*"
|
|
4652
4985
|
}
|
|
4653
4986
|
type FlowType = (typeof FlowTypeEnum)[keyof typeof FlowTypeEnum];
|
|
4654
4987
|
/**
|
|
@@ -5031,6 +5364,7 @@ interface FlowClass {
|
|
|
5031
5364
|
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/flows/ | WhatsApp Flows Documentation}
|
|
5032
5365
|
*/
|
|
5033
5366
|
declare class FlowApi extends BaseAPI implements FlowClass {
|
|
5367
|
+
private appendFormValue;
|
|
5034
5368
|
/**
|
|
5035
5369
|
* List all flows belonging to a WhatsApp Business Account.
|
|
5036
5370
|
*
|
|
@@ -5488,6 +5822,7 @@ declare class MarketingMessagesApi extends BaseAPI implements MarketingMessagesC
|
|
|
5488
5822
|
* @param params.to - The recipient's WhatsApp phone number.
|
|
5489
5823
|
* @param params.template - The template configuration (name, language, components).
|
|
5490
5824
|
* @param params.message_activity_sharing - Optional flag to enable message activity sharing.
|
|
5825
|
+
* @param params.product_policy - Optional product policy for marketing messages.
|
|
5491
5826
|
* @returns The messages response with message ID and status.
|
|
5492
5827
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/marketing-messages/send-marketing-messages/
|
|
5493
5828
|
*/
|
|
@@ -5704,7 +6039,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
5704
6039
|
* );
|
|
5705
6040
|
* ```
|
|
5706
6041
|
*/
|
|
5707
|
-
bodyBuilder<T extends MessageTypesEnum>(type: T, payload: MessagePayloadType<T>, to: string, replyMessageId?: string): MessageRequestBody<T>;
|
|
6042
|
+
bodyBuilder<T extends MessageTypesEnum>(type: T, payload: MessagePayloadType<T>, to: string, replyMessageId?: string, recipientType?: MessageRecipientType): MessageRequestBody<T>;
|
|
5708
6043
|
/**
|
|
5709
6044
|
* Sends a request to the WhatsApp Cloud API messages endpoint.
|
|
5710
6045
|
*
|
|
@@ -6012,7 +6347,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6012
6347
|
* });
|
|
6013
6348
|
* ```
|
|
6014
6349
|
*/
|
|
6015
|
-
status(params: StatusParams): Promise<
|
|
6350
|
+
status(params: StatusParams): Promise<StatusResponse>;
|
|
6016
6351
|
/**
|
|
6017
6352
|
* Marks a message as read, sending a read receipt to the sender.
|
|
6018
6353
|
*
|
|
@@ -6032,7 +6367,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6032
6367
|
*/
|
|
6033
6368
|
markAsRead(params: {
|
|
6034
6369
|
messageId: string;
|
|
6035
|
-
}): Promise<
|
|
6370
|
+
}): Promise<StatusResponse>;
|
|
6036
6371
|
/**
|
|
6037
6372
|
* Shows a typing indicator to the user, indicating that a response is being composed.
|
|
6038
6373
|
*
|
|
@@ -6052,7 +6387,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6052
6387
|
*/
|
|
6053
6388
|
showTypingIndicator(params: {
|
|
6054
6389
|
messageId: string;
|
|
6055
|
-
}): Promise<
|
|
6390
|
+
}): Promise<StatusResponse>;
|
|
6056
6391
|
/**
|
|
6057
6392
|
* Sends a list interactive message via the WhatsApp Cloud API.
|
|
6058
6393
|
*
|
|
@@ -6439,6 +6774,7 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
|
|
|
6439
6774
|
* Returns a list of all phone numbers registered under the configured WABA,
|
|
6440
6775
|
* including their verification status, quality rating, and display information.
|
|
6441
6776
|
*
|
|
6777
|
+
* @param params - Optional list query parameters such as fields, filtering, sort, and paging.
|
|
6442
6778
|
* @returns A promise that resolves with the list of phone numbers.
|
|
6443
6779
|
*
|
|
6444
6780
|
* @see {@link https://developers.facebook.com/docs/whatsapp/cloud-api/reference/phone-numbers#get-all | List Phone Numbers}
|
|
@@ -6451,7 +6787,7 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
|
|
|
6451
6787
|
* }
|
|
6452
6788
|
* ```
|
|
6453
6789
|
*/
|
|
6454
|
-
getPhoneNumbers(): Promise<PhoneNumbersResponse>;
|
|
6790
|
+
getPhoneNumbers(params?: PhoneNumbersListParams): Promise<PhoneNumbersResponse>;
|
|
6455
6791
|
/**
|
|
6456
6792
|
* Request a verification code for the phone number.
|
|
6457
6793
|
*
|
|
@@ -7537,13 +7873,9 @@ type SystemProcessedMessage = ProcessedMessage & {
|
|
|
7537
7873
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/create-webhook-endpoint/#request-syntax-1
|
|
7538
7874
|
*/
|
|
7539
7875
|
type WebhookHandlerContext = {
|
|
7540
|
-
/** Original request headers from the incoming webhook request. */
|
|
7541
|
-
|
|
7542
|
-
/** Original request
|
|
7543
|
-
rawBody: string;
|
|
7544
|
-
/** Original request method. */
|
|
7545
|
-
method: string;
|
|
7546
|
-
/** Original request URL. */
|
|
7876
|
+
/** Original request headers from the incoming webhook request. */headers: Headers; /** Original request body string before JSON parsing or field filtering. */
|
|
7877
|
+
rawBody: string; /** Original request method. */
|
|
7878
|
+
method: string; /** Original request URL. */
|
|
7547
7879
|
url: string;
|
|
7548
7880
|
};
|
|
7549
7881
|
type WebhookHandler<TProcessed, TReturn = void> = (whatsapp: WhatsApp, processed: TProcessed, context: WebhookHandlerContext) => TReturn | Promise<TReturn>;
|
|
@@ -8223,5 +8555,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
|
|
|
8223
8555
|
*/
|
|
8224
8556
|
declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
|
|
8225
8557
|
//#endregion
|
|
8226
|
-
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, WebhookHandlerContext, WebhookMessage, WebhookPayload, WebhookProcessor, WebhookResponse, WebhookTypesEnum, 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 };
|
|
8227
|
-
//# sourceMappingURL=index.d.
|
|
8558
|
+
export { AUTHORIZATION_ERROR_CODES, AcceptCallRequest, AccountMode, ApiPermissionErrorCode, AudioMediaObject, AudioMediaTypes, AudioMediaTypesEnum, AudioMediaTypesType, 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, 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, CopyCodeButton, CouponTemplateOptions, CreateFlowResponse, CreateQrCodeRequest, CreateUploadSessionParams, CurrencyCodesEnum, CurrencyParameter, Cursors, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, DateTimeParameter, DocumentMediaObject, DocumentMediaTypes, DocumentMediaTypesEnum, DocumentMediaTypesType, 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, 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, MessageRecipientType, MessageRequestBody, MessageRequestParams, MessageStatus, MessageTemplateObject, MessageTypes, MessageTypesEnum, MessageTypesType, MessageWebhookValue, MessagesClass, MessagesResponse, MessagingLimitTier, MetaError, MetaErrorData, MetaErrorDetail, NextFunction, NextJsAppWebhookConfig, NextJsWebhookConfig, OTPButton, OTPTemplateOptions, 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, 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, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, RequestVerificationCodeRequest, RequesterClass, RequesterResponseInterface, ResponseData, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody, ResponsePagination, ResponseSuccess, SEND_MESSAGE_ERROR_CODES, SPMButton, SPMTemplateOptions, SipServer, SipSettings, SipStatus, 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, TwoStepVerificationApi, TwoStepVerificationClass, TwoStepVerificationParams, TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnifiedCertStatus, UnsupportedMessage, UpdateBusinessProfileRequest, UpdateCallingSettingsRequest, UpdateCommerceSettingsRequest, UpdateFlowResponse, UpdateGroupSettingsRequest, UpdateQrCodeRequest, UpdateWabaSubscription, UploadBusinessProfileResponse, UploadHandle, UploadMediaParams, UploadMediaResponse, UploadSession, UploadSessionResponse, ValidateFlowJsonResponse, VerifyCodeRequest, VideoMediaObject, VideoMediaTypes, VideoMediaTypesEnum, VideoMediaTypesType, VideoMessage, VideoMessageHandler, VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, WabaConfigType, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, 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 };
|
|
8559
|
+
//# sourceMappingURL=index.d.mts.map
|