meta-cloud-api 3.0.0 → 3.1.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.mts +418 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +136 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -795,6 +795,7 @@ type WabaConfigType = {
|
|
|
795
795
|
//#endregion
|
|
796
796
|
//#region src/types/request.d.ts
|
|
797
797
|
type GeneralRequestBody = Record<string, unknown>;
|
|
798
|
+
type UrlEncodedFormBody = Record<string, string | string[]>;
|
|
798
799
|
interface GeneralHeaderInterface {
|
|
799
800
|
/**
|
|
800
801
|
* Authorization token. This is required for all HTTP requests made to the graph API.
|
|
@@ -849,7 +850,7 @@ declare class RequesterClass {
|
|
|
849
850
|
sendRequest: (method: HttpMethodsEnum, path: string, timeout: number, body?: GeneralRequestBody, contentType?: string, additionalHeaders?: Record<string, string>) => Promise<RequesterResponseInterface<unknown>>;
|
|
850
851
|
getJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: GeneralRequestBody, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
851
852
|
sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: FormData, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
852
|
-
sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData:
|
|
853
|
+
sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: UrlEncodedFormBody, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
853
854
|
updateTimeout(timeout: number): void;
|
|
854
855
|
updateAccessToken(accessToken: string): void;
|
|
855
856
|
}
|
|
@@ -864,7 +865,7 @@ declare class BaseAPI implements BaseClass {
|
|
|
864
865
|
constructor(config: WabaConfigType, client: RequesterClass);
|
|
865
866
|
protected sendJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
|
|
866
867
|
protected sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise<T>;
|
|
867
|
-
protected sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body
|
|
868
|
+
protected sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body: UrlEncodedFormBody): Promise<T>;
|
|
868
869
|
}
|
|
869
870
|
//#endregion
|
|
870
871
|
//#region src/api/blockUsers/types/blockUsers.d.ts
|
|
@@ -1068,6 +1069,88 @@ declare class BlockUsersApi extends BaseAPI implements BlockUsersClass {
|
|
|
1068
1069
|
listBlockedUsers(params?: ListBlockedUsersParams): Promise<ListBlockedUsersResponse>;
|
|
1069
1070
|
}
|
|
1070
1071
|
//#endregion
|
|
1072
|
+
//#region src/api/business/types/common.d.ts
|
|
1073
|
+
type BusinessGraphObject = Record<string, unknown>;
|
|
1074
|
+
type BusinessFieldsParam = string[] | string;
|
|
1075
|
+
type CursorPaginationParams = {
|
|
1076
|
+
limit?: number;
|
|
1077
|
+
after?: string;
|
|
1078
|
+
before?: string;
|
|
1079
|
+
};
|
|
1080
|
+
type BusinessGraphListResponse<T = BusinessGraphObject> = {
|
|
1081
|
+
data: T[];
|
|
1082
|
+
paging?: Paging;
|
|
1083
|
+
summary?: BusinessGraphObject;
|
|
1084
|
+
};
|
|
1085
|
+
type BusinessListParams = CursorPaginationParams & {
|
|
1086
|
+
fields?: BusinessFieldsParam;
|
|
1087
|
+
filtering?: BusinessGraphObject[] | string;
|
|
1088
|
+
sort?: string;
|
|
1089
|
+
};
|
|
1090
|
+
type AddPhoneNumbersRequest = {
|
|
1091
|
+
phone_number: string;
|
|
1092
|
+
verified_name?: string;
|
|
1093
|
+
[key: string]: unknown;
|
|
1094
|
+
};
|
|
1095
|
+
type SharePreVerifiedPhoneNumberRequest = {
|
|
1096
|
+
preverified_phone_number_id: string;
|
|
1097
|
+
partner_business_id: string;
|
|
1098
|
+
[key: string]: unknown;
|
|
1099
|
+
};
|
|
1100
|
+
type OnboardPartnersToMMLiteRequest = {
|
|
1101
|
+
solution_id?: string;
|
|
1102
|
+
[key: string]: unknown;
|
|
1103
|
+
};
|
|
1104
|
+
type RequestPreVerifiedPhoneNumberCodeRequest = {
|
|
1105
|
+
code_method: 'SMS' | 'VOICE';
|
|
1106
|
+
language?: string;
|
|
1107
|
+
[key: string]: unknown;
|
|
1108
|
+
};
|
|
1109
|
+
type VerifyPreVerifiedPhoneNumberCodeRequest = {
|
|
1110
|
+
code: string;
|
|
1111
|
+
[key: string]: unknown;
|
|
1112
|
+
};
|
|
1113
|
+
interface BusinessClass {
|
|
1114
|
+
getConnectedClientBusinesses(applicationId?: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1115
|
+
addPhoneNumbers(businessId: string, request: AddPhoneNumbersRequest): Promise<ResponseSuccess>;
|
|
1116
|
+
getBusinessPortfolio(businessId: string, fields?: BusinessFieldsParam): Promise<BusinessGraphObject>;
|
|
1117
|
+
getPreVerifiedPhoneNumbers(businessId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1118
|
+
getClientWhatsAppBusinessAccounts(businessId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1119
|
+
onboardPartnersToMMLite(businessId: string, request: OnboardPartnersToMMLiteRequest): Promise<BusinessGraphObject>;
|
|
1120
|
+
getOwnedWhatsAppBusinessAccounts(businessId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1121
|
+
sharePreVerifiedPhoneNumber(businessId: string, request: SharePreVerifiedPhoneNumberRequest): Promise<ResponseSuccess>;
|
|
1122
|
+
getCreditLines(businessId: string): Promise<BusinessGraphListResponse>;
|
|
1123
|
+
getAssignedWhatsAppBusinessAccounts(userId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1124
|
+
getWhatsAppAccountNumberDetails(accountNumberId: string, fields?: BusinessFieldsParam): Promise<BusinessGraphObject>;
|
|
1125
|
+
getPreVerifiedPhoneNumberDetails(preVerifiedPhoneNumberId: string, fields?: BusinessFieldsParam): Promise<BusinessGraphObject>;
|
|
1126
|
+
deletePreVerifiedPhoneNumber(preVerifiedPhoneNumberId: string): Promise<ResponseSuccess>;
|
|
1127
|
+
getPreVerifiedPhoneNumberPartners(preVerifiedPhoneNumberId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1128
|
+
requestPreVerifiedPhoneNumberCode(preVerifiedPhoneNumberId: string, request: RequestPreVerifiedPhoneNumberCodeRequest): Promise<ResponseSuccess>;
|
|
1129
|
+
verifyPreVerifiedPhoneNumberCode(preVerifiedPhoneNumberId: string, request: VerifyPreVerifiedPhoneNumberCodeRequest): Promise<ResponseSuccess>;
|
|
1130
|
+
}
|
|
1131
|
+
//#endregion
|
|
1132
|
+
//#region src/api/business/BusinessApi.d.ts
|
|
1133
|
+
declare class BusinessApi extends BaseAPI implements BusinessClass {
|
|
1134
|
+
private toQuery;
|
|
1135
|
+
private fieldsQuery;
|
|
1136
|
+
getConnectedClientBusinesses(applicationId?: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1137
|
+
addPhoneNumbers(businessId: string, request: AddPhoneNumbersRequest): Promise<ResponseSuccess>;
|
|
1138
|
+
getBusinessPortfolio(businessId: string, fields?: BusinessFieldsParam): Promise<BusinessGraphObject>;
|
|
1139
|
+
getPreVerifiedPhoneNumbers(businessId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1140
|
+
getClientWhatsAppBusinessAccounts(businessId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1141
|
+
onboardPartnersToMMLite(businessId: string, request: OnboardPartnersToMMLiteRequest): Promise<BusinessGraphObject>;
|
|
1142
|
+
getOwnedWhatsAppBusinessAccounts(businessId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1143
|
+
sharePreVerifiedPhoneNumber(businessId: string, request: SharePreVerifiedPhoneNumberRequest): Promise<ResponseSuccess>;
|
|
1144
|
+
getCreditLines(businessId: string): Promise<BusinessGraphListResponse>;
|
|
1145
|
+
getAssignedWhatsAppBusinessAccounts(userId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1146
|
+
getWhatsAppAccountNumberDetails(accountNumberId: string, fields?: BusinessFieldsParam): Promise<BusinessGraphObject>;
|
|
1147
|
+
getPreVerifiedPhoneNumberDetails(preVerifiedPhoneNumberId: string, fields?: BusinessFieldsParam): Promise<BusinessGraphObject>;
|
|
1148
|
+
deletePreVerifiedPhoneNumber(preVerifiedPhoneNumberId: string): Promise<ResponseSuccess>;
|
|
1149
|
+
getPreVerifiedPhoneNumberPartners(preVerifiedPhoneNumberId: string, params?: BusinessListParams): Promise<BusinessGraphListResponse>;
|
|
1150
|
+
requestPreVerifiedPhoneNumberCode(preVerifiedPhoneNumberId: string, request: RequestPreVerifiedPhoneNumberCodeRequest): Promise<ResponseSuccess>;
|
|
1151
|
+
verifyPreVerifiedPhoneNumberCode(preVerifiedPhoneNumberId: string, request: VerifyPreVerifiedPhoneNumberCodeRequest): Promise<ResponseSuccess>;
|
|
1152
|
+
}
|
|
1153
|
+
//#endregion
|
|
1071
1154
|
//#region src/api/calling/types/calling.d.ts
|
|
1072
1155
|
/**
|
|
1073
1156
|
* Calling API Types
|
|
@@ -1471,6 +1554,12 @@ type GroupListParams = {
|
|
|
1471
1554
|
after?: string;
|
|
1472
1555
|
before?: string;
|
|
1473
1556
|
};
|
|
1557
|
+
type GroupParticipantInput = {
|
|
1558
|
+
user: string;
|
|
1559
|
+
};
|
|
1560
|
+
type GroupParticipantsRequest = {
|
|
1561
|
+
participants: GroupParticipantInput[];
|
|
1562
|
+
};
|
|
1474
1563
|
type UpdateGroupSettingsRequest = {
|
|
1475
1564
|
subject?: string;
|
|
1476
1565
|
description?: string;
|
|
@@ -1483,10 +1572,13 @@ interface GroupsClass {
|
|
|
1483
1572
|
getGroupInfo(groupId: string, fields?: GroupInfoFieldsParam): Promise<GroupInfoResponse>;
|
|
1484
1573
|
getActiveGroups(params?: GroupListParams): Promise<GroupListResponse>;
|
|
1485
1574
|
getGroupInviteLink(groupId: string): Promise<GroupInviteLinkResponse>;
|
|
1575
|
+
createGroupInviteLink(groupId: string): Promise<GroupInviteLinkResponse>;
|
|
1486
1576
|
resetGroupInviteLink(groupId: string): Promise<GroupInviteLinkResponse>;
|
|
1577
|
+
deleteGroupInviteLink(groupId: string): Promise<ResponseSuccess>;
|
|
1487
1578
|
getJoinRequests(groupId: string): Promise<GroupJoinRequestsResponse>;
|
|
1488
1579
|
approveJoinRequests(groupId: string, joinRequestIds: string[]): Promise<GroupJoinRequestsActionResponse>;
|
|
1489
1580
|
rejectJoinRequests(groupId: string, joinRequestIds: string[]): Promise<GroupJoinRequestsActionResponse>;
|
|
1581
|
+
addParticipants(groupId: string, participants: string[]): Promise<ResponseSuccess>;
|
|
1490
1582
|
removeParticipants(groupId: string, participants: string[]): Promise<ResponseSuccess>;
|
|
1491
1583
|
updateGroupSettings(groupId: string, params: UpdateGroupSettingsRequest): Promise<GroupSettingsResponse>;
|
|
1492
1584
|
}
|
|
@@ -1573,6 +1665,7 @@ type MessageTemplateObject<T extends ComponentTypesEnum> = {
|
|
|
1573
1665
|
language: LanguageObject;
|
|
1574
1666
|
components?: (ComponentObject<T> | ButtonComponentObject)[];
|
|
1575
1667
|
};
|
|
1668
|
+
type MessageTemplateRequestBody<T extends ComponentTypesEnum> = MessageRequestBody<MessageTypesEnum.Template> & MessageTemplateObject<T>;
|
|
1576
1669
|
//#endregion
|
|
1577
1670
|
//#region src/api/messages/types/media.d.ts
|
|
1578
1671
|
type MetaMediaObject = {
|
|
@@ -1963,6 +2056,14 @@ type MessagesResponse = GeneralMessageBody & {
|
|
|
1963
2056
|
message_status?: 'accepted' | 'held_for_quality_assessment' | 'paused';
|
|
1964
2057
|
}>;
|
|
1965
2058
|
};
|
|
2059
|
+
type EncryptedMessageRequest = GeneralMessageBody & {
|
|
2060
|
+
to: string;
|
|
2061
|
+
type?: string;
|
|
2062
|
+
encrypted?: Record<string, unknown>;
|
|
2063
|
+
jwe?: string;
|
|
2064
|
+
[key: string]: unknown;
|
|
2065
|
+
};
|
|
2066
|
+
type EncryptedMessagesResponse = MessagesResponse;
|
|
1966
2067
|
declare class MessagesClass extends BaseClass {
|
|
1967
2068
|
text(params: TextMessageParams): Promise<MessagesResponse>;
|
|
1968
2069
|
template(params: MessageRequestParams<MessageTemplateObject<ComponentTypesEnum>>): Promise<MessagesResponse>;
|
|
@@ -1996,6 +2097,7 @@ declare class MessagesClass extends BaseClass {
|
|
|
1996
2097
|
type: InteractiveTypesEnum.Carousel;
|
|
1997
2098
|
}>): Promise<MessagesResponse>;
|
|
1998
2099
|
reaction(params: ReactionParams): Promise<MessagesResponse>;
|
|
2100
|
+
encrypted(params: EncryptedMessageRequest): Promise<EncryptedMessagesResponse>;
|
|
1999
2101
|
markAsRead(params: {
|
|
2000
2102
|
messageId: string;
|
|
2001
2103
|
}): Promise<StatusResponse>;
|
|
@@ -2119,7 +2221,7 @@ interface PaymentsClass {
|
|
|
2119
2221
|
type QualityRating = 'GREEN' | 'YELLOW' | 'RED' | 'NA' | 'UNKNOWN';
|
|
2120
2222
|
type AccountMode = 'LIVE' | 'SANDBOX';
|
|
2121
2223
|
type CodeVerificationStatus = 'NOT_VERIFIED' | 'VERIFIED' | 'EXPIRED' | 'PENDING' | 'DELETED' | 'MIGRATED' | 'BANNED' | 'RESTRICTED' | 'RATE_LIMITED' | 'FLAGGED' | 'CONNECTED' | 'DISCONNECTED' | 'UNKNOWN' | 'UNVERIFIED';
|
|
2122
|
-
type MessagingLimitTier = 'TIER_50' | 'TIER_250' | 'TIER_1K' | 'TIER_10K' | 'TIER_100K' | 'TIER_UNLIMITED';
|
|
2224
|
+
type MessagingLimitTier = 'TIER_50' | 'TIER_250' | 'TIER_1K' | 'TIER_2K' | 'TIER_10K' | 'TIER_100K' | 'TIER_UNLIMITED' | (string & {});
|
|
2123
2225
|
type PlatformType = 'CLOUD_API' | 'ON_PREMISE' | 'NOT_APPLICABLE';
|
|
2124
2226
|
type ThroughputLevel = 'STANDARD' | 'HIGH' | 'NOT_APPLICABLE';
|
|
2125
2227
|
type PhoneNumberStatus = 'PENDING' | 'LINKED' | 'UNLINKED' | 'DELETED' | 'MIGRATED' | 'BANNED' | 'RESTRICTED';
|
|
@@ -2158,6 +2260,61 @@ type PhoneNumbersListParams = {
|
|
|
2158
2260
|
after?: string;
|
|
2159
2261
|
before?: string;
|
|
2160
2262
|
};
|
|
2263
|
+
type GraphObject = Record<string, unknown>;
|
|
2264
|
+
type CreatePhoneNumberRequest = {
|
|
2265
|
+
cc?: string;
|
|
2266
|
+
phone_number?: string;
|
|
2267
|
+
verified_name?: string;
|
|
2268
|
+
preverified_id?: string;
|
|
2269
|
+
[key: string]: unknown;
|
|
2270
|
+
};
|
|
2271
|
+
type CreatePhoneNumberResponse = {
|
|
2272
|
+
id: string;
|
|
2273
|
+
[key: string]: unknown;
|
|
2274
|
+
};
|
|
2275
|
+
type UpdatePhoneNumberStatusRequest = {
|
|
2276
|
+
status?: string;
|
|
2277
|
+
account_mode?: AccountMode;
|
|
2278
|
+
[key: string]: unknown;
|
|
2279
|
+
};
|
|
2280
|
+
type PhoneNumberSettingsFieldsParam = string[] | string;
|
|
2281
|
+
type PhoneNumberSettingsParams = {
|
|
2282
|
+
fields?: PhoneNumberSettingsFieldsParam;
|
|
2283
|
+
include_sip_credentials?: boolean;
|
|
2284
|
+
};
|
|
2285
|
+
type PhoneNumberSettingsResponse = GraphObject;
|
|
2286
|
+
type UpdatePhoneNumberSettingsRequest = {
|
|
2287
|
+
calling?: GraphObject;
|
|
2288
|
+
[key: string]: unknown;
|
|
2289
|
+
};
|
|
2290
|
+
type OfficialBusinessAccountStatusResponse = GraphObject;
|
|
2291
|
+
type OfficialBusinessAccountAction = 'SUBMIT_APPLICATION' | 'WITHDRAW_APPLICATION' | 'RESUBMIT_APPLICATION';
|
|
2292
|
+
type OfficialBusinessAccountApplicationData = {
|
|
2293
|
+
business_name?: string;
|
|
2294
|
+
business_description?: string;
|
|
2295
|
+
/**
|
|
2296
|
+
* OBA examples use `website_url`, while the schema also exposes `business_website_url`.
|
|
2297
|
+
* Both are accepted to track Meta's published OpenAPI variants.
|
|
2298
|
+
*/
|
|
2299
|
+
website_url?: string;
|
|
2300
|
+
business_website_url?: string;
|
|
2301
|
+
contact_email?: string;
|
|
2302
|
+
primary_country_of_operation?: string;
|
|
2303
|
+
primary_language?: string;
|
|
2304
|
+
parent_business_or_brand?: string;
|
|
2305
|
+
[key: string]: unknown;
|
|
2306
|
+
};
|
|
2307
|
+
type UpdateOfficialBusinessAccountStatusRequest = {
|
|
2308
|
+
action?: OfficialBusinessAccountAction | (string & {});
|
|
2309
|
+
application_data?: OfficialBusinessAccountApplicationData;
|
|
2310
|
+
business_website_url?: string;
|
|
2311
|
+
primary_country_of_operation?: string;
|
|
2312
|
+
[key: string]: unknown;
|
|
2313
|
+
};
|
|
2314
|
+
type BusinessComplianceInfoResponse = GraphObject;
|
|
2315
|
+
type UpdateBusinessComplianceInfoRequest = {
|
|
2316
|
+
[key: string]: unknown;
|
|
2317
|
+
};
|
|
2161
2318
|
type PhoneNumberResponse = {
|
|
2162
2319
|
display_phone_number: string;
|
|
2163
2320
|
id: string;
|
|
@@ -2245,11 +2402,19 @@ type ThroughputResponse = {
|
|
|
2245
2402
|
interface PhoneNumberClass {
|
|
2246
2403
|
getPhoneNumberById(fields?: PhoneNumberFieldsParam): Promise<PhoneNumberResponse>;
|
|
2247
2404
|
getPhoneNumbers(params?: PhoneNumbersListParams): Promise<PhoneNumbersResponse>;
|
|
2405
|
+
createPhoneNumber(request: CreatePhoneNumberRequest, wabaId?: string): Promise<CreatePhoneNumberResponse>;
|
|
2406
|
+
updatePhoneNumberStatus(request: UpdatePhoneNumberStatusRequest): Promise<ResponseSuccess>;
|
|
2248
2407
|
requestVerificationCode(params: RequestVerificationCodeRequest): Promise<ResponseSuccess>;
|
|
2249
2408
|
verifyCode(params: VerifyCodeRequest): Promise<ResponseSuccess>;
|
|
2409
|
+
getPhoneNumberSettings(params?: PhoneNumberSettingsParams): Promise<PhoneNumberSettingsResponse>;
|
|
2410
|
+
updatePhoneNumberSettings(params: UpdatePhoneNumberSettingsRequest): Promise<ResponseSuccess>;
|
|
2250
2411
|
setConversationalAutomation(params: ConversationalAutomationRequest): Promise<ResponseSuccess>;
|
|
2251
2412
|
getConversationalAutomation(): Promise<ConversationalAutomationResponse>;
|
|
2252
2413
|
getThroughput(): Promise<ThroughputResponse>;
|
|
2414
|
+
getOfficialBusinessAccountStatus(): Promise<OfficialBusinessAccountStatusResponse>;
|
|
2415
|
+
updateOfficialBusinessAccountStatus(params: UpdateOfficialBusinessAccountStatusRequest): Promise<ResponseSuccess>;
|
|
2416
|
+
getBusinessComplianceInfo(): Promise<BusinessComplianceInfoResponse>;
|
|
2417
|
+
updateBusinessComplianceInfo(params: UpdateBusinessComplianceInfoRequest): Promise<ResponseSuccess>;
|
|
2253
2418
|
}
|
|
2254
2419
|
//#endregion
|
|
2255
2420
|
//#region src/api/profile/types/upload.d.ts
|
|
@@ -2969,14 +3134,72 @@ type WabaAccountFields = 'id' | 'name' | 'timezone_id' | 'account_review_status'
|
|
|
2969
3134
|
* Parameter type for specifying which WABA account fields to retrieve
|
|
2970
3135
|
*/
|
|
2971
3136
|
type WabaAccountFieldsParam = WabaAccountFields[];
|
|
3137
|
+
type WabaGraphObject = Record<string, unknown>;
|
|
3138
|
+
type WabaFieldsParam = string[] | string;
|
|
3139
|
+
type WabaListParams = {
|
|
3140
|
+
fields?: WabaFieldsParam;
|
|
3141
|
+
filtering?: WabaGraphObject[] | string;
|
|
3142
|
+
sort?: string;
|
|
3143
|
+
limit?: number;
|
|
3144
|
+
after?: string;
|
|
3145
|
+
before?: string;
|
|
3146
|
+
};
|
|
3147
|
+
type WabaListResponse<T = WabaGraphObject> = {
|
|
3148
|
+
data: T[];
|
|
3149
|
+
paging?: Paging;
|
|
3150
|
+
summary?: WabaGraphObject;
|
|
3151
|
+
};
|
|
3152
|
+
type UpdateWabaAccountRequest = {
|
|
3153
|
+
name?: string;
|
|
3154
|
+
timezone_id?: string;
|
|
3155
|
+
[key: string]: unknown;
|
|
3156
|
+
};
|
|
3157
|
+
type AssignedUserRequest = {
|
|
3158
|
+
user: string;
|
|
3159
|
+
tasks?: string[];
|
|
3160
|
+
[key: string]: unknown;
|
|
3161
|
+
};
|
|
3162
|
+
type RemoveAssignedUserRequest = {
|
|
3163
|
+
user: string;
|
|
3164
|
+
[key: string]: unknown;
|
|
3165
|
+
};
|
|
3166
|
+
type CreateOBOMobilityIntentRequest = {
|
|
3167
|
+
intent?: string;
|
|
3168
|
+
[key: string]: unknown;
|
|
3169
|
+
};
|
|
3170
|
+
type SetOBOMobilityIntentRequest = {
|
|
3171
|
+
[key: string]: unknown;
|
|
3172
|
+
};
|
|
3173
|
+
type CreateScheduleRequest = {
|
|
3174
|
+
name?: string;
|
|
3175
|
+
schedule_type?: string;
|
|
3176
|
+
[key: string]: unknown;
|
|
3177
|
+
};
|
|
3178
|
+
type UpdateWhatsAppBusinessProfileRequest = {
|
|
3179
|
+
[key: string]: unknown;
|
|
3180
|
+
};
|
|
2972
3181
|
/**
|
|
2973
3182
|
* Interface defining all WABA API methods
|
|
2974
3183
|
*/
|
|
2975
3184
|
interface WABAClass {
|
|
2976
3185
|
getWabaAccount(fields?: WabaAccountFieldsParam): Promise<WabaAccount>;
|
|
3186
|
+
updateWabaAccount(params: UpdateWabaAccountRequest): Promise<ResponseSuccess>;
|
|
3187
|
+
getWabaActivities(params?: WabaListParams): Promise<WabaListResponse>;
|
|
2977
3188
|
getAllWabaSubscriptions(): Promise<WabaSubscriptions>;
|
|
2978
3189
|
updateWabaSubscription(params: UpdateWabaSubscription): Promise<ResponseSuccess>;
|
|
2979
3190
|
unsubscribeFromWaba(): Promise<ResponseSuccess>;
|
|
3191
|
+
getAssignedUsers(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
|
|
3192
|
+
addAssignedUser(params: AssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
|
|
3193
|
+
removeAssignedUser(params: RemoveAssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
|
|
3194
|
+
getInProgressOnBehalfRequests(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
|
|
3195
|
+
getOBOMobilityIntent(oboMobilityIntentId: string, fields?: WabaFieldsParam): Promise<WabaGraphObject>;
|
|
3196
|
+
createOBOMobilityIntent(params: CreateOBOMobilityIntentRequest, wabaId?: string): Promise<WabaGraphObject>;
|
|
3197
|
+
setOBOMobilityIntent(params: SetOBOMobilityIntentRequest, wabaId?: string): Promise<WabaGraphObject>;
|
|
3198
|
+
getWabaSchedules(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
|
|
3199
|
+
createWabaSchedule(params: CreateScheduleRequest, wabaId?: string): Promise<WabaGraphObject>;
|
|
3200
|
+
getWhatsAppBusinessBotDetails(botId: string, fields?: WabaFieldsParam): Promise<WabaGraphObject>;
|
|
3201
|
+
getWhatsAppBusinessProfileDetails(profileId: string, fields?: WabaFieldsParam): Promise<WabaGraphObject>;
|
|
3202
|
+
updateWhatsAppBusinessProfile(profileId: string, params: UpdateWhatsAppBusinessProfileRequest): Promise<ResponseSuccess>;
|
|
2980
3203
|
}
|
|
2981
3204
|
//#endregion
|
|
2982
3205
|
//#region src/core/webhook/types/account.d.ts
|
|
@@ -5744,6 +5967,14 @@ declare class GroupsApi extends BaseAPI implements GroupsClass {
|
|
|
5744
5967
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/reference/
|
|
5745
5968
|
*/
|
|
5746
5969
|
getGroupInviteLink(groupId: string): Promise<GroupInviteLinkResponse>;
|
|
5970
|
+
/**
|
|
5971
|
+
* Create a group invite link.
|
|
5972
|
+
*
|
|
5973
|
+
* @param groupId - The ID of the group.
|
|
5974
|
+
* @returns The group invite link.
|
|
5975
|
+
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/reference/
|
|
5976
|
+
*/
|
|
5977
|
+
createGroupInviteLink(groupId: string): Promise<GroupInviteLinkResponse>;
|
|
5747
5978
|
/**
|
|
5748
5979
|
* Reset and regenerate the invite link for a group, invalidating the previous link.
|
|
5749
5980
|
*
|
|
@@ -5752,6 +5983,14 @@ declare class GroupsApi extends BaseAPI implements GroupsClass {
|
|
|
5752
5983
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/reference/
|
|
5753
5984
|
*/
|
|
5754
5985
|
resetGroupInviteLink(groupId: string): Promise<GroupInviteLinkResponse>;
|
|
5986
|
+
/**
|
|
5987
|
+
* Delete the current invite link for a group.
|
|
5988
|
+
*
|
|
5989
|
+
* @param groupId - The ID of the group.
|
|
5990
|
+
* @returns A success response confirming deletion.
|
|
5991
|
+
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/reference/
|
|
5992
|
+
*/
|
|
5993
|
+
deleteGroupInviteLink(groupId: string): Promise<ResponseSuccess>;
|
|
5755
5994
|
/**
|
|
5756
5995
|
* Get pending join requests for a group.
|
|
5757
5996
|
*
|
|
@@ -5778,6 +6017,15 @@ declare class GroupsApi extends BaseAPI implements GroupsClass {
|
|
|
5778
6017
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/reference/
|
|
5779
6018
|
*/
|
|
5780
6019
|
rejectJoinRequests(groupId: string, joinRequestIds: string[]): Promise<GroupJoinRequestsActionResponse>;
|
|
6020
|
+
/**
|
|
6021
|
+
* Add one or more participants to a group.
|
|
6022
|
+
*
|
|
6023
|
+
* @param groupId - The ID of the group.
|
|
6024
|
+
* @param participants - Array of user WhatsApp IDs to add to the group.
|
|
6025
|
+
* @returns A success response confirming the addition.
|
|
6026
|
+
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/reference/
|
|
6027
|
+
*/
|
|
6028
|
+
addParticipants(groupId: string, participants: string[]): Promise<ResponseSuccess>;
|
|
5781
6029
|
/**
|
|
5782
6030
|
* Remove one or more participants from a group.
|
|
5783
6031
|
*
|
|
@@ -5957,6 +6205,38 @@ declare class MediaApi extends BaseAPI implements MediaClass {
|
|
|
5957
6205
|
downloadMedia(mediaUrl: string): Promise<Blob>;
|
|
5958
6206
|
}
|
|
5959
6207
|
//#endregion
|
|
6208
|
+
//#region src/api/messageHistory/types/common.d.ts
|
|
6209
|
+
type MessageHistoryFieldsParam = string[] | string;
|
|
6210
|
+
type MessageHistoryListParams = {
|
|
6211
|
+
fields?: MessageHistoryFieldsParam;
|
|
6212
|
+
message_id?: string;
|
|
6213
|
+
start_time?: string | number;
|
|
6214
|
+
end_time?: string | number;
|
|
6215
|
+
limit?: number;
|
|
6216
|
+
after?: string;
|
|
6217
|
+
before?: string;
|
|
6218
|
+
};
|
|
6219
|
+
type MessageHistoryEventListParams = MessageHistoryListParams & {
|
|
6220
|
+
delivery_status?: string;
|
|
6221
|
+
};
|
|
6222
|
+
type MessageHistoryItem = Record<string, unknown>;
|
|
6223
|
+
type MessageHistoryResponse<T = MessageHistoryItem> = {
|
|
6224
|
+
data: T[];
|
|
6225
|
+
paging?: Paging;
|
|
6226
|
+
summary?: Record<string, unknown>;
|
|
6227
|
+
};
|
|
6228
|
+
interface MessageHistoryClass {
|
|
6229
|
+
getMessageHistory(params?: MessageHistoryListParams): Promise<MessageHistoryResponse>;
|
|
6230
|
+
getMessageHistoryEvents(messageHistoryId: string, params?: MessageHistoryEventListParams): Promise<MessageHistoryResponse>;
|
|
6231
|
+
}
|
|
6232
|
+
//#endregion
|
|
6233
|
+
//#region src/api/messageHistory/MessageHistoryApi.d.ts
|
|
6234
|
+
declare class MessageHistoryApi extends BaseAPI implements MessageHistoryClass {
|
|
6235
|
+
private toQuery;
|
|
6236
|
+
getMessageHistory(params?: MessageHistoryListParams): Promise<MessageHistoryResponse>;
|
|
6237
|
+
getMessageHistoryEvents(messageHistoryId: string, params?: MessageHistoryEventListParams): Promise<MessageHistoryResponse>;
|
|
6238
|
+
}
|
|
6239
|
+
//#endregion
|
|
5960
6240
|
//#region src/api/messages/MessageApi.d.ts
|
|
5961
6241
|
/**
|
|
5962
6242
|
* Maps each message type to its appropriate payload type.
|
|
@@ -6052,6 +6332,7 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6052
6332
|
* @see {@link https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages | Messages API Reference}
|
|
6053
6333
|
*/
|
|
6054
6334
|
private send;
|
|
6335
|
+
private sendEncrypted;
|
|
6055
6336
|
/**
|
|
6056
6337
|
* Sends an audio message via the WhatsApp Cloud API.
|
|
6057
6338
|
*
|
|
@@ -6640,6 +6921,13 @@ declare class MessagesApi extends BaseAPI implements MessagesClass {
|
|
|
6640
6921
|
* ```
|
|
6641
6922
|
*/
|
|
6642
6923
|
reaction(params: ReactionParams): Promise<MessagesResponse>;
|
|
6924
|
+
/**
|
|
6925
|
+
* Send a message through the encrypted messages endpoint.
|
|
6926
|
+
*
|
|
6927
|
+
* The encrypted endpoint payload varies by encryption setup, so this method accepts
|
|
6928
|
+
* the Graph API payload shape directly while preserving the endpoint and response type.
|
|
6929
|
+
*/
|
|
6930
|
+
encrypted(params: EncryptedMessageRequest): Promise<EncryptedMessagesResponse>;
|
|
6643
6931
|
}
|
|
6644
6932
|
//#endregion
|
|
6645
6933
|
//#region src/api/payments/PaymentsApi.d.ts
|
|
@@ -6788,6 +7076,17 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
|
|
|
6788
7076
|
* ```
|
|
6789
7077
|
*/
|
|
6790
7078
|
getPhoneNumbers(params?: PhoneNumbersListParams): Promise<PhoneNumbersResponse>;
|
|
7079
|
+
/**
|
|
7080
|
+
* Create a phone number under a WABA.
|
|
7081
|
+
*
|
|
7082
|
+
* @param request - Phone number creation payload from the Graph API.
|
|
7083
|
+
* @param wabaId - Optional WABA ID. Defaults to the configured business account ID.
|
|
7084
|
+
*/
|
|
7085
|
+
createPhoneNumber(request: CreatePhoneNumberRequest, wabaId?: string): Promise<CreatePhoneNumberResponse>;
|
|
7086
|
+
/**
|
|
7087
|
+
* Update phone number status or configuration on the phone number node.
|
|
7088
|
+
*/
|
|
7089
|
+
updatePhoneNumberStatus(request: UpdatePhoneNumberStatusRequest): Promise<ResponseSuccess>;
|
|
6791
7090
|
/**
|
|
6792
7091
|
* Request a verification code for the phone number.
|
|
6793
7092
|
*
|
|
@@ -6830,6 +7129,16 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
|
|
|
6830
7129
|
* ```
|
|
6831
7130
|
*/
|
|
6832
7131
|
verifyCode(request: VerifyCodeRequest): Promise<ResponseSuccess>;
|
|
7132
|
+
/**
|
|
7133
|
+
* Get general phone number settings.
|
|
7134
|
+
*
|
|
7135
|
+
* Calling-specific settings can also be accessed through `calling.getCallingSettings()`.
|
|
7136
|
+
*/
|
|
7137
|
+
getPhoneNumberSettings(params?: PhoneNumberSettingsParams): Promise<PhoneNumberSettingsResponse>;
|
|
7138
|
+
/**
|
|
7139
|
+
* Update general phone number settings.
|
|
7140
|
+
*/
|
|
7141
|
+
updatePhoneNumberSettings(params: UpdatePhoneNumberSettingsRequest): Promise<ResponseSuccess>;
|
|
6833
7142
|
/**
|
|
6834
7143
|
* Configure conversational automation features for the phone number.
|
|
6835
7144
|
*
|
|
@@ -6906,6 +7215,10 @@ declare class PhoneNumberApi extends BaseAPI implements PhoneNumberClass {
|
|
|
6906
7215
|
* ```
|
|
6907
7216
|
*/
|
|
6908
7217
|
getThroughput(): Promise<ThroughputResponse>;
|
|
7218
|
+
getOfficialBusinessAccountStatus(): Promise<OfficialBusinessAccountStatusResponse>;
|
|
7219
|
+
updateOfficialBusinessAccountStatus(params: UpdateOfficialBusinessAccountStatusRequest): Promise<ResponseSuccess>;
|
|
7220
|
+
getBusinessComplianceInfo(): Promise<BusinessComplianceInfoResponse>;
|
|
7221
|
+
updateBusinessComplianceInfo(params: UpdateBusinessComplianceInfoRequest): Promise<ResponseSuccess>;
|
|
6909
7222
|
}
|
|
6910
7223
|
//#endregion
|
|
6911
7224
|
//#region src/api/profile/BusinessProfileApi.d.ts
|
|
@@ -7194,6 +7507,79 @@ declare class RegistrationApi extends BaseAPI implements RegistrationClass {
|
|
|
7194
7507
|
deregister(): Promise<ResponseSuccess>;
|
|
7195
7508
|
}
|
|
7196
7509
|
//#endregion
|
|
7510
|
+
//#region src/api/solutions/types/common.d.ts
|
|
7511
|
+
type SolutionGraphObject = Record<string, unknown>;
|
|
7512
|
+
type SolutionFieldsParam = string[] | string;
|
|
7513
|
+
type SolutionListParams = {
|
|
7514
|
+
fields?: SolutionFieldsParam;
|
|
7515
|
+
role?: 'OWNER' | 'PARTNER' | string;
|
|
7516
|
+
status?: string;
|
|
7517
|
+
limit?: number;
|
|
7518
|
+
after?: string;
|
|
7519
|
+
before?: string;
|
|
7520
|
+
};
|
|
7521
|
+
type SolutionListResponse<T = SolutionGraphObject> = {
|
|
7522
|
+
data: T[];
|
|
7523
|
+
paging?: Paging;
|
|
7524
|
+
summary?: SolutionGraphObject;
|
|
7525
|
+
};
|
|
7526
|
+
type CreateWhatsAppBusinessSolutionRequest = {
|
|
7527
|
+
partner_app_id?: string;
|
|
7528
|
+
partner_business_id?: string;
|
|
7529
|
+
[key: string]: unknown;
|
|
7530
|
+
};
|
|
7531
|
+
type AcceptSolutionRequest = {
|
|
7532
|
+
partner_app_id?: string;
|
|
7533
|
+
[key: string]: unknown;
|
|
7534
|
+
};
|
|
7535
|
+
type RejectSolutionRequest = {
|
|
7536
|
+
partner_app_id?: string;
|
|
7537
|
+
request_type?: string;
|
|
7538
|
+
reason?: string;
|
|
7539
|
+
[key: string]: unknown;
|
|
7540
|
+
};
|
|
7541
|
+
type SolutionDeactivationRequest = {
|
|
7542
|
+
reason?: string;
|
|
7543
|
+
[key: string]: unknown;
|
|
7544
|
+
};
|
|
7545
|
+
type SetSolutionMigrationIntentRequest = {
|
|
7546
|
+
solution_id?: string;
|
|
7547
|
+
intent?: string;
|
|
7548
|
+
[key: string]: unknown;
|
|
7549
|
+
};
|
|
7550
|
+
interface SolutionsClass {
|
|
7551
|
+
createWhatsAppBusinessSolution(applicationId: string, request: CreateWhatsAppBusinessSolutionRequest): Promise<SolutionGraphObject>;
|
|
7552
|
+
getApplicationWhatsAppBusinessSolutions(applicationId: string, params?: SolutionListParams): Promise<SolutionListResponse>;
|
|
7553
|
+
getSolutionAccessToken(solutionId: string, fields?: SolutionFieldsParam): Promise<SolutionGraphObject>;
|
|
7554
|
+
acceptSolutionDeactivationRequest(solutionId: string, request?: SolutionDeactivationRequest): Promise<ResponseSuccess>;
|
|
7555
|
+
acceptSolution(solutionId: string, request?: AcceptSolutionRequest): Promise<ResponseSuccess>;
|
|
7556
|
+
getSolutionDetails(solutionId: string, fields?: SolutionFieldsParam): Promise<SolutionGraphObject>;
|
|
7557
|
+
rejectSolutionDeactivationRequest(solutionId: string, request?: SolutionDeactivationRequest): Promise<ResponseSuccess>;
|
|
7558
|
+
rejectSolutionRequest(solutionId: string, request?: RejectSolutionRequest): Promise<ResponseSuccess>;
|
|
7559
|
+
sendSolutionDeactivationRequest(solutionId: string, request?: SolutionDeactivationRequest): Promise<ResponseSuccess>;
|
|
7560
|
+
getMigrationIntentDetails(migrationIntentId: string, fields?: SolutionFieldsParam): Promise<SolutionGraphObject>;
|
|
7561
|
+
listWabaSolutions(wabaId?: string, params?: SolutionListParams): Promise<SolutionListResponse>;
|
|
7562
|
+
setSolutionMigrationIntent(wabaId: string, request: SetSolutionMigrationIntentRequest): Promise<SolutionGraphObject>;
|
|
7563
|
+
}
|
|
7564
|
+
//#endregion
|
|
7565
|
+
//#region src/api/solutions/SolutionsApi.d.ts
|
|
7566
|
+
declare class SolutionsApi extends BaseAPI implements SolutionsClass {
|
|
7567
|
+
private toQuery;
|
|
7568
|
+
private fieldsQuery;
|
|
7569
|
+
createWhatsAppBusinessSolution(applicationId: string, request: CreateWhatsAppBusinessSolutionRequest): Promise<SolutionGraphObject>;
|
|
7570
|
+
getApplicationWhatsAppBusinessSolutions(applicationId: string, params?: SolutionListParams): Promise<SolutionListResponse>;
|
|
7571
|
+
getSolutionAccessToken(solutionId: string, fields?: SolutionFieldsParam): Promise<SolutionGraphObject>;
|
|
7572
|
+
acceptSolutionDeactivationRequest(solutionId: string, request?: SolutionDeactivationRequest): Promise<ResponseSuccess>;
|
|
7573
|
+
acceptSolution(solutionId: string, request?: AcceptSolutionRequest): Promise<ResponseSuccess>;
|
|
7574
|
+
getSolutionDetails(solutionId: string, fields?: SolutionFieldsParam): Promise<SolutionGraphObject>;
|
|
7575
|
+
rejectSolutionDeactivationRequest(solutionId: string, request?: SolutionDeactivationRequest): Promise<ResponseSuccess>;
|
|
7576
|
+
rejectSolutionRequest(solutionId: string, request?: RejectSolutionRequest): Promise<ResponseSuccess>;
|
|
7577
|
+
sendSolutionDeactivationRequest(solutionId: string, request?: SolutionDeactivationRequest): Promise<ResponseSuccess>;
|
|
7578
|
+
getMigrationIntentDetails(migrationIntentId: string, fields?: SolutionFieldsParam): Promise<SolutionGraphObject>;
|
|
7579
|
+
listWabaSolutions(wabaId?: string, params?: SolutionListParams): Promise<SolutionListResponse>;
|
|
7580
|
+
setSolutionMigrationIntent(wabaId: string, request: SetSolutionMigrationIntentRequest): Promise<SolutionGraphObject>;
|
|
7581
|
+
}
|
|
7582
|
+
//#endregion
|
|
7197
7583
|
//#region src/api/template/factories/index.d.ts
|
|
7198
7584
|
declare function createTemplate(options: TemplateOptions): TemplateRequestBody;
|
|
7199
7585
|
declare function createOTPTemplate(options: OTPTemplateOptions): TemplateRequestBody;
|
|
@@ -7428,6 +7814,8 @@ declare class TwoStepVerificationApi extends BaseAPI implements TwoStepVerificat
|
|
|
7428
7814
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/whatsapp-business-accounts/
|
|
7429
7815
|
*/
|
|
7430
7816
|
declare class WabaApi extends BaseAPI implements WABAClass {
|
|
7817
|
+
private toQuery;
|
|
7818
|
+
private fieldsQuery;
|
|
7431
7819
|
/**
|
|
7432
7820
|
* Retrieve WhatsApp Business Account information.
|
|
7433
7821
|
*
|
|
@@ -7439,6 +7827,14 @@ declare class WabaApi extends BaseAPI implements WABAClass {
|
|
|
7439
7827
|
* const account = await whatsappClient.waba.getWabaAccount(['id', 'name', 'status']);
|
|
7440
7828
|
*/
|
|
7441
7829
|
getWabaAccount(fields?: WabaAccountFieldsParam): Promise<WabaAccount>;
|
|
7830
|
+
/**
|
|
7831
|
+
* Update WABA account fields such as name or timezone.
|
|
7832
|
+
*/
|
|
7833
|
+
updateWabaAccount(params: UpdateWabaAccountRequest): Promise<ResponseSuccess>;
|
|
7834
|
+
/**
|
|
7835
|
+
* Get account activity events for a WABA.
|
|
7836
|
+
*/
|
|
7837
|
+
getWabaActivities(params?: WabaListParams): Promise<WabaListResponse>;
|
|
7442
7838
|
/**
|
|
7443
7839
|
* Get all WABA subscriptions for the business account.
|
|
7444
7840
|
*
|
|
@@ -7476,6 +7872,18 @@ declare class WabaApi extends BaseAPI implements WABAClass {
|
|
|
7476
7872
|
* await whatsappClient.waba.unsubscribeFromWaba();
|
|
7477
7873
|
*/
|
|
7478
7874
|
unsubscribeFromWaba(): Promise<ResponseSuccess>;
|
|
7875
|
+
getAssignedUsers(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
|
|
7876
|
+
addAssignedUser(params: AssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
|
|
7877
|
+
removeAssignedUser(params: RemoveAssignedUserRequest, wabaId?: string): Promise<ResponseSuccess>;
|
|
7878
|
+
getInProgressOnBehalfRequests(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
|
|
7879
|
+
getOBOMobilityIntent(oboMobilityIntentId: string, fields?: WabaFieldsParam): Promise<WabaGraphObject>;
|
|
7880
|
+
createOBOMobilityIntent(params: CreateOBOMobilityIntentRequest, wabaId?: string): Promise<WabaGraphObject>;
|
|
7881
|
+
setOBOMobilityIntent(params: SetOBOMobilityIntentRequest, wabaId?: string): Promise<WabaGraphObject>;
|
|
7882
|
+
getWabaSchedules(params?: WabaListParams, wabaId?: string): Promise<WabaListResponse>;
|
|
7883
|
+
createWabaSchedule(params: CreateScheduleRequest, wabaId?: string): Promise<WabaGraphObject>;
|
|
7884
|
+
getWhatsAppBusinessBotDetails(botId: string, fields?: WabaFieldsParam): Promise<WabaGraphObject>;
|
|
7885
|
+
getWhatsAppBusinessProfileDetails(profileId: string, fields?: WabaFieldsParam): Promise<WabaGraphObject>;
|
|
7886
|
+
updateWhatsAppBusinessProfile(profileId: string, params: UpdateWhatsAppBusinessProfileRequest): Promise<ResponseSuccess>;
|
|
7479
7887
|
}
|
|
7480
7888
|
//#endregion
|
|
7481
7889
|
//#region src/utils/flowEncryptionUtils.d.ts
|
|
@@ -7563,12 +7971,14 @@ declare class Requester implements RequesterClass {
|
|
|
7563
7971
|
constructor(apiVersion: string, phoneNumberId: number, accessToken: string, businessAcctId: string, userAgent: string, retryConfig?: RetryConfig);
|
|
7564
7972
|
buildHeader(contentType: string, additionalHeaders?: Record<string, string>): HeadersInit;
|
|
7565
7973
|
buildCAPIPath(endpoint: string): string;
|
|
7974
|
+
private normalizeApiVersion;
|
|
7975
|
+
private buildRequestTarget;
|
|
7566
7976
|
sendRequest(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any, contentType?: string, additionalHeaders?: Record<string, string>): Promise<HttpsClientResponseClass>;
|
|
7567
7977
|
getJson<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
7568
7978
|
sendFormData<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: FormData, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
7569
7979
|
updateTimeout(timeout: number): void;
|
|
7570
7980
|
updateAccessToken(accessToken: string): void;
|
|
7571
|
-
sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData:
|
|
7981
|
+
sendUrlEncodedForm<T>(method: HttpMethodsEnum, endpoint: string, timeout: number, formData: UrlEncodedFormBody, additionalHeaders?: Record<string, string>): Promise<T>;
|
|
7572
7982
|
}
|
|
7573
7983
|
//#endregion
|
|
7574
7984
|
//#region src/core/whatsapp/WhatsApp.d.ts
|
|
@@ -7580,14 +7990,17 @@ declare class WhatsApp {
|
|
|
7580
7990
|
config: WabaConfigType;
|
|
7581
7991
|
requester: Readonly<Requester>;
|
|
7582
7992
|
blockUsers: BlockUsersApi;
|
|
7993
|
+
business: BusinessApi;
|
|
7583
7994
|
calling: CallingApi;
|
|
7584
7995
|
commerce: CommerceApi;
|
|
7585
7996
|
groups: GroupsApi;
|
|
7586
7997
|
marketingMessages: MarketingMessagesApi;
|
|
7998
|
+
messageHistory: MessageHistoryApi;
|
|
7587
7999
|
messages: MessagesApi;
|
|
7588
8000
|
media: MediaApi;
|
|
7589
8001
|
payments: PaymentsApi;
|
|
7590
8002
|
phoneNumbers: PhoneNumberApi;
|
|
8003
|
+
solutions: SolutionsApi;
|
|
7591
8004
|
twoStepVerification: TwoStepVerificationApi;
|
|
7592
8005
|
flows: FlowApi;
|
|
7593
8006
|
businessProfile: BusinessProfileApi;
|
|
@@ -8555,5 +8968,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
|
|
|
8555
8968
|
*/
|
|
8556
8969
|
declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
|
|
8557
8970
|
//#endregion
|
|
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 };
|
|
8971
|
+
export { AUTHORIZATION_ERROR_CODES, AcceptCallRequest, AcceptSolutionRequest, AccountMode, AddPhoneNumbersRequest, ApiPermissionErrorCode, AssignedUserRequest, AudioMediaObject, AudioMediaTypes, AudioMediaTypesEnum, AudioMediaTypesType, AudioMessage, AudioMessageHandler, AudioProcessedMessage, AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, BaseApiRequest, BaseApiResponse, BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, BodyOptions, BusinessApi, BusinessClass, BusinessComplianceInfoResponse, BusinessFieldsParam, BusinessGraphListResponse, BusinessGraphObject, BusinessListParams, BusinessProfileApi, BusinessProfileClass, BusinessProfileData, BusinessProfileField, BusinessProfileFieldsParam, BusinessProfileResponse, BusinessVerticalEnum, ButtonMessage, ButtonMessageHandler, ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, ButtonProcessedMessage, CALLING_ERROR_CODES, CallAction, CallActionResponse, CallHours, CallHoursDay, CallHoursStatus, CallIconVisibility, CallPermission, CallPermissionAction, CallPermissionLimit, CallPermissionsResponse, CallSdpType, CallSession, CallbackPermissionStatus, CallingApi, CallingClass, CallingSettings, CallingSettingsResponse, CallingStatus, CarouselCard, CarouselOptions, CatalogButton, CatalogTemplateOptions, Category, CategoryEnum, CategoryType, CodeVerificationStatus, CommerceApi, CommerceClass, CommerceSetting, CommerceSettingsResponse, ComponentType, ComponentTypeType, ComponentTypes, ComponentTypesEnum, ContactInfo, ContactObject, ContactsMessage, ContactsMessageHandler, ContactsProcessedMessage, ConversationTypes, ConversationTypesEnum, ConversationTypesType, ConversationalAutomationRequest, ConversationalAutomationResponse, ConversationalCommand, ConversationalPrompt, CopyCodeButton, CouponTemplateOptions, CreateFlowResponse, CreateOBOMobilityIntentRequest, CreatePhoneNumberRequest, CreatePhoneNumberResponse, CreateQrCodeRequest, CreateScheduleRequest, CreateUploadSessionParams, CreateWhatsAppBusinessSolutionRequest, CurrencyCodesEnum, CurrencyParameter, CursorPaginationParams, Cursors, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, DateTimeParameter, DocumentMediaObject, DocumentMediaTypes, DocumentMediaTypesEnum, DocumentMediaTypesType, DocumentMessage, DocumentMessageHandler, DocumentProcessedMessage, EncryptedMessageRequest, EncryptedMessagesResponse, EncryptionApi, EncryptionClass, EncryptionKeyPair, EncryptionPublicKeyResponse, ErrorWebhookValue, ExpressRequest, ExpressResponse, ExpressWebhookConfig, FLOW_ERROR_CODES, FailedUserInfo, Flow, FlowActionEnum, FlowApi, FlowAsset, FlowAssetsResponse, FlowButton, FlowCategoryEnum, FlowClass, FlowDataExchangeRequest, FlowDataExchangeResponse, FlowDecryptedRequestResponse, FlowEncryptedRequestPayload, FlowEndpointRequest, FlowEndpointResponse, FlowErrorNotificationRequest, FlowErrorNotificationResponse, FlowHandler, FlowHealthCheckRequest, FlowHealthCheckResponse, FlowHttpRequest, FlowMigrationFailure, FlowMigrationResponse, FlowMigrationResult, FlowPreview, FlowPreviewResponse, FlowStatusEnum, FlowSuccessScreenResponse, FlowType, FlowTypeEnum, FlowValidationError, FlowValidationErrorPointer, FlowsListResponse, FooterOptions, GROUP_ERROR_CODES, GeneralHeaderInterface, GeneralMessageBody, GeneralRequestBody, GetUploadHandleParams, GraphObject, GroupCreateRequest, GroupCreateResponse, GroupInfoField, GroupInfoFieldsParam, GroupInfoResponse, GroupInviteLinkResponse, GroupJoinApprovalMode, GroupJoinRequest, GroupJoinRequestError, GroupJoinRequestFailure, GroupJoinRequestsActionResponse, GroupJoinRequestsResponse, GroupListParams, GroupListResponse, GroupMessage, GroupParticipant, GroupParticipantInput, GroupParticipantsRequest, GroupSettingsResponse, GroupsApi, GroupsClass, HeaderOptions, HealthStatus, HealthStatusEntity, HolidaySchedule, HostPlatform, HttpMethods, HttpMethodsEnum, HttpMethodsType, HttpsClientClass, HttpsClientResponseClass, INTEGRITY_ERROR_CODES, ImageMediaObject, ImageMediaTypes, ImageMediaTypesEnum, ImageMediaTypesType, ImageMessage, ImageMessageHandler, ImageProcessedMessage, InitiateCallRequest, InitiateCallResponse, InteractiveButtonReplyMessage, InteractiveListReplyMessage, InteractiveMessage, InteractiveMessageHandler, InteractiveObject, InteractiveProcessedMessage, InteractiveReply, InteractiveTypes, InteractiveTypesEnum, InteractiveTypesType, Languages, LanguagesEnum, LanguagesType, LimitedTimeOfferOptions, LimitedTimeOfferTemplateOptions, ListBlockedUsersParams, ListBlockedUsersResponse, LocationInfo, LocationMessage, LocationMessageHandler, LocationObject, LocationParameter, LocationProcessedMessage, Logger, LoggerInterface, MPMButton, MPMTemplateOptions, MarketingMessageRequest, MarketingMessagesApi, MarketingMessagesClass, MediaApi, MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, MediaInfo, MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, MessageHandler, MessageHistoryApi, MessageHistoryClass, MessageHistoryEventListParams, MessageHistoryFieldsParam, MessageHistoryItem, MessageHistoryListParams, MessageHistoryResponse, MessageRecipientType, MessageRequestBody, MessageRequestParams, MessageStatus, MessageTemplateObject, MessageTemplateRequestBody, MessageTypes, MessageTypesEnum, MessageTypesType, MessageWebhookValue, MessagesClass, MessagesResponse, MessagingLimitTier, MetaError, MetaErrorData, MetaErrorDetail, NextFunction, NextJsAppWebhookConfig, NextJsWebhookConfig, OTPButton, OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, OrderInfo, OrderMessage, OrderMessageHandler, OrderProcessedMessage, Pagination, PaginationCursors, Paging, PagingCursors, PagingInfo, ParametersTypes, ParametersTypesEnum, ParametersTypesType, PaymentConfiguration, PaymentConfigurationCode, PaymentConfigurationCreateRequest, PaymentConfigurationCreateResponse, PaymentConfigurationDeleteRequest, PaymentConfigurationOauthLinkRequest, PaymentConfigurationOauthLinkResponse, PaymentConfigurationProvider, PaymentConfigurationStatus, PaymentConfigurationUpdateRequest, PaymentConfigurationUpdateResponse, PaymentConfigurationsResponse, PaymentsApi, PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, PreAcceptCallRequest, ProcessedMessage, ProcessedStatus, ProductCardCarouselTemplateOptions, ProductCarouselCard, ProductParameter, ProductSection, QrCodeApi, QrCodeClass, QrCodeResponse, QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, ReactionInfo, ReactionMessage, ReactionMessageHandler, ReactionParams, ReactionProcessedMessage, ReferralSourceTypes, ReferralSourceTypesEnum, ReferralSourceTypesType, RegistrationApi, RegistrationClass, RegistrationRequest, RejectCallRequest, RejectSolutionRequest, RemoveAssignedUserRequest, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, RequesterClass, RequesterResponseInterface, ResponseData, ResponseHeaderValue, ResponseHeaders, ResponseJSONBody, ResponsePagination, ResponseSuccess, SEND_MESSAGE_ERROR_CODES, SPMButton, SPMTemplateOptions, SetOBOMobilityIntentRequest, SetSolutionMigrationIntentRequest, SharePreVerifiedPhoneNumberRequest, SipServer, SipSettings, SipStatus, SolutionDeactivationRequest, SolutionFieldsParam, SolutionGraphObject, SolutionListParams, SolutionListResponse, SolutionsApi, SolutionsClass, Status, StatusEnum, StatusHandler, StatusParams, StatusResponse, StatusType, StatusWebhook, StatusWebhookValue, StickerMediaObject, StickerMediaTypes, StickerMediaTypesEnum, StickerMediaTypesType, StickerMessage, StickerMessageHandler, StickerProcessedMessage, SubType, SubTypeEnum, SubTypeType, SystemChangeTypes, SystemChangeTypesEnum, SystemChangeTypesType, SystemMessage, SystemMessageHandler, SystemProcessedMessage, THROTTLING_ERROR_CODES, TemplateApi, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, TemplateOptions, TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatus, TemplateStatusEnum, TemplateStatusType, TerminateCallRequest, TextMessage, TextMessageHandler, TextMessageParams, TextObject, TextParameter, TextProcessedMessage, Throughput, ThroughputLevel, ThroughputResponse, TwoStepVerificationApi, TwoStepVerificationClass, TwoStepVerificationParams, TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnifiedCertStatus, UnsupportedMessage, UpdateBusinessComplianceInfoRequest, UpdateBusinessProfileRequest, UpdateCallingSettingsRequest, UpdateCommerceSettingsRequest, UpdateFlowResponse, UpdateGroupSettingsRequest, UpdateOfficialBusinessAccountStatusRequest, UpdatePhoneNumberSettingsRequest, UpdatePhoneNumberStatusRequest, UpdateQrCodeRequest, UpdateWabaAccountRequest, UpdateWabaSubscription, UpdateWhatsAppBusinessProfileRequest, UploadBusinessProfileResponse, UploadHandle, UploadMediaParams, UploadMediaResponse, UploadSession, UploadSessionResponse, ValidateFlowJsonResponse, VerifyCodeRequest, VerifyPreVerifiedPhoneNumberCodeRequest, VideoMediaObject, VideoMediaTypes, VideoMediaTypesEnum, VideoMediaTypesType, VideoMessage, VideoMessageHandler, VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, WabaConfigType, WabaFieldsParam, WabaGraphObject, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaListParams, WabaListResponse, WabaSubscription, WabaSubscriptions, WebhookContact, WebhookEvent, WebhookHandlerContext, WebhookMessage, WebhookPayload, WebhookProcessor, WebhookResponse, WebhookTypes, WebhookTypesEnum, WebhookTypesType, WebhookValue, WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, WhatsAppConfig, WhatsAppError, WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, WhatsAppValidationError, buildFieldsQueryString, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, encryptFlowResponse, expressWebhookHandler, extractMessageText, formatConfigTable, generateEncryption, generateXHub256Sig, getContactsInfo, getInteractiveReply, getLocationInfo, getMediaInfo, getOrderInfo, getReactionInfo, isApiPermissionErrorCode, isAudioMessage, isAuthorizationErrorCode, isBlockUserErrorCode, isButtonMessage, isButtonReply, isCallingErrorCode, isContactsMessage, isDocumentMessage, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isImageMessage, isIntegrityErrorCode, isInteractiveMessage, isListReply, isLocationMessage, isMetaError, isNfmReply, isOrderMessage, isReactionMessage, isSendMessageErrorCode, isStickerMessage, isSystemMessage, isTextMessage, isThrottlingErrorCode, isVideoMessage, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, objectToQueryString, processFlowRequest, processWebhookMessages };
|
|
8559
8972
|
//# sourceMappingURL=index.d.mts.map
|