@distilled.cloud/whatsapp 0.0.0 → 1.0.0-rc.21

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.
Files changed (48) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +139 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +67 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +48 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +35 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +8 -0
  16. package/lib/index.lazy.js +8 -0
  17. package/lib/index.lazy.js.map +1 -0
  18. package/lib/pagination.d.ts +5 -0
  19. package/lib/pagination.d.ts.map +1 -0
  20. package/lib/pagination.js +1 -0
  21. package/lib/protocol.d.ts +19 -0
  22. package/lib/protocol.d.ts.map +1 -0
  23. package/lib/protocol.js +1 -0
  24. package/lib/retry.d.ts +53 -0
  25. package/lib/retry.d.ts.map +1 -0
  26. package/lib/retry.js +1 -0
  27. package/lib/services/index.d.ts +2 -0
  28. package/lib/services/index.d.ts.map +1 -0
  29. package/lib/services/index.js +1 -0
  30. package/lib/services/whatsapp.d.ts +4131 -0
  31. package/lib/services/whatsapp.d.ts.map +1 -0
  32. package/lib/services/whatsapp.js +160 -0
  33. package/lib/services/whatsapp.js.map +1 -0
  34. package/lib/services.lazy/index.js +3 -0
  35. package/lib/services.lazy/whatsapp.js +4 -0
  36. package/lib/traits.d.ts +7 -0
  37. package/lib/traits.d.ts.map +1 -0
  38. package/lib/traits.js +1 -0
  39. package/package.json +84 -2
  40. package/src/credentials.ts +123 -0
  41. package/src/errors.ts +62 -0
  42. package/src/index.ts +45 -0
  43. package/src/pagination.ts +73 -0
  44. package/src/protocol.ts +72 -0
  45. package/src/retry.ts +72 -0
  46. package/src/services/index.ts +2 -0
  47. package/src/services/whatsapp.ts +9925 -0
  48. package/src/traits.ts +40 -0
@@ -0,0 +1,4131 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as S from "@distilled.cloud/core/schema-lite";
3
+ import type * as Redacted from "effect/Redacted";
4
+ import { type WhatsAppOpError, type WhatsAppOpContext } from "../protocol.ts";
5
+ export type { WhatsAppOpError, WhatsAppOpContext };
6
+ declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
7
+ readonly code: any;
8
+ readonly message: any;
9
+ readonly body: any;
10
+ readonly headers: any;
11
+ }> & (new (...args: any[]) => {
12
+ "@distilled.cloud/error/categories": {
13
+ BadRequestError: true;
14
+ };
15
+ });
16
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
17
+ readonly body?: GraphAPIError | ErrorResponse | string;
18
+ }
19
+ declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
20
+ readonly code: any;
21
+ readonly message: any;
22
+ readonly body: any;
23
+ readonly headers: any;
24
+ }> & (new (...args: any[]) => {
25
+ "@distilled.cloud/error/categories": {
26
+ ConflictError: true;
27
+ };
28
+ });
29
+ export declare class Conflict extends /*@__PURE__*/ Conflict_base {
30
+ readonly body?: GraphAPIError | string;
31
+ }
32
+ declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
33
+ readonly code: any;
34
+ readonly message: any;
35
+ readonly body: any;
36
+ readonly headers: any;
37
+ }> & (new (...args: any[]) => {
38
+ "@distilled.cloud/error/categories": {
39
+ AuthError: true;
40
+ };
41
+ });
42
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
43
+ readonly body?: GraphAPIError | ErrorResponse | string;
44
+ }
45
+ declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
46
+ readonly code: any;
47
+ readonly message: any;
48
+ readonly body: any;
49
+ readonly headers: any;
50
+ }> & (new (...args: any[]) => {
51
+ "@distilled.cloud/error/categories": {
52
+ BadRequestError: true;
53
+ };
54
+ });
55
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
56
+ readonly body?: GraphAPIError | string;
57
+ }
58
+ declare const RecipientNotAllowed_base: S.TaggedErrorClass<"RecipientNotAllowed", {
59
+ readonly code: any;
60
+ readonly message: any;
61
+ readonly body: any;
62
+ readonly headers: any;
63
+ }> & (new (...args: any[]) => {
64
+ "@distilled.cloud/error/categories": {
65
+ BadRequestError: true;
66
+ };
67
+ });
68
+ /** The recipient is not in the test number's allowed list (Graph error 131030). Add it in the App Dashboard's API Setup before sending from a test number. */
69
+ export declare class RecipientNotAllowed extends /*@__PURE__*/ RecipientNotAllowed_base {
70
+ }
71
+ declare const TemplateNotFound_base: S.TaggedErrorClass<"TemplateNotFound", {
72
+ readonly code: any;
73
+ readonly message: any;
74
+ readonly body: any;
75
+ readonly headers: any;
76
+ }> & (new (...args: any[]) => {
77
+ "@distilled.cloud/error/categories": {
78
+ BadRequestError: true;
79
+ };
80
+ });
81
+ /** No approved template with this name exists in the requested language (Graph error 132001). */
82
+ export declare class TemplateNotFound extends /*@__PURE__*/ TemplateNotFound_base {
83
+ }
84
+ declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
85
+ readonly code: any;
86
+ readonly message: any;
87
+ readonly body: any;
88
+ readonly headers: any;
89
+ }> & (new (...args: any[]) => {
90
+ "@distilled.cloud/error/categories": {
91
+ BadRequestError: true;
92
+ };
93
+ });
94
+ export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
95
+ readonly body?: GraphAPIError | string;
96
+ }
97
+ export interface AcceptWhatsAppBusinessSolutionRequest {
98
+ /** ID of the Multi-Partner Solution to accept. This ID is provided in the original invitation and can be found in partner notifications or solution management interfaces. */
99
+ Solution_ID: string;
100
+ /** ID of the partner application accepting the solution invitation. This must match the app ID that received the original invitation. */
101
+ partner_app_id: string;
102
+ /** Optional session identifier for logging and debugging purposes. Used to track the acceptance flow across multiple API calls. */
103
+ log_session_id?: string | undefined;
104
+ }
105
+ /** Current status of the partner's participation in the Multi-Partner Solution */
106
+ export type WhatsAppBusinessSolutionPartnerStatus = "DRAFT" | "INITIATED" | "NOTIFICATION_SENT" | "ACCEPTED" | "REJECTED" | "DEACTIVATED";
107
+ /** Successful response confirming solution acceptance */
108
+ export interface WhatsAppBusinessSolutionAcceptResponse {
109
+ /** ID of the Multi-Partner Solution that was accepted */
110
+ solution_id: string;
111
+ partner_status: WhatsAppBusinessSolutionPartnerStatus;
112
+ /** Indicates whether the acceptance was successful */
113
+ success: boolean;
114
+ /** Human-readable confirmation message */
115
+ message?: string | undefined;
116
+ /** Timestamp when the acceptance was processed */
117
+ update_time?: string | undefined;
118
+ }
119
+ export interface AcceptWhatsAppBusinessSolutionDeactivationRequestRequest {
120
+ /** Unique identifier for the WhatsApp Business Solution */
121
+ Solution_ID: string;
122
+ /** Comma-separated list of fields to return in the response. **Available Fields:** id, name, status, status_for_pending_request, owner_permissions **Default Fields:** name, status, status_for_pending_request */
123
+ fields?: string | undefined;
124
+ }
125
+ /** Current effective status of the Multi-Partner Solution */
126
+ export type WhatsAppBusinessSolutionStatus = "DRAFT" | "INITIATED" | "ACTIVE" | "REJECTED" | "DEACTIVATED";
127
+ /** Status of any pending solution status transition requests */
128
+ export type WhatsAppBusinessSolutionPendingStatus = "PENDING_ACTIVATION" | "PENDING_DEACTIVATION" | "NONE";
129
+ /** Meta application that owns the Multi-Partner Solution */
130
+ export interface ApplicationNode {
131
+ /** Unique identifier for the Meta application */
132
+ id?: string | undefined;
133
+ /** Name of the Meta application */
134
+ name?: string | undefined;
135
+ }
136
+ /** Granular permission tasks for WhatsApp Business Account access */
137
+ export type WhatsAppBusinessAccountPermissionTask = "MANAGE" | "DEVELOP" | "MANAGE_TEMPLATES" | "MANAGE_PHONE" | "VIEW_COST" | "MANAGE_EXTENSIONS" | "VIEW_PHONE_ASSETS" | "MANAGE_PHONE_ASSETS" | "VIEW_TEMPLATES" | "VIEW_INSIGHTS" | "RECEIVE_INCOMING_MESSAGES" | "MANAGE_BILLING" | "MANAGE_USERS" | "MESSAGING" | "FULL_CONTROL";
138
+ /** List of WhatsApp Business Account permissions granted to the solution owner */
139
+ export type WhatsAppBusinessSolutionOwnerPermissionsList = Array<WhatsAppBusinessAccountPermissionTask>;
140
+ /** Multi-Partner Solution details and configuration */
141
+ export interface WhatsAppBusinessSolution {
142
+ /** Unique identifier for the Multi-Partner Solution */
143
+ id: string;
144
+ /** Human-readable name of the Multi-Partner Solution */
145
+ name: string;
146
+ status: WhatsAppBusinessSolutionStatus;
147
+ status_for_pending_request: WhatsAppBusinessSolutionPendingStatus;
148
+ owner_app?: ApplicationNode | undefined;
149
+ /** List of WhatsApp Business Account permissions granted to the solution owner */
150
+ owner_permissions?: WhatsAppBusinessSolutionOwnerPermissionsList | undefined;
151
+ }
152
+ /** Array of permission tasks to grant to the user. These tasks determine what actions the user can perform on the WhatsApp Business Account. */
153
+ export type AddAssignedUserRequestTasksList = Array<WhatsAppBusinessAccountPermissionTask | (string & {})>;
154
+ export interface AddAssignedUserRequest {
155
+ /** Your WhatsApp Business Account ID. This ID is provided when you create the account and can be found in your Business Manager or through account management APIs. */
156
+ WhatsApp_Business_Account_ID: string;
157
+ /** User ID of the person to add to the WhatsApp Business Account. This must be a valid Facebook user ID. */
158
+ user: string;
159
+ /** Array of permission tasks to grant to the user. These tasks determine what actions the user can perform on the WhatsApp Business Account. */
160
+ tasks: AddAssignedUserRequestTasksList;
161
+ }
162
+ /** Generic success response */
163
+ export interface SuccessResponse {
164
+ /** Operation success status */
165
+ success: boolean;
166
+ }
167
+ export type AddGroupParticipantsRequestMessagingProduct = "whatsapp";
168
+ export interface AddGroupParticipantsRequestParticipantsItem {
169
+ /** WhatsApp user phone number or WhatsApp user ID */
170
+ user: string;
171
+ }
172
+ /** Array of phone numbers or WhatsApp IDs to remove (max 8 participants) */
173
+ export type AddGroupParticipantsRequestParticipantsList = Array<AddGroupParticipantsRequestParticipantsItem>;
174
+ export interface AddGroupParticipantsRequest {
175
+ /** Group ID */
176
+ group_id: string;
177
+ messaging_product: AddGroupParticipantsRequestMessagingProduct | (string & {});
178
+ /** Array of phone numbers or WhatsApp IDs to remove (max 8 participants) */
179
+ participants: AddGroupParticipantsRequestParticipantsList;
180
+ }
181
+ export interface AddGroupParticipantsResponse {
182
+ }
183
+ export interface AddPhoneNumbersRequest {
184
+ /** Your WhatsApp Business Account ID. This ID can be found in your Business Manager or through business management APIs. */
185
+ Business_ID: string;
186
+ /** Phone number to add to the business account. Accepts E.164 format or formatted numbers with spaces, hyphens, and parentheses (e.g., +1234567890, +1 (631) 555-1000, +1-631-555-1000). The phone number will be normalized and validated by the endpoint. */
187
+ phone_number: string;
188
+ }
189
+ /** Response containing the ID of the successfully added phone number */
190
+ export interface AddPhoneNumbersResponse {
191
+ /** Unique identifier for the preverified phone number entity that was created */
192
+ id: string;
193
+ }
194
+ export type ApproveJoinRequestsRequestMessagingProduct = "whatsapp";
195
+ /** Array of join request IDs to approve */
196
+ export type ApproveJoinRequestsRequestJoinRequestsList = Array<string>;
197
+ export interface ApproveJoinRequestsRequest {
198
+ /** Group ID */
199
+ group_id: string;
200
+ messaging_product: ApproveJoinRequestsRequestMessagingProduct | (string & {});
201
+ /** Array of join request IDs to approve */
202
+ join_requests: ApproveJoinRequestsRequestJoinRequestsList;
203
+ }
204
+ export type ApproveJoinRequestsResponseApprovedJoinRequestsList = Array<string>;
205
+ export interface ErrorErrorData {
206
+ /** Error details */
207
+ details?: string | undefined;
208
+ }
209
+ export interface Error {
210
+ /** Error code */
211
+ code?: number | undefined;
212
+ /** Error message */
213
+ message?: string | undefined;
214
+ /** Error title */
215
+ title?: string | undefined;
216
+ error_data?: ErrorErrorData | undefined;
217
+ }
218
+ export type ApproveJoinRequestsResponseFailedJoinRequestsItemErrorsList = Array<Error>;
219
+ export interface ApproveJoinRequestsResponseFailedJoinRequestsItem {
220
+ join_request_id?: string | undefined;
221
+ errors?: ApproveJoinRequestsResponseFailedJoinRequestsItemErrorsList | undefined;
222
+ }
223
+ export type ApproveJoinRequestsResponseFailedJoinRequestsList = Array<ApproveJoinRequestsResponseFailedJoinRequestsItem>;
224
+ export type ApproveJoinRequestsResponseErrorsList = Array<Error>;
225
+ export interface ApproveJoinRequestsResponse {
226
+ messaging_product?: string | undefined;
227
+ approved_join_requests?: ApproveJoinRequestsResponseApprovedJoinRequestsList | undefined;
228
+ failed_join_requests?: ApproveJoinRequestsResponseFailedJoinRequestsList | undefined;
229
+ errors?: ApproveJoinRequestsResponseErrorsList | undefined;
230
+ }
231
+ export interface BlockUsersRequestBlockUsersItem {
232
+ user?: string | undefined;
233
+ }
234
+ export type BlockUsersRequestBlockUsersList = Array<BlockUsersRequestBlockUsersItem>;
235
+ export interface BlockUsersRequest {
236
+ Phone_Number_ID: string;
237
+ block_users?: BlockUsersRequestBlockUsersList | undefined;
238
+ messaging_product?: string | undefined;
239
+ }
240
+ export interface BlockedUserOperation {
241
+ input?: string | undefined;
242
+ wa_id?: string | undefined;
243
+ }
244
+ export type BlockUsersResultAddedUsersList = Array<BlockedUserOperation>;
245
+ export interface BlockUsersResult {
246
+ added_users?: BlockUsersResultAddedUsersList | undefined;
247
+ }
248
+ export interface BlockUsersData {
249
+ block_users?: BlockUsersResult | undefined;
250
+ messaging_product?: string | undefined;
251
+ }
252
+ export interface CheckCallPermissionsRequest {
253
+ /** The ID of the phone number registered with your WhatsApp Business Account */
254
+ Phone_Number_ID: string;
255
+ /** The WhatsApp ID of the user you want to check call permissions for */
256
+ user_wa_id: string;
257
+ }
258
+ /** Current permission status for calling this user */
259
+ export type CallPermissionCheckResponsePayloadPermissionStatus = "granted" | "pending" | "denied" | "expired";
260
+ /** Call permission details */
261
+ export interface CallPermissionCheckResponsePayloadPermission {
262
+ /** Current permission status for calling this user */
263
+ status: CallPermissionCheckResponsePayloadPermissionStatus;
264
+ /** Unix timestamp when the permission expires (if applicable) */
265
+ expiration_time?: number | undefined;
266
+ }
267
+ /** Name of the action */
268
+ export type CallPermissionCheckResponsePayloadActionsItemActionName = "start_call" | "send_call_permission_request";
269
+ export interface CallPermissionCheckResponsePayloadActionsItemLimitsItem {
270
+ /** Time period for the limit */
271
+ time_period: string;
272
+ /** Current usage count */
273
+ current_usage: number;
274
+ /** Maximum allowed usage */
275
+ max_allowed: number;
276
+ /** Unix timestamp when the limit resets */
277
+ limit_expiration_time?: number | undefined;
278
+ }
279
+ /** Rate limits for this action */
280
+ export type CallPermissionCheckResponsePayloadActionsItemLimitsList = Array<CallPermissionCheckResponsePayloadActionsItemLimitsItem>;
281
+ export interface CallPermissionCheckResponsePayloadActionsItem {
282
+ /** Name of the action */
283
+ action_name: CallPermissionCheckResponsePayloadActionsItemActionName;
284
+ /** Whether the business can perform this action */
285
+ can_perform_action: boolean;
286
+ /** Rate limits for this action */
287
+ limits?: CallPermissionCheckResponsePayloadActionsItemLimitsList | undefined;
288
+ }
289
+ /** Available actions and their restrictions */
290
+ export type CallPermissionCheckResponsePayloadActionsList = Array<CallPermissionCheckResponsePayloadActionsItem>;
291
+ export interface CallPermissionCheckResponsePayload {
292
+ /** Messaging product */
293
+ messaging_product: string;
294
+ /** Call permission details */
295
+ permission: CallPermissionCheckResponsePayloadPermission;
296
+ /** Available actions and their restrictions */
297
+ actions?: CallPermissionCheckResponsePayloadActionsList | undefined;
298
+ }
299
+ /** List of conversation prompts (ice breakers) to help guide customer interactions */
300
+ export type ConfigureConversationalAutomationRequestPromptsList = Array<string>;
301
+ /** Bot command configuration for automated responses */
302
+ export interface BotCommand {
303
+ /** Name of the bot command (without leading slash) */
304
+ command_name: string;
305
+ /** Description of what the command does */
306
+ command_description: string;
307
+ }
308
+ /** List of bot commands for automated responses */
309
+ export type ConfigureConversationalAutomationRequestCommandsList = Array<BotCommand>;
310
+ export interface ConfigureConversationalAutomationRequest {
311
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number entity and can be obtained from your WhatsApp Business Account phone numbers list. */
312
+ Phone_Number_ID: string;
313
+ /** Whether to enable welcome messages for new conversations */
314
+ enable_welcome_message?: boolean | undefined;
315
+ /** List of conversation prompts (ice breakers) to help guide customer interactions */
316
+ prompts?: ConfigureConversationalAutomationRequestPromptsList | undefined;
317
+ /** List of bot commands for automated responses */
318
+ commands?: ConfigureConversationalAutomationRequestCommandsList | undefined;
319
+ }
320
+ /** Response after successfully configuring conversational automation */
321
+ export interface ConversationalAutomationResponse {
322
+ /** Indicates whether the automation configuration was successful */
323
+ success: boolean;
324
+ }
325
+ export interface CreateFlowRequest {
326
+ WABA_ID: string;
327
+ categories?: string | undefined;
328
+ clone_flow_id?: string | undefined;
329
+ endpoint_uri?: string | undefined;
330
+ name?: string | undefined;
331
+ }
332
+ export interface CreateFlowResponse {
333
+ id?: string | undefined;
334
+ }
335
+ /** Messaging product */
336
+ export type CreateGroupRequestMessagingProduct = "whatsapp";
337
+ /** Indicates if WhatsApp users who click the invitation link can join the group with or without being approved first. - approval_required: WhatsApp users must be approved via join request before they can access the group - auto_approve: WhatsApp users can join the group without approval */
338
+ export type CreateGroupRequestJoinApprovalMode = "approval_required" | "auto_approve";
339
+ export interface CreateGroupRequest {
340
+ /** Business phone number ID */
341
+ Phone_Number_ID: string;
342
+ /** Messaging product */
343
+ messaging_product: CreateGroupRequestMessagingProduct | (string & {});
344
+ /** Group subject. Maximum 128 characters. Whitespace is trimmed. */
345
+ subject: string;
346
+ /** Group description. Maximum 2048 characters. */
347
+ description?: string | undefined;
348
+ /** Indicates if WhatsApp users who click the invitation link can join the group with or without being approved first. - approval_required: WhatsApp users must be approved via join request before they can access the group - auto_approve: WhatsApp users can join the group without approval */
349
+ join_approval_mode?: CreateGroupRequestJoinApprovalMode | (string & {}) | undefined;
350
+ }
351
+ export interface CreateGroupResponse {
352
+ messaging_product?: string | undefined;
353
+ /** Group creation request ID */
354
+ request_id?: string | undefined;
355
+ }
356
+ export type CreateGroupInviteLinkRequestMessagingProduct = "whatsapp";
357
+ export interface CreateGroupInviteLinkRequest {
358
+ /** Group ID */
359
+ group_id: string;
360
+ messaging_product: CreateGroupInviteLinkRequestMessagingProduct | (string & {});
361
+ }
362
+ export interface CreateGroupInviteLinkResponse {
363
+ messaging_product?: string | undefined;
364
+ /** Group invite link */
365
+ invite_link?: string | undefined;
366
+ }
367
+ export interface CreateMessageTemplateRequestComponentsItemButtonsItem {
368
+ flow_action?: string | undefined;
369
+ flow_id?: string | undefined;
370
+ navigate_screen?: string | undefined;
371
+ text?: string | undefined;
372
+ type?: string | undefined;
373
+ /** `URL` button target; may end in one `{{1}}` variable. */
374
+ url?: string | undefined;
375
+ /** `PHONE_NUMBER` button: the number to call, in international format. */
376
+ phone_number?: string | undefined;
377
+ /** Sample values for the button's variable, e.g. `["https://example.com/o/A-123"]` for a `URL` button. */
378
+ example?: unknown | undefined;
379
+ }
380
+ export type CreateMessageTemplateRequestComponentsItemButtonsList = Array<CreateMessageTemplateRequestComponentsItemButtonsItem>;
381
+ export interface CreateMessageTemplateRequestComponentsItem {
382
+ buttons?: CreateMessageTemplateRequestComponentsItemButtonsList | undefined;
383
+ text?: string | undefined;
384
+ type?: string | undefined;
385
+ /** Header format: `TEXT`, `IMAGE`, `VIDEO`, `DOCUMENT` or `LOCATION`. */
386
+ format?: string | undefined;
387
+ /** Sample values for the component's variables, e.g. `{ header_text: ["A-123"] }` or `{ body_text: [["Ana", "A-123"]] }`. */
388
+ example?: unknown | undefined;
389
+ }
390
+ export type CreateMessageTemplateRequestComponentsList = Array<CreateMessageTemplateRequestComponentsItem>;
391
+ export interface CreateMessageTemplateRequest {
392
+ WABA_ID: string;
393
+ category?: string | undefined;
394
+ components?: CreateMessageTemplateRequestComponentsList | undefined;
395
+ language?: string | undefined;
396
+ name?: string | undefined;
397
+ }
398
+ export interface CreateMessageTemplateResponse {
399
+ category?: string | undefined;
400
+ id?: string | undefined;
401
+ status?: string | undefined;
402
+ }
403
+ /** Type of mobility intent operation */
404
+ export type MobilityIntentType = "INITIATE_TRANSFER" | "CONFIRM_TRANSFER" | "CANCEL_TRANSFER" | "REQUEST_HANDOVER" | "APPROVE_HANDOVER" | "REJECT_HANDOVER";
405
+ /** Additional metadata for the mobility operation */
406
+ export type CreateOBOMobilityIntentRequestMetadataMap = {
407
+ [key: string]: unknown | undefined;
408
+ };
409
+ export interface CreateOBOMobilityIntentRequest {
410
+ /** WhatsApp Business Account ID. This ID identifies the WABA for which the OBO mobility intent is being created. */
411
+ WABA_ID: string;
412
+ /** Unique identifier for the WhatsApp Business Solution */
413
+ solution_id: string;
414
+ intent_type: MobilityIntentType | (string & {});
415
+ /** Target solution ID for mobility operations (required for transfers) */
416
+ target_solution_id?: string | undefined;
417
+ /** Reason for the mobility intent */
418
+ mobility_reason?: string | undefined;
419
+ /** Scheduled time for mobility execution (ISO 8601 format) */
420
+ scheduled_execution_time?: string | undefined;
421
+ /** Additional metadata for the mobility operation */
422
+ metadata?: CreateOBOMobilityIntentRequestMetadataMap | undefined;
423
+ }
424
+ /** Current status of the mobility intent */
425
+ export type OBOMobilityIntentResponseStatus = "PENDING" | "APPROVED" | "REJECTED" | "SCHEDULED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
426
+ /** List of next steps required to complete the mobility operation */
427
+ export type OBOMobilityIntentResponseNextStepsList = Array<string>;
428
+ /** Response for OBO mobility intent operations */
429
+ export interface OBOMobilityIntentResponse {
430
+ /** Indicates if the mobility intent operation was successful */
431
+ success: boolean;
432
+ /** Unique identifier for the mobility intent request */
433
+ mobility_intent_id: string;
434
+ /** Current status of the mobility intent */
435
+ status?: OBOMobilityIntentResponseStatus | undefined;
436
+ /** Estimated completion time for the mobility operation (ISO 8601 format) */
437
+ estimated_completion_time?: string | undefined;
438
+ /** Indicates if additional approval is required for the operation */
439
+ approval_required?: boolean | undefined;
440
+ /** List of next steps required to complete the mobility operation */
441
+ next_steps?: OBOMobilityIntentResponseNextStepsList | undefined;
442
+ }
443
+ /** QR image format. When specified, response includes qr_image_url */
444
+ export type CreateQrCodeRequestGenerateQrImage = "PNG" | "SVG";
445
+ /** Request payload for creating a new message QR code */
446
+ export interface CreateQrCodeRequest {
447
+ /** Pre-filled message text (max 140 characters) that appears in customer chat */
448
+ prefilled_message: string;
449
+ /** QR image format. When specified, response includes qr_image_url */
450
+ generate_qr_image?: CreateQrCodeRequestGenerateQrImage | (string & {}) | undefined;
451
+ }
452
+ /** Request payload for updating an existing message QR code */
453
+ export interface UpdateQrCodeRequest {
454
+ /** 14-character QR code identifier to update */
455
+ code: string;
456
+ /** New pre-filled message text (max 140 characters) */
457
+ prefilled_message: string;
458
+ }
459
+ export type CreateOrUpdateQrCodeRequestBody = CreateQrCodeRequest | UpdateQrCodeRequest;
460
+ export interface CreateOrUpdateQrCodeRequest {
461
+ /** The WhatsApp Business Account phone number ID for which to create or update the QR code. This ID is provided when you add a phone number to your WhatsApp Business Account. */
462
+ Phone_Number_ID: string;
463
+ body: CreateOrUpdateQrCodeRequestBody;
464
+ }
465
+ /** Response containing QR code details after creation or update */
466
+ export interface QrCodeResponse {
467
+ /** Unique 14-character identifier for the QR code. This code is used for future updates or deletions. */
468
+ code: string;
469
+ /** The pre-filled message text associated with this QR code. This text appears when customers use the QR code. */
470
+ prefilled_message: string;
471
+ /** WhatsApp deep link URL that can be used directly without QR code scanning. Customers can click this link to start a conversation with the pre-filled message. */
472
+ deep_link_url: string;
473
+ /** URL to download the QR code image. Only present if generate_qr_image parameter was specified in the request. Image format matches the requested format. */
474
+ qr_image_url?: string | undefined;
475
+ }
476
+ export interface CreateWhatsAppBusinessAccountPhoneNumberRequest {
477
+ /** WhatsApp Business Account ID where the phone number will be added. This ID can be found in your WhatsApp Manager or through business management APIs. */
478
+ WABA_ID: string;
479
+ /** Phone number in E.164 format without the + prefix */
480
+ phone_number: string;
481
+ /** Business name to be verified for this phone number */
482
+ verified_name: string;
483
+ /** Country code for the phone number */
484
+ cc?: string | undefined;
485
+ /** Whether this is a phone number migration from on-premises */
486
+ migrate_phone_number?: boolean | undefined;
487
+ /** Pre-verified phone number ID for BSP scenarios */
488
+ preverified_id?: string | undefined;
489
+ }
490
+ /** Response after successfully creating a phone number registration */
491
+ export interface PhoneNumberCreateResponse {
492
+ /** Unique identifier for the created phone number status record */
493
+ id: string;
494
+ }
495
+ /** Type of schedule configuration */
496
+ export type WhatsAppScheduleType = "BUSINESS_HOURS" | "AUTOMATED_RESPONSE" | "MESSAGE_CAMPAIGN" | "MAINTENANCE_WINDOW" | "CUSTOM";
497
+ /** Day of the week */
498
+ export type DayOfWeek = "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
499
+ /** Days of the week when the schedule is active */
500
+ export type CreateWhatsAppBusinessAccountScheduleRequestDaysOfWeekList = Array<DayOfWeek | (string & {})>;
501
+ export type RecurrencePatternFrequency = "DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY";
502
+ /** Pattern for recurring schedules */
503
+ export interface RecurrencePattern {
504
+ frequency?: RecurrencePatternFrequency | (string & {}) | undefined;
505
+ /** Interval between recurrences */
506
+ interval?: number | undefined;
507
+ /** End date for the recurrence pattern */
508
+ end_date?: string | undefined;
509
+ }
510
+ export interface CreateWhatsAppBusinessAccountScheduleRequest {
511
+ /** WhatsApp Business Account ID where the schedule will be created. This ID can be found in your WhatsApp Manager or through business management APIs. */
512
+ WABA_ID: string;
513
+ /** Human-readable name for the schedule */
514
+ name: string;
515
+ schedule_type: WhatsAppScheduleType | (string & {});
516
+ /** Optional description of the schedule purpose */
517
+ description?: string | undefined;
518
+ /** Schedule start time in HH:MM format */
519
+ start_time: string;
520
+ /** Schedule end time in HH:MM format */
521
+ end_time: string;
522
+ /** Timezone identifier for the schedule */
523
+ timezone?: string | undefined;
524
+ /** Days of the week when the schedule is active */
525
+ days_of_week?: CreateWhatsAppBusinessAccountScheduleRequestDaysOfWeekList | undefined;
526
+ /** Whether the schedule should be active upon creation */
527
+ is_active?: boolean | undefined;
528
+ recurrence_pattern?: RecurrencePattern | undefined;
529
+ }
530
+ /** Response after successfully creating a schedule */
531
+ export interface ScheduleCreateResponse {
532
+ /** Unique identifier for the created schedule */
533
+ id: string;
534
+ }
535
+ /** Configurable permission tasks for WhatsApp Business Account access in Multi-Partner Solutions. Currently only MESSAGING permission is configurable through this API. */
536
+ export type WhatsAppBusinessAccountConfigurablePermissionTask = "MESSAGING";
537
+ /** Configurable permissions granted to the solution owner app. Currently supports only MESSAGING permission. Use empty array if owner should not have configurable permissions. */
538
+ export type CreateWhatsAppBusinessSolutionRequestOwnerPermissionsList = Array<WhatsAppBusinessAccountConfigurablePermissionTask | (string & {})>;
539
+ /** Configurable permissions granted to the partner app. Currently supports only MESSAGING permission. Use empty array if partner should not have configurable permissions. */
540
+ export type CreateWhatsAppBusinessSolutionRequestPartnerPermissionsList = Array<WhatsAppBusinessAccountConfigurablePermissionTask | (string & {})>;
541
+ export interface CreateWhatsAppBusinessSolutionRequest {
542
+ /** Your Facebook Application ID that will serve as the solution owner. This application will be the primary owner of the created solution. */
543
+ Application_ID: string;
544
+ /** Configurable permissions granted to the solution owner app. Currently supports only MESSAGING permission. Use empty array if owner should not have configurable permissions. */
545
+ owner_permissions: CreateWhatsAppBusinessSolutionRequestOwnerPermissionsList;
546
+ /** Facebook Application ID of the partner app that will participate in this solution. Must be a valid application ID accessible to the requesting entity. */
547
+ partner_app_id: string;
548
+ /** Configurable permissions granted to the partner app. Currently supports only MESSAGING permission. Use empty array if partner should not have configurable permissions. */
549
+ partner_permissions: CreateWhatsAppBusinessSolutionRequestPartnerPermissionsList;
550
+ /** Human-readable name for the Multi-Partner Solution. Used for identification and management purposes in partner dashboards and solution management interfaces. */
551
+ solution_name: string;
552
+ }
553
+ /** Successful response containing the created solution identifier */
554
+ export interface WhatsAppBusinessSolutionCreateResponse {
555
+ /** Unique identifier for the newly created Multi-Partner Solution. Use this ID for subsequent solution management operations. */
556
+ solution_id: string;
557
+ }
558
+ export interface DeleteFlowRequest {
559
+ Flow_ID: string;
560
+ }
561
+ export interface DeleteFlowResponse {
562
+ success?: boolean | undefined;
563
+ }
564
+ export interface DeleteGroupRequest {
565
+ /** Group ID */
566
+ group_id: string;
567
+ }
568
+ export interface DeleteGroupResponse {
569
+ success?: boolean | undefined;
570
+ }
571
+ export type DeleteGroupInviteLinkRequestMessagingProduct = "whatsapp";
572
+ export interface DeleteGroupInviteLinkRequest {
573
+ /** Group ID */
574
+ group_id: string;
575
+ messaging_product: DeleteGroupInviteLinkRequestMessagingProduct | (string & {});
576
+ }
577
+ export interface DeleteGroupInviteLinkResponse {
578
+ messaging_product?: string | undefined;
579
+ success?: string | undefined;
580
+ }
581
+ export interface DeleteIndividualQrCodeRequest {
582
+ /** The WhatsApp Business Account phone number ID that owns the QR code to be deleted. This ID is provided when you add a phone number to your WhatsApp Business Account. */
583
+ Phone_Number_ID: string;
584
+ /** The unique 14-character identifier of the QR code to delete. This is the code value returned when the QR code was created. */
585
+ QR_Code_ID: string;
586
+ }
587
+ /** Response confirming successful QR code deletion */
588
+ export interface DeleteQrCodeResponse {
589
+ /** Indicates whether the QR code was successfully deleted */
590
+ success: boolean;
591
+ }
592
+ export interface DeleteMediaRequest {
593
+ Media_ID: string;
594
+ /** Specifies that deletion of the media only be performed if the media belongs to the provided phone number. */
595
+ phone_number_id?: string | undefined;
596
+ }
597
+ export interface DeleteMediaResponse {
598
+ success?: boolean | undefined;
599
+ }
600
+ export interface DeleteMessageTemplateRequest {
601
+ WABA_ID: string;
602
+ name?: string | undefined;
603
+ /** Template ID */
604
+ hsm_id?: string | undefined;
605
+ }
606
+ export interface DeleteMessageTemplateResponse {
607
+ success?: boolean | undefined;
608
+ }
609
+ export interface DeletePreVerifiedPhoneNumberRequest {
610
+ /** The pre-verified phone number ID to delete. This ID is provided by your Business Solution Provider (BSP) during the pre-verification process. */
611
+ Pre_Verified_Phone_Number_ID: string;
612
+ }
613
+ export interface DeletePreVerifiedPhoneNumberResponse {
614
+ /** Indicates whether the deletion was successful */
615
+ success?: boolean | undefined;
616
+ }
617
+ export interface DeprecateFlowRequest {
618
+ Flow_ID: string;
619
+ }
620
+ export interface DeprecateFlowResponse {
621
+ success?: boolean | undefined;
622
+ }
623
+ export interface DeregisterPhoneNumberRequest {
624
+ /** The ID of the phone number to deregister. This ID is provided when you register the phone number and can be found in your WhatsApp Business Account settings. */
625
+ Phone_Number_ID: string;
626
+ }
627
+ /** Response indicating successful phone number deregistration */
628
+ export interface DeregisterResponse {
629
+ /** Indicates whether the deregistration was successful */
630
+ success: boolean;
631
+ }
632
+ export interface GetActiveGroupsRequest {
633
+ /** Business phone number ID */
634
+ Phone_Number_ID: string;
635
+ /** Number of groups to fetch in the request */
636
+ limit?: number | undefined;
637
+ /** Cursor that points to the end of a page of data */
638
+ after?: string | undefined;
639
+ /** Cursor that points to the beginning of a page of data */
640
+ before?: string | undefined;
641
+ }
642
+ export interface GetActiveGroupsResponseDataGroupsItem {
643
+ /** Group ID */
644
+ id?: string | undefined;
645
+ /** Group subject */
646
+ subject?: string | undefined;
647
+ /** Group creation timestamp */
648
+ created_at?: string | undefined;
649
+ }
650
+ export type GetActiveGroupsResponseDataGroupsList = Array<GetActiveGroupsResponseDataGroupsItem>;
651
+ export interface GetActiveGroupsResponseData {
652
+ groups?: GetActiveGroupsResponseDataGroupsList | undefined;
653
+ }
654
+ export interface PagingInfoCursors {
655
+ /** Before cursor */
656
+ before?: string | undefined;
657
+ /** After cursor */
658
+ after?: string | undefined;
659
+ }
660
+ export interface PagingInfo {
661
+ cursors?: PagingInfoCursors | undefined;
662
+ /** Previous page URL */
663
+ previous?: string | undefined;
664
+ /** Next page URL */
665
+ next?: string | undefined;
666
+ }
667
+ export interface GetActiveGroupsResponse {
668
+ data?: GetActiveGroupsResponseData | undefined;
669
+ paging?: PagingInfo | undefined;
670
+ }
671
+ /** Role of the application in relation to the Multi-Partner Solution */
672
+ export type WhatsAppBusinessSolutionApplicationRole = "OWNER" | "PARTNER";
673
+ export interface GetApplicationWhatsAppBusinessSolutionsRequest {
674
+ /** Your Meta Application ID. This ID can be found in your App Dashboard and represents the application for which you want to retrieve associated Multi-Partner Solutions. */
675
+ Application_ID: string;
676
+ /** Filter solutions by the application's relationship role. If not specified, all solutions (both owned and partnered) will be returned. */
677
+ role?: WhatsAppBusinessSolutionApplicationRole | (string & {}) | undefined;
678
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (name, status, status_for_pending_request). Available fields: id, name, status, status_for_pending_request, owner_app, owner_permissions */
679
+ fields?: string | undefined;
680
+ /** Maximum number of solutions to return in a single request. Default is 25, maximum is 100. */
681
+ limit?: number | undefined;
682
+ /** Cursor for pagination. Use this to get the next page of results. */
683
+ after?: string | undefined;
684
+ /** Cursor for pagination. Use this to get the previous page of results. */
685
+ before?: string | undefined;
686
+ }
687
+ /** Array of Multi-Partner Solutions */
688
+ export type WhatsAppBusinessSolutionsResponseDataList = Array<WhatsAppBusinessSolution>;
689
+ export interface CursorPagingCursors {
690
+ /** Cursor pointing to the start of the page of data */
691
+ before?: string | undefined;
692
+ /** Cursor pointing to the end of the page of data */
693
+ after?: string | undefined;
694
+ }
695
+ /** Cursor-based pagination information */
696
+ export interface CursorPaging {
697
+ cursors?: CursorPagingCursors | undefined;
698
+ /** URL for the previous page of results */
699
+ previous?: string | undefined;
700
+ /** URL for the next page of results */
701
+ next?: string | undefined;
702
+ }
703
+ /** Response containing list of Multi-Partner Solutions with pagination */
704
+ export interface WhatsAppBusinessSolutionsResponse {
705
+ /** Array of Multi-Partner Solutions */
706
+ data: WhatsAppBusinessSolutionsResponseDataList;
707
+ paging?: CursorPaging | undefined;
708
+ }
709
+ export interface GetAssignedUsersRequest {
710
+ /** Your WhatsApp Business Account ID. This ID is provided when you create the account and can be found in your Business Manager or through account management APIs. */
711
+ WhatsApp_Business_Account_ID: string;
712
+ /** Business ID that owns or has access to the WhatsApp Business Account. This parameter is required to specify the business context for user assignments. */
713
+ business: string;
714
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, name). Available fields: id, name, business, user_type */
715
+ fields?: string | undefined;
716
+ /** Maximum number of assigned users to return per page. Default is 25, maximum is 100. */
717
+ limit?: number | undefined;
718
+ /** Cursor for pagination. Use this to get the next page of results. */
719
+ after?: string | undefined;
720
+ /** Cursor for pagination. Use this to get the previous page of results. */
721
+ before?: string | undefined;
722
+ }
723
+ /** Business entity associated with the user */
724
+ export interface BusinessNode {
725
+ /** Unique identifier for the business */
726
+ id?: string | undefined;
727
+ /** Name of the business */
728
+ name?: string | undefined;
729
+ }
730
+ /** Type of user assignment */
731
+ export type AssignedUserType = "BUSINESS_USER" | "SYSTEM_USER" | "PERSONAL_USER";
732
+ export type AssignedUserTasksList = Array<string>;
733
+ /** User assigned to WhatsApp Business Account with permissions */
734
+ export interface AssignedUser {
735
+ /** Unique identifier for the assigned user */
736
+ id: string;
737
+ /** Display name of the assigned user */
738
+ name: string;
739
+ business?: BusinessNode | undefined;
740
+ user_type?: AssignedUserType | undefined;
741
+ /** Tasks the user can perform on the asset, e.g. `MANAGE`. */
742
+ tasks?: AssignedUserTasksList | undefined;
743
+ }
744
+ /** Array of assigned users */
745
+ export type AssignedUsersResponseDataList = Array<AssignedUser>;
746
+ /** Summary information about assigned users */
747
+ export interface AssignedUsersSummary {
748
+ /** Total number of assigned users */
749
+ total_count?: number | undefined;
750
+ }
751
+ /** Response containing list of assigned users with pagination */
752
+ export interface AssignedUsersResponse {
753
+ /** Array of assigned users */
754
+ data: AssignedUsersResponseDataList;
755
+ paging?: CursorPaging | undefined;
756
+ summary?: AssignedUsersSummary | undefined;
757
+ }
758
+ export interface GetAssignedWhatsAppBusinessAccountsRequest {
759
+ /** The user ID for whom to retrieve assigned WhatsApp Business Accounts. This must be a valid user ID within your solution or partnership. */
760
+ User_ID: string;
761
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, name, status). Available fields: id, name, status, assignment_date, permissions, business_id, phone_numbers */
762
+ fields?: string | undefined;
763
+ /** Maximum number of accounts to return per page. Default is 25, maximum is 100. */
764
+ limit?: number | undefined;
765
+ /** Cursor for pagination. Use this to get the next page of results. */
766
+ after?: string | undefined;
767
+ /** Cursor for pagination. Use this to get the previous page of results. */
768
+ before?: string | undefined;
769
+ }
770
+ /** Current status of the WhatsApp Business Account */
771
+ export type WhatsAppBusinessAccountStatus = "ACTIVE" | "PENDING" | "RESTRICTED" | "DISABLED";
772
+ /** Permission level for WhatsApp Business Account access */
773
+ export type WhatsAppBusinessAccountPermission = "MANAGE" | "DEVELOP" | "MANAGE_TEMPLATES" | "MANAGE_PHONE" | "VIEW_COST" | "MANAGE_EXTENSIONS" | "VIEW_PHONE_ASSETS" | "MANAGE_PHONE_ASSETS" | "VIEW_TEMPLATES" | "VIEW_INSIGHTS" | "RECEIVE_INCOMING_MESSAGES" | "MANAGE_BILLING" | "MANAGE_USERS" | "MESSAGING" | "FULL_CONTROL";
774
+ /** List of permissions granted to the user for this account */
775
+ export type AssignedWhatsAppBusinessAccountPermissionsList = Array<WhatsAppBusinessAccountPermission>;
776
+ /** The quality rating of the phone number based on how messages have been received by recipients in recent days. - GREEN: High Quality - YELLOW: Medium Quality - RED: Low Quality - NA: Quality has not been determined */
777
+ export type PhoneNumberInfoQualityRating = "GREEN" | "YELLOW" | "RED" | "NA";
778
+ /** The two-step verification status for the phone number indicating whether the number has completed two-step verification. - VERIFIED: Phone number has completed two-step verification - UNVERIFIED: Two-step verification is pending or incomplete */
779
+ export type PhoneNumberInfoCodeVerificationStatus = "VERIFIED" | "UNVERIFIED";
780
+ /** The status of a display name associated with a specific phone number. - APPROVED: The display name has been approved and is ready to use. - AVAILABLE_WITHOUT_REVIEW: The display name is ready to use without review. - DECLINED: The display name has not been approved. - EXPIRED: The display name approval has expired. - PENDING_REVIEW: The display name is under review. - NONE: No display name verification request exists. */
781
+ export type PhoneNumberInfoNameStatus = "APPROVED" | "AVAILABLE_WITHOUT_REVIEW" | "DECLINED" | "EXPIRED" | "PENDING_REVIEW" | "NONE";
782
+ export interface PhoneNumberThroughput {
783
+ /** Messaging throughput level, e.g. `STANDARD`. */
784
+ level?: string | undefined;
785
+ }
786
+ /** Phone number information and status */
787
+ export interface PhoneNumberInfo {
788
+ /** The ID associated with the phone number */
789
+ id?: string | undefined;
790
+ /** The string representation of the phone number */
791
+ display_phone_number?: string | undefined;
792
+ /** The verified name associated with the phone number */
793
+ verified_name?: string | undefined;
794
+ /** The quality rating of the phone number based on how messages have been received by recipients in recent days. - GREEN: High Quality - YELLOW: Medium Quality - RED: Low Quality - NA: Quality has not been determined */
795
+ quality_rating?: PhoneNumberInfoQualityRating | undefined;
796
+ /** The two-step verification status for the phone number indicating whether the number has completed two-step verification. - VERIFIED: Phone number has completed two-step verification - UNVERIFIED: Two-step verification is pending or incomplete */
797
+ code_verification_status?: PhoneNumberInfoCodeVerificationStatus | undefined;
798
+ /** The status of a display name associated with a specific phone number. - APPROVED: The display name has been approved and is ready to use. - AVAILABLE_WITHOUT_REVIEW: The display name is ready to use without review. - DECLINED: The display name has not been approved. - EXPIRED: The display name approval has expired. - PENDING_REVIEW: The display name is under review. - NONE: No display name verification request exists. */
799
+ name_status?: PhoneNumberInfoNameStatus | undefined;
800
+ /** Where the number is hosted, e.g. `CLOUD_API`. */
801
+ platform_type?: string | undefined;
802
+ throughput?: PhoneNumberThroughput | undefined;
803
+ }
804
+ /** Phone numbers associated with this WhatsApp Business Account */
805
+ export type AssignedWhatsAppBusinessAccountPhoneNumbersList = Array<PhoneNumberInfo>;
806
+ /** WhatsApp Business Account assigned to a user */
807
+ export interface AssignedWhatsAppBusinessAccount {
808
+ /** Unique identifier for the WhatsApp Business Account */
809
+ id: string;
810
+ /** Display name of the WhatsApp Business Account */
811
+ name: string;
812
+ status: WhatsAppBusinessAccountStatus;
813
+ /** Date and time when the account was assigned to the user */
814
+ assignment_date?: string | undefined;
815
+ /** List of permissions granted to the user for this account */
816
+ permissions?: AssignedWhatsAppBusinessAccountPermissionsList | undefined;
817
+ /** Business ID that owns this WhatsApp Business Account */
818
+ business_id?: string | undefined;
819
+ /** Phone numbers associated with this WhatsApp Business Account */
820
+ phone_numbers?: AssignedWhatsAppBusinessAccountPhoneNumbersList | undefined;
821
+ }
822
+ /** List of assigned WhatsApp Business Accounts */
823
+ export type AssignedAccountsResponseDataList = Array<AssignedWhatsAppBusinessAccount>;
824
+ /** Response containing assigned WhatsApp Business Accounts */
825
+ export interface AssignedAccountsResponse {
826
+ /** List of assigned WhatsApp Business Accounts */
827
+ data: AssignedAccountsResponseDataList;
828
+ paging?: PagingInfo | undefined;
829
+ }
830
+ export interface GetBlockedUsersRequest {
831
+ Phone_Number_ID: string;
832
+ }
833
+ export interface BlockedUser {
834
+ messaging_product?: string | undefined;
835
+ wa_id?: string | undefined;
836
+ }
837
+ export type GetBlockedUsersDataDataList = Array<BlockedUser>;
838
+ export interface PaginationCursors {
839
+ after?: string | undefined;
840
+ before?: string | undefined;
841
+ }
842
+ export interface Paging {
843
+ cursors?: PaginationCursors | undefined;
844
+ }
845
+ export interface GetBlockedUsersData {
846
+ data?: GetBlockedUsersDataDataList | undefined;
847
+ paging?: Paging | undefined;
848
+ }
849
+ export interface GetBusinessComplianceInfoRequest {
850
+ /** Your WhatsApp Business Account phone number ID. This ID can be found in your WhatsApp Business Manager or through phone number management APIs. */
851
+ Phone_Number_ID: string;
852
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned. Available fields: messaging_product, entity_name, entity_type, entity_type_custom, is_registered, grievance_officer_details, customer_care_details */
853
+ fields?: string | undefined;
854
+ }
855
+ /** Messaging product identifier, always 'whatsapp' for WhatsApp Business */
856
+ export type BusinessComplianceInfoMessagingProduct = "whatsapp";
857
+ /** Contact information for the designated grievance officer */
858
+ export interface GrievanceOfficerDetails {
859
+ /** Full name of the grievance officer */
860
+ name?: string | undefined;
861
+ /** Email address for grievance officer contact */
862
+ email?: string | undefined;
863
+ /** Mobile phone number for grievance officer (with country code) */
864
+ mobile_number?: string | undefined;
865
+ /** Landline phone number for grievance officer (with country code) */
866
+ landline_number?: string | undefined;
867
+ }
868
+ /** Contact information for customer care and support */
869
+ export interface CustomerCareDetails {
870
+ /** Email address for customer care contact */
871
+ email?: string | undefined;
872
+ /** Mobile phone number for customer care (with country code) */
873
+ mobile_number?: string | undefined;
874
+ /** Landline phone number for customer care (with country code) */
875
+ landline_number?: string | undefined;
876
+ }
877
+ /** WhatsApp Business Account compliance information and regulatory details */
878
+ export interface BusinessComplianceInfo {
879
+ /** Unique identifier for the WhatsApp Business Account */
880
+ whatsapp_business_account_id: string;
881
+ /** Messaging product identifier, always 'whatsapp' for WhatsApp Business */
882
+ messaging_product?: BusinessComplianceInfoMessagingProduct | undefined;
883
+ /** Legal name of the business entity */
884
+ entity_name?: string | undefined;
885
+ /** Type of business entity (e.g., Partnership, Private Limited Company, etc.) */
886
+ entity_type?: string | undefined;
887
+ /** Custom entity type description when standard types don't apply */
888
+ entity_type_custom?: string | undefined;
889
+ /** Whether the business entity is officially registered with regulatory authorities */
890
+ is_registered?: boolean | undefined;
891
+ grievance_officer_details?: GrievanceOfficerDetails | undefined;
892
+ customer_care_details?: CustomerCareDetails | undefined;
893
+ }
894
+ export type GetBusinessComplianceInfoResponseDataList = Array<BusinessComplianceInfo>;
895
+ export interface GetBusinessComplianceInfoResponse {
896
+ data?: GetBusinessComplianceInfoResponseDataList | undefined;
897
+ }
898
+ export interface GetBusinessEncryptionPublicKeyRequest {
899
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number entity and can be obtained from your WhatsApp Business Account phone numbers list. */
900
+ Phone_Number_ID: string;
901
+ /** Comma-separated list of fields to include in the response. If not specified, all available fields will be returned. Available fields: business_public_key, business_public_key_signature_status */
902
+ fields?: string | undefined;
903
+ }
904
+ /** Status of business public key signature verification */
905
+ export type BusinessPublicKeyVerificationStatus = "VALID" | "MISMATCH";
906
+ /** Business encryption public key information and verification status */
907
+ export interface WhatsAppBusinessEncryptionInfo {
908
+ /** The business public key used for encrypting message payloads. This key is used to encrypt data channel requests and responses. */
909
+ business_public_key: string;
910
+ business_public_key_signature_status: BusinessPublicKeyVerificationStatus;
911
+ }
912
+ export type GetBusinessEncryptionPublicKeyResponseDataList = Array<WhatsAppBusinessEncryptionInfo>;
913
+ export interface GetBusinessEncryptionPublicKeyResponse {
914
+ data?: GetBusinessEncryptionPublicKeyResponseDataList | undefined;
915
+ }
916
+ export interface GetBusinessPortfolioSpecificFieldsRequest {
917
+ Business_ID: string;
918
+ fields?: string | undefined;
919
+ }
920
+ export interface GetBusinessPortfolioSpecificFieldsResponse {
921
+ id?: string | undefined;
922
+ name?: string | undefined;
923
+ timezone_id?: number | undefined;
924
+ }
925
+ export type GetClientWhatsAppBusinessAccountsRequestBusinessTypeItem = "STANDARD" | "PREMIUM" | "ENTERPRISE";
926
+ export type GetClientWhatsAppBusinessAccountsRequestBusinessTypeList = Array<GetClientWhatsAppBusinessAccountsRequestBusinessTypeItem | (string & {})>;
927
+ export interface GetClientWhatsAppBusinessAccountsRequest {
928
+ /** Your Business ID. This ID can be found in your Meta Business Suite URL or through business management APIs. */
929
+ Business_ID: string;
930
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, name, currency, timezone_id). Available fields: id, name, account_review_status, purchase_order_number, audiences, ownership_type, subscribed_apps, business_verification_status, country, currency, timezone_id, on_behalf_of_business_info, schedules, is_enabled_for_insights, dcc_config, message_templates, phone_numbers */
931
+ fields?: string | undefined;
932
+ /** Filter results by WhatsApp Business Account type */
933
+ business_type?: GetClientWhatsAppBusinessAccountsRequestBusinessTypeList | undefined;
934
+ /** Maximum number of WhatsApp Business Accounts to return per page. Default is 25, maximum is 100. */
935
+ limit?: number | undefined;
936
+ /** Cursor for pagination. Use this to get the next page of results. */
937
+ after?: string | undefined;
938
+ /** Cursor for pagination. Use this to get the previous page of results. */
939
+ before?: string | undefined;
940
+ /** Find a specific WhatsApp Business Account by ID */
941
+ find?: string | undefined;
942
+ }
943
+ /** Review status of the WhatsApp Business Account */
944
+ export type AccountReviewStatus = "APPROVED" | "PENDING" | "REJECTED" | "RESTRICTED";
945
+ /** List of audience segments associated with the account */
946
+ export type WhatsAppBusinessAccountAudiencesList = Array<string>;
947
+ /** Type of ownership for the WhatsApp Business Account */
948
+ export type OwnershipType = "SELF_OWNED" | "CLIENT_OWNED" | "AGENCY_OWNED";
949
+ /** Application subscribed to the WABA */
950
+ export interface SubscribedApp {
951
+ /** Application ID */
952
+ id?: string | undefined;
953
+ /** Application name */
954
+ name?: string | undefined;
955
+ }
956
+ /** List of applications subscribed to this WABA */
957
+ export type WhatsAppBusinessAccountSubscribedAppsList = Array<SubscribedApp>;
958
+ /** Verification status of the connected client business */
959
+ export type BusinessVerificationStatus = "VERIFIED" | "UNVERIFIED" | "PENDING" | "REJECTED";
960
+ /** Information about the business on whose behalf the WABA operates */
961
+ export interface OnBehalfOfBusinessInfo {
962
+ /** Business ID */
963
+ id?: string | undefined;
964
+ /** Business name */
965
+ name?: string | undefined;
966
+ }
967
+ export type BusinessScheduleDayOfWeek = "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
968
+ /** Business hours schedule information */
969
+ export interface BusinessSchedule {
970
+ day_of_week?: BusinessScheduleDayOfWeek | undefined;
971
+ /** Opening time in HH:MM format */
972
+ open_time?: string | undefined;
973
+ /** Closing time in HH:MM format */
974
+ close_time?: string | undefined;
975
+ }
976
+ /** Business hours and scheduling information */
977
+ export type WhatsAppBusinessAccountSchedulesList = Array<BusinessSchedule>;
978
+ /** Data and Content Control configuration */
979
+ export interface DCCConfig {
980
+ /** Whether DCC is enabled */
981
+ enabled?: boolean | undefined;
982
+ /** URL to the DCC policy */
983
+ policy_url?: string | undefined;
984
+ }
985
+ export type MessageTemplateStatus = "APPROVED" | "PENDING" | "REJECTED" | "DISABLED";
986
+ /** Message template information */
987
+ export interface MessageTemplate {
988
+ /** Template ID */
989
+ id?: string | undefined;
990
+ /** Template name */
991
+ name?: string | undefined;
992
+ status?: MessageTemplateStatus | undefined;
993
+ }
994
+ /** Message templates associated with the WABA */
995
+ export type WhatsAppBusinessAccountMessageTemplatesList = Array<MessageTemplate>;
996
+ /** Phone number associated with the WABA */
997
+ export interface PhoneNumber {
998
+ /** Phone number ID */
999
+ id?: string | undefined;
1000
+ /** Formatted phone number for display */
1001
+ display_phone_number?: string | undefined;
1002
+ /** Verified business name for the phone number */
1003
+ verified_name?: string | undefined;
1004
+ }
1005
+ /** Phone numbers associated with the WABA */
1006
+ export type WhatsAppBusinessAccountPhoneNumbersList = Array<PhoneNumber>;
1007
+ /** WhatsApp Business Account details and configuration */
1008
+ export interface WhatsAppBusinessAccount {
1009
+ /** Unique identifier for the WhatsApp Business Account */
1010
+ id: string;
1011
+ /** Human-readable name of the WhatsApp Business Account */
1012
+ name: string;
1013
+ account_review_status?: AccountReviewStatus | undefined;
1014
+ /** Purchase order number associated with the account */
1015
+ purchase_order_number?: string | undefined;
1016
+ /** List of audience segments associated with the account */
1017
+ audiences?: WhatsAppBusinessAccountAudiencesList | undefined;
1018
+ ownership_type?: OwnershipType | undefined;
1019
+ /** List of applications subscribed to this WABA */
1020
+ subscribed_apps?: WhatsAppBusinessAccountSubscribedAppsList | undefined;
1021
+ business_verification_status?: BusinessVerificationStatus | undefined;
1022
+ /** Country code where the WABA is registered */
1023
+ country?: string | undefined;
1024
+ /** Currency code for the WABA */
1025
+ currency?: string | undefined;
1026
+ /** Timezone identifier for the WABA */
1027
+ timezone_id?: string | undefined;
1028
+ on_behalf_of_business_info?: OnBehalfOfBusinessInfo | undefined;
1029
+ /** Business hours and scheduling information */
1030
+ schedules?: WhatsAppBusinessAccountSchedulesList | undefined;
1031
+ /** Whether insights are enabled for this WABA */
1032
+ is_enabled_for_insights?: boolean | undefined;
1033
+ dcc_config?: DCCConfig | undefined;
1034
+ /** Message templates associated with the WABA */
1035
+ message_templates?: WhatsAppBusinessAccountMessageTemplatesList | undefined;
1036
+ /** Phone numbers associated with the WABA */
1037
+ phone_numbers?: WhatsAppBusinessAccountPhoneNumbersList | undefined;
1038
+ /** Namespace of the account's message templates. */
1039
+ message_template_namespace?: string | undefined;
1040
+ }
1041
+ /** Array of client WhatsApp Business Accounts */
1042
+ export type ClientWhatsAppBusinessAccountsResponseDataList = Array<WhatsAppBusinessAccount>;
1043
+ /** Response containing list of client WhatsApp Business Accounts */
1044
+ export interface ClientWhatsAppBusinessAccountsResponse {
1045
+ /** Array of client WhatsApp Business Accounts */
1046
+ data: ClientWhatsAppBusinessAccountsResponseDataList;
1047
+ paging?: CursorPaging | undefined;
1048
+ }
1049
+ export interface GetCommerceSettingsRequest {
1050
+ Phone_Number_ID: string;
1051
+ }
1052
+ export interface GetCommerceSettingsResponseDataItem {
1053
+ id?: string | undefined;
1054
+ is_cart_enabled?: boolean | undefined;
1055
+ is_catalog_visible?: boolean | undefined;
1056
+ }
1057
+ export type GetCommerceSettingsResponseDataList = Array<GetCommerceSettingsResponseDataItem>;
1058
+ export interface GetCommerceSettingsResponse {
1059
+ data?: GetCommerceSettingsResponseDataList | undefined;
1060
+ }
1061
+ export interface GetConnectedClientBusinessesRequest {
1062
+ /** Your Meta Application ID. This ID is provided when you create the application and can be found in your App Dashboard. */
1063
+ Application_ID: string;
1064
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, name, verification_status, business_status). Available fields: id, name, verification_status, business_status, created_time, updated_time */
1065
+ fields?: string | undefined;
1066
+ /** Maximum number of connected client businesses to return per page. Default is 25, maximum is 100. */
1067
+ limit?: number | undefined;
1068
+ /** Cursor for pagination. Use this to get the next page of results. */
1069
+ after?: string | undefined;
1070
+ /** Cursor for pagination. Use this to get the previous page of results. */
1071
+ before?: string | undefined;
1072
+ }
1073
+ /** Current status of the connected client business */
1074
+ export type BusinessStatus = "ACTIVE" | "INACTIVE" | "SUSPENDED" | "PENDING_APPROVAL";
1075
+ /** Connected client business information and configuration */
1076
+ export interface ConnectedClientBusiness {
1077
+ /** Unique identifier for the connected client business */
1078
+ id: string;
1079
+ /** Name of the connected client business */
1080
+ name: string;
1081
+ verification_status?: BusinessVerificationStatus | undefined;
1082
+ business_status?: BusinessStatus | undefined;
1083
+ /** Timestamp when the business connection was created */
1084
+ created_time?: string | undefined;
1085
+ /** Timestamp when the business connection was last updated */
1086
+ updated_time?: string | undefined;
1087
+ }
1088
+ /** Array of connected client businesses */
1089
+ export type ConnectedClientBusinessesResponseDataList = Array<ConnectedClientBusiness>;
1090
+ /** Response containing list of connected client businesses */
1091
+ export interface ConnectedClientBusinessesResponse {
1092
+ /** Array of connected client businesses */
1093
+ data: ConnectedClientBusinessesResponseDataList;
1094
+ paging?: CursorPaging | undefined;
1095
+ }
1096
+ export interface GetCreditLinesRequest {
1097
+ Business_ID: string;
1098
+ }
1099
+ export interface GetCreditLinesResponseDataItem {
1100
+ id?: string | undefined;
1101
+ legal_entity_name?: string | undefined;
1102
+ }
1103
+ export type GetCreditLinesResponseDataList = Array<GetCreditLinesResponseDataItem>;
1104
+ export interface GetCreditLinesResponse {
1105
+ data?: GetCreditLinesResponseDataList | undefined;
1106
+ }
1107
+ export interface GetFlowRequest {
1108
+ Flow_ID: string;
1109
+ /** Return specific fields in the response */
1110
+ fields?: string | undefined;
1111
+ /** Returns date as unix timestamp in seconds */
1112
+ date_format?: string | undefined;
1113
+ }
1114
+ export interface GetFlowResponseApplication {
1115
+ id?: string | undefined;
1116
+ link?: string | undefined;
1117
+ name?: string | undefined;
1118
+ }
1119
+ export type GetFlowResponseCategoriesList = Array<string>;
1120
+ export interface GetFlowResponseHealthStatusEntitiesItemErrorsItem {
1121
+ error_code?: number | undefined;
1122
+ error_description?: string | undefined;
1123
+ possible_solution?: string | undefined;
1124
+ }
1125
+ export type GetFlowResponseHealthStatusEntitiesItemErrorsList = Array<GetFlowResponseHealthStatusEntitiesItemErrorsItem>;
1126
+ export interface GetFlowResponseHealthStatusEntitiesItem {
1127
+ can_send_message?: string | undefined;
1128
+ entity_type?: string | undefined;
1129
+ errors?: GetFlowResponseHealthStatusEntitiesItemErrorsList | undefined;
1130
+ id?: string | undefined;
1131
+ }
1132
+ export type GetFlowResponseHealthStatusEntitiesList = Array<GetFlowResponseHealthStatusEntitiesItem>;
1133
+ export interface GetFlowResponseHealthStatus {
1134
+ can_send_message?: string | undefined;
1135
+ entities?: GetFlowResponseHealthStatusEntitiesList | undefined;
1136
+ }
1137
+ export interface GetFlowResponseMetricDataPointsItemDataItem {
1138
+ key?: string | undefined;
1139
+ value?: number | undefined;
1140
+ }
1141
+ export type GetFlowResponseMetricDataPointsItemDataList = Array<GetFlowResponseMetricDataPointsItemDataItem>;
1142
+ export interface GetFlowResponseMetricDataPointsItem {
1143
+ data?: GetFlowResponseMetricDataPointsItemDataList | undefined;
1144
+ timestamp?: string | undefined;
1145
+ }
1146
+ export type GetFlowResponseMetricDataPointsList = Array<GetFlowResponseMetricDataPointsItem>;
1147
+ export interface GetFlowResponseMetric {
1148
+ data_points?: GetFlowResponseMetricDataPointsList | undefined;
1149
+ granularity?: string | undefined;
1150
+ name?: string | undefined;
1151
+ }
1152
+ export interface GetFlowResponsePreview {
1153
+ expires_at?: string | undefined;
1154
+ preview_url?: string | undefined;
1155
+ }
1156
+ export type GetFlowResponseValidationErrorsList = Array<unknown>;
1157
+ export interface GetFlowResponseWhatsappBusinessAccount {
1158
+ business_type?: string | undefined;
1159
+ id?: string | undefined;
1160
+ message_template_namespace?: string | undefined;
1161
+ name?: string | undefined;
1162
+ timezone_id?: string | undefined;
1163
+ }
1164
+ export interface GetFlowResponse {
1165
+ application?: GetFlowResponseApplication | undefined;
1166
+ categories?: GetFlowResponseCategoriesList | undefined;
1167
+ data_api_version?: string | undefined;
1168
+ data_channel_uri?: string | undefined;
1169
+ health_status?: GetFlowResponseHealthStatus | undefined;
1170
+ id?: string | undefined;
1171
+ json_version?: string | undefined;
1172
+ metric?: GetFlowResponseMetric | undefined;
1173
+ name?: string | undefined;
1174
+ preview?: GetFlowResponsePreview | undefined;
1175
+ status?: string | undefined;
1176
+ validation_errors?: GetFlowResponseValidationErrorsList | undefined;
1177
+ whatsapp_business_account?: GetFlowResponseWhatsappBusinessAccount | undefined;
1178
+ }
1179
+ export interface GetGroupInfoRequest {
1180
+ /** Group ID */
1181
+ group_id: string;
1182
+ /** Comma-separated list of fields to return */
1183
+ fields?: string | undefined;
1184
+ }
1185
+ /** Join approval mode for the group */
1186
+ export type GroupInfoJoinApprovalMode = "approval_required" | "auto_approve";
1187
+ export interface GroupInfoParticipantsItem {
1188
+ /** WhatsApp user ID */
1189
+ wa_id?: string | undefined;
1190
+ }
1191
+ /** List of participants in the group */
1192
+ export type GroupInfoParticipantsList = Array<GroupInfoParticipantsItem>;
1193
+ export interface GroupInfo {
1194
+ /** Group ID */
1195
+ id?: string | undefined;
1196
+ messaging_product?: string | undefined;
1197
+ /** Join approval mode for the group */
1198
+ join_approval_mode?: GroupInfoJoinApprovalMode | undefined;
1199
+ /** Group subject */
1200
+ subject?: string | undefined;
1201
+ /** Group description */
1202
+ description?: string | undefined;
1203
+ /** Returns true if the group has been suspended by WhatsApp */
1204
+ suspended?: boolean | undefined;
1205
+ /** UNIX timestamp in seconds at which the group was created */
1206
+ creation_timestamp?: number | undefined;
1207
+ /** List of participants in the group */
1208
+ participants?: GroupInfoParticipantsList | undefined;
1209
+ /** Total number of participants in the group, excluding your business */
1210
+ total_participant_count?: number | undefined;
1211
+ }
1212
+ export interface GetIndividualQrCodeRequest {
1213
+ /** The WhatsApp Business Account phone number ID that owns the QR code. This ID is provided when you add a phone number to your WhatsApp Business Account. */
1214
+ Phone_Number_ID: string;
1215
+ /** The unique 14-character identifier of the QR code to retrieve. This is the code value returned when the QR code was created. */
1216
+ QR_Code_ID: string;
1217
+ /** Comma-separated list of fields to include in the response. Available fields: - code: QR code identifier (always included) - prefilled_message: Pre-filled message text (always included) - deep_link_url: WhatsApp deep link URL (always included) - creation_time: Unix timestamp when QR code was created (first-party apps only) - qr_image_url.format(FORMAT): QR code image URL where FORMAT is SVG or PNG Example: "code,prefilled_message,qr_image_url.format(SVG)" */
1218
+ fields?: string | undefined;
1219
+ }
1220
+ export interface GetInProgressOnBehalfRequestsRequest {
1221
+ /** Your WhatsApp Business Account ID. This ID can be found in your WhatsApp Business Manager or through the WhatsApp Business Account APIs. */
1222
+ WABA_ID: string;
1223
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, status, business_owned_object). Available fields: id, status, business_owned_object, receiving_business, requesting_business */
1224
+ fields?: string | undefined;
1225
+ /** Maximum number of results to return per page. Default is 25, maximum is 100. */
1226
+ limit?: number | undefined;
1227
+ /** Cursor for forward pagination. Use this to get the next page of results. */
1228
+ after?: string | undefined;
1229
+ /** Cursor for backward pagination. Use this to get the previous page of results. */
1230
+ before?: string | undefined;
1231
+ }
1232
+ /** Current status of the business request */
1233
+ export type BusinessRequestStatus = "APPROVE" | "DECLINE" | "IN_PROGRESS" | "EXPIRED" | "PENDING" | "CANCELED" | "INVALID";
1234
+ /** On-behalf request details for business owned objects */
1235
+ export interface BusinessOwnedObjectOnBehalfOfRequest {
1236
+ /** Unique identifier for the on-behalf request */
1237
+ id: string;
1238
+ status: BusinessRequestStatus;
1239
+ /** ID of the business owned object (WhatsApp Business Account) for this request */
1240
+ business_owned_object: string;
1241
+ receiving_business?: BusinessNode | undefined;
1242
+ requesting_business?: BusinessNode | undefined;
1243
+ }
1244
+ /** Array of in-progress on-behalf requests */
1245
+ export type InProgressOnBehalfRequestResponseDataList = Array<BusinessOwnedObjectOnBehalfOfRequest>;
1246
+ /** Pagination cursors for navigation */
1247
+ export interface PaginationInfoCursors {
1248
+ /** Cursor for the previous page of results */
1249
+ before?: string | undefined;
1250
+ /** Cursor for the next page of results */
1251
+ after?: string | undefined;
1252
+ }
1253
+ /** Pagination information for navigating through results */
1254
+ export interface PaginationInfo {
1255
+ /** Pagination cursors for navigation */
1256
+ cursors?: PaginationInfoCursors | undefined;
1257
+ /** URL for the previous page of results */
1258
+ previous?: string | undefined;
1259
+ /** URL for the next page of results */
1260
+ next?: string | undefined;
1261
+ }
1262
+ /** Response containing in-progress on-behalf requests with pagination */
1263
+ export interface InProgressOnBehalfRequestResponse {
1264
+ /** Array of in-progress on-behalf requests */
1265
+ data: InProgressOnBehalfRequestResponseDataList;
1266
+ paging?: PaginationInfo | undefined;
1267
+ }
1268
+ export interface GetJoinRequestsRequest {
1269
+ /** Group ID */
1270
+ group_id: string;
1271
+ }
1272
+ export interface GetJoinRequestsResponseDataItem {
1273
+ /** Join request ID */
1274
+ join_request_id?: string | undefined;
1275
+ /** WhatsApp user ID */
1276
+ wa_id?: string | undefined;
1277
+ /** Unix timestamp indicating when the join request was created */
1278
+ creation_timestamp?: number | undefined;
1279
+ }
1280
+ export type GetJoinRequestsResponseDataList = Array<GetJoinRequestsResponseDataItem>;
1281
+ export interface GetJoinRequestsResponse {
1282
+ data?: GetJoinRequestsResponseDataList | undefined;
1283
+ paging?: PagingInfo | undefined;
1284
+ }
1285
+ export interface GetMediaRequest {
1286
+ Media_ID: string;
1287
+ /** Specifies that this action only be performed if the media belongs to the provided phone number. */
1288
+ phone_number_id?: string | undefined;
1289
+ }
1290
+ export interface GetMediaResponse {
1291
+ file_size?: number | undefined;
1292
+ id?: string | undefined;
1293
+ messaging_product?: string | undefined;
1294
+ mime_type?: string | undefined;
1295
+ sha256?: string | undefined;
1296
+ url?: string | undefined;
1297
+ }
1298
+ export interface GetMessageHistoryRequest {
1299
+ /** Your WhatsApp Business Account phone number ID. This ID is provided when you register the phone number and can be found in your WhatsApp Business Manager or through phone number APIs. */
1300
+ Phone_Number_ID: string;
1301
+ /** Filter results by specific WhatsApp message ID (WAMID). When provided, only message history for this specific message will be returned. */
1302
+ message_id?: string | undefined;
1303
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, message_id). Available fields: id, message_id, events{delivery_status,webhook_update_state,timestamp,application,webhook_uri,error_description} */
1304
+ fields?: string | undefined;
1305
+ /** Maximum number of message history entries to return per page. Default is 25, maximum is 100. */
1306
+ limit?: number | undefined;
1307
+ /** Cursor for pagination. Use this to get the next page of results. This value comes from the `paging.cursors.after` field in previous responses. */
1308
+ after?: string | undefined;
1309
+ /** Cursor for pagination. Use this to get the previous page of results. This value comes from the `paging.cursors.before` field in previous responses. */
1310
+ before?: string | undefined;
1311
+ }
1312
+ /** Message delivery status */
1313
+ export type WhatsAppMessageDeliveryStatus = "SENT" | "DELIVERED" | "READ" | "FAILED" | "DELETED";
1314
+ /** State of webhook update delivery */
1315
+ export type WebhookUpdateState = "PENDING" | "DELIVERED" | "FAILED" | "RETRYING";
1316
+ /** Application information for the event */
1317
+ export interface MessageDeliveryStatusEventApplication {
1318
+ /** Application ID that processed the event */
1319
+ id?: string | undefined;
1320
+ }
1321
+ /** Message delivery status event occurrence */
1322
+ export interface MessageDeliveryStatusEvent {
1323
+ /** Unique identifier for the delivery status event */
1324
+ id: string;
1325
+ delivery_status: WhatsAppMessageDeliveryStatus;
1326
+ webhook_update_state?: WebhookUpdateState | undefined;
1327
+ /** Unix timestamp when the delivery status event occurred */
1328
+ timestamp: number;
1329
+ /** Application information for the event */
1330
+ application?: MessageDeliveryStatusEventApplication | undefined;
1331
+ /** Webhook URI where the event was delivered */
1332
+ webhook_uri?: string | undefined;
1333
+ /** Error description if the delivery failed */
1334
+ error_description?: string | undefined;
1335
+ }
1336
+ /** Array of delivery status events */
1337
+ export type WhatsAppMessageHistoryEventsDataList = Array<MessageDeliveryStatusEvent>;
1338
+ /** Message delivery status events and occurrences */
1339
+ export interface WhatsAppMessageHistoryEvents {
1340
+ /** Array of delivery status events */
1341
+ data?: WhatsAppMessageHistoryEventsDataList | undefined;
1342
+ paging?: PaginationInfo | undefined;
1343
+ }
1344
+ /** WhatsApp message history entry with delivery status information */
1345
+ export interface WhatsAppMessageHistory {
1346
+ /** Unique identifier for the message history entry */
1347
+ id: string;
1348
+ /** WhatsApp message ID (WAMID) for the message */
1349
+ message_id: string;
1350
+ /** Message delivery status events and occurrences */
1351
+ events?: WhatsAppMessageHistoryEvents | undefined;
1352
+ }
1353
+ /** Array of message history entries */
1354
+ export type MessageHistoryResponseDataList = Array<WhatsAppMessageHistory>;
1355
+ /** Paginated response containing message history entries */
1356
+ export interface MessageHistoryResponse {
1357
+ /** Array of message history entries */
1358
+ data: MessageHistoryResponseDataList;
1359
+ paging?: PaginationInfo | undefined;
1360
+ }
1361
+ export interface GetMessageHistoryEventsRequest {
1362
+ /** Your WhatsApp Business Message History ID. This ID is provided when you retrieve message history and can be found through message history APIs. */
1363
+ Message_History_ID: string;
1364
+ /** Filter results by specific delivery status. When provided, only events with this delivery status will be returned. */
1365
+ status_filter?: WhatsAppMessageDeliveryStatus | (string & {}) | undefined;
1366
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (cursor, node{id,delivery_status,occurrence_timestamp}). Available fields: cursor, node{id,delivery_status,error_description,occurrence_timestamp,status_timestamp,application} */
1367
+ fields?: string | undefined;
1368
+ /** Maximum number of message history events to return per page. Default is 25, maximum is 100. */
1369
+ limit?: number | undefined;
1370
+ /** Cursor for pagination. Use this to get the next page of results. This value comes from the `paging.cursors.after` field in previous responses. */
1371
+ after?: string | undefined;
1372
+ /** Cursor for pagination. Use this to get the previous page of results. This value comes from the `paging.cursors.before` field in previous responses. */
1373
+ before?: string | undefined;
1374
+ }
1375
+ /** Message delivery status occurrence with detailed event information */
1376
+ export interface WhatsAppBusinessMessageDeliveryStatusOccurrence {
1377
+ /** Unique identifier for the message delivery status occurrence */
1378
+ id: string;
1379
+ delivery_status: WhatsAppMessageDeliveryStatus;
1380
+ /** Error description if the delivery encountered an error */
1381
+ error_description?: string | undefined;
1382
+ /** Unix timestamp when the delivery status occurrence happened */
1383
+ occurrence_timestamp: number;
1384
+ /** Unix timestamp when the status was recorded */
1385
+ status_timestamp?: number | undefined;
1386
+ application?: ApplicationNode | undefined;
1387
+ }
1388
+ /** Edge containing message delivery status occurrence with pagination cursor */
1389
+ export interface WhatsAppMessageHistoryEventsEdge {
1390
+ /** Pagination cursor for this edge */
1391
+ cursor?: string | undefined;
1392
+ node: WhatsAppBusinessMessageDeliveryStatusOccurrence;
1393
+ }
1394
+ /** Array of message history event edges */
1395
+ export type MessageHistoryEventsResponseDataList = Array<WhatsAppMessageHistoryEventsEdge>;
1396
+ /** Paginated response containing message history events */
1397
+ export interface MessageHistoryEventsResponse {
1398
+ /** Array of message history event edges */
1399
+ data: MessageHistoryEventsResponseDataList;
1400
+ paging?: PaginationInfo | undefined;
1401
+ }
1402
+ export interface GetMessageTemplateRequest {
1403
+ TEMPLATE_ID: string;
1404
+ }
1405
+ export interface GetMessageTemplateResponseComponentsItemButtonsItem {
1406
+ text?: string | undefined;
1407
+ type?: string | undefined;
1408
+ }
1409
+ export type GetMessageTemplateResponseComponentsItemButtonsList = Array<GetMessageTemplateResponseComponentsItemButtonsItem>;
1410
+ export type GetMessageTemplateResponseComponentsItemExampleBodyTextItemList = Array<string>;
1411
+ export type GetMessageTemplateResponseComponentsItemExampleBodyTextList = Array<GetMessageTemplateResponseComponentsItemExampleBodyTextItemList>;
1412
+ export interface GetMessageTemplateResponseComponentsItemExample {
1413
+ body_text?: GetMessageTemplateResponseComponentsItemExampleBodyTextList | undefined;
1414
+ }
1415
+ export interface GetMessageTemplateResponseComponentsItem {
1416
+ buttons?: GetMessageTemplateResponseComponentsItemButtonsList | undefined;
1417
+ example?: GetMessageTemplateResponseComponentsItemExample | undefined;
1418
+ format?: string | undefined;
1419
+ text?: string | undefined;
1420
+ type?: string | undefined;
1421
+ }
1422
+ export type GetMessageTemplateResponseComponentsList = Array<GetMessageTemplateResponseComponentsItem>;
1423
+ export interface GetMessageTemplateResponse {
1424
+ category?: string | undefined;
1425
+ components?: GetMessageTemplateResponseComponentsList | undefined;
1426
+ id?: string | undefined;
1427
+ language?: string | undefined;
1428
+ name?: string | undefined;
1429
+ status?: string | undefined;
1430
+ }
1431
+ export interface GetMigrationIntentDetailsRequest {
1432
+ /** Your Migration Intent ID. This ID is provided when you create the migration intent and can be found through migration management APIs. */
1433
+ Migration_Intent_ID: string;
1434
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, status). Available fields: id, status */
1435
+ fields?: string | undefined;
1436
+ }
1437
+ /** Current status of the WhatsApp Business Account migration intent */
1438
+ export type WhatsAppBusinessAccountMigrationStatus = "ACCEPTED" | "COMPLETED" | "INITIATED" | "REJECTED";
1439
+ /** WhatsApp Business Account migration intent details and status */
1440
+ export interface WhatsAppBusinessAccountMigrationIntent {
1441
+ /** Unique identifier for the migration intent */
1442
+ id: string;
1443
+ status: WhatsAppBusinessAccountMigrationStatus;
1444
+ }
1445
+ export interface GetOBOMobilityIntentRequest {
1446
+ /** OBO Mobility Intent Node ID. This ID identifies the specific mobility intent configuration to retrieve. */
1447
+ OBO_Mobility_Intent_ID: string;
1448
+ /** Comma-separated list of fields to include in the response. If not specified, default fields (id, waba, solution) will be returned. */
1449
+ fields?: string | undefined;
1450
+ }
1451
+ /** Current status of the OBO mobility intent */
1452
+ export type OBOMobilityIntentNodeStatus = "PENDING" | "ACTIVE" | "COMPLETED" | "CANCELLED" | "FAILED";
1453
+ /** WhatsApp Business Account OBO Mobility Intent Node */
1454
+ export interface OBOMobilityIntentNode {
1455
+ /** Unique identifier for the OBO Mobility Intent Node */
1456
+ id: string;
1457
+ waba: WhatsAppBusinessAccount;
1458
+ solution: WhatsAppBusinessSolution;
1459
+ /** Current status of the OBO mobility intent */
1460
+ status?: OBOMobilityIntentNodeStatus | undefined;
1461
+ /** Timestamp when the OBO mobility intent was created (ISO 8601 format) */
1462
+ created_time?: string | undefined;
1463
+ /** Timestamp when the OBO mobility intent was last updated (ISO 8601 format) */
1464
+ updated_time?: string | undefined;
1465
+ }
1466
+ export interface GetOfficialBusinessAccountStatusRequest {
1467
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number status entity and can be obtained from your WhatsApp Business Account phone numbers list. */
1468
+ Phone_Number_ID: string;
1469
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (oba_status, status_message). Available fields: oba_status, status_message */
1470
+ fields?: string | undefined;
1471
+ }
1472
+ /** Official Business Account appeal and verification status */
1473
+ export type WhatsAppBusinessAppealStatus = "PENDING" | "APPROVED" | "REJECTED" | "UNDER_REVIEW" | "EXPIRED" | "CANCELLED";
1474
+ /** Official Business Account status information for a WhatsApp Business Account phone number */
1475
+ export interface OfficialBusinessAccountStatus {
1476
+ /** Unique identifier for the WhatsApp Business Account phone number */
1477
+ id: string;
1478
+ oba_status: WhatsAppBusinessAppealStatus;
1479
+ /** Human-readable message describing the current Official Business Account status */
1480
+ status_message: string;
1481
+ }
1482
+ /** Type of WhatsApp Business Account */
1483
+ export type WhatsAppBusinessType = "ENTERPRISE" | "SMB";
1484
+ export type GetOwnedWhatsAppBusinessAccountsRequestBusinessTypeList = Array<WhatsAppBusinessType | (string & {})>;
1485
+ export interface GetOwnedWhatsAppBusinessAccountsRequest {
1486
+ /** Your Business ID. This ID represents the business portfolio that owns the WhatsApp Business Accounts and can be found in your Business Manager settings. */
1487
+ Business_ID: string;
1488
+ /** Filter accounts by business type. Can specify multiple types as comma-separated values. Use this to filter between enterprise and small-medium business accounts. */
1489
+ business_type?: GetOwnedWhatsAppBusinessAccountsRequestBusinessTypeList | undefined;
1490
+ /** Cursor for forward pagination. Use the cursor from the previous response to get the next page of results. */
1491
+ after?: string | undefined;
1492
+ /** Number of results to return in forward pagination. Maximum value is 100. Use with 'after' cursor for forward pagination. */
1493
+ first?: number | undefined;
1494
+ /** Cursor for backward pagination. Use the cursor from the previous response to get the previous page of results. */
1495
+ before?: string | undefined;
1496
+ /** Number of results to return in backward pagination. Maximum value is 100. Use with 'before' cursor for backward pagination. */
1497
+ last?: number | undefined;
1498
+ /** Find a specific WhatsApp Business Account by ID within the owned accounts. Use this to quickly locate a specific account. */
1499
+ find?: string | undefined;
1500
+ }
1501
+ /** Array of owned WhatsApp Business Account records */
1502
+ export type WhatsAppBusinessAccountsConnectionDataList = Array<WhatsAppBusinessAccount>;
1503
+ /** Paginated collection of owned WhatsApp Business Accounts */
1504
+ export interface WhatsAppBusinessAccountsConnection {
1505
+ /** Array of owned WhatsApp Business Account records */
1506
+ data: WhatsAppBusinessAccountsConnectionDataList;
1507
+ paging?: CursorPaging | undefined;
1508
+ }
1509
+ export interface GetPhoneNumberRequest {
1510
+ /** Your WhatsApp Business Account phone number ID (CSID). This unique identifier is assigned when you register the phone number with WhatsApp Business API and can be found in your WhatsApp Business Manager. */
1511
+ Phone_Number_ID: string;
1512
+ /** Comma-separated list of additional fields to include in the response. If not specified, only default fields (id, display_phone_number, verified_name, quality_rating) are returned. **Available Fields:** - `name_status`: Display name verification status - `code_verification_status`: Two-step verification status for the phone number **Field Values:** **name_status** values: - `APPROVED`: Display name approved and ready to use - `AVAILABLE_WITHOUT_REVIEW`: Display name ready without additional review - `DECLINED`: Display name verification rejected - `EXPIRED`: Display name approval has expired - `PENDING_REVIEW`: Display name verification under review - `NONE`: No display name verification request exists **code_verification_status** values: - `VERIFIED`: Phone number has completed two-step verification - `UNVERIFIED`: Two-step verification pending or incomplete */
1513
+ fields?: string | undefined;
1514
+ }
1515
+ export interface GetPhoneNumberSettingsRequest {
1516
+ Phone_Number_ID: string;
1517
+ /** Include SIP credentials in the response (requires additional permissions) */
1518
+ include_sip_credentials?: boolean | undefined;
1519
+ }
1520
+ /** Current calling feature status */
1521
+ export type CallingSettingsResponseStatus = "enabled" | "disabled";
1522
+ /** Current call icon visibility setting */
1523
+ export type CallingSettingsResponseCallIconVisibility = "visible" | "hidden";
1524
+ /** Default IP addresses for calling */
1525
+ export type CallingSettingsResponseIpAddressesDefaultList = Array<string>;
1526
+ export interface CallingSettingsResponseIpAddresses {
1527
+ /** Default IP addresses for calling */
1528
+ default: CallingSettingsResponseIpAddressesDefaultList;
1529
+ }
1530
+ /** Callback permission status */
1531
+ export type CallingSettingsResponseCallbackPermissionStatus = "enabled" | "disabled";
1532
+ /** SRTP key exchange protocol (optional) */
1533
+ export type CallingSettingsResponseSrtpKeyExchangeProtocol = "DTLS-SRTP" | "SDES-SRTP";
1534
+ /** Call hours feature status */
1535
+ export type CallHoursSettingsStatus = "enabled" | "disabled";
1536
+ export interface CallHoursSettings {
1537
+ /** Call hours feature status */
1538
+ status: CallHoursSettingsStatus;
1539
+ /** Timezone for call hours */
1540
+ timezone?: string | undefined;
1541
+ /** Start day of the week */
1542
+ day_of_week_start?: string | undefined;
1543
+ }
1544
+ /** List of countries where call icons are restricted */
1545
+ export type CallIconsSettingsRestrictToUserCountriesList = Array<string>;
1546
+ export interface CallIconsSettings {
1547
+ /** List of countries where call icons are restricted */
1548
+ restrict_to_user_countries?: CallIconsSettingsRestrictToUserCountriesList | undefined;
1549
+ }
1550
+ /** SIP calling status */
1551
+ export type SipSettingsResponseStatus = "enabled" | "disabled";
1552
+ export interface SipServerInfo {
1553
+ /** Application ID for SIP server */
1554
+ app_id: string;
1555
+ /** SIP server hostname */
1556
+ hostname: string;
1557
+ /** SIP server port (optional) */
1558
+ port?: number | undefined;
1559
+ /** SIP password (only included when include_sip_credentials=true) */
1560
+ password?: string | Redacted.Redacted<string> | undefined;
1561
+ }
1562
+ /** SIP server configuration */
1563
+ export type SipSettingsResponseServersList = Array<SipServerInfo>;
1564
+ export interface SipSettingsResponse {
1565
+ /** SIP calling status */
1566
+ status: SipSettingsResponseStatus;
1567
+ /** SIP server configuration */
1568
+ servers?: SipSettingsResponseServersList | undefined;
1569
+ }
1570
+ /** Video calling status */
1571
+ export type VideoSettingsResponseStatus = "enabled" | "disabled";
1572
+ export interface VideoSettingsResponse {
1573
+ /** Video calling status */
1574
+ status: VideoSettingsResponseStatus;
1575
+ }
1576
+ /** Audio calling status */
1577
+ export type AudioSettingsResponseStatus = "enabled" | "disabled";
1578
+ export interface AudioSettingsResponse {
1579
+ /** Audio calling status */
1580
+ status?: AudioSettingsResponseStatus | undefined;
1581
+ }
1582
+ export interface CallingRestrictionsResponseRestrictionsItem {
1583
+ /** Type of restriction */
1584
+ type?: string | undefined;
1585
+ /** Expiration timestamp for the restriction */
1586
+ expiration?: number | undefined;
1587
+ }
1588
+ export type CallingRestrictionsResponseRestrictionsList = Array<CallingRestrictionsResponseRestrictionsItem>;
1589
+ export interface CallingRestrictionsResponse {
1590
+ restrictions?: CallingRestrictionsResponseRestrictionsList | undefined;
1591
+ }
1592
+ export interface CallingSettingsResponse {
1593
+ /** Current calling feature status */
1594
+ status: CallingSettingsResponseStatus;
1595
+ /** Current call icon visibility setting */
1596
+ call_icon_visibility: CallingSettingsResponseCallIconVisibility;
1597
+ ip_addresses?: CallingSettingsResponseIpAddresses | undefined;
1598
+ /** Callback permission status */
1599
+ callback_permission_status: CallingSettingsResponseCallbackPermissionStatus;
1600
+ /** SRTP key exchange protocol (optional) */
1601
+ srtp_key_exchange_protocol?: CallingSettingsResponseSrtpKeyExchangeProtocol | undefined;
1602
+ call_hours?: CallHoursSettings | undefined;
1603
+ call_icons?: CallIconsSettings | undefined;
1604
+ sip?: SipSettingsResponse | undefined;
1605
+ video?: VideoSettingsResponse | undefined;
1606
+ audio?: AudioSettingsResponse | undefined;
1607
+ restrictions?: CallingRestrictionsResponse | undefined;
1608
+ }
1609
+ /** Payload encryption status */
1610
+ export type PayloadEncryptionSettingsResponseStatus = "enabled" | "disabled";
1611
+ export interface PayloadEncryptionSettingsResponse {
1612
+ /** Payload encryption status */
1613
+ status: PayloadEncryptionSettingsResponseStatus;
1614
+ /** Client encryption key fingerprint (when encryption is enabled) */
1615
+ client_encryption_key_fingerprint?: string | undefined;
1616
+ /** Cloud encryption key (when encryption is enabled) */
1617
+ cloud_encryption_key?: string | Redacted.Redacted<string> | undefined;
1618
+ }
1619
+ /** Data storage configuration status */
1620
+ export type StorageConfigurationSettingsResponseStatus = "default" | "in_country_storage_enabled";
1621
+ export interface StorageConfigurationSettingsResponse {
1622
+ /** Data storage configuration status */
1623
+ status: StorageConfigurationSettingsResponseStatus;
1624
+ /** Data localization region (when in-country storage is enabled) */
1625
+ data_localization_region?: string | undefined;
1626
+ }
1627
+ export interface PhoneNumberSettingsResponse {
1628
+ calling: CallingSettingsResponse;
1629
+ payload_encryption?: PayloadEncryptionSettingsResponse | undefined;
1630
+ storage_configuration: StorageConfigurationSettingsResponse;
1631
+ }
1632
+ export interface GetPreVerifiedPhoneNumberDetailsRequest {
1633
+ /** The pre-verified phone number ID to retrieve details for. This ID is provided by your Business Solution Provider (BSP) during the pre-verification process. */
1634
+ Pre_Verified_Phone_Number_ID: string;
1635
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, is_input_id_valid). Available fields: id, country_prefix, display_phone_number, error_msg, is_input_id_valid */
1636
+ fields?: string | undefined;
1637
+ }
1638
+ /** Pre-verified phone number validation details and status */
1639
+ export interface PreVerifiedPhoneNumberValidation {
1640
+ /** Unique identifier for the pre-verified phone number */
1641
+ id?: string | undefined;
1642
+ /** Country code prefix for the phone number */
1643
+ country_prefix?: number | undefined;
1644
+ /** Formatted display version of the phone number */
1645
+ display_phone_number?: string | undefined;
1646
+ /** Error message if validation failed */
1647
+ error_msg?: string | undefined;
1648
+ /** Whether the provided phone number ID is valid */
1649
+ is_input_id_valid: boolean;
1650
+ }
1651
+ export interface GetPreVerifiedPhoneNumberPartnersRequest {
1652
+ /** Your Pre-Verified Phone Number ID. This ID is provided when the pre-verified phone number is created and can be found in your WhatsApp Business Account management interface. */
1653
+ Pre_Verified_Phone_Number_ID: string;
1654
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, name). Available fields: id, name, created_time, updated_time, verification_status, primary_page, timezone_id, two_factor_type */
1655
+ fields?: string | undefined;
1656
+ /** Maximum number of partner businesses to return per page. Default is 25, maximum is 100. */
1657
+ limit?: number | undefined;
1658
+ /** Cursor for pagination. Use the 'after' cursor from a previous response to get the next page. */
1659
+ after?: string | undefined;
1660
+ /** Cursor for pagination. Use the 'before' cursor from a previous response to get the previous page. */
1661
+ before?: string | undefined;
1662
+ }
1663
+ /** Business verification status */
1664
+ export type BusinessPartnerVerificationStatus = "not_verified" | "pending" | "verified";
1665
+ /** Two-factor authentication method configured for the business */
1666
+ export type BusinessPartnerTwoFactorType = "none" | "admin_required";
1667
+ /** Business entity that has partner access to the pre-verified phone number */
1668
+ export interface BusinessPartner {
1669
+ /** Unique identifier for the partner business */
1670
+ id: string;
1671
+ /** Name of the partner business */
1672
+ name: string;
1673
+ /** ISO 8601 timestamp when the business was created */
1674
+ created_time?: string | undefined;
1675
+ /** ISO 8601 timestamp when the business was last updated */
1676
+ updated_time?: string | undefined;
1677
+ /** Business verification status */
1678
+ verification_status?: BusinessPartnerVerificationStatus | undefined;
1679
+ /** Primary Facebook Page ID associated with the business */
1680
+ primary_page?: string | undefined;
1681
+ /** Timezone identifier for the business location */
1682
+ timezone_id?: number | undefined;
1683
+ /** Two-factor authentication method configured for the business */
1684
+ two_factor_type?: BusinessPartnerTwoFactorType | undefined;
1685
+ }
1686
+ /** List of partner businesses with access to the pre-verified phone number */
1687
+ export type WhatsAppBusinessPreVerifiedPhoneNumberPartnersResponseDataList = Array<BusinessPartner>;
1688
+ /** Response containing partner businesses for a pre-verified phone number */
1689
+ export interface WhatsAppBusinessPreVerifiedPhoneNumberPartnersResponse {
1690
+ /** List of partner businesses with access to the pre-verified phone number */
1691
+ data: WhatsAppBusinessPreVerifiedPhoneNumberPartnersResponseDataList;
1692
+ paging?: CursorPaging | undefined;
1693
+ }
1694
+ /** Current verification status of the pre-verified phone number */
1695
+ export type PhoneNumberVerificationStatus = "VERIFIED" | "PENDING" | "FAILED" | "EXPIRED";
1696
+ /** Current availability status of the pre-verified phone number */
1697
+ export type PhoneNumberAvailabilityStatus = "AVAILABLE" | "IN_USE" | "RESERVED" | "UNAVAILABLE";
1698
+ export interface GetPreVerifiedPhoneNumbersRequest {
1699
+ /** Your Business ID for which to retrieve pre-verified phone numbers. This ID can be found in your Meta Business Manager or through business management APIs. */
1700
+ Business_ID: string;
1701
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, display_phone_number, verification_status). Available fields: id, display_phone_number, country_prefix, verification_status, availability_status, created_time, last_updated, supported_features, country_code, region */
1702
+ fields?: string | undefined;
1703
+ /** Maximum number of phone numbers to return per page. Default is 25, maximum is 100. */
1704
+ limit?: number | undefined;
1705
+ /** Cursor for pagination. Use this to retrieve the next page of results. This value is provided in the 'paging' object of previous responses. */
1706
+ after?: string | undefined;
1707
+ /** Cursor for pagination. Use this to retrieve the previous page of results. This value is provided in the 'paging' object of previous responses. */
1708
+ before?: string | undefined;
1709
+ /** Filter results by verification status. Only phone numbers with the specified verification status will be returned. */
1710
+ verification_status?: PhoneNumberVerificationStatus | (string & {}) | undefined;
1711
+ /** Filter results by availability status. Only phone numbers with the specified availability status will be returned. */
1712
+ availability_status?: PhoneNumberAvailabilityStatus | (string & {}) | undefined;
1713
+ /** Filter results by country code. Only phone numbers from the specified country will be returned. Use ISO 3166-1 alpha-2 country codes. */
1714
+ country_code?: string | undefined;
1715
+ }
1716
+ /** WhatsApp Business features supported by the phone number */
1717
+ export type WhatsAppBusinessFeature = "MESSAGING" | "BUSINESS_PROFILE" | "WEBHOOKS" | "TEMPLATES" | "ANALYTICS" | "COMMERCE" | "FLOWS";
1718
+ /** List of WhatsApp Business features supported by this phone number */
1719
+ export type PreVerifiedPhoneNumberSupportedFeaturesList = Array<WhatsAppBusinessFeature>;
1720
+ /** Pre-verified phone number details and status information */
1721
+ export interface PreVerifiedPhoneNumber {
1722
+ /** Unique identifier for the pre-verified phone number */
1723
+ id: string;
1724
+ /** Formatted display version of the phone number */
1725
+ display_phone_number: string;
1726
+ /** Country code prefix for the phone number */
1727
+ country_prefix?: number | undefined;
1728
+ verification_status: PhoneNumberVerificationStatus;
1729
+ availability_status?: PhoneNumberAvailabilityStatus | undefined;
1730
+ /** Timestamp when the phone number was pre-verified */
1731
+ created_time?: string | undefined;
1732
+ /** Timestamp when the phone number information was last updated */
1733
+ last_updated?: string | undefined;
1734
+ /** List of WhatsApp Business features supported by this phone number */
1735
+ supported_features?: PreVerifiedPhoneNumberSupportedFeaturesList | undefined;
1736
+ /** ISO 3166-1 alpha-2 country code for the phone number */
1737
+ country_code?: string | undefined;
1738
+ /** Geographic region or area for the phone number */
1739
+ region?: string | undefined;
1740
+ }
1741
+ /** List of pre-verified phone numbers */
1742
+ export type PreVerifiedPhoneNumbersResponseDataList = Array<PreVerifiedPhoneNumber>;
1743
+ /** Response containing list of pre-verified phone numbers */
1744
+ export interface PreVerifiedPhoneNumbersResponse {
1745
+ /** List of pre-verified phone numbers */
1746
+ data: PreVerifiedPhoneNumbersResponseDataList;
1747
+ paging?: CursorPaging | undefined;
1748
+ }
1749
+ export interface GetSolutionAccessTokenRequest {
1750
+ /** Your Multi-Partner Solution ID. This ID is provided when you create the solution and can be found in your Partner Dashboard or through solution management APIs. */
1751
+ Solution_ID: string;
1752
+ /** The customer business ID for which you want to retrieve an access token. This must be a business that has shared a WhatsApp Business Account with your Multi-Partner Solution. */
1753
+ business_id: string;
1754
+ }
1755
+ /** Granular BISU access token response for Multi-Partner Solution partners */
1756
+ export interface WhatsAppBusinessSolutionAccessToken {
1757
+ /** Granular BISU access token for accessing customer business resources */
1758
+ access_token: string | Redacted.Redacted<string>;
1759
+ /** Unix timestamp indicating when the access token expires */
1760
+ expires_at: number;
1761
+ }
1762
+ export interface GetSolutionDetailsRequest {
1763
+ /** Your Multi-Partner Solution ID. This ID is provided when you create the solution and can be found in your Partner Dashboard or through solution management APIs. */
1764
+ Solution_ID: string;
1765
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (name, status, status_for_pending_request). Available fields: id, name, status, status_for_pending_request, owner_app, owner_permissions */
1766
+ fields?: string | undefined;
1767
+ }
1768
+ export interface GetWhatsAppAccountNumberDetailsRequest {
1769
+ /** Your WhatsApp Account Number ID. This ID represents the account number entity and can be obtained from your WhatsApp Business Account phone numbers list. */
1770
+ WhatsApp_Account_Number_ID: string;
1771
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, display_phone_number, status). Available fields: id, display_phone_number, verified_name, status, quality_rating, country_code, country_dial_code, code_verification_status, name_status, messaging_limit_tier, account_mode, certificate, is_official_business_account */
1772
+ fields?: string | undefined;
1773
+ }
1774
+ /** Current status of the WhatsApp Account Number */
1775
+ export type WhatsAppAccountNumberStatus = "CONNECTED" | "DISCONNECTED" | "UNVERIFIED" | "PENDING" | "FLAGGED" | "RESTRICTED";
1776
+ /** Quality rating based on message delivery and user feedback */
1777
+ export type WhatsAppPhoneNumberQualityRating = "GREEN" | "YELLOW" | "RED" | "NA";
1778
+ /** Two-step verification status for the phone number */
1779
+ export type WhatsAppCodeVerificationStatus = "VERIFIED" | "UNVERIFIED";
1780
+ /** Status of the display name associated with the phone number */
1781
+ export type WhatsAppDisplayNameStatus = "APPROVED" | "AVAILABLE_WITHOUT_REVIEW" | "DECLINED" | "EXPIRED" | "PENDING_REVIEW" | "NONE";
1782
+ /** Current messaging limit tier for the account number */
1783
+ export type WhatsAppAccountNumberMessagingLimitTier = "TIER_50" | "TIER_250" | "TIER_1K" | "TIER_10K" | "TIER_100K" | "TIER_UNLIMITED";
1784
+ /** Account mode indicating sandbox or live environment */
1785
+ export type WhatsAppBusinessSandboxEligibility = "LIVE" | "SANDBOX";
1786
+ /** WhatsApp Account Number details and configuration */
1787
+ export interface WhatsAppAccountNumber {
1788
+ /** Unique identifier for the WhatsApp Account Number */
1789
+ id: string;
1790
+ /** Phone number in international format for display purposes */
1791
+ display_phone_number: string;
1792
+ /** Business name verified for this phone number */
1793
+ verified_name?: string | undefined;
1794
+ status: WhatsAppAccountNumberStatus;
1795
+ quality_rating?: WhatsAppPhoneNumberQualityRating | undefined;
1796
+ /** ISO 3166-1 alpha-2 country code */
1797
+ country_code?: string | undefined;
1798
+ /** Country dialing code */
1799
+ country_dial_code?: string | undefined;
1800
+ code_verification_status?: WhatsAppCodeVerificationStatus | undefined;
1801
+ name_status?: WhatsAppDisplayNameStatus | undefined;
1802
+ /** Current messaging limit tier for the account number */
1803
+ messaging_limit_tier?: WhatsAppAccountNumberMessagingLimitTier | undefined;
1804
+ account_mode?: WhatsAppBusinessSandboxEligibility | undefined;
1805
+ /** Business certificate information for the account number */
1806
+ certificate?: string | undefined;
1807
+ /** Whether this is an official business account */
1808
+ is_official_business_account?: boolean | undefined;
1809
+ }
1810
+ export interface GetWhatsAppBusinessAccountActivitiesRequest {
1811
+ /** Your WhatsApp Business Account ID. This ID can be found in your WhatsApp Manager or through the business account management APIs. */
1812
+ WABA_ID: string;
1813
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, activity_type, timestamp, actor_type). Available fields: id, activity_type, timestamp, actor_type, actor_id, actor_name, description, details, ip_address, user_agent */
1814
+ fields?: string | undefined;
1815
+ /** Maximum number of activity records to return per page. Default is 25, maximum is 100. */
1816
+ limit?: number | undefined;
1817
+ /** Cursor for pagination. Use this to get the next page of results. */
1818
+ after?: string | undefined;
1819
+ /** Cursor for pagination. Use this to get the previous page of results. */
1820
+ before?: string | undefined;
1821
+ /** Unix timestamp or ISO 8601 date string. Only return activities that occurred after this time. */
1822
+ since?: string | undefined;
1823
+ /** Unix timestamp or ISO 8601 date string. Only return activities that occurred before this time. */
1824
+ until?: string | undefined;
1825
+ /** Filter activities by type. Can be a single type or comma-separated list of types. */
1826
+ activity_type?: string | undefined;
1827
+ }
1828
+ /** Type of activity performed on the WhatsApp Business Account */
1829
+ export type ActivityType = "ACCOUNT_CREATED" | "ACCOUNT_UPDATED" | "ACCOUNT_DELETED" | "PHONE_NUMBER_ADDED" | "PHONE_NUMBER_REMOVED" | "PHONE_NUMBER_VERIFIED" | "USER_ADDED" | "USER_REMOVED" | "USER_ROLE_CHANGED" | "PERMISSION_GRANTED" | "PERMISSION_REVOKED" | "TEMPLATE_CREATED" | "TEMPLATE_UPDATED" | "TEMPLATE_DELETED" | "WEBHOOK_CONFIGURED" | "API_ACCESS_GRANTED" | "API_ACCESS_REVOKED" | "BILLING_UPDATED" | "COMPLIANCE_ACTION" | "SECURITY_EVENT";
1830
+ /** Type of entity that performed the activity */
1831
+ export type ActorType = "USER" | "SYSTEM" | "API" | "ADMIN" | "AUTOMATED_PROCESS";
1832
+ /** Additional structured details about the activity */
1833
+ export type WhatsAppBusinessAccountActivityDetailsMap = {
1834
+ [key: string]: unknown | undefined;
1835
+ };
1836
+ /** WhatsApp Business Account activity record */
1837
+ export interface WhatsAppBusinessAccountActivity {
1838
+ /** Unique identifier for the activity record */
1839
+ id: string;
1840
+ activity_type: ActivityType;
1841
+ /** ISO 8601 timestamp when the activity occurred */
1842
+ timestamp: string;
1843
+ actor_type: ActorType;
1844
+ /** ID of the user or system that performed the activity */
1845
+ actor_id?: string | undefined;
1846
+ /** Name of the user or system that performed the activity */
1847
+ actor_name?: string | undefined;
1848
+ /** Human-readable description of the activity */
1849
+ description?: string | undefined;
1850
+ /** Additional structured details about the activity */
1851
+ details?: WhatsAppBusinessAccountActivityDetailsMap | undefined;
1852
+ /** IP address from which the activity was performed (when available) */
1853
+ ip_address?: string | undefined;
1854
+ /** User agent string from the client that performed the activity */
1855
+ user_agent?: string | undefined;
1856
+ }
1857
+ /** Array of activity records */
1858
+ export type ActivityListDataList = Array<WhatsAppBusinessAccountActivity>;
1859
+ /** Paginated list of WhatsApp Business Account activities */
1860
+ export interface ActivityList {
1861
+ /** Array of activity records */
1862
+ data: ActivityListDataList;
1863
+ paging?: Paging | undefined;
1864
+ }
1865
+ export interface GetWhatsAppBusinessAccountDetailsRequest {
1866
+ /** Your WhatsApp Business Account ID. This ID is provided when you create the account and can be found in your WhatsApp Manager or through business management APIs. */
1867
+ WABA_ID: string;
1868
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id, name). Available fields: id, name, timezone_id, message_template_namespace, account_review_status, business_verification_status, country, ownership_type, primary_business_location */
1869
+ fields?: string | undefined;
1870
+ }
1871
+ export type GetWhatsAppBusinessAccountPhoneNumbersRequestSort = "creation_time.asc" | "creation_time.desc" | "last_onboarded_time.asc" | "last_onboarded_time.desc";
1872
+ export interface GetWhatsAppBusinessAccountPhoneNumbersRequest {
1873
+ /** WhatsApp Business Account ID. This ID can be found in your WhatsApp Manager or through the business management APIs. */
1874
+ WABA_ID: string;
1875
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned. Available fields include: id, display_phone_number, verified_name, status, quality_rating, country_code, country_dial_code, code_verification_status, unified_cert_status, account_mode, host_platform, messaging_limit_tier, is_official_business_account, username */
1876
+ fields?: string | undefined;
1877
+ /** JSON-encoded array of filter conditions. Each filter should specify field, operator, and value. Supported fields: account_mode, messaging_limit_tier, is_official_business_account */
1878
+ filtering?: string | undefined;
1879
+ /** Sort field and direction. Format: field_name.asc or field_name.desc Supported fields: creation_time, last_onboarded_time */
1880
+ sort?: GetWhatsAppBusinessAccountPhoneNumbersRequestSort | (string & {}) | undefined;
1881
+ /** Maximum number of phone numbers to return per page */
1882
+ limit?: number | undefined;
1883
+ /** Cursor for pagination - retrieve records after this cursor */
1884
+ after?: string | undefined;
1885
+ /** Cursor for pagination - retrieve records before this cursor */
1886
+ before?: string | undefined;
1887
+ }
1888
+ /** Current status of the phone number in the WhatsApp Business Account */
1889
+ export type WhatsAppPhoneNumberStatus = "PENDING" | "LINKED" | "UNLINKED" | "DELETED" | "MIGRATED" | "BANNED" | "RESTRICTED";
1890
+ /** Unified certification status combining business and name verification */
1891
+ export type WhatsAppBusinessUnifiedCertStatus = "APPROVED" | "NAME_PENDING_REVIEW" | "NAME_NOT_APPROVED" | "ACCOUNT_REVIEW_NOT_STARTED" | "LIMITED_ACCESS";
1892
+ /** Platform hosting the WhatsApp Business Account */
1893
+ export type WhatsAppBusinessAccountHostPlatform = "CLOUD_API" | "ON_PREMISE" | "NOT_APPLICABLE";
1894
+ /** Current messaging limit tier for the phone number */
1895
+ export type WhatsAppBusinessAccountPhoneNumberMessagingLimitTier = "TIER_50" | "TIER_250" | "TIER_1K" | "TIER_10K" | "TIER_100K" | "TIER_UNLIMITED";
1896
+ /** WhatsApp Business Account phone number details and status information */
1897
+ export interface WhatsAppBusinessAccountPhoneNumber {
1898
+ /** Unique identifier for the phone number status record */
1899
+ id: string;
1900
+ /** Phone number in international format for display purposes */
1901
+ display_phone_number: string;
1902
+ /** Business name verified for this phone number */
1903
+ verified_name?: string | undefined;
1904
+ status?: WhatsAppPhoneNumberStatus | undefined;
1905
+ quality_rating?: WhatsAppPhoneNumberQualityRating | undefined;
1906
+ /** ISO 3166-1 alpha-2 country code */
1907
+ country_code?: string | undefined;
1908
+ /** Country dialing code */
1909
+ country_dial_code?: string | undefined;
1910
+ code_verification_status?: WhatsAppCodeVerificationStatus | undefined;
1911
+ unified_cert_status?: WhatsAppBusinessUnifiedCertStatus | undefined;
1912
+ account_mode?: WhatsAppBusinessSandboxEligibility | undefined;
1913
+ host_platform?: WhatsAppBusinessAccountHostPlatform | undefined;
1914
+ /** Current messaging limit tier for the phone number */
1915
+ messaging_limit_tier?: WhatsAppBusinessAccountPhoneNumberMessagingLimitTier | undefined;
1916
+ /** Whether this is an official business account */
1917
+ is_official_business_account?: boolean | undefined;
1918
+ /** WhatsApp username for the business account (if available) */
1919
+ username?: string | null | undefined;
1920
+ }
1921
+ /** Array of phone number records */
1922
+ export type WhatsAppBusinessAccountPhoneNumbersConnectionDataList = Array<WhatsAppBusinessAccountPhoneNumber>;
1923
+ /** Paginated collection of WhatsApp Business Account phone numbers */
1924
+ export interface WhatsAppBusinessAccountPhoneNumbersConnection {
1925
+ /** Array of phone number records */
1926
+ data: WhatsAppBusinessAccountPhoneNumbersConnectionDataList;
1927
+ paging?: CursorPaging | undefined;
1928
+ }
1929
+ export type GetWhatsAppBusinessAccountSchedulesRequestSort = "created_time.asc" | "created_time.desc" | "updated_time.asc" | "updated_time.desc";
1930
+ export interface GetWhatsAppBusinessAccountSchedulesRequest {
1931
+ /** WhatsApp Business Account ID. This ID can be found in your WhatsApp Manager or through the business management APIs. */
1932
+ WABA_ID: string;
1933
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned. Available fields include: id, name, status, schedule_type, description, start_time, end_time, timezone, days_of_week, created_time, updated_time, is_active, recurrence_pattern */
1934
+ fields?: string | undefined;
1935
+ /** JSON-encoded array of filter conditions. Each filter should specify field, operator, and value. Supported fields: status, schedule_type, is_active */
1936
+ filtering?: string | undefined;
1937
+ /** Sort field and direction. Format: field_name.asc or field_name.desc Supported fields: created_time, updated_time */
1938
+ sort?: GetWhatsAppBusinessAccountSchedulesRequestSort | (string & {}) | undefined;
1939
+ /** Maximum number of schedules to return per page */
1940
+ limit?: number | undefined;
1941
+ /** Cursor for pagination - retrieve records after this cursor */
1942
+ after?: string | undefined;
1943
+ /** Cursor for pagination - retrieve records before this cursor */
1944
+ before?: string | undefined;
1945
+ }
1946
+ /** Current status of the schedule */
1947
+ export type WhatsAppScheduleStatus = "ACTIVE" | "INACTIVE" | "PAUSED" | "EXPIRED" | "DRAFT";
1948
+ /** Days of the week when the schedule is active */
1949
+ export type WhatsAppBusinessAccountScheduleDaysOfWeekList = Array<DayOfWeek>;
1950
+ /** WhatsApp Business Account schedule configuration and details */
1951
+ export interface WhatsAppBusinessAccountSchedule {
1952
+ /** Unique identifier for the schedule */
1953
+ id: string;
1954
+ /** Human-readable name for the schedule */
1955
+ name: string;
1956
+ status: WhatsAppScheduleStatus;
1957
+ schedule_type: WhatsAppScheduleType;
1958
+ /** Optional description of the schedule purpose */
1959
+ description?: string | undefined;
1960
+ /** Schedule start time in HH:MM format */
1961
+ start_time?: string | undefined;
1962
+ /** Schedule end time in HH:MM format */
1963
+ end_time?: string | undefined;
1964
+ /** Timezone identifier for the schedule */
1965
+ timezone?: string | undefined;
1966
+ /** Days of the week when the schedule is active */
1967
+ days_of_week?: WhatsAppBusinessAccountScheduleDaysOfWeekList | undefined;
1968
+ /** ISO 8601 timestamp when the schedule was created */
1969
+ created_time?: string | undefined;
1970
+ /** ISO 8601 timestamp when the schedule was last updated */
1971
+ updated_time?: string | undefined;
1972
+ /** Whether the schedule is currently active */
1973
+ is_active?: boolean | undefined;
1974
+ recurrence_pattern?: RecurrencePattern | undefined;
1975
+ }
1976
+ /** Array of schedule records */
1977
+ export type WhatsAppBusinessAccountSchedulesConnectionDataList = Array<WhatsAppBusinessAccountSchedule>;
1978
+ /** Paginated collection of WhatsApp Business Account schedules */
1979
+ export interface WhatsAppBusinessAccountSchedulesConnection {
1980
+ /** Array of schedule records */
1981
+ data: WhatsAppBusinessAccountSchedulesConnectionDataList;
1982
+ paging?: CursorPaging | undefined;
1983
+ }
1984
+ export interface GetWhatsAppBusinessBotDetailsRequest {
1985
+ /** Your WhatsApp Business Bot ID. This ID is provided when you create the bot and can be found in your Business Manager or through bot management APIs. */
1986
+ WABA_Bot_ID: string;
1987
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (prompts, commands, enable_welcome_message). Available fields: id, prompts, commands, enable_welcome_message */
1988
+ fields?: string | undefined;
1989
+ }
1990
+ /** List of bot prompts and automated responses */
1991
+ export type WhatsAppBusinessBotPromptsList = Array<string>;
1992
+ /** Bot command configuration with name and description */
1993
+ export interface WhatsAppBusinessBotCommand {
1994
+ /** Name of the bot command */
1995
+ command_name: string;
1996
+ /** Description of what the command does */
1997
+ command_description: string;
1998
+ }
1999
+ /** List of available bot commands and their descriptions */
2000
+ export type WhatsAppBusinessBotCommandsList = Array<WhatsAppBusinessBotCommand>;
2001
+ /** WhatsApp Business Bot configuration and details */
2002
+ export interface WhatsAppBusinessBot {
2003
+ /** Unique identifier for the WhatsApp Business Bot */
2004
+ id: string;
2005
+ /** List of bot prompts and automated responses */
2006
+ prompts?: WhatsAppBusinessBotPromptsList | undefined;
2007
+ /** List of available bot commands and their descriptions */
2008
+ commands?: WhatsAppBusinessBotCommandsList | undefined;
2009
+ /** Whether the welcome message is enabled for this bot */
2010
+ enable_welcome_message?: boolean | undefined;
2011
+ }
2012
+ export interface GetWhatsAppBusinessProfileRequest {
2013
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number status entity and can be obtained from your WhatsApp Business Account phone numbers list. */
2014
+ Phone_Number_ID: string;
2015
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (messaging_product, about, address, description, email, profile_picture_url, websites, vertical). Available fields: messaging_product, about, address, description, email, profile_picture_url, websites, vertical */
2016
+ fields?: string | undefined;
2017
+ }
2018
+ /** The messaging service used for the request */
2019
+ export type WhatsAppBusinessProfileMessagingProduct = "whatsapp";
2020
+ /** URLs associated with the business */
2021
+ export type WhatsAppBusinessProfileWebsitesList = Array<string>;
2022
+ /** The industry type of the business */
2023
+ export type WhatsAppBusinessVertical = "OTHER" | "AUTO" | "BEAUTY" | "APPAREL" | "EDU" | "ENTERTAIN" | "EVENT_PLAN" | "FINANCE" | "GROCERY" | "GOVT" | "HOTEL" | "HEALTH" | "NONPROFIT" | "PROF_SERVICES" | "RETAIL" | "TRAVEL" | "RESTAURANT" | "ALCOHOL" | "ONLINE_GAMBLING" | "PHYSICAL_GAMBLING" | "OTC_DRUGS";
2024
+ /** WhatsApp Business Profile information and settings */
2025
+ export interface WhatsAppBusinessProfile {
2026
+ /** The messaging service used for the request */
2027
+ messaging_product: WhatsAppBusinessProfileMessagingProduct;
2028
+ /** The text to display in business profile's About section */
2029
+ about?: string | undefined;
2030
+ /** The address of the business */
2031
+ address?: string | undefined;
2032
+ /** Description of the business */
2033
+ description?: string | undefined;
2034
+ /** The contact email address of the business */
2035
+ email?: string | undefined;
2036
+ /** URL of the business profile picture */
2037
+ profile_picture_url?: string | undefined;
2038
+ /** URLs associated with the business */
2039
+ websites?: WhatsAppBusinessProfileWebsitesList | undefined;
2040
+ vertical?: WhatsAppBusinessVertical | undefined;
2041
+ }
2042
+ export type WhatsAppBusinessProfileResponseDataList = Array<WhatsAppBusinessProfile>;
2043
+ /** Response containing business profile information */
2044
+ export interface WhatsAppBusinessProfileResponse {
2045
+ data?: WhatsAppBusinessProfileResponseDataList | undefined;
2046
+ }
2047
+ export interface GetWhatsAppBusinessProfileDetailsRequest {
2048
+ /** Your WhatsApp Business Profile ID. This ID is provided when the profile is created and can be found in your WhatsApp Business Manager or through business management APIs. */
2049
+ WhatsApp_Business_Profile_ID: string;
2050
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (id and any available profile fields). Available fields: id, account_name, description, email, about, address, vertical, websites, profile_picture_url, messaging_product */
2051
+ fields?: string | undefined;
2052
+ }
2053
+ /** List of website URLs associated with the business */
2054
+ export type WhatsAppBusinessProfileNodeWebsitesList = Array<string>;
2055
+ /** The messaging service used */
2056
+ export type WhatsAppBusinessProfileNodeMessagingProduct = "whatsapp";
2057
+ /** WhatsApp Business Profile node details and configuration */
2058
+ export interface WhatsAppBusinessProfileNode {
2059
+ /** Unique identifier for the WhatsApp Business Profile */
2060
+ id: string;
2061
+ /** Name of the business account */
2062
+ account_name?: string | undefined;
2063
+ /** Business description text */
2064
+ description?: string | undefined;
2065
+ /** Contact email address of the business */
2066
+ email?: string | undefined;
2067
+ /** About section text for the business profile */
2068
+ about?: string | undefined;
2069
+ /** Physical address of the business */
2070
+ address?: string | undefined;
2071
+ vertical?: WhatsAppBusinessVertical | undefined;
2072
+ /** List of website URLs associated with the business */
2073
+ websites?: WhatsAppBusinessProfileNodeWebsitesList | undefined;
2074
+ /** URL of the business profile picture */
2075
+ profile_picture_url?: string | undefined;
2076
+ /** Handle of the profile picture for upload operations */
2077
+ profile_picture_handle?: string | undefined;
2078
+ /** The messaging service used */
2079
+ messaging_product?: WhatsAppBusinessProfileNodeMessagingProduct | undefined;
2080
+ }
2081
+ export interface ListAllQrCodesRequest {
2082
+ /** The WhatsApp Business Account phone number ID for which to list QR codes. This ID is provided when you add a phone number to your WhatsApp Business Account. */
2083
+ Phone_Number_ID: string;
2084
+ /** Comma-separated list of fields to include in the response. Available fields: - code: QR code identifier (always included) - prefilled_message: Pre-filled message text (always included) - deep_link_url: WhatsApp deep link URL (always included) - creation_time: Unix timestamp when QR code was created (first-party apps only) - qr_image_url.format(FORMAT): QR code image URL where FORMAT is SVG or PNG Example: "code,prefilled_message,qr_image_url.format(SVG)" */
2085
+ fields?: string | undefined;
2086
+ /** Filter results to a specific QR code by its unique identifier. When provided, only the matching QR code will be returned (if it exists). */
2087
+ code?: string | undefined;
2088
+ /** Maximum number of QR codes to return in a single response. Default and maximum limit is typically 25. */
2089
+ limit?: number | undefined;
2090
+ /** Cursor for pagination. Use this to get the next page of results. Obtain this value from the paging.cursors.after field in previous responses. */
2091
+ after?: string | undefined;
2092
+ /** Cursor for pagination. Use this to get the previous page of results. Obtain this value from the paging.cursors.before field in previous responses. */
2093
+ before?: string | undefined;
2094
+ }
2095
+ /** Complete details of a message QR code */
2096
+ export interface QrCodeDetails {
2097
+ /** Unique 14-character QR code identifier */
2098
+ code: string;
2099
+ /** Pre-filled message text that appears in customer chat */
2100
+ prefilled_message: string;
2101
+ /** WhatsApp deep link URL for direct conversation initiation */
2102
+ deep_link_url: string;
2103
+ /** Unix timestamp when QR code was created (first-party apps only) */
2104
+ creation_time?: number | undefined;
2105
+ /** QR code image download URL (when format specified in fields) */
2106
+ qr_image_url?: string | undefined;
2107
+ }
2108
+ /** Array of QR code objects */
2109
+ export type QrCodeListDataList = Array<QrCodeDetails>;
2110
+ export interface QrCodeListPagingCursors {
2111
+ /** Cursor for accessing the previous page of results */
2112
+ before?: string | undefined;
2113
+ /** Cursor for accessing the next page of results */
2114
+ after?: string | undefined;
2115
+ }
2116
+ /** Pagination information for navigating through large result sets. Contains cursors for accessing previous and next pages of results. */
2117
+ export interface QrCodeListPaging {
2118
+ cursors?: QrCodeListPagingCursors | undefined;
2119
+ /** URL for the previous page of results */
2120
+ previous?: string | undefined;
2121
+ /** URL for the next page of results */
2122
+ next?: string | undefined;
2123
+ }
2124
+ /** List of message QR codes with pagination information */
2125
+ export interface QrCodeList {
2126
+ /** Array of QR code objects */
2127
+ data: QrCodeListDataList;
2128
+ /** Pagination information for navigating through large result sets. Contains cursors for accessing previous and next pages of results. */
2129
+ paging?: QrCodeListPaging | undefined;
2130
+ }
2131
+ export interface ListFlowAssetsRequest {
2132
+ Flow_ID: string;
2133
+ }
2134
+ export interface ListFlowAssetsResponseDataItem {
2135
+ asset_type?: string | undefined;
2136
+ download_url?: string | undefined;
2137
+ name?: string | undefined;
2138
+ }
2139
+ export type ListFlowAssetsResponseDataList = Array<ListFlowAssetsResponseDataItem>;
2140
+ export type ListFlowAssetsResponsePagingCursors = PaginationCursors;
2141
+ export type ListFlowAssetsResponsePaging = Paging;
2142
+ export interface ListFlowAssetsResponse {
2143
+ data?: ListFlowAssetsResponseDataList | undefined;
2144
+ paging?: Paging | undefined;
2145
+ }
2146
+ export interface ListFlowsRequest {
2147
+ WABA_ID: string;
2148
+ }
2149
+ export type ListFlowsResponseDataItemCategoriesList = Array<string>;
2150
+ export type ListFlowsResponseDataItemValidationErrorsList = Array<unknown>;
2151
+ export interface ListFlowsResponseDataItem {
2152
+ categories?: ListFlowsResponseDataItemCategoriesList | undefined;
2153
+ id?: string | undefined;
2154
+ name?: string | undefined;
2155
+ status?: string | undefined;
2156
+ validation_errors?: ListFlowsResponseDataItemValidationErrorsList | undefined;
2157
+ }
2158
+ export type ListFlowsResponseDataList = Array<ListFlowsResponseDataItem>;
2159
+ export type ListFlowsResponsePagingCursors = PaginationCursors;
2160
+ export type ListFlowsResponsePaging = Paging;
2161
+ export interface ListFlowsResponse {
2162
+ data?: ListFlowsResponseDataList | undefined;
2163
+ paging?: Paging | undefined;
2164
+ }
2165
+ export interface ListMessageTemplatesRequest {
2166
+ WABA_ID: string;
2167
+ name?: string | undefined;
2168
+ /** Comma-separated template fields to return (e.g. `name,status,category,language,components`). */
2169
+ fields?: string | undefined;
2170
+ /** Maximum number of templates to return per page. */
2171
+ limit?: number | undefined;
2172
+ /** Cursor for pagination: `paging.cursors.after` of the previous page. */
2173
+ after?: string | undefined;
2174
+ }
2175
+ export type ListMessageTemplatesResponseDataItemComponentsItemButtonsItem = GetMessageTemplateResponseComponentsItemButtonsItem;
2176
+ export type ListMessageTemplatesResponseDataItemComponentsItemButtonsList = Array<GetMessageTemplateResponseComponentsItemButtonsItem>;
2177
+ export type ListMessageTemplatesResponseDataItemComponentsItemExampleBodyTextItemList = Array<string>;
2178
+ export type ListMessageTemplatesResponseDataItemComponentsItemExampleBodyTextList = Array<ListMessageTemplatesResponseDataItemComponentsItemExampleBodyTextItemList>;
2179
+ export interface ListMessageTemplatesResponseDataItemComponentsItemExample {
2180
+ body_text?: ListMessageTemplatesResponseDataItemComponentsItemExampleBodyTextList | undefined;
2181
+ }
2182
+ export interface ListMessageTemplatesResponseDataItemComponentsItem {
2183
+ buttons?: ListMessageTemplatesResponseDataItemComponentsItemButtonsList | undefined;
2184
+ example?: ListMessageTemplatesResponseDataItemComponentsItemExample | undefined;
2185
+ format?: string | undefined;
2186
+ text?: string | undefined;
2187
+ type?: string | undefined;
2188
+ }
2189
+ export type ListMessageTemplatesResponseDataItemComponentsList = Array<ListMessageTemplatesResponseDataItemComponentsItem>;
2190
+ export interface ListMessageTemplatesResponseDataItem {
2191
+ category?: string | undefined;
2192
+ components?: ListMessageTemplatesResponseDataItemComponentsList | undefined;
2193
+ id?: string | undefined;
2194
+ language?: string | undefined;
2195
+ name?: string | undefined;
2196
+ status?: string | undefined;
2197
+ }
2198
+ export type ListMessageTemplatesResponseDataList = Array<ListMessageTemplatesResponseDataItem>;
2199
+ export type ListMessageTemplatesResponsePagingCursors = PaginationCursors;
2200
+ export interface ListMessageTemplatesResponsePaging {
2201
+ cursors?: PaginationCursors | undefined;
2202
+ /** URL of the next page; absent on the last page. */
2203
+ next?: string | undefined;
2204
+ /** URL of the previous page; absent on the first page. */
2205
+ previous?: string | undefined;
2206
+ }
2207
+ export interface ListMessageTemplatesResponse {
2208
+ data: ListMessageTemplatesResponseDataList;
2209
+ paging?: ListMessageTemplatesResponsePaging | undefined;
2210
+ }
2211
+ export interface ListSubscribedAppsRequest {
2212
+ /** WhatsApp Business Account ID. This ID can be found in your WhatsApp Manager or through business management APIs. */
2213
+ WABA_ID: string;
2214
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned. Available fields: id, name, link */
2215
+ fields?: string | undefined;
2216
+ }
2217
+ /** Array of subscribed applications */
2218
+ export type SubscribedAppsResponseDataList = Array<SubscribedApp>;
2219
+ /** Response containing list of subscribed applications */
2220
+ export interface SubscribedAppsResponse {
2221
+ /** Array of subscribed applications */
2222
+ data: SubscribedAppsResponseDataList;
2223
+ }
2224
+ export interface ListWabaSolutionsRequest {
2225
+ /** WhatsApp Business Account ID for which to retrieve associated Multi-Partner Solutions. This ID can be found in your WhatsApp Business Manager or through WABA management APIs. */
2226
+ WABA_ID: string;
2227
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (name, status, status_for_pending_request). Available fields: id, name, status, status_for_pending_request, owner_app, owner_permissions */
2228
+ fields?: string | undefined;
2229
+ /** Maximum number of solutions to return per page. Default is 25, maximum is 100. */
2230
+ limit?: number | undefined;
2231
+ /** Cursor for pagination. Returns solutions after this cursor position. Use the cursor from the previous response's `paging.cursors.after` field. */
2232
+ after?: string | undefined;
2233
+ /** Cursor for pagination. Returns solutions before this cursor position. Use the cursor from the previous response's `paging.cursors.before` field. */
2234
+ before?: string | undefined;
2235
+ }
2236
+ /** Array of Multi-Partner Solutions associated with the WABA */
2237
+ export type SolutionsListDataList = Array<WhatsAppBusinessSolution>;
2238
+ /** Paginated list of Multi-Partner Solutions */
2239
+ export interface SolutionsList {
2240
+ /** Array of Multi-Partner Solutions associated with the WABA */
2241
+ data: SolutionsListDataList;
2242
+ paging?: Paging | undefined;
2243
+ }
2244
+ /** The action being taken on the given call ID */
2245
+ export type CallRequestPayloadAction = "connect" | "pre_accept" | "accept" | "reject" | "terminate";
2246
+ /** SDP type - "offer" for connect action, "answer" for accept action */
2247
+ export type CallRequestPayloadSessionSdpType = "offer" | "answer";
2248
+ /** Contains the session description protocol (SDP) type and description language */
2249
+ export interface CallRequestPayloadSession {
2250
+ /** SDP type - "offer" for connect action, "answer" for accept action */
2251
+ sdp_type: CallRequestPayloadSessionSdpType | (string & {});
2252
+ /** The SDP info of the device on the other end of the call. The SDP must be compliant with RFC 8866 */
2253
+ sdp: string;
2254
+ }
2255
+ export interface CallRequestPayload {
2256
+ /** Messaging product */
2257
+ messaging_product: string;
2258
+ /** The number being called (callee) */
2259
+ to: string;
2260
+ /** The action being taken on the given call ID */
2261
+ action: CallRequestPayloadAction | (string & {});
2262
+ /** Contains the session description protocol (SDP) type and description language */
2263
+ session?: CallRequestPayloadSession | undefined;
2264
+ /** An arbitrary string you can pass in that is useful for tracking and logging purposes. Any app subscribed to the "calls" webhook field on your WhatsApp Business Account can receive this string, as it is included in the calls object within the subsequent Call Terminate Webhook payload. Cloud API does not process this field. Maximum 512 characters */
2265
+ biz_opaque_callback_data?: string | undefined;
2266
+ }
2267
+ /** Action to terminate the call */
2268
+ export type CallTerminateRequestPayloadAction = "terminate";
2269
+ export interface CallTerminateRequestPayload {
2270
+ /** Messaging product */
2271
+ messaging_product: string;
2272
+ /** The WhatsApp call ID */
2273
+ call_id: string;
2274
+ /** Action to terminate the call */
2275
+ action: CallTerminateRequestPayloadAction;
2276
+ }
2277
+ export type ManageCallsRequestBody = CallRequestPayload | CallTerminateRequestPayload;
2278
+ export interface ManageCallsRequest {
2279
+ /** The ID of the phone number registered with your WhatsApp Business Account */
2280
+ Phone_Number_ID: string;
2281
+ body?: ManageCallsRequestBody | undefined;
2282
+ }
2283
+ export interface CallResponsePayloadCallsItem {
2284
+ id?: string | undefined;
2285
+ }
2286
+ export type CallResponsePayloadCallsList = Array<CallResponsePayloadCallsItem>;
2287
+ export interface CallResponsePayload {
2288
+ messaging_product?: string | undefined;
2289
+ calls?: CallResponsePayloadCallsList | undefined;
2290
+ }
2291
+ export interface CallTerminateResponsePayload {
2292
+ success?: boolean | undefined;
2293
+ }
2294
+ export type ManageCallsResponseBody = CallResponsePayload | CallTerminateResponsePayload;
2295
+ export type ManageCallsResponse = ManageCallsResponseBody;
2296
+ export interface MigrateFlowsRequest {
2297
+ WABA_ID: string;
2298
+ /** [Optional] The names of the flows that will be copied from the source WABA. If not specified, all flows in the source WABA will be copied */
2299
+ source_flow_names?: string | undefined;
2300
+ /** The ID of the source WABA from which the flows will be copied */
2301
+ source_waba_id?: string | undefined;
2302
+ }
2303
+ export interface MigrateFlowsResponseFailedFlowsItem {
2304
+ error_code?: string | undefined;
2305
+ error_message?: string | undefined;
2306
+ source_name?: string | undefined;
2307
+ }
2308
+ export type MigrateFlowsResponseFailedFlowsList = Array<MigrateFlowsResponseFailedFlowsItem>;
2309
+ export interface MigrateFlowsResponseMigratedFlowsItem {
2310
+ migrated_id?: string | undefined;
2311
+ source_id?: string | undefined;
2312
+ source_name?: string | undefined;
2313
+ }
2314
+ export type MigrateFlowsResponseMigratedFlowsList = Array<MigrateFlowsResponseMigratedFlowsItem>;
2315
+ export interface MigrateFlowsResponse {
2316
+ failed_flows?: MigrateFlowsResponseFailedFlowsList | undefined;
2317
+ migrated_flows?: MigrateFlowsResponseMigratedFlowsList | undefined;
2318
+ }
2319
+ export interface OnboardPartnersToMMLiteRequest {
2320
+ /** The end business ID that will receive the MM Lite onboarding request. This is the business that the partner wants to establish an MM Lite relationship with. */
2321
+ Business_ID: string;
2322
+ /** Optional WhatsApp Business Solution ID to associate with the onboarding request. If provided, the solution will be linked to the business agreement and OBO mobility intents. */
2323
+ solution_id?: string | undefined;
2324
+ }
2325
+ /** MM Lite onboarding request details */
2326
+ export interface MMLiteOnboardingRequest {
2327
+ /** Unique identifier for the MM Lite onboarding request */
2328
+ request_id: string;
2329
+ }
2330
+ export interface PublishFlowRequest {
2331
+ Flow_ID: string;
2332
+ }
2333
+ export interface PublishFlowResponse {
2334
+ success?: boolean | undefined;
2335
+ }
2336
+ /** Must be 'whatsapp' to indicate WhatsApp Business messaging product */
2337
+ export type RegisterWhatsAppBusinessPhoneNumberRequestMessagingProduct = "whatsapp";
2338
+ /** Backup data for migrating existing WhatsApp Business accounts */
2339
+ export interface WhatsAppBusinessAccountBackup {
2340
+ /** Backup password for account migration */
2341
+ password?: string | Redacted.Redacted<string> | undefined;
2342
+ /** Encrypted backup data for account migration */
2343
+ data?: string | undefined;
2344
+ }
2345
+ /** Data localization region for message storage (deprecated in v21+) */
2346
+ export type WhatsAppDataLocalizationRegion = "AE" | "AU" | "BH" | "BR" | "CA" | "CH" | "DE" | "GB" | "ID" | "IN" | "JP" | "KR" | "SG" | "ZA";
2347
+ export interface RegisterWhatsAppBusinessPhoneNumberRequest {
2348
+ /** The ID of the phone number to register. This ID is provided when the phone number is added to your WhatsApp Business Account and can be found in WhatsApp Manager. */
2349
+ Phone_Number_ID: string;
2350
+ /** Must be 'whatsapp' to indicate WhatsApp Business messaging product */
2351
+ messaging_product: RegisterWhatsAppBusinessPhoneNumberRequestMessagingProduct | (string & {});
2352
+ /** 6-digit PIN for two-step verification setup */
2353
+ pin: string;
2354
+ backup?: WhatsAppBusinessAccountBackup | undefined;
2355
+ data_localization_region?: WhatsAppDataLocalizationRegion | (string & {}) | undefined;
2356
+ /** Message retention period in minutes (deprecated in v21+) */
2357
+ meta_store_retention_minutes?: number | undefined;
2358
+ }
2359
+ /** Response from phone number registration request */
2360
+ export interface WhatsAppBusinessPhoneNumberRegistrationResponse {
2361
+ /** Indicates whether the registration was successful */
2362
+ success: boolean;
2363
+ }
2364
+ export type RejectJoinRequestsRequestMessagingProduct = "whatsapp";
2365
+ /** Array of join request IDs to reject */
2366
+ export type RejectJoinRequestsRequestJoinRequestsList = Array<string>;
2367
+ export interface RejectJoinRequestsRequest {
2368
+ /** Group ID */
2369
+ group_id: string;
2370
+ messaging_product: RejectJoinRequestsRequestMessagingProduct | (string & {});
2371
+ /** Array of join request IDs to reject */
2372
+ join_requests: RejectJoinRequestsRequestJoinRequestsList;
2373
+ }
2374
+ export type RejectJoinRequestsResponseRejectedJoinRequestsList = Array<string>;
2375
+ export type RejectJoinRequestsResponseFailedJoinRequestsItemErrorsList = Array<Error>;
2376
+ export interface RejectJoinRequestsResponseFailedJoinRequestsItem {
2377
+ join_request_id?: string | undefined;
2378
+ errors?: RejectJoinRequestsResponseFailedJoinRequestsItemErrorsList | undefined;
2379
+ }
2380
+ export type RejectJoinRequestsResponseFailedJoinRequestsList = Array<RejectJoinRequestsResponseFailedJoinRequestsItem>;
2381
+ export type RejectJoinRequestsResponseErrorsList = Array<Error>;
2382
+ export interface RejectJoinRequestsResponse {
2383
+ messaging_product?: string | undefined;
2384
+ rejected_join_requests?: RejectJoinRequestsResponseRejectedJoinRequestsList | undefined;
2385
+ failed_join_requests?: RejectJoinRequestsResponseFailedJoinRequestsList | undefined;
2386
+ errors?: RejectJoinRequestsResponseErrorsList | undefined;
2387
+ }
2388
+ export interface RejectSolutionDeactivationRequestRequest {
2389
+ /** Your Multi-Partner Solution ID with a pending deactivation request. This ID is provided when you create the solution and can be found in your Partner Dashboard or through solution management APIs. */
2390
+ Solution_ID: string;
2391
+ /** Comma-separated list of fields to include in the response. If not specified, default fields will be returned (name, status, status_for_pending_request). Available fields: id, name, status, status_for_pending_request, owner_app, owner_permissions */
2392
+ fields?: string | undefined;
2393
+ /** Set to true to reject the pending deactivation request */
2394
+ reject_deactivation_request: boolean;
2395
+ }
2396
+ /** Type of request being rejected */
2397
+ export type RejectSolutionRequestRequestRequestType = "PARTNERSHIP_REQUEST" | "DEACTIVATION_REQUEST";
2398
+ export interface RejectSolutionRequestRequest {
2399
+ /** Your Multi-Partner Solution ID. This ID is provided when you create the solution and can be found in your Partner Dashboard or through solution management APIs. */
2400
+ Solution_ID: string;
2401
+ /** Type of request being rejected */
2402
+ request_type: RejectSolutionRequestRequestRequestType | (string & {});
2403
+ /** Optional reason for rejecting the request */
2404
+ rejection_reason?: string | undefined;
2405
+ /** The app ID of the requesting partner. Required when request_type is PARTNERSHIP_REQUEST, not used for DEACTIVATION_REQUEST */
2406
+ partner_app_id?: string | undefined;
2407
+ }
2408
+ /** Type of request that was rejected */
2409
+ export type SolutionRejectResponseRejectedRequestType = "PARTNERSHIP_REQUEST" | "DEACTIVATION_REQUEST";
2410
+ /** Successful response for solution rejection operation */
2411
+ export interface SolutionRejectResponse {
2412
+ /** Indicates whether the rejection was successful */
2413
+ success: boolean;
2414
+ /** The ID of the Multi-Partner Solution */
2415
+ solution_id: string;
2416
+ /** Type of request that was rejected */
2417
+ rejected_request_type: SolutionRejectResponseRejectedRequestType;
2418
+ /** ISO 8601 timestamp when the rejection was processed */
2419
+ rejection_timestamp?: string | undefined;
2420
+ /** App ID of the partner whose request was rejected (for partnership rejections) */
2421
+ partner_app_id?: string | undefined;
2422
+ }
2423
+ export interface RemoveAssignedUserRequest {
2424
+ /** Your WhatsApp Business Account ID. This ID is provided when you create the account and can be found in your Business Manager or through account management APIs. */
2425
+ WhatsApp_Business_Account_ID: string;
2426
+ /** User ID of the person to remove from the WhatsApp Business Account. This must be a valid Facebook user ID that is currently assigned to the account. */
2427
+ user: string;
2428
+ }
2429
+ export type RemoveGroupParticipantsRequestMessagingProduct = "whatsapp";
2430
+ export type RemoveGroupParticipantsRequestParticipantsItem = AddGroupParticipantsRequestParticipantsItem;
2431
+ /** Array of phone numbers or WhatsApp IDs to remove (max 8 participants) */
2432
+ export type RemoveGroupParticipantsRequestParticipantsList = Array<AddGroupParticipantsRequestParticipantsItem>;
2433
+ export interface RemoveGroupParticipantsRequest {
2434
+ /** Group ID */
2435
+ group_id: string;
2436
+ messaging_product: RemoveGroupParticipantsRequestMessagingProduct | (string & {});
2437
+ /** Array of phone numbers or WhatsApp IDs to remove (max 8 participants) */
2438
+ participants: RemoveGroupParticipantsRequestParticipantsList;
2439
+ }
2440
+ export interface RemoveGroupParticipantsResponse {
2441
+ }
2442
+ /** Method for receiving the verification code */
2443
+ export type RequestPreVerifiedPhoneNumberCodeRequestCodeMethod = "SMS" | "VOICE";
2444
+ export interface RequestPreVerifiedPhoneNumberCodeRequest {
2445
+ /** Your pre-verified phone number ID. This ID is provided when the phone number is pre-verified and can be found in your WhatsApp Business Account settings. */
2446
+ Pre_Verified_Phone_Number_ID: string;
2447
+ /** Method for receiving the verification code */
2448
+ code_method: RequestPreVerifiedPhoneNumberCodeRequestCodeMethod | (string & {});
2449
+ /** Language locale for the verification message */
2450
+ language: string;
2451
+ }
2452
+ /** Response after successfully requesting a verification code */
2453
+ export interface RequestCodeResponse {
2454
+ /** Indicates whether the verification code request was successful */
2455
+ success: boolean;
2456
+ }
2457
+ /** Method for receiving the verification code */
2458
+ export type RequestVerificationCodeRequestCodeMethod = "SMS" | "VOICE";
2459
+ export interface RequestVerificationCodeRequest {
2460
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number status entity (EntWhatsAppBusinessAccountToNumberCurrentStatus) and can be obtained from your WhatsApp Business Account phone numbers list. */
2461
+ Phone_Number_ID: string;
2462
+ /** Method for receiving the verification code */
2463
+ code_method: RequestVerificationCodeRequestCodeMethod | (string & {});
2464
+ /** Language locale for the verification message */
2465
+ language: string;
2466
+ }
2467
+ /** Messaging service used for the request. Use whatsapp. */
2468
+ export type SendEncryptedMessageRequestMessagingProduct = "whatsapp";
2469
+ export interface SendEncryptedMessageRequest {
2470
+ /** The ID of the phone number used to send the message. Retrieved from the WhatsApp Business Account. */
2471
+ Phone_Number_ID: string;
2472
+ /** Messaging service used for the request. Use whatsapp. */
2473
+ messaging_product: SendEncryptedMessageRequestMessagingProduct | (string & {});
2474
+ /** JWE payload with encrypted messages structure. This should be a valid JWE token containing the encrypted message payload. */
2475
+ encrypted_contents: string;
2476
+ }
2477
+ export interface EncryptedMessageResponse {
2478
+ /** JWE payload with encrypted messages response structure. Contains the encrypted response from the WhatsApp Business API. */
2479
+ encrypted_contents: string;
2480
+ }
2481
+ /** Messaging service used. Must be "whatsapp" */
2482
+ export type SendMarketingMessageRequestMessagingProduct = "whatsapp";
2483
+ /** Type of recipient. Must be "individual" */
2484
+ export type SendMarketingMessageRequestRecipientType = "individual";
2485
+ /** Type of message. Must be "template" for marketing messages */
2486
+ export type SendMarketingMessageRequestType = "template";
2487
+ /** The language policy the message should follow. */
2488
+ export type LanguageObjectPolicy = "deterministic";
2489
+ export interface LanguageObject {
2490
+ /** The language policy the message should follow. */
2491
+ policy: LanguageObjectPolicy | (string & {});
2492
+ /** The code of the language or locale to use (e.g., `"en"`, `"en_US"`). */
2493
+ code: string;
2494
+ }
2495
+ /** Describes the component type. */
2496
+ export type HeaderComponentType = "header";
2497
+ /** Required when `type=button`. Not used for other types. Type of button to create. */
2498
+ export type TemplateComponentSubType = "quick_reply" | "url" | "catalog";
2499
+ /** Array of parameter objects with the content of the message. */
2500
+ export type HeaderComponentParametersList = Array<unknown>;
2501
+ export interface HeaderComponent {
2502
+ /** Describes the component type. */
2503
+ type: HeaderComponentType;
2504
+ /** Required when `type=button`. Not used for other types. Type of button to create. */
2505
+ sub_type?: TemplateComponentSubType | (string & {}) | undefined;
2506
+ /** Array of parameter objects with the content of the message. */
2507
+ parameters?: HeaderComponentParametersList | undefined;
2508
+ /** Required when `type=button`. Not used for other types. Position index of the button (0-9). */
2509
+ index?: string | undefined;
2510
+ }
2511
+ /** Describes the component type. */
2512
+ export type BodyComponentType = "body";
2513
+ /** Array of parameter objects with the content of the message. */
2514
+ export type BodyComponentParametersList = Array<unknown>;
2515
+ export interface BodyComponent {
2516
+ /** Describes the component type. */
2517
+ type: BodyComponentType;
2518
+ /** Required when `type=button`. Not used for other types. Type of button to create. */
2519
+ sub_type?: TemplateComponentSubType | (string & {}) | undefined;
2520
+ /** Array of parameter objects with the content of the message. */
2521
+ parameters?: BodyComponentParametersList | undefined;
2522
+ /** Required when `type=button`. Not used for other types. Position index of the button (0-9). */
2523
+ index?: string | undefined;
2524
+ }
2525
+ /** Describes the component type. */
2526
+ export type ButtonComponentType = "button";
2527
+ /** Array of parameter objects with the content of the message. */
2528
+ export type ButtonComponentParametersList = Array<unknown>;
2529
+ export interface ButtonComponent {
2530
+ /** Describes the component type. */
2531
+ type: ButtonComponentType;
2532
+ /** Required when `type=button`. Not used for other types. Type of button to create. */
2533
+ sub_type: TemplateComponentSubType | (string & {});
2534
+ /** Array of parameter objects with the content of the message. */
2535
+ parameters: ButtonComponentParametersList;
2536
+ /** Required when `type=button`. Not used for other types. Position index of the button (0-9). */
2537
+ index: string;
2538
+ }
2539
+ export type TemplateComponent = HeaderComponent | BodyComponent | ButtonComponent;
2540
+ /** Array of `components` objects containing the parameters of the message. */
2541
+ export type TemplateObjectComponentsList = Array<TemplateComponent>;
2542
+ export interface TemplateObject {
2543
+ /** Name of the template. */
2544
+ name: string;
2545
+ /** Contains a `language` object. Specifies the language the template may be rendered in */
2546
+ language: LanguageObject;
2547
+ /** Array of `components` objects containing the parameters of the message. */
2548
+ components?: TemplateObjectComponentsList | undefined;
2549
+ }
2550
+ /** Optional product policy setting */
2551
+ export type SendMarketingMessageRequestProductPolicy = "CLOUD_API_FALLBACK" | "STRICT";
2552
+ export interface SendMarketingMessageRequest {
2553
+ /** WhatsApp Business Phone Number ID */
2554
+ Phone_Number_ID: string;
2555
+ /** Messaging service used. Must be "whatsapp" */
2556
+ messaging_product: SendMarketingMessageRequestMessagingProduct | (string & {});
2557
+ /** Type of recipient. Must be "individual" */
2558
+ recipient_type: SendMarketingMessageRequestRecipientType | (string & {});
2559
+ /** WhatsApp ID or phone number of the message recipient */
2560
+ to: string;
2561
+ /** Type of message. Must be "template" for marketing messages */
2562
+ type: SendMarketingMessageRequestType | (string & {});
2563
+ template: TemplateObject;
2564
+ /** Optional product policy setting */
2565
+ product_policy?: SendMarketingMessageRequestProductPolicy | (string & {}) | undefined;
2566
+ /** Optional flag to control message activity sharing */
2567
+ message_activity_sharing?: boolean | undefined;
2568
+ }
2569
+ export type MarketingMessageResponsePayloadContactsItem = BlockedUserOperation;
2570
+ export type MarketingMessageResponsePayloadContactsList = Array<BlockedUserOperation>;
2571
+ /** The status of a WhatsApp message: - `accepted`: The message has been accepted by WhatsApp and is being processed - `held_for_quality_assessment`: The message is being held for quality assessment before delivery - `paused`: The message delivery has been paused */
2572
+ export type MessageStatus = "accepted" | "held_for_quality_assessment" | "paused";
2573
+ export interface MarketingMessageResponsePayloadMessagesItem {
2574
+ id?: string | undefined;
2575
+ message_status?: MessageStatus | undefined;
2576
+ }
2577
+ export type MarketingMessageResponsePayloadMessagesList = Array<MarketingMessageResponsePayloadMessagesItem>;
2578
+ export interface MarketingMessageResponsePayload {
2579
+ contacts?: MarketingMessageResponsePayloadContactsList | undefined;
2580
+ messages?: MarketingMessageResponsePayloadMessagesList | undefined;
2581
+ messaging_product?: string | undefined;
2582
+ }
2583
+ /** The type of recipient. */
2584
+ export type TextMessageRecipientType = "individual" | "group";
2585
+ /** Context information for replying to a message */
2586
+ export interface MessageContext {
2587
+ /** The ID of the message to which this message is a reply. */
2588
+ message_id?: string | undefined;
2589
+ }
2590
+ export interface TextMessageText {
2591
+ /** The text of the message. */
2592
+ body?: string | undefined;
2593
+ preview_url?: boolean | undefined;
2594
+ }
2595
+ export interface TextMessage {
2596
+ messaging_product: string;
2597
+ /** The type of recipient. */
2598
+ recipient_type: TextMessageRecipientType | (string & {});
2599
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2600
+ to: string;
2601
+ /** The type of message */
2602
+ type: string;
2603
+ context?: MessageContext | undefined;
2604
+ text: TextMessageText;
2605
+ }
2606
+ /** The type of recipient. */
2607
+ export type AudioMessageRecipientType = "individual" | "group";
2608
+ export interface MediaObjectCase0 {
2609
+ /** The media object ID. **Required when `link` is not used.** */
2610
+ id: string;
2611
+ }
2612
+ export interface MediaObjectCase1 {
2613
+ /** The protocol and URL of the media to be sent (HTTP/HTTPS only). */
2614
+ link: string;
2615
+ }
2616
+ /** A media object. Either `id` or `link` is required. */
2617
+ export type MediaObject = MediaObjectCase0 | MediaObjectCase1;
2618
+ export interface AudioMessage {
2619
+ messaging_product: string;
2620
+ /** The type of recipient. */
2621
+ recipient_type: AudioMessageRecipientType | (string & {});
2622
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2623
+ to: string;
2624
+ /** The type of message */
2625
+ type: string;
2626
+ context?: MessageContext | undefined;
2627
+ audio: MediaObject;
2628
+ }
2629
+ /** The type of recipient. */
2630
+ export type DocumentMessageRecipientType = "individual" | "group";
2631
+ export interface DocumentMessage {
2632
+ messaging_product: string;
2633
+ /** The type of recipient. */
2634
+ recipient_type: DocumentMessageRecipientType | (string & {});
2635
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2636
+ to: string;
2637
+ /** The type of message */
2638
+ type: string;
2639
+ context?: MessageContext | undefined;
2640
+ document: MediaObject;
2641
+ }
2642
+ /** The type of recipient. */
2643
+ export type ImageMessageRecipientType = "individual" | "group";
2644
+ export interface ImageMessage {
2645
+ messaging_product: string;
2646
+ /** The type of recipient. */
2647
+ recipient_type: ImageMessageRecipientType | (string & {});
2648
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2649
+ to: string;
2650
+ /** The type of message */
2651
+ type: string;
2652
+ context?: MessageContext | undefined;
2653
+ image: MediaObject;
2654
+ }
2655
+ /** The type of recipient. */
2656
+ export type LocationMessageRecipientType = "individual" | "group";
2657
+ export interface LocationMessageLocation {
2658
+ /** The address of the location. */
2659
+ address?: string | undefined;
2660
+ /** The latitude of the location. */
2661
+ latitude?: string | undefined;
2662
+ /** The longitude of the location. */
2663
+ longitude?: string | undefined;
2664
+ /** The name of the location. */
2665
+ name?: string | undefined;
2666
+ }
2667
+ export interface LocationMessage {
2668
+ messaging_product: string;
2669
+ /** The type of recipient. */
2670
+ recipient_type: LocationMessageRecipientType | (string & {});
2671
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2672
+ to: string;
2673
+ /** The type of message */
2674
+ type: string;
2675
+ context?: MessageContext | undefined;
2676
+ location: LocationMessageLocation;
2677
+ }
2678
+ /** The type of recipient. */
2679
+ export type VideoMessageRecipientType = "individual" | "group";
2680
+ export interface VideoMessage {
2681
+ messaging_product: string;
2682
+ /** The type of recipient. */
2683
+ recipient_type: VideoMessageRecipientType | (string & {});
2684
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2685
+ to: string;
2686
+ /** The type of message */
2687
+ type: string;
2688
+ context?: MessageContext | undefined;
2689
+ video: MediaObject;
2690
+ }
2691
+ /** The type of recipient. */
2692
+ export type StickerMessageRecipientType = "individual" | "group";
2693
+ export interface StickerMessageStickerCase0 {
2694
+ /** The ID of the sticker. */
2695
+ id: string;
2696
+ }
2697
+ export interface StickerMessageStickerCase1 {
2698
+ /** The URL of the sticker. */
2699
+ link: string;
2700
+ }
2701
+ export type StickerMessageSticker = StickerMessageStickerCase0 | StickerMessageStickerCase1;
2702
+ export interface StickerMessage {
2703
+ messaging_product: string;
2704
+ /** The type of recipient. */
2705
+ recipient_type: StickerMessageRecipientType | (string & {});
2706
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2707
+ to: string;
2708
+ /** The type of message */
2709
+ type: string;
2710
+ context?: MessageContext | undefined;
2711
+ sticker: StickerMessageSticker;
2712
+ }
2713
+ /** The type of recipient. */
2714
+ export type ReactionMessageRecipientType = "individual" | "group";
2715
+ export interface ReactionMessageReaction {
2716
+ /** emoji */
2717
+ emoji?: string | undefined;
2718
+ /** reacted message-id */
2719
+ message_id?: string | undefined;
2720
+ }
2721
+ export interface ReactionMessage {
2722
+ messaging_product: string;
2723
+ /** The type of recipient. */
2724
+ recipient_type: ReactionMessageRecipientType | (string & {});
2725
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2726
+ to: string;
2727
+ /** The type of message */
2728
+ type: string;
2729
+ context?: MessageContext | undefined;
2730
+ reaction: ReactionMessageReaction;
2731
+ }
2732
+ /** The type of recipient. */
2733
+ export type InteractiveMessageRecipientType = "individual" | "group";
2734
+ /** The type of interactive message to send. */
2735
+ export type InteractiveObjectType = "button" | "call_permission_request" | "catalog_message" | "list" | "product" | "product_list" | "flow";
2736
+ /** The header type. */
2737
+ export type HeaderObjectType = "text" | "video" | "image" | "document";
2738
+ /** Header content displayed on top of a message. Required for 'product_list' type. Cannot be set for 'product' type. */
2739
+ export interface HeaderObject {
2740
+ /** The header type. */
2741
+ type: HeaderObjectType | (string & {});
2742
+ /** Text for the header. Required if 'type' is 'text'. Emojis supported, no markdown. */
2743
+ text?: string | undefined;
2744
+ /** Optional sub-text for the header. Emojis supported, no markdown. */
2745
+ sub_text?: string | undefined;
2746
+ /** Contains the media object for this document. Required if 'type' is 'document'. */
2747
+ document?: MediaObject | undefined;
2748
+ /** Contains the media object for this image. Required if 'type' is 'image'. */
2749
+ image?: MediaObject | undefined;
2750
+ /** Contains the media object for this video. Required if 'type' is 'video'. */
2751
+ video?: MediaObject | undefined;
2752
+ }
2753
+ /** An object with the body of the message. Optional for 'product' type, required for other interactive message types. */
2754
+ export interface BodyObject {
2755
+ /** The content of the message body. Emojis and markdown are supported. */
2756
+ text: string;
2757
+ }
2758
+ /** An object with the footer of the message. Optional. */
2759
+ export interface FooterObject {
2760
+ /** The footer content. Emojis, markdown, and links are supported. */
2761
+ text: string;
2762
+ }
2763
+ export interface SectionObjectProductItemsItem {
2764
+ /** Unique identifier of the product in a catalog. */
2765
+ product_retailer_id: string;
2766
+ }
2767
+ /** Array of product objects. */
2768
+ export type SectionObjectProductItemsList = Array<SectionObjectProductItemsItem>;
2769
+ export interface SectionObjectRowsItem {
2770
+ /** Unique row identifier. */
2771
+ id: string;
2772
+ /** Row title. */
2773
+ title: string;
2774
+ /** Optional row description. */
2775
+ description?: string | undefined;
2776
+ }
2777
+ /** Contains a list of rows. */
2778
+ export type SectionObjectRowsList = Array<SectionObjectRowsItem>;
2779
+ /** A section object, used in List Messages and Multi-Product Messages. */
2780
+ export interface SectionObject {
2781
+ /** Title of the section. Required if the message has more than one section. Max 24 characters. */
2782
+ title?: string | undefined;
2783
+ /** Array of product objects. */
2784
+ product_items?: SectionObjectProductItemsList | undefined;
2785
+ /** Contains a list of rows. */
2786
+ rows?: SectionObjectRowsList | undefined;
2787
+ }
2788
+ /** Array of section objects. */
2789
+ export type ActionObjectCase0SectionsList = Array<SectionObject>;
2790
+ export interface ActionObjectCase0 {
2791
+ /** Button content for List Messages. Cannot be empty, must be unique. Emojis supported, no markdown. */
2792
+ button: string;
2793
+ /** Array of section objects. */
2794
+ sections: ActionObjectCase0SectionsList;
2795
+ }
2796
+ /** Only supported type is "reply" for Reply Button. */
2797
+ export type ActionObjectCase1ButtonsItemType = "reply";
2798
+ export interface ActionObjectCase1ButtonsItemReply {
2799
+ /** Unique identifier for your button. No leading/trailing spaces. */
2800
+ id: string;
2801
+ /** Button title. Cannot be empty, must be unique. Emojis supported, no markdown. */
2802
+ title: string;
2803
+ }
2804
+ export interface ActionObjectCase1ButtonsItem {
2805
+ /** Only supported type is "reply" for Reply Button. */
2806
+ type: ActionObjectCase1ButtonsItemType | (string & {});
2807
+ reply: ActionObjectCase1ButtonsItemReply;
2808
+ }
2809
+ /** Array of button objects. */
2810
+ export type ActionObjectCase1ButtonsList = Array<ActionObjectCase1ButtonsItem>;
2811
+ export interface ActionObjectCase1 {
2812
+ /** Array of button objects. */
2813
+ buttons: ActionObjectCase1ButtonsList;
2814
+ }
2815
+ /** Array of section objects. */
2816
+ export type ActionObjectCase2SectionsList = Array<SectionObject>;
2817
+ export interface ActionObjectCase2 {
2818
+ /** Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. */
2819
+ catalog_id: string;
2820
+ /** Unique identifier of the product in a catalog. Required for Single Product Messages. */
2821
+ product_retailer_id?: string | undefined;
2822
+ /** Array of section objects. */
2823
+ sections?: ActionObjectCase2SectionsList | undefined;
2824
+ }
2825
+ export type ActionObjectCase3Name = "catalog_message";
2826
+ export interface ActionObjectCase3Parameters {
2827
+ /** Product retailer ID for the thumbnail. */
2828
+ thumbnail_product_retailer_id: string;
2829
+ }
2830
+ export interface ActionObjectCase3 {
2831
+ name: ActionObjectCase3Name;
2832
+ parameters: ActionObjectCase3Parameters;
2833
+ }
2834
+ export type ActionObjectCase4Name = "flow";
2835
+ export interface ActionObjectCase4 {
2836
+ name: ActionObjectCase4Name;
2837
+ parameters: unknown;
2838
+ }
2839
+ export type ActionObjectCase5Name = "call_permission_request";
2840
+ export interface ActionObjectCase5 {
2841
+ name: ActionObjectCase5Name;
2842
+ }
2843
+ /** Action you want the user to perform after reading the message. Its structure varies by interactive message type. */
2844
+ export type ActionObject = ActionObjectCase0 | ActionObjectCase1 | ActionObjectCase2 | ActionObjectCase3 | ActionObjectCase4 | ActionObjectCase5;
2845
+ /** An object containing the content for an interactive message. */
2846
+ export interface InteractiveObject {
2847
+ /** The type of interactive message to send. */
2848
+ type: InteractiveObjectType | (string & {});
2849
+ header?: HeaderObject | undefined;
2850
+ body?: BodyObject | undefined;
2851
+ footer?: FooterObject | undefined;
2852
+ action: ActionObject;
2853
+ }
2854
+ export interface InteractiveMessage {
2855
+ messaging_product: string;
2856
+ /** The type of recipient. */
2857
+ recipient_type: InteractiveMessageRecipientType | (string & {});
2858
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2859
+ to: string;
2860
+ /** The type of message */
2861
+ type: string;
2862
+ context?: MessageContext | undefined;
2863
+ interactive: InteractiveObject;
2864
+ }
2865
+ /** The type of recipient. */
2866
+ export type TemplateMessageRecipientType = "individual" | "group";
2867
+ export interface TemplateMessage {
2868
+ messaging_product: string;
2869
+ /** The type of recipient. */
2870
+ recipient_type: TemplateMessageRecipientType | (string & {});
2871
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2872
+ to: string;
2873
+ /** The type of message */
2874
+ type: string;
2875
+ context?: MessageContext | undefined;
2876
+ template: TemplateObject;
2877
+ }
2878
+ /** The type of recipient. */
2879
+ export type ContactsMessageRecipientType = "individual" | "group";
2880
+ /** Address type */
2881
+ export type AddressObjectType = "HOME" | "WORK";
2882
+ export interface AddressObject {
2883
+ /** City name */
2884
+ city?: string | undefined;
2885
+ /** Full country name */
2886
+ country?: string | undefined;
2887
+ /** Two-letter ISO country code */
2888
+ country_code?: string | undefined;
2889
+ /** State abbreviation */
2890
+ state?: string | undefined;
2891
+ /** Street address */
2892
+ street?: string | undefined;
2893
+ /** Address type */
2894
+ type?: AddressObjectType | (string & {}) | undefined;
2895
+ /** ZIP code */
2896
+ zip?: string | undefined;
2897
+ }
2898
+ /** Full contact address(es) */
2899
+ export type ContactObjectAddressesList = Array<AddressObject>;
2900
+ /** Email type */
2901
+ export type EmailObjectType = "HOME" | "WORK";
2902
+ export interface EmailObject {
2903
+ /** Email address */
2904
+ email: string;
2905
+ /** Email type */
2906
+ type?: EmailObjectType | (string & {}) | undefined;
2907
+ }
2908
+ /** Contact email address(es) */
2909
+ export type ContactObjectEmailsList = Array<EmailObject>;
2910
+ export interface NameObject {
2911
+ /** First name */
2912
+ first_name?: string | undefined;
2913
+ /** Formatted full name */
2914
+ formatted_name?: string | undefined;
2915
+ /** Last name */
2916
+ last_name?: string | undefined;
2917
+ /** Middle name */
2918
+ middle_name?: string | undefined;
2919
+ /** Name prefix */
2920
+ prefix?: string | undefined;
2921
+ /** Name suffix */
2922
+ suffix?: string | undefined;
2923
+ }
2924
+ export interface OrganizationObject {
2925
+ /** Company name */
2926
+ company?: string | undefined;
2927
+ /** Department name */
2928
+ department?: string | undefined;
2929
+ /** Job title */
2930
+ title?: string | undefined;
2931
+ }
2932
+ /** Phone type */
2933
+ export type PhoneObjectType = "HOME" | "WORK";
2934
+ export interface PhoneObject {
2935
+ /** Phone number */
2936
+ phone: string;
2937
+ /** Phone type */
2938
+ type?: PhoneObjectType | (string & {}) | undefined;
2939
+ /** WhatsApp ID */
2940
+ wa_id?: string | undefined;
2941
+ }
2942
+ /** Contact phone number(s) */
2943
+ export type ContactObjectPhonesList = Array<PhoneObject>;
2944
+ /** URL type */
2945
+ export type UrlObjectType = "HOME" | "WORK";
2946
+ export interface UrlObject {
2947
+ /** URL type */
2948
+ type?: UrlObjectType | (string & {}) | undefined;
2949
+ /** URL */
2950
+ url: string;
2951
+ }
2952
+ /** Contact URL(s) */
2953
+ export type ContactObjectUrlsList = Array<UrlObject>;
2954
+ export interface ContactObject {
2955
+ /** Full contact address(es) */
2956
+ addresses?: ContactObjectAddressesList | undefined;
2957
+ /** Date of birth (YYYY-MM-DD format) */
2958
+ birthday?: string | undefined;
2959
+ /** Contact email address(es) */
2960
+ emails?: ContactObjectEmailsList | undefined;
2961
+ /** Contact name object */
2962
+ name?: NameObject | undefined;
2963
+ /** Contact organization information */
2964
+ org?: OrganizationObject | undefined;
2965
+ /** Contact phone number(s) */
2966
+ phones?: ContactObjectPhonesList | undefined;
2967
+ /** Contact URL(s) */
2968
+ urls?: ContactObjectUrlsList | undefined;
2969
+ /** Base64 vCard of the shared contact (incoming messages). */
2970
+ vcard?: string | undefined;
2971
+ origin?: string | undefined;
2972
+ }
2973
+ export type ContactsMessageContactsList = Array<ContactObject>;
2974
+ export interface ContactsMessage {
2975
+ messaging_product: string;
2976
+ /** The type of recipient. */
2977
+ recipient_type: ContactsMessageRecipientType | (string & {});
2978
+ /** The recipient's phone number for individual messages, and group-id for group message. */
2979
+ to: string;
2980
+ /** The type of message */
2981
+ type: string;
2982
+ context?: MessageContext | undefined;
2983
+ contacts: ContactsMessageContactsList;
2984
+ }
2985
+ export type Message = TextMessage | AudioMessage | DocumentMessage | ImageMessage | LocationMessage | VideoMessage | StickerMessage | ReactionMessage | InteractiveMessage | TemplateMessage | ContactsMessage;
2986
+ export interface SendMessageRequest {
2987
+ Phone_Number_ID: string;
2988
+ body?: Message | undefined;
2989
+ }
2990
+ export type MessageResponsePayloadContactsItem = BlockedUserOperation;
2991
+ export type MessageResponsePayloadContactsList = Array<BlockedUserOperation>;
2992
+ export type MessageResponsePayloadMessagesItem = MarketingMessageResponsePayloadMessagesItem;
2993
+ export type MessageResponsePayloadMessagesList = Array<MarketingMessageResponsePayloadMessagesItem>;
2994
+ export interface MessageResponsePayload {
2995
+ contacts?: MessageResponsePayloadContactsList | undefined;
2996
+ messages?: MessageResponsePayloadMessagesList | undefined;
2997
+ messaging_product?: string | undefined;
2998
+ }
2999
+ export interface SendSolutionDeactivationRequestRequest {
3000
+ /** Your Multi-Partner Solution ID. This ID is provided when you create the solution and can be found in your Partner Dashboard or through solution management APIs. */
3001
+ Solution_ID: string;
3002
+ /** Optional reason for the deactivation request */
3003
+ reason?: string | undefined;
3004
+ }
3005
+ /** Successful response for deactivation request submission */
3006
+ export interface WhatsAppBusinessSolutionDeactivationResponse {
3007
+ /** Indicates whether the deactivation request was successfully submitted */
3008
+ success: boolean;
3009
+ /** Human-readable message describing the result */
3010
+ message: string;
3011
+ /** Unique identifier for tracking the deactivation request */
3012
+ request_id?: string | undefined;
3013
+ }
3014
+ export interface SetBusinessEncryptionPublicKeyRequest {
3015
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number entity and can be obtained from your WhatsApp Business Account phone numbers list. */
3016
+ Phone_Number_ID: string;
3017
+ /** The business public key in PEM format to be uploaded and signed. Must be a valid RSA public key that will be used for payload encryption. */
3018
+ business_public_key: string;
3019
+ }
3020
+ /** Response after successful public key upload */
3021
+ export interface WhatsAppBusinessEncryptionUploadResponse {
3022
+ /** Indicates whether the public key was successfully uploaded and signed */
3023
+ success: boolean;
3024
+ }
3025
+ export interface SetOBOMobilityIntentRequest {
3026
+ /** Your WhatsApp Business Account ID. This ID can be found in your Business Manager or through the WhatsApp Business Account management APIs. */
3027
+ WABA_ID: string;
3028
+ /** WhatsApp Business Account ID for which to set OBO mobility intent */
3029
+ waba_id: string;
3030
+ /** Unique identifier for the Multi-Partner Solution */
3031
+ solution_id?: string | undefined;
3032
+ /** Application ID requesting OBO mobility intent */
3033
+ app_id?: string | undefined;
3034
+ /** Actor ID performing the OBO mobility intent operation */
3035
+ actor_id?: string | undefined;
3036
+ /** Client-provided mutation identifier for request tracking */
3037
+ client_mutation_id?: string | undefined;
3038
+ }
3039
+ /** Response for setting OBO mobility intent */
3040
+ export interface SetOBOMobilityIntentResponse {
3041
+ /** Indicates if the OBO mobility intent was set successfully */
3042
+ success: boolean;
3043
+ /** Unique identifier for the created OBO mobility intent */
3044
+ intent_id?: string | undefined;
3045
+ /** Client-provided mutation identifier echoed back */
3046
+ client_mutation_id?: string | undefined;
3047
+ /** Error message if the operation failed */
3048
+ error_msg?: string | undefined;
3049
+ }
3050
+ export interface SetOrUpdateCommerceSettingsRequest {
3051
+ Phone_Number_ID: string;
3052
+ is_cart_enabled?: string | undefined;
3053
+ is_catalog_visible?: string | undefined;
3054
+ }
3055
+ export interface SetOrUpdateCommerceSettingsResponse {
3056
+ success?: boolean | undefined;
3057
+ }
3058
+ /** Intent for solution migration */
3059
+ export type SolutionMigrationIntent = "INITIATE_MIGRATION" | "CANCEL_MIGRATION" | "CONFIRM_MIGRATION" | "SCHEDULE_MIGRATION";
3060
+ export interface SetSolutionMigrationIntentRequest {
3061
+ /** WhatsApp Business Account ID. This ID identifies the WABA for which the solution migration intent is being set. */
3062
+ WABA_ID: string;
3063
+ /** Unique identifier for the Multi-Partner Solution */
3064
+ solution_id: string;
3065
+ migration_intent: SolutionMigrationIntent | (string & {});
3066
+ /** Target solution ID for migration (required for certain migration intents) */
3067
+ target_solution_id?: string | undefined;
3068
+ /** Reason for the migration intent */
3069
+ migration_reason?: string | undefined;
3070
+ /** Scheduled time for migration execution (ISO 8601 format) */
3071
+ scheduled_migration_time?: string | undefined;
3072
+ }
3073
+ /** Current status of the migration intent */
3074
+ export type SetSolutionMigrationIntentResponseStatus = "PENDING" | "APPROVED" | "REJECTED" | "SCHEDULED";
3075
+ /** Response for setting solution migration intent */
3076
+ export interface SetSolutionMigrationIntentResponse {
3077
+ /** Indicates if the migration intent was set successfully */
3078
+ success: boolean;
3079
+ /** Unique identifier for the migration intent request */
3080
+ migration_intent_id: string;
3081
+ /** Current status of the migration intent */
3082
+ status?: SetSolutionMigrationIntentResponseStatus | undefined;
3083
+ /** Estimated completion time for the migration (ISO 8601 format) */
3084
+ estimated_completion_time?: string | undefined;
3085
+ }
3086
+ export interface SharePreVerifiedPhoneNumberRequest {
3087
+ /** Your Business ID that owns or has sharing rights to the pre-verified phone number. This ID can be found in your Meta Business Manager or through business management APIs. */
3088
+ Business_ID: string;
3089
+ /** Unique identifier of the pre-verified phone number to be shared. Must be a valid phone number ID that the requesting business owns or has sharing rights to. */
3090
+ preverified_id: string;
3091
+ /** Business ID of the partner business that will receive access to the pre-verified phone number. Must be a valid business entity accessible to the requesting app. */
3092
+ partner_business_id: string;
3093
+ }
3094
+ /** Response containing details of the successful phone number sharing operation */
3095
+ export interface PreVerifiedPhoneNumberShareResponse {
3096
+ /** Indicates whether the sharing operation was successful */
3097
+ success: boolean;
3098
+ }
3099
+ export interface SubscribeToWabaWebhooksRequest {
3100
+ /** WhatsApp Business Account ID. This ID can be found in your WhatsApp Manager or through business management APIs. */
3101
+ WABA_ID: string;
3102
+ /** Custom webhook callback URL to override app default */
3103
+ override_callback_uri?: string | undefined;
3104
+ /** Verification token for webhook security */
3105
+ verify_token?: string | Redacted.Redacted<string> | undefined;
3106
+ }
3107
+ /** Array containing subscription details */
3108
+ export type SubscriptionResponseDataList = Array<SubscribedApp>;
3109
+ /** Response after successful subscription operation */
3110
+ export interface SubscriptionResponse {
3111
+ /** Indicates whether the subscription operation was successful */
3112
+ success: boolean;
3113
+ /** Array containing subscription details */
3114
+ data?: SubscriptionResponseDataList | undefined;
3115
+ }
3116
+ export type UnblockUsersRequestBlockUsersItem = BlockUsersRequestBlockUsersItem;
3117
+ export type UnblockUsersRequestBlockUsersList = Array<BlockUsersRequestBlockUsersItem>;
3118
+ export interface UnblockUsersRequest {
3119
+ Phone_Number_ID: string;
3120
+ block_users?: UnblockUsersRequestBlockUsersList | undefined;
3121
+ messaging_product?: string | undefined;
3122
+ }
3123
+ export type UnblockUsersResultRemovedUsersList = Array<BlockedUserOperation>;
3124
+ export interface UnblockUsersResult {
3125
+ removed_users?: UnblockUsersResultRemovedUsersList | undefined;
3126
+ }
3127
+ export interface UnblockUsersData {
3128
+ block_users?: UnblockUsersResult | undefined;
3129
+ messaging_product?: string | undefined;
3130
+ }
3131
+ export interface UnsubscribeFromWabaWebhooksRequest {
3132
+ /** WhatsApp Business Account ID. This ID can be found in your WhatsApp Manager or through business management APIs. */
3133
+ WABA_ID: string;
3134
+ }
3135
+ /** Messaging product identifier, must be 'whatsapp' */
3136
+ export type UpdateBusinessComplianceInfoRequestMessagingProduct = "whatsapp";
3137
+ /** Type of business entity for compliance purposes */
3138
+ export type BusinessEntityType = "LIMITED_LIABILITY_PARTNERSHIP" | "SOLE_PROPRIETORSHIP" | "PARTNERSHIP" | "PUBLIC_COMPANY" | "PRIVATE_COMPANY" | "OTHER";
3139
+ /** Contact information for the designated grievance officer */
3140
+ export interface GrievanceOfficerUpdateDetails {
3141
+ /** Full name of the grievance officer */
3142
+ name: string;
3143
+ /** Email address for grievance officer contact */
3144
+ email: string;
3145
+ /** Mobile phone number for grievance officer (with country code) */
3146
+ mobile_number?: string | undefined;
3147
+ /** Landline phone number for grievance officer (with country code) */
3148
+ landline_number?: string | undefined;
3149
+ }
3150
+ /** Contact information for customer care and support */
3151
+ export interface CustomerCareUpdateDetails {
3152
+ /** Email address for customer care contact */
3153
+ email: string;
3154
+ /** Mobile phone number for customer care (with country code) */
3155
+ mobile_number?: string | undefined;
3156
+ /** Landline phone number for customer care (with country code) */
3157
+ landline_number?: string | undefined;
3158
+ }
3159
+ export interface UpdateBusinessComplianceInfoRequest {
3160
+ /** Your WhatsApp Business Account phone number ID. This ID can be found in your WhatsApp Business Manager or through phone number management APIs. */
3161
+ Phone_Number_ID: string;
3162
+ /** Messaging product identifier, must be 'whatsapp' */
3163
+ messaging_product: UpdateBusinessComplianceInfoRequestMessagingProduct | (string & {});
3164
+ /** Legal name of the business entity */
3165
+ entity_name: string;
3166
+ entity_type: BusinessEntityType | (string & {});
3167
+ /** Custom entity type description when entity_type is "OTHER". Required for OTHER entity type. */
3168
+ entity_type_custom?: string | undefined;
3169
+ /** Whether the business entity is officially registered with regulatory authorities. Can only be used with "OTHER" or "PARTNERSHIP" entity types. */
3170
+ is_registered?: boolean | undefined;
3171
+ grievance_officer_details: GrievanceOfficerUpdateDetails;
3172
+ customer_care_details: CustomerCareUpdateDetails;
3173
+ }
3174
+ export interface UpdateBusinessComplianceInfoResponse {
3175
+ /** Indicates whether the compliance information was successfully updated */
3176
+ success: boolean;
3177
+ }
3178
+ export interface UpdateFlowJsonRequest {
3179
+ Flow_ID: string;
3180
+ asset_type?: string | undefined;
3181
+ /** The Flow JSON file. A `File` keeps its name; a `Blob` or bytes are sent under the part name. */
3182
+ file?: Blob | Uint8Array | ArrayBuffer | undefined;
3183
+ name?: string | undefined;
3184
+ }
3185
+ export interface UpdateFlowJsonResponseValidationErrorsItem {
3186
+ column_end?: number | undefined;
3187
+ column_start?: number | undefined;
3188
+ error?: string | undefined;
3189
+ error_type?: string | undefined;
3190
+ line_end?: number | undefined;
3191
+ line_start?: number | undefined;
3192
+ message?: string | undefined;
3193
+ }
3194
+ export type UpdateFlowJsonResponseValidationErrorsList = Array<UpdateFlowJsonResponseValidationErrorsItem>;
3195
+ export interface UpdateFlowJsonResponse {
3196
+ success?: boolean | undefined;
3197
+ validation_errors?: UpdateFlowJsonResponseValidationErrorsList | undefined;
3198
+ }
3199
+ export interface UpdateFlowMetadataRequest {
3200
+ Flow_ID: string;
3201
+ categories?: string | undefined;
3202
+ endpoint_uri?: string | undefined;
3203
+ name?: string | undefined;
3204
+ }
3205
+ export interface UpdateFlowMetadataResponse {
3206
+ success?: boolean | undefined;
3207
+ }
3208
+ export type UpdateGroupSettingsRequestMessagingProduct = "whatsapp";
3209
+ export interface UpdateGroupSettingsRequest {
3210
+ /** Group ID */
3211
+ group_id: string;
3212
+ messaging_product: UpdateGroupSettingsRequestMessagingProduct | (string & {});
3213
+ /** The new subject for the group */
3214
+ subject?: string | undefined;
3215
+ /** The new description for the group */
3216
+ description?: string | undefined;
3217
+ /** Path to an image file for group profile picture */
3218
+ profile_picture_file?: string | undefined;
3219
+ }
3220
+ export interface UpdateGroupSettingsResponse {
3221
+ }
3222
+ export type UpdateMessageTemplateRequestComponentsItemButtonsItem = GetMessageTemplateResponseComponentsItemButtonsItem;
3223
+ export type UpdateMessageTemplateRequestComponentsItemButtonsList = Array<GetMessageTemplateResponseComponentsItemButtonsItem>;
3224
+ export type UpdateMessageTemplateRequestComponentsItemExampleBodyTextItemList = Array<string>;
3225
+ export type UpdateMessageTemplateRequestComponentsItemExampleBodyTextList = Array<UpdateMessageTemplateRequestComponentsItemExampleBodyTextItemList>;
3226
+ export interface UpdateMessageTemplateRequestComponentsItemExample {
3227
+ body_text?: UpdateMessageTemplateRequestComponentsItemExampleBodyTextList | undefined;
3228
+ }
3229
+ export interface UpdateMessageTemplateRequestComponentsItem {
3230
+ buttons?: UpdateMessageTemplateRequestComponentsItemButtonsList | undefined;
3231
+ example?: UpdateMessageTemplateRequestComponentsItemExample | undefined;
3232
+ format?: string | undefined;
3233
+ text?: string | undefined;
3234
+ type?: string | undefined;
3235
+ }
3236
+ export type UpdateMessageTemplateRequestComponentsList = Array<UpdateMessageTemplateRequestComponentsItem>;
3237
+ export interface UpdateMessageTemplateRequest {
3238
+ TEMPLATE_ID: string;
3239
+ category?: string | undefined;
3240
+ components?: UpdateMessageTemplateRequestComponentsList | undefined;
3241
+ language?: string | undefined;
3242
+ name?: string | undefined;
3243
+ }
3244
+ export interface UpdateMessageTemplateResponse {
3245
+ success?: boolean | undefined;
3246
+ }
3247
+ /** Supporting links that demonstrate business notability (minimum 5, maximum 10) */
3248
+ export type UpdateOfficialBusinessAccountStatusRequestSupportingLinksList = Array<string>;
3249
+ export interface UpdateOfficialBusinessAccountStatusRequest {
3250
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number status entity and can be obtained from your WhatsApp Business Account phone numbers list. */
3251
+ Phone_Number_ID: string;
3252
+ /** Official business website URL */
3253
+ business_website_url: string;
3254
+ /** Primary country where the business operates */
3255
+ primary_country_of_operation: string;
3256
+ /** Primary language used by the business */
3257
+ primary_language?: string | undefined;
3258
+ /** Parent business or brand name */
3259
+ parent_business_or_brand?: string | undefined;
3260
+ /** Supporting links that demonstrate business notability (minimum 5, maximum 10) */
3261
+ supporting_links?: UpdateOfficialBusinessAccountStatusRequestSupportingLinksList | undefined;
3262
+ /** Additional information to support the Official Business Account application */
3263
+ additional_supporting_information?: string | undefined;
3264
+ }
3265
+ /** Response for Official Business Account status update operation */
3266
+ export interface OfficialBusinessAccountUpdateResponse {
3267
+ /** Indicates if the operation was successful */
3268
+ success: boolean;
3269
+ /** Human-readable message describing the result of the operation */
3270
+ message: string;
3271
+ updated_status?: OfficialBusinessAccountStatus | undefined;
3272
+ /** Unique identifier for tracking the application/update request */
3273
+ tracking_id?: string | undefined;
3274
+ }
3275
+ /** Connection status between WhatsApp Business Account and phone number */
3276
+ export type WhatsAppBusinessAccountToNumberStatus = "CONNECTED" | "DISCONNECTED" | "PENDING" | "FLAGGED" | "RESTRICTED" | "RATE_LIMITED" | "MESSAGING_LIMIT_TIER_0" | "MESSAGING_LIMIT_TIER_1" | "MESSAGING_LIMIT_TIER_2" | "MESSAGING_LIMIT_TIER_3" | "MESSAGING_LIMIT_TIER_4";
3277
+ /** WhatsApp Business API configuration data */
3278
+ export interface WhatsAppBusinessApiData {
3279
+ /** Two-step verification PIN (can be empty string) */
3280
+ pin?: string | undefined;
3281
+ /** Whether to show security notifications */
3282
+ show_security_notifications?: boolean | undefined;
3283
+ /** Whether to notify users when changing number */
3284
+ notify_user_change_number?: boolean | undefined;
3285
+ }
3286
+ /** Search visibility status for the WhatsApp Business Account */
3287
+ export type WAAPIBusinessGlobalSearchStateStatus = "VISIBLE" | "HIDDEN";
3288
+ /** Webhook configuration settings */
3289
+ export interface WebhookConfiguration {
3290
+ /** Override callback URI for webhook notifications (can be empty string) */
3291
+ override_callback_uri: string;
3292
+ /** Token used to verify webhook requests */
3293
+ verify_token?: string | Redacted.Redacted<string> | undefined;
3294
+ }
3295
+ export interface UpdatePhoneNumberRequest {
3296
+ /** Your WhatsApp Business Account phone number ID (CSID). This ID is provided when you register the phone number and can be found in your WhatsApp Business Manager. */
3297
+ Phone_Number_ID: string;
3298
+ connection_status?: WhatsAppBusinessAccountToNumberStatus | (string & {}) | undefined;
3299
+ /** Webhook URL for receiving message notifications */
3300
+ webhook_url?: string | undefined;
3301
+ whatsapp_business_api_data?: WhatsAppBusinessApiData | undefined;
3302
+ /** Two-step verification PIN (can be empty string) */
3303
+ pin?: string | undefined;
3304
+ search_visibility?: WAAPIBusinessGlobalSearchStateStatus | (string & {}) | undefined;
3305
+ webhook_configuration?: WebhookConfiguration | undefined;
3306
+ /** New display name for name verification request */
3307
+ new_display_name?: string | undefined;
3308
+ /** Username for the WhatsApp Business Account */
3309
+ username?: string | undefined;
3310
+ }
3311
+ /** Messaging service */
3312
+ export type MessageResponseMessagingProduct = "whatsapp";
3313
+ export interface ContactResponse {
3314
+ /** Input phone number */
3315
+ input: string;
3316
+ /** WhatsApp ID */
3317
+ wa_id?: string | undefined;
3318
+ }
3319
+ /** Contact information */
3320
+ export type MessageResponseContactsList = Array<ContactResponse>;
3321
+ export interface MessageResponseItem {
3322
+ /** Message ID */
3323
+ id: string;
3324
+ }
3325
+ /** Message information */
3326
+ export type MessageResponseMessagesList = Array<MessageResponseItem>;
3327
+ /** Response from sending a message */
3328
+ export interface MessageResponse {
3329
+ /** Messaging service */
3330
+ messaging_product: MessageResponseMessagingProduct;
3331
+ /** Contact information */
3332
+ contacts: MessageResponseContactsList;
3333
+ /** Message information */
3334
+ messages: MessageResponseMessagesList;
3335
+ }
3336
+ export type UpdatePhoneNumberResponseBody = MessageResponse | SuccessResponse;
3337
+ export type UpdatePhoneNumberResponse = UpdatePhoneNumberResponseBody;
3338
+ /** Enable or disable calling feature */
3339
+ export type CallingSettingsStatus = "enabled" | "disabled";
3340
+ /** Control visibility of the call icon */
3341
+ export type CallingSettingsCallIconVisibility = "visible" | "hidden";
3342
+ export interface CallingSettings {
3343
+ /** Enable or disable calling feature */
3344
+ status: CallingSettingsStatus | (string & {});
3345
+ /** Control visibility of the call icon */
3346
+ call_icon_visibility?: CallingSettingsCallIconVisibility | (string & {}) | undefined;
3347
+ }
3348
+ export interface CallingSettingsRequest {
3349
+ calling: CallingSettings;
3350
+ }
3351
+ export interface UserIdentityChangeSettings {
3352
+ /** Enable or disable user identity change notifications */
3353
+ enabled: boolean;
3354
+ }
3355
+ export interface UserIdentityChangeSettingsRequest {
3356
+ user_identity_change: UserIdentityChangeSettings;
3357
+ }
3358
+ /** Enable or disable payload encryption */
3359
+ export type PayloadEncryptionSettingsStatus = "enabled" | "disabled";
3360
+ export interface PayloadEncryptionSettings {
3361
+ /** Enable or disable payload encryption */
3362
+ status: PayloadEncryptionSettingsStatus | (string & {});
3363
+ /** Base64-encoded public key for payload encryption (required when enabling encryption) */
3364
+ client_encryption_key?: string | Redacted.Redacted<string> | undefined;
3365
+ }
3366
+ export interface PayloadEncryptionSettingsRequest {
3367
+ payload_encryption: PayloadEncryptionSettings;
3368
+ }
3369
+ export interface StorageConfigurationSettings {
3370
+ /** Enable or disable custom storage configuration */
3371
+ enabled: boolean;
3372
+ /** Data storage region */
3373
+ region?: string | undefined;
3374
+ }
3375
+ export interface StorageConfigurationSettingsRequest {
3376
+ storage_configuration: StorageConfigurationSettings;
3377
+ }
3378
+ export type UpdatePhoneNumberSettingsRequestBody = CallingSettingsRequest | UserIdentityChangeSettingsRequest | PayloadEncryptionSettingsRequest | StorageConfigurationSettingsRequest;
3379
+ export interface UpdatePhoneNumberSettingsRequest {
3380
+ Phone_Number_ID: string;
3381
+ body?: UpdatePhoneNumberSettingsRequestBody | undefined;
3382
+ }
3383
+ export interface UpdatePhoneNumberSettingsResponse {
3384
+ success?: boolean | undefined;
3385
+ }
3386
+ export interface UpdateWhatsAppBusinessAccountRequest {
3387
+ /** Your WhatsApp Business Account ID. This ID is provided when you create the account and can be found in your WhatsApp Manager or through business management APIs. */
3388
+ WABA_ID: string;
3389
+ /** Updated name for the WhatsApp Business Account */
3390
+ name?: string | undefined;
3391
+ /** Updated timezone identifier for the WhatsApp Business Account */
3392
+ timezone_id?: string | undefined;
3393
+ }
3394
+ export interface UpdateWhatsAppBusinessAccountResponse {
3395
+ success?: boolean | undefined;
3396
+ }
3397
+ /** The messaging service used for the request */
3398
+ export type UpdateWhatsAppBusinessProfileRequestMessagingProduct = "whatsapp";
3399
+ /** URLs associated with the business */
3400
+ export type UpdateWhatsAppBusinessProfileRequestWebsitesList = Array<string>;
3401
+ export interface UpdateWhatsAppBusinessProfileRequest {
3402
+ /** Your WhatsApp Business Profile ID. This ID is provided when the profile is created and can be found in your WhatsApp Business Manager or through business management APIs. */
3403
+ WhatsApp_Business_Profile_ID: string;
3404
+ /** The messaging service used for the request */
3405
+ messaging_product: UpdateWhatsAppBusinessProfileRequestMessagingProduct | (string & {});
3406
+ /** The text to display in business profile's About section */
3407
+ about?: string | undefined;
3408
+ /** The address of the business */
3409
+ address?: string | undefined;
3410
+ /** Description of the business */
3411
+ description?: string | undefined;
3412
+ /** The contact email address of the business */
3413
+ email?: string | undefined;
3414
+ /** The handle of the profile picture generated from Resumable Upload API */
3415
+ profile_picture_handle?: string | undefined;
3416
+ /** URLs associated with the business */
3417
+ websites?: UpdateWhatsAppBusinessProfileRequestWebsitesList | undefined;
3418
+ vertical?: WhatsAppBusinessVertical | (string & {}) | undefined;
3419
+ }
3420
+ /** Response after updating business profile */
3421
+ export interface WhatsAppBusinessProfileUpdateResponse {
3422
+ /** Indicates whether the update was successful */
3423
+ success?: boolean | undefined;
3424
+ }
3425
+ /** The messaging service used for the request */
3426
+ export type UpdateWhatsAppBusinessProfileInformationRequestMessagingProduct = "whatsapp";
3427
+ /** URLs associated with the business */
3428
+ export type UpdateWhatsAppBusinessProfileInformationRequestWebsitesList = Array<string>;
3429
+ export interface UpdateWhatsAppBusinessProfileInformationRequest {
3430
+ /** Your WhatsApp Business phone number ID. This ID represents the phone number status entity and can be obtained from your WhatsApp Business Account phone numbers list. */
3431
+ Phone_Number_ID: string;
3432
+ /** The messaging service used for the request */
3433
+ messaging_product: UpdateWhatsAppBusinessProfileInformationRequestMessagingProduct | (string & {});
3434
+ /** The text to display in business profile's About section */
3435
+ about?: string | undefined;
3436
+ /** The address of the business */
3437
+ address?: string | undefined;
3438
+ /** Description of the business */
3439
+ description?: string | undefined;
3440
+ /** The contact email address of the business */
3441
+ email?: string | undefined;
3442
+ /** The handle of the profile picture generated from Resumable Upload API */
3443
+ profile_picture_handle?: string | undefined;
3444
+ /** URLs associated with the business */
3445
+ websites?: UpdateWhatsAppBusinessProfileInformationRequestWebsitesList | undefined;
3446
+ vertical?: WhatsAppBusinessVertical | (string & {}) | undefined;
3447
+ }
3448
+ export interface UploadMediaRequest {
3449
+ Phone_Number_ID: string;
3450
+ /** The media file. A `File` keeps its name; a `Blob` or bytes are sent under the part name. */
3451
+ file: Blob | Uint8Array | ArrayBuffer;
3452
+ /** Always `whatsapp`. */
3453
+ messaging_product: string;
3454
+ /** MIME type of the file, e.g. `image/jpeg`, `audio/ogg`, `application/pdf`. */
3455
+ type: string;
3456
+ }
3457
+ export interface UploadMediaResponse {
3458
+ id?: string | undefined;
3459
+ }
3460
+ export interface VerifyPhoneNumberCodeRequest {
3461
+ /** The WhatsApp Business Account phone number ID that needs verification. This ID is provided when you add a phone number to your WhatsApp Business Account. */
3462
+ Phone_Number_ID: string;
3463
+ /** 6-digit verification code received via SMS or voice */
3464
+ code: string;
3465
+ }
3466
+ /** Response from phone number verification code verification */
3467
+ export interface VerifyCodeResponse {
3468
+ /** Indicates whether the verification code was successfully verified */
3469
+ success: boolean;
3470
+ /** The phone number ID that was verified */
3471
+ id?: string | undefined;
3472
+ }
3473
+ export interface VerifyPreVerifiedPhoneNumberCodeRequest {
3474
+ /** Your Pre-Verified Phone Number ID. This ID is provided when you create the pre-verified phone number and can be found in your WhatsApp Business Manager or through phone number APIs. */
3475
+ Pre_Verified_Phone_Number_ID: string;
3476
+ /** 6-digit verification code received via SMS or voice */
3477
+ code: string;
3478
+ }
3479
+ export interface GraphAPIErrorError {
3480
+ /** Human-readable error message */
3481
+ message: string;
3482
+ /** Error category type */
3483
+ type: string;
3484
+ /** Numeric error code */
3485
+ code: number;
3486
+ /** More specific error subcode when available */
3487
+ error_subcode?: number | undefined;
3488
+ /** Unique identifier for debugging and support requests with Meta */
3489
+ fbtrace_id?: string | undefined;
3490
+ /** Indicates whether this error is temporary and the request should be retried */
3491
+ is_transient?: boolean | undefined;
3492
+ /** User-friendly error title for display purposes */
3493
+ error_user_title?: string | undefined;
3494
+ /** User-friendly error message for display purposes */
3495
+ error_user_msg?: string | undefined;
3496
+ }
3497
+ /** Standard Graph API error response */
3498
+ export interface GraphAPIError {
3499
+ error: GraphAPIErrorError;
3500
+ }
3501
+ export interface ErrorObject {
3502
+ /** Human-readable description of the error */
3503
+ message: string;
3504
+ /** Error type classification */
3505
+ type: string;
3506
+ /** Numeric error code */
3507
+ code: number;
3508
+ }
3509
+ export interface ErrorResponse {
3510
+ error: ErrorObject;
3511
+ }
3512
+ export interface Metadata {
3513
+ /** Business display phone number. */
3514
+ display_phone_number: string;
3515
+ /** Business phone number ID. */
3516
+ phone_number_id: string;
3517
+ }
3518
+ export interface ContactProfileProfile {
3519
+ /** WhatsApp user's name as it appears in their profile in the WhatsApp client. */
3520
+ name: string;
3521
+ }
3522
+ export interface ContactProfile {
3523
+ profile?: ContactProfileProfile | undefined;
3524
+ /** WhatsApp user ID. Note that a WhatsApp user's ID and phone number may not always match. */
3525
+ wa_id?: string | undefined;
3526
+ /** Business-scoped user ID of the customer. */
3527
+ user_id?: string | undefined;
3528
+ }
3529
+ /** Array of contact profiles for the sender. Included for all non-system incoming messages. */
3530
+ export type IncomingMessageValueGeneralContactsList = Array<ContactProfile>;
3531
+ /** Set when the customer replied to (quoted) an earlier message. */
3532
+ export interface IncomingMessageContext {
3533
+ /** WhatsApp ID of the sender of the quoted message (the business number for a reply to one of its messages). */
3534
+ from?: string | undefined;
3535
+ /** ID of the quoted message. */
3536
+ id?: string | undefined;
3537
+ }
3538
+ export interface IncomingMediaObject {
3539
+ /** Media ID, for getMedia. */
3540
+ id: string;
3541
+ mime_type?: string | undefined;
3542
+ sha256?: string | undefined;
3543
+ /** Download URL; fetch it with the access token as `Authorization: Bearer`. */
3544
+ url?: string | undefined;
3545
+ caption?: string | undefined;
3546
+ /** `true` for a voice note recorded in WhatsApp. */
3547
+ voice?: boolean | undefined;
3548
+ /** Document file name. */
3549
+ filename?: string | undefined;
3550
+ /** `true` for an animated sticker. */
3551
+ animated?: boolean | undefined;
3552
+ }
3553
+ export interface IncomingLocation {
3554
+ latitude?: number | undefined;
3555
+ longitude?: number | undefined;
3556
+ name?: string | undefined;
3557
+ address?: string | undefined;
3558
+ url?: string | undefined;
3559
+ }
3560
+ export type IncomingContactsList = Array<ContactObject>;
3561
+ export interface ButtonMessageButton {
3562
+ /** Quick-reply button payload. */
3563
+ payload: string;
3564
+ /** Quick-reply button label text. */
3565
+ text: string;
3566
+ }
3567
+ export interface InteractiveListReplyContentListReply {
3568
+ /** Row ID. */
3569
+ id: string;
3570
+ /** Row title. */
3571
+ title: string;
3572
+ /** Row description. */
3573
+ description: string;
3574
+ }
3575
+ export interface InteractiveListReplyContent {
3576
+ list_reply: InteractiveListReplyContentListReply;
3577
+ /** Reply type: `button_reply` or `list_reply`. */
3578
+ type?: string | undefined;
3579
+ }
3580
+ export interface InteractiveButtonReplyContentButtonReply {
3581
+ /** Button ID. */
3582
+ id: string;
3583
+ /** Button label text. */
3584
+ title: string;
3585
+ }
3586
+ export interface InteractiveButtonReplyContent {
3587
+ button_reply: InteractiveButtonReplyContentButtonReply;
3588
+ /** Reply type: `button_reply` or `list_reply`. */
3589
+ type?: string | undefined;
3590
+ }
3591
+ export type InteractiveMessageReplyInteractive = InteractiveListReplyContent | InteractiveButtonReplyContent;
3592
+ export interface OrderMessageOrderProductItemsItem {
3593
+ /** Product ID. */
3594
+ product_retailer_id: string;
3595
+ /** Product quantity. */
3596
+ quantity: number;
3597
+ /** Individual product price. */
3598
+ item_price: number;
3599
+ /** Catalog currency code. */
3600
+ currency: string;
3601
+ }
3602
+ export type OrderMessageOrderProductItemsList = Array<OrderMessageOrderProductItemsItem>;
3603
+ export interface OrderMessageOrder {
3604
+ /** Product catalog ID. */
3605
+ catalog_id: string;
3606
+ /** Empty string. */
3607
+ text: string;
3608
+ product_items: OrderMessageOrderProductItemsList;
3609
+ }
3610
+ /** Type of system message. user_changed_number reports a change to the user's phone number and carries the new number. user_changed_user_id reports a change to the user's business-scoped user ID, with no phone number included. */
3611
+ export type SystemMessageSystemType = "user_changed_number" | "user_changed_user_id";
3612
+ export interface SystemMessageSystem {
3613
+ /** Description of the system change (e.g., user changed number). */
3614
+ body: string;
3615
+ /** The user's WhatsApp ID. On user_changed_number messages this is the new phone number. Omitted when the user has no phone number visible to the business. */
3616
+ wa_id?: string | undefined;
3617
+ /** Type of system message. user_changed_number reports a change to the user's phone number and carries the new number. user_changed_user_id reports a change to the user's business-scoped user ID, with no phone number included. */
3618
+ type: SystemMessageSystemType;
3619
+ /** The user's current business-scoped user ID (BSUID). Omitted when business-scoped user IDs are not enabled for the business. */
3620
+ user_id?: string | undefined;
3621
+ /** The user's current business-scoped user ID (BSUID) scoped to the parent business portfolio. Omitted when the business is not onboarded to parent-scoped IDs. */
3622
+ parent_user_id?: string | undefined;
3623
+ /** The business-scoped user ID (BSUID) the user had before the change. Omitted when the previous BSUID is unavailable. */
3624
+ previous_user_id?: string | undefined;
3625
+ /** The parent-scoped business-scoped user ID (BSUID) the user had before the change. Omitted when the previous parent BSUID is unavailable. */
3626
+ previous_parent_user_id?: string | undefined;
3627
+ }
3628
+ export type UnsupportedMessageErrorsList = Array<ErrorObject>;
3629
+ /** A message a customer sent, as delivered in a `messages` webhook. `type` says which content member is set. */
3630
+ export interface IncomingMessage {
3631
+ /** WhatsApp ID (phone number) of the customer who sent the message. */
3632
+ from: string;
3633
+ /** Business-scoped user ID of the sender. */
3634
+ from_user_id?: string | undefined;
3635
+ /** Message ID (`wamid....`). */
3636
+ id: string;
3637
+ /** Unix time the message was sent, in seconds, as a string. */
3638
+ timestamp: string;
3639
+ /** Message type: `text`, `image`, `audio`, `video`, `document`, `sticker`, `reaction`, `location`, `contacts`, `button`, `interactive`, `order`, `system` or `unsupported`. The member of the same name carries its content. */
3640
+ type: string;
3641
+ context?: IncomingMessageContext | undefined;
3642
+ text?: TextMessageText | undefined;
3643
+ image?: IncomingMediaObject | undefined;
3644
+ audio?: IncomingMediaObject | undefined;
3645
+ video?: IncomingMediaObject | undefined;
3646
+ document?: IncomingMediaObject | undefined;
3647
+ sticker?: IncomingMediaObject | undefined;
3648
+ reaction?: ReactionMessageReaction | undefined;
3649
+ location?: IncomingLocation | undefined;
3650
+ contacts?: IncomingContactsList | undefined;
3651
+ button?: ButtonMessageButton | undefined;
3652
+ interactive?: InteractiveMessageReplyInteractive | undefined;
3653
+ order?: OrderMessageOrder | undefined;
3654
+ system?: SystemMessageSystem | undefined;
3655
+ errors?: UnsupportedMessageErrorsList | undefined;
3656
+ }
3657
+ /** Array of message objects. The structure varies based on the 'type' property. */
3658
+ export type IncomingMessageValueGeneralMessagesList = Array<IncomingMessage>;
3659
+ export interface IncomingMessageValueGeneral {
3660
+ /** Always 'whatsapp'. */
3661
+ messaging_product: string;
3662
+ metadata: Metadata;
3663
+ /** Array of contact profiles for the sender. Included for all non-system incoming messages. */
3664
+ contacts: IncomingMessageValueGeneralContactsList;
3665
+ /** Array of message objects. The structure varies based on the 'type' property. */
3666
+ messages: IncomingMessageValueGeneralMessagesList;
3667
+ }
3668
+ /** Array containing only 'system' message objects. */
3669
+ export type IncomingMessageValueSystemMessagesList = Array<IncomingMessage>;
3670
+ export interface IncomingMessageValueSystem {
3671
+ /** Always 'whatsapp'. */
3672
+ messaging_product: string;
3673
+ metadata: Metadata;
3674
+ /** Array containing only 'system' message objects. */
3675
+ messages: IncomingMessageValueSystemMessagesList;
3676
+ }
3677
+ export type StatusesStatus = "sent" | "delivered" | "read" | "failed";
3678
+ export interface ConversationOrigin {
3679
+ type?: string | undefined;
3680
+ }
3681
+ export interface Conversation {
3682
+ id?: string | undefined;
3683
+ expiration_timestamp?: string | undefined;
3684
+ origin?: ConversationOrigin | undefined;
3685
+ }
3686
+ export type PricingPricingModel = "CBP" | "PMP";
3687
+ export interface Pricing {
3688
+ billable?: boolean | undefined;
3689
+ pricing_model?: PricingPricingModel | undefined;
3690
+ category?: string | undefined;
3691
+ /** Pricing type, e.g. `regular`. */
3692
+ type?: string | undefined;
3693
+ }
3694
+ export interface ErrorData {
3695
+ details?: string | undefined;
3696
+ }
3697
+ export interface StatusError {
3698
+ code?: number | undefined;
3699
+ title?: string | undefined;
3700
+ message?: string | undefined;
3701
+ error_data?: ErrorData | undefined;
3702
+ href?: string | undefined;
3703
+ }
3704
+ export type StatusesErrorsList = Array<StatusError>;
3705
+ export interface Statuses {
3706
+ /** Unique WhatsApp message ID the status is associated with. */
3707
+ id: string;
3708
+ status: StatusesStatus;
3709
+ timestamp: string;
3710
+ /** Recipeint phone number. */
3711
+ recipient_id: string;
3712
+ /** Group ID if the message was sent to a group. */
3713
+ group_id?: string | undefined;
3714
+ conversation?: Conversation | undefined;
3715
+ pricing?: Pricing | undefined;
3716
+ errors?: StatusesErrorsList | undefined;
3717
+ /** Business-scoped user ID of the recipient. */
3718
+ recipient_user_id?: string | undefined;
3719
+ }
3720
+ /** Array of status objects. */
3721
+ export type StatusMessageValueStatusesList = Array<Statuses>;
3722
+ export interface StatusMessageValue {
3723
+ /** Always 'whatsapp'. */
3724
+ messaging_product: string;
3725
+ metadata: Metadata;
3726
+ /** Array of status objects. */
3727
+ statuses: StatusMessageValueStatusesList;
3728
+ contacts?: IncomingMessageValueGeneralContactsList | undefined;
3729
+ }
3730
+ /** Type of group event */
3731
+ export type GroupsType = "group_create" | "group_delete" | "group_settings_update" | "group_add_participants" | "group_remove_participants";
3732
+ export interface GroupParticipant {
3733
+ /** Input phone number or WhatsApp ID */
3734
+ input?: string | undefined;
3735
+ /** WhatsApp ID of the participant */
3736
+ wa_id?: string | undefined;
3737
+ }
3738
+ /** List of participants added to the group */
3739
+ export type GroupsAddedParticipantsList = Array<GroupParticipant>;
3740
+ /** List of participants removed from the group */
3741
+ export type GroupsRemovedParticipantsList = Array<GroupParticipant>;
3742
+ export interface GroupProfilePicture {
3743
+ /** MIME type of the profile picture */
3744
+ mime_type?: string | undefined;
3745
+ /** SHA256 hash of the profile picture */
3746
+ sha256?: string | undefined;
3747
+ }
3748
+ export interface Groups {
3749
+ /** Unix timestamp of the group event */
3750
+ timestamp: number;
3751
+ /** Unique identifier for the group */
3752
+ group_id: string;
3753
+ /** Type of group event */
3754
+ type: GroupsType;
3755
+ /** Unique identifier for the request */
3756
+ request_id: string;
3757
+ /** Group subject/name */
3758
+ subject?: string | undefined;
3759
+ /** Group description */
3760
+ description?: string | undefined;
3761
+ /** List of participants added to the group */
3762
+ added_participants?: GroupsAddedParticipantsList | undefined;
3763
+ /** List of participants removed from the group */
3764
+ removed_participants?: GroupsRemovedParticipantsList | undefined;
3765
+ /** Group profile picture information */
3766
+ profile_picture?: GroupProfilePicture | undefined;
3767
+ }
3768
+ /** Array of group objects. */
3769
+ export type GroupValueGroupsList = Array<Groups>;
3770
+ export interface GroupValue {
3771
+ /** Always 'whatsapp'. */
3772
+ messaging_product: string;
3773
+ metadata: Metadata;
3774
+ /** Array of group objects. */
3775
+ groups: GroupValueGroupsList;
3776
+ }
3777
+ export type ChangeValue = IncomingMessageValueGeneral | IncomingMessageValueSystem | StatusMessageValue | GroupValue;
3778
+ /** The field indicate to what object is the webhook related: - messages: the webhook is related to messages from consumer or status of message sent by business to consumer. - group_lifecycle_update: the webhook is related to group creation and deletion. - group_settings_update: the webhook is related to group settings update. - group_participant_update: the webhook is related to participants joining and leaving the groups. */
3779
+ export type ChangeField = "messages" | "group_lifecycle_update" | "group_settings_update" | "group_participant_update";
3780
+ export interface Change {
3781
+ value: ChangeValue;
3782
+ /** The field indicate to what object is the webhook related: - messages: the webhook is related to messages from consumer or status of message sent by business to consumer. - group_lifecycle_update: the webhook is related to group creation and deletion. - group_settings_update: the webhook is related to group settings update. - group_participant_update: the webhook is related to participants joining and leaving the groups. */
3783
+ field: ChangeField;
3784
+ }
3785
+ export type EntryChangesList = Array<Change>;
3786
+ export interface Entry {
3787
+ /** WhatsApp Business Account ID. */
3788
+ id: string;
3789
+ changes: EntryChangesList;
3790
+ }
3791
+ export type WebhookPayloadEntryList = Array<Entry>;
3792
+ /** A webhook delivery: what Meta POSTs to the app's callback URL for messages, statuses and group events on a WhatsApp Business Account. */
3793
+ export interface WebhookPayload {
3794
+ /** Always 'whatsapp_business_account' for these webhooks. */
3795
+ object: string;
3796
+ entry: WebhookPayloadEntryList;
3797
+ }
3798
+ export type AcceptWhatsAppBusinessSolutionError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3799
+ /** Accept Multi-Partner Solution Invitation Accept an invitation to participate in a Multi-Partner Solution as a partner application. This endpoint transitions the partner's status from NOTIFICATION_SENT to ACCEPTED, enabling the solution to progress toward ACTIVE status once all required partners accept. **Use Cases:** - Accept partnership invitations for Multi-Partner Solutions - Activate partner participation in existing solutions - Confirm partner app's commitment to solution terms and conditions - Enable solution workflow progression from INITIATED to ACTIVE status **Business Logic:** - Only invited partner apps can accept solution invitations - Solution must be in INITIATED status to accept partnerships - Partner status transitions from NOTIFICATION_SENT to ACCEPTED - Solution may become ACTIVE once all required partners accept - Acceptance creates formal partnership agreement between apps **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Validation:** - Partner app must have received a valid solution invitation - Solution must exist and be accessible to the partner app - Partner app must have proper permissions and capabilities - Acceptance request must include valid partner app identification */
3800
+ export declare const acceptWhatsAppBusinessSolution: API.OperationMethod<AcceptWhatsAppBusinessSolutionRequest, WhatsAppBusinessSolutionAcceptResponse, AcceptWhatsAppBusinessSolutionError, WhatsAppOpContext>;
3801
+ export type AcceptWhatsAppBusinessSolutionDeactivationRequestError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3802
+ /** Accept WhatsApp Business Solution Deactivation Request Accepts a pending deactivation request for a WhatsApp Business Multi-Partner Solution. This endpoint completes the partner approval workflow by accepting a deactivation request that was previously initiated by another solution partner. Upon successful acceptance, the solution status transitions from ACTIVE to DEACTIVATED, and the pending request status changes from PENDING_DEACTIVATION to NONE. **Important Business Logic:** - Solution must be in ACTIVE status with PENDING_DEACTIVATION pending status - All outstanding payments and invoices must be settled before acceptance - Active marketing campaigns must be concluded or transferred - Webhook notifications will be sent to all solution partners upon completion - Solution resources and permissions will be cleaned up according to policy */
3803
+ export declare const acceptWhatsAppBusinessSolutionDeactivationRequest: API.OperationMethod<AcceptWhatsAppBusinessSolutionDeactivationRequestRequest, WhatsAppBusinessSolution, AcceptWhatsAppBusinessSolutionDeactivationRequestError, WhatsAppOpContext>;
3804
+ export type AddAssignedUserError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3805
+ /** Add User to WhatsApp Business Account Add a user to the WhatsApp Business Account with specified permission tasks. This operation grants the user access to perform specific actions on the account based on the provided permission tasks. **Use Cases:** - Grant user access to WhatsApp Business Account management - Assign specific permission tasks for granular access control - Add new team members to WhatsApp Business Account operations - Configure user permissions for different business roles **Permission Tasks:** Different permission tasks grant access to different WhatsApp Business Account features: - MANAGE: General account management permissions - DEVELOP: Development and API access permissions - MANAGE_TEMPLATES: Message template management - MANAGE_PHONE: Phone number management - MESSAGING: Send and receive messages - FULL_CONTROL: Complete access to all account features **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. */
3806
+ export declare const addAssignedUser: API.OperationMethod<AddAssignedUserRequest, SuccessResponse, AddAssignedUserError, WhatsAppOpContext>;
3807
+ export type AddGroupParticipantsError = BadRequest | WhatsAppOpError;
3808
+ /** Add Group Participants Add participants to group */
3809
+ export declare const addGroupParticipants: API.OperationMethod<AddGroupParticipantsRequest, AddGroupParticipantsResponse, AddGroupParticipantsError, WhatsAppOpContext>;
3810
+ export type AddPhoneNumbersError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3811
+ /** Add Phone Number to Business Account Add a preverified phone number to a WhatsApp Business Account. This endpoint is used by Partners to create a pool of Partner owned numbers that end clients can purchase. **Use Cases:** - Add new phone numbers to scale messaging operations - Set up phone numbers for different business locations - Manage phone number inventory for business messaging - Configure phone numbers for specific messaging workflows **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Phone Number Requirements:** - Must be in E.164 format (e.g., +1234567890) - Must not be already registered to another WhatsApp Business Account - Must be capable of receiving SMS for verification - Must comply with WhatsApp's business messaging policies */
3812
+ export declare const addPhoneNumbers: API.OperationMethod<AddPhoneNumbersRequest, AddPhoneNumbersResponse, AddPhoneNumbersError, WhatsAppOpContext>;
3813
+ export type ApproveJoinRequestsError = BadRequest | WhatsAppOpError;
3814
+ /** Approve Join Requests Approve one or more join requests */
3815
+ export declare const approveJoinRequests: API.OperationMethod<ApproveJoinRequestsRequest, ApproveJoinRequestsResponse, ApproveJoinRequestsError, WhatsAppOpContext>;
3816
+ export type BlockUsersError = BadRequest | WhatsAppOpError;
3817
+ /** Block user(s) - Guide: [Block Users](https://developers.facebook.com/docs/business-messaging/whatsapp/block-users) - Endpoint reference: [POST WhatsApp Buiness Phone Number > block_users](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account-to-number-current-status/block_users/#Creating) */
3818
+ export declare const blockUsers: API.OperationMethod<BlockUsersRequest, BlockUsersData, BlockUsersError, WhatsAppOpContext>;
3819
+ export type CheckCallPermissionsError = BadRequest | Forbidden | WhatsAppOpError;
3820
+ /** Check Call Permissions Check whether you have permission to call a WhatsApp user and what actions are available. This endpoint returns the current permission status for calling a specific user, along with available actions and their limits. **Permission Status:** - `granted`: You have active permission to call this user - `pending`: A permission request has been sent but not yet approved - `denied`: The user has denied call permissions - `expired`: Previous permission has expired **Available Actions:** - `start_call`: Initiate a new call to this user - `send_call_permission_request`: Send a permission request to this user **Error Handling:** This endpoint may return various error codes including rate limiting errors if too many permission checks are made within a short period. */
3821
+ export declare const checkCallPermissions: API.OperationMethod<CheckCallPermissionsRequest, CallPermissionCheckResponsePayload, CheckCallPermissionsError, WhatsAppOpContext>;
3822
+ export type ConfigureConversationalAutomationError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3823
+ /** Configure Conversational Automation Configure conversational automation settings for a WhatsApp Business Account phone number, including welcome messages, conversation prompts (ice breakers), and bot commands. **Use Cases:** - Set up automated welcome messages for new customer conversations - Configure conversation prompts to guide customer interactions - Define bot commands for common customer service scenarios - Update existing automation settings - Enable or disable specific automation features **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Validation:** - Command names must be unique within the same phone number - Prompts and command descriptions must comply with WhatsApp Business policies - Maximum limits are enforced for prompts and commands */
3824
+ export declare const configureConversationalAutomation: API.OperationMethod<ConfigureConversationalAutomationRequest, ConversationalAutomationResponse, ConfigureConversationalAutomationError, WhatsAppOpContext>;
3825
+ export type CreateFlowError = BadRequest | WhatsAppOpError;
3826
+ /** Create Flow Creates a new flow. To clone an existing flow you can add the parameter `"clone_flow_id": "original-flow-id"` */
3827
+ export declare const createFlow: API.OperationMethod<CreateFlowRequest, CreateFlowResponse, CreateFlowError, WhatsAppOpContext>;
3828
+ export type CreateGroupError = BadRequest | WhatsAppOpError;
3829
+ /** Create Group Create a new group and get an invite link */
3830
+ export declare const createGroup: API.OperationMethod<CreateGroupRequest, CreateGroupResponse, CreateGroupError, WhatsAppOpContext>;
3831
+ export type CreateGroupInviteLinkError = BadRequest | WhatsAppOpError;
3832
+ /** Create Group Invite Link Create a new group invite link */
3833
+ export declare const createGroupInviteLink: API.OperationMethod<CreateGroupInviteLinkRequest, CreateGroupInviteLinkResponse, CreateGroupInviteLinkError, WhatsAppOpContext>;
3834
+ export type CreateMessageTemplateError = BadRequest | WhatsAppOpError;
3835
+ /** Create authentication template w/ OTP copy code button - Guide: [Authentication Templates with OTP Buttons](https://developers.facebook.com/docs/business-messaging/whatsapp/templates/authentication-templates/authentication-templates) - Guide: [Message Templates](https://developers.facebook.com/docs/business-messaging/whatsapp/templates/overview) - Guide: [How To Monitor Quality Signals](https://developers.facebook.com/docs/whatsapp/guides/how-to-monitor-quality-signals) - Endpoint reference: [WhatsApp Business Account > Message Templates](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account/message_templates/) */
3836
+ export declare const createMessageTemplate: API.OperationMethod<CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMessageTemplateError, WhatsAppOpContext>;
3837
+ export type CreateOBOMobilityIntentError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3838
+ /** Create OBO Mobility Intent Create a new On-Behalf-Of mobility intent for a WhatsApp Business Account. This endpoint allows authorized solution providers to initiate mobility operations on behalf of business accounts, facilitating transfers and handovers between different solution providers. **Use Cases:** - Initiate account mobility process between solution providers - Request handover of account management - Schedule mobility operations for future execution - Coordinate multi-partner solution transitions **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Mobility Process:** 1. Create mobility intent with appropriate intent type 2. System validates mobility eligibility and permissions 3. Intent enters PENDING status awaiting approvals 4. Partner notifications and approval workflows are triggered 5. Upon approval, mobility operation is scheduled or executed 6. Status updates are provided throughout the process */
3839
+ export declare const createOBOMobilityIntent: API.OperationMethod<CreateOBOMobilityIntentRequest, OBOMobilityIntentResponse, CreateOBOMobilityIntentError, WhatsAppOpContext>;
3840
+ export type CreateOrUpdateQrCodeError = BadRequest | Forbidden | NotFound | WhatsAppOpError;
3841
+ /** Create or Update Message QR Code Create a new QR code (without code parameter) or update existing QR code (with code parameter). Supports optional QR image generation in PNG or SVG format. */
3842
+ export declare const createOrUpdateQrCode: API.OperationMethod<CreateOrUpdateQrCodeRequest, QrCodeResponse, CreateOrUpdateQrCodeError, WhatsAppOpContext>;
3843
+ export type CreateWhatsAppBusinessAccountPhoneNumberError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | WhatsAppOpError;
3844
+ /** Create WhatsApp Business Account Phone Number Create a new phone number registration within a WhatsApp Business Account. This endpoint initiates the phone number onboarding process, including verification and business name approval. **Use Cases:** - Add new phone numbers to a WhatsApp Business Account - Migrate phone numbers from on-premises to Cloud API - Register pre-verified phone numbers for BSP scenarios - Initiate phone number verification and business name approval process **Prerequisites:** - WhatsApp Business Account must have available phone number slots - Phone number must not be already registered with WhatsApp Business - Business must meet WhatsApp Business API requirements - Appropriate permissions and app review completion **Process Flow:** 1. Submit phone number and business name for registration 2. Phone number verification code will be sent (if not pre-verified) 3. Business name will be submitted for review 4. Monitor status through GET endpoint until approval **Rate Limiting:** Phone number creation is subject to strict rate limits to prevent abuse. Standard Graph API rate limits also apply. **Migration Support:** Set migrate_phone_number=true when migrating from on-premises API to Cloud API. Additional validation and migration-specific logic will be applied. */
3845
+ export declare const createWhatsAppBusinessAccountPhoneNumber: API.OperationMethod<CreateWhatsAppBusinessAccountPhoneNumberRequest, PhoneNumberCreateResponse, CreateWhatsAppBusinessAccountPhoneNumberError, WhatsAppOpContext>;
3846
+ export type CreateWhatsAppBusinessAccountScheduleError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | WhatsAppOpError;
3847
+ /** Create WhatsApp Business Account Schedule Create a new schedule configuration within a WhatsApp Business Account. This endpoint allows businesses to set up automated scheduling for various operations such as business hours, automated responses, and maintenance windows. **Use Cases:** - Create business hours schedules for automated responses - Set up maintenance windows for system operations - Configure automated message campaigns with timing - Establish recurring schedule patterns for business operations **Prerequisites:** - WhatsApp Business Account must have scheduling feature enabled - Appropriate permissions for schedule management - Valid timezone and time format specifications - Business must meet WhatsApp Business API requirements **Process Flow:** 1. Submit schedule configuration with timing and recurrence details 2. System validates schedule parameters and conflicts 3. Schedule is created and activated based on is_active flag 4. Monitor schedule status through GET endpoint **Rate Limiting:** Schedule creation is subject to rate limits to prevent abuse. Standard Graph API rate limits also apply. **Validation:** - Start time must be before end time - Timezone must be valid IANA timezone identifier - Days of week must be valid if specified - Recurrence pattern must be consistent with schedule type */
3848
+ export declare const createWhatsAppBusinessAccountSchedule: API.OperationMethod<CreateWhatsAppBusinessAccountScheduleRequest, ScheduleCreateResponse, CreateWhatsAppBusinessAccountScheduleError, WhatsAppOpContext>;
3849
+ export type CreateWhatsAppBusinessSolutionError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3850
+ /** Create Multi-Partner Solution Create a new Multi-Partner Solution that defines permission distribution between a solution owner app and a partner app for WhatsApp Business messaging collaboration. **Permission Logic:** - Only one partner (owner or partner app) can have MESSAGING permission - At least one partner must have MESSAGING permission - Both partners automatically receive default solution partner permissions - Empty permission arrays indicate no configurable permissions for that partner **Solution Lifecycle:** - Solutions are created with INITIATED status - Require subsequent activation workflow through solution management - Can be managed through Partner Dashboard or solution management APIs **Rate Limiting:** Standard Graph API rate limits apply with WhatsApp Business Management throttling. Use appropriate retry logic with exponential backoff for rate-limited requests. **Validation:** - Partner app must be accessible and have proper capabilities - Permission combinations are validated against business logic rules - Solution names must meet length and content requirements */
3851
+ export declare const createWhatsAppBusinessSolution: API.OperationMethod<CreateWhatsAppBusinessSolutionRequest, WhatsAppBusinessSolutionCreateResponse, CreateWhatsAppBusinessSolutionError, WhatsAppOpContext>;
3852
+ export type DeleteFlowError = BadRequest | WhatsAppOpError;
3853
+ /** Delete Flow Deletes the flow entirely. This action is not reversible. Only a DRAFT flow can be deleted. */
3854
+ export declare const deleteFlow: API.OperationMethod<DeleteFlowRequest, DeleteFlowResponse, DeleteFlowError, WhatsAppOpContext>;
3855
+ export type DeleteGroupError = BadRequest | WhatsAppOpError;
3856
+ /** Delete Group Delete the group and remove all participants, including the business */
3857
+ export declare const deleteGroup: API.OperationMethod<DeleteGroupRequest, DeleteGroupResponse, DeleteGroupError, WhatsAppOpContext>;
3858
+ export type DeleteGroupInviteLinkError = BadRequest | WhatsAppOpError;
3859
+ /** Delete Group Invite Link Delete an existing group invite link */
3860
+ export declare const deleteGroupInviteLink: API.OperationMethod<DeleteGroupInviteLinkRequest, DeleteGroupInviteLinkResponse, DeleteGroupInviteLinkError, WhatsAppOpContext>;
3861
+ export type DeleteIndividualQrCodeError = BadRequest | Forbidden | NotFound | WhatsAppOpError;
3862
+ /** Delete Individual Message QR Code Permanently delete a specific QR code. Once deleted, the QR code and deep link become invalid. Deletion cannot be undone and affects any existing marketing materials using the QR code. */
3863
+ export declare const deleteIndividualQrCode: API.OperationMethod<DeleteIndividualQrCodeRequest, DeleteQrCodeResponse, DeleteIndividualQrCodeError, WhatsAppOpContext>;
3864
+ export type DeleteMediaError = BadRequest | WhatsAppOpError;
3865
+ /** Delete Media To delete media, make a **DELETE** call to the ID of the media you want to delete. ## Prerequisites - [User Access Token](https://developers.facebook.com/docs/facebook-login/access-tokens#usertokens) with **`whatsapp_business_messaging`** permission - Media object ID from either uploading media endpoint or media message Webhooks */
3866
+ export declare const deleteMedia: API.OperationMethod<DeleteMediaRequest, DeleteMediaResponse, DeleteMediaError, WhatsAppOpContext>;
3867
+ export type DeleteMessageTemplateError = BadRequest | WhatsAppOpError;
3868
+ /** Delete template by name - Guide: [Message Templates](https://developers.facebook.com/docs/business-messaging/whatsapp/templates/overview) - Guide: [How To Monitor Quality Signals](https://developers.facebook.com/docs/whatsapp/guides/how-to-monitor-quality-signals) - Endpoint reference: [WhatsApp Business Account > Message Templates](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account/message_templates/) */
3869
+ export declare const deleteMessageTemplate: API.OperationMethod<DeleteMessageTemplateRequest, DeleteMessageTemplateResponse, DeleteMessageTemplateError, WhatsAppOpContext>;
3870
+ export type DeletePreVerifiedPhoneNumberError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3871
+ /** Delete Pre-Verified Phone Number Delete a pre-verified phone number from the system. This operation removes the phone number from your pre-verified list and cannot be undone. **Use Cases:** - Remove phone numbers that are no longer needed - Clean up invalid or incorrect pre-verified phone numbers - Manage phone number lifecycle and cleanup **Important Notes:** - This operation is irreversible - Deleted phone numbers cannot be recovered - Ensure the phone number is not in active use before deletion **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. */
3872
+ export declare const deletePreVerifiedPhoneNumber: API.OperationMethod<DeletePreVerifiedPhoneNumberRequest, DeletePreVerifiedPhoneNumberResponse, DeletePreVerifiedPhoneNumberError, WhatsAppOpContext>;
3873
+ export type DeprecateFlowError = BadRequest | WhatsAppOpError;
3874
+ /** Deprecate Flow Updates the status of the flow as "DEPRECATED". This action is not reversible. Only a published flow can be deprecated to prevent sending or opening it. */
3875
+ export declare const deprecateFlow: API.OperationMethod<DeprecateFlowRequest, DeprecateFlowResponse, DeprecateFlowError, WhatsAppOpContext>;
3876
+ export type DeregisterPhoneNumberError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3877
+ /** Deregister WhatsApp Business Phone Number Deregister a WhatsApp Business phone number from the Facebook Hosted System. This operation removes the phone number from the WhatsApp Business Platform and makes it available for re-registration if needed. **Important Notes:** - Phone number must be currently linked in Facebook Hosted System - Phone number must be registered on the WhatsApp Business Platform - Cannot deregister phone numbers associated with SMB accounts - Rate limiting is enforced to prevent abuse - Deregistration triggers activity logging for audit purposes **Rate Limiting:** Standard Graph API rate limits apply with additional restrictions for registration operations. Use appropriate retry logic with exponential backoff. **Caching:** Deregistration status changes are immediate and should not be cached. */
3878
+ export declare const deregisterPhoneNumber: API.OperationMethod<DeregisterPhoneNumberRequest, DeregisterResponse, DeregisterPhoneNumberError, WhatsAppOpContext>;
3879
+ export type GetActiveGroupsError = BadRequest | WhatsAppOpError;
3880
+ /** Get Active Groups Retrieve a list of active groups for a given business phone number */
3881
+ export declare const getActiveGroups: API.OperationMethod<GetActiveGroupsRequest, GetActiveGroupsResponse, GetActiveGroupsError, WhatsAppOpContext>;
3882
+ export type GetApplicationWhatsAppBusinessSolutionsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3883
+ /** Get Multi-Partner Solutions for Application Retrieve all WhatsApp Business Multi-Partner Solutions associated with the specified application. This includes both solutions owned by the application and solutions where the application acts as a partner. **Use Cases:** - Retrieve all solutions for an application's portfolio management - Filter solutions by ownership role (owner vs partner) - Monitor solution lifecycle and status changes across multiple solutions - Verify solution configuration before business onboarding operations - Check pending approval requests and status transitions **Filtering:** Use the `role` parameter to filter solutions by the application's relationship: - `OWNER`: Only solutions owned by this application - `PARTNER`: Only solutions where this application is a partner - No role parameter: All solutions (both owned and partnered) **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Solution details can be cached for short periods, but status information may change frequently during transitions. Implement appropriate cache invalidation strategies. */
3884
+ export declare const getApplicationWhatsAppBusinessSolutions: API.PaginatedOperationMethod<GetApplicationWhatsAppBusinessSolutionsRequest, WhatsAppBusinessSolutionsResponse, GetApplicationWhatsAppBusinessSolutionsError, WhatsAppOpContext, WhatsAppBusinessSolution>;
3885
+ export type GetAssignedUsersError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3886
+ /** List Assigned Users Retrieve a list of users assigned to the WhatsApp Business Account with their permissions and user details. This endpoint supports pagination and filtering capabilities. **Use Cases:** - Audit user access to WhatsApp Business Account - Retrieve user permission assignments for compliance - List all users with access for management purposes - Monitor user access patterns and assignments **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** User assignment data can be cached for short periods, but permission changes may occur frequently. Implement appropriate cache invalidation strategies. */
3887
+ export declare const getAssignedUsers: API.PaginatedOperationMethod<GetAssignedUsersRequest, AssignedUsersResponse, GetAssignedUsersError, WhatsAppOpContext, AssignedUser>;
3888
+ export type GetAssignedWhatsAppBusinessAccountsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3889
+ /** Get Assigned WhatsApp Business Accounts Retrieve WhatsApp Business Accounts that have been assigned to a specific user. This endpoint provides information about account assignments, permissions, and current status corresponding to the GraphAssignedWhatsAppBusinessAccountsEdge node. **Use Cases:** - Retrieve all WhatsApp Business Accounts assigned to a user - Check user permissions for specific accounts - Monitor account assignment status and changes - Validate user access before performing business operations **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Assignment information can be cached for short periods, but permissions and status may change frequently. Implement appropriate cache invalidation strategies. */
3890
+ export declare const getAssignedWhatsAppBusinessAccounts: API.PaginatedOperationMethod<GetAssignedWhatsAppBusinessAccountsRequest, AssignedAccountsResponse, GetAssignedWhatsAppBusinessAccountsError, WhatsAppOpContext, AssignedWhatsAppBusinessAccount>;
3891
+ export type GetBlockedUsersError = BadRequest | WhatsAppOpError;
3892
+ /** Get blocked users - Guide: [Block Users](https://developers.facebook.com/docs/business-messaging/whatsapp/block-users) - Endpoint reference: [GET WhatsApp Buiness Phone Number > block_users](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account-to-number-current-status/block_users/#Reading) */
3893
+ export declare const getBlockedUsers: API.OperationMethod<GetBlockedUsersRequest, GetBlockedUsersData, GetBlockedUsersError, WhatsAppOpContext>;
3894
+ export type GetBusinessComplianceInfoError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3895
+ /** Get Business Compliance Information Retrieve comprehensive business compliance information for a WhatsApp Business Account phone number, including entity details, registration status, and required contact information for regulatory compliance. **Use Cases:** - Retrieve business compliance information for regulatory reporting - Verify business entity registration status and contact details - Access grievance officer and customer care information - Support compliance audits and regulatory verification processes **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Compliance information can be cached for moderate periods, but should be refreshed regularly to ensure accuracy for regulatory purposes. Implement appropriate cache invalidation strategies. */
3896
+ export declare const getBusinessComplianceInfo: API.OperationMethod<GetBusinessComplianceInfoRequest, GetBusinessComplianceInfoResponse, GetBusinessComplianceInfoError, WhatsAppOpContext>;
3897
+ export type GetBusinessEncryptionPublicKeyError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3898
+ /** Get Business Encryption Public Key Retrieve the current business public key and its signature verification status. This endpoint returns the public key that is currently configured for encrypting message payloads and indicates whether the stored signature is valid or has a mismatch. **Use Cases:** - Verify current encryption configuration - Check public key signature validation status - Retrieve public key for client-side encryption setup - Monitor encryption key status for security compliance **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Public key information can be cached for moderate periods, but signature status may change and should be checked regularly for security validation. */
3899
+ export declare const getBusinessEncryptionPublicKey: API.OperationMethod<GetBusinessEncryptionPublicKeyRequest, GetBusinessEncryptionPublicKeyResponse, GetBusinessEncryptionPublicKeyError, WhatsAppOpContext>;
3900
+ export type GetBusinessPortfolioSpecificFieldsError = BadRequest | WhatsAppOpError;
3901
+ /** Get Business Portfolio (Specific Fields) Endpoint reference: [Business](https://developers.facebook.com/docs/marketing-api/reference/business/) */
3902
+ export declare const getBusinessPortfolioSpecificFields: API.OperationMethod<GetBusinessPortfolioSpecificFieldsRequest, GetBusinessPortfolioSpecificFieldsResponse, GetBusinessPortfolioSpecificFieldsError, WhatsAppOpContext>;
3903
+ export type GetClientWhatsAppBusinessAccountsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3904
+ /** Get Client WhatsApp Business Accounts Retrieve a list of WhatsApp Business Accounts that have been shared with the specified business. **Use Cases:** - Monitor shared WABA relationships and permissions - Verify WABA configuration and status information - Retrieve WABA details for business integrations - Manage multi-business WhatsApp messaging setups **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** WABA information can be cached for moderate periods, but status information may change frequently. Implement appropriate cache invalidation strategies. */
3905
+ export declare const getClientWhatsAppBusinessAccounts: API.PaginatedOperationMethod<GetClientWhatsAppBusinessAccountsRequest, ClientWhatsAppBusinessAccountsResponse, GetClientWhatsAppBusinessAccountsError, WhatsAppOpContext, WhatsAppBusinessAccount>;
3906
+ export type GetCommerceSettingsError = BadRequest | WhatsAppOpError;
3907
+ /** Get commerce settings - Guide: [Sell Products & Services](https://developers.facebook.com/docs/business-messaging/whatsapp/catalogs/sell-products-and-services) (Cloud API) - Guide: [Sell Products & Services](https://developers.facebook.com/docs/whatsapp/on-premises/guides/commerce-guides) (On-Premises API) - Endpoint reference: [WhatsApp Business Phone Number > WhatsApp Commerce Settings](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account-to-number-current-status/whatsapp_commerce_settings) */
3908
+ export declare const getCommerceSettings: API.OperationMethod<GetCommerceSettingsRequest, GetCommerceSettingsResponse, GetCommerceSettingsError, WhatsAppOpContext>;
3909
+ export type GetConnectedClientBusinessesError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3910
+ /** Get Connected Client Businesses Retrieve a list of client businesses connected to the specified application. **Use Cases:** - Monitor application-business client relationships - Verify connected business configurations - Retrieve business connection status and details - Manage client business access and permissions **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Business connection data can be cached for moderate periods, but status information may change. Implement appropriate cache invalidation strategies. */
3911
+ export declare const getConnectedClientBusinesses: API.PaginatedOperationMethod<GetConnectedClientBusinessesRequest, ConnectedClientBusinessesResponse, GetConnectedClientBusinessesError, WhatsAppOpContext, ConnectedClientBusiness>;
3912
+ export type GetCreditLinesError = BadRequest | WhatsAppOpError;
3913
+ /** Get credit lines - Endpoint reference: [Business > Extendedcredits](https://developers.facebook.com/docs/marketing-api/reference/extended-credit/) */
3914
+ export declare const getCreditLines: API.OperationMethod<GetCreditLinesRequest, GetCreditLinesResponse, GetCreditLinesError, WhatsAppOpContext>;
3915
+ export type GetFlowError = BadRequest | WhatsAppOpError;
3916
+ /** Get Flow Can request specific fields by enabling the \`fields\` query param */
3917
+ export declare const getFlow: API.OperationMethod<GetFlowRequest, GetFlowResponse, GetFlowError, WhatsAppOpContext>;
3918
+ export type GetGroupInfoError = BadRequest | WhatsAppOpError;
3919
+ /** Get Group Info Retrieve metadata about a single group */
3920
+ export declare const getGroupInfo: API.OperationMethod<GetGroupInfoRequest, GroupInfo, GetGroupInfoError, WhatsAppOpContext>;
3921
+ export type GetIndividualQrCodeError = BadRequest | Forbidden | NotFound | WhatsAppOpError;
3922
+ /** Get Individual Message QR Code Retrieve details for a specific QR code by its unique identifier. Supports field selection and QR image generation. Response returns QR code in data array for consistency. */
3923
+ export declare const getIndividualQrCode: API.OperationMethod<GetIndividualQrCodeRequest, QrCodeResponse, GetIndividualQrCodeError, WhatsAppOpContext>;
3924
+ export type GetInProgressOnBehalfRequestsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3925
+ /** Get In-Progress On-Behalf Requests Retrieve a list of in-progress on-behalf requests for the specified WhatsApp Business Account. These requests represent pending business relationship requests that have been sent from this WhatsApp Business Account to other businesses and are awaiting approval. **Use Cases:** - Monitor pending on-behalf requests sent from your WhatsApp Business Account - Track business partnership request status and workflow - Retrieve details about requesting and receiving businesses for pending requests - Manage business relationship approval processes **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Pagination:** This endpoint supports cursor-based pagination. Use the 'after' and 'before' parameters to navigate through large result sets. The response includes pagination URLs for convenience. */
3926
+ export declare const getInProgressOnBehalfRequests: API.PaginatedOperationMethod<GetInProgressOnBehalfRequestsRequest, InProgressOnBehalfRequestResponse, GetInProgressOnBehalfRequestsError, WhatsAppOpContext, BusinessOwnedObjectOnBehalfOfRequest>;
3927
+ export type GetJoinRequestsError = BadRequest | WhatsAppOpError;
3928
+ /** Get Join Requests Get a list of open join requests for a group */
3929
+ export declare const getJoinRequests: API.OperationMethod<GetJoinRequestsRequest, GetJoinRequestsResponse, GetJoinRequestsError, WhatsAppOpContext>;
3930
+ export type GetMediaError = BadRequest | WhatsAppOpError;
3931
+ /** Retrieve Media URL To retrieve your media's URL, make a **GET** call to **`/{{Media-ID}}`**. Use the returned URL to download the media file. Note that clicking this URL (i.e. performing a generic GET) will not return the media; you must include an access token. For more information, see [Download Media](https://developers.facebook.com/docs/business-messaging/whatsapp/business-phone-numbers/media#download-media). You can also use the optional query **`?phone_number_id`** for **`Retrieve Media URL`** and **`Delete Media`**. This parameter checks to make sure the media belongs to the phone number before retrieval or deletion. #### Response A successful response includes an object with a media URL. The URL is only valid for 5 minutes. To use this URL, see [Download Media](https://developers.facebook.com/docs/business-messaging/whatsapp/business-phone-numbers/media#download-media). */
3932
+ export declare const getMedia: API.OperationMethod<GetMediaRequest, GetMediaResponse, GetMediaError, WhatsAppOpContext>;
3933
+ export type GetMessageHistoryError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3934
+ /** Get WhatsApp Business Account Message History Retrieve paginated message history for a WhatsApp Business Account phone number, including delivery status events, timestamps, and webhook update information. **Use Cases:** - Track message delivery status and events - Monitor webhook delivery and update states - Retrieve historical message delivery information - Debug message delivery issues and webhook failures **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Message history data can be cached for moderate periods, but delivery status events may change frequently. Implement appropriate cache invalidation strategies. **Pagination:** This endpoint supports cursor-based pagination. Use the `after` and `before` cursors from the response to navigate through results. */
3935
+ export declare const getMessageHistory: API.PaginatedOperationMethod<GetMessageHistoryRequest, MessageHistoryResponse, GetMessageHistoryError, WhatsAppOpContext, WhatsAppMessageHistory>;
3936
+ export type GetMessageHistoryEventsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3937
+ /** Get WhatsApp Message History Events Retrieve paginated message delivery status events for a specific message history entry, including delivery status occurrences, timestamps, and application information. **Use Cases:** - Track detailed message delivery status events and transitions - Monitor delivery status occurrence timestamps - Retrieve application information for delivery events - Debug message delivery issues and status changes **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Message history events can be cached for short periods, but delivery status events may change frequently. Implement appropriate cache invalidation strategies. **Pagination:** This endpoint supports cursor-based pagination. Use the `after` and `before` cursors from the response to navigate through results. */
3938
+ export declare const getMessageHistoryEvents: API.PaginatedOperationMethod<GetMessageHistoryEventsRequest, MessageHistoryEventsResponse, GetMessageHistoryEventsError, WhatsAppOpContext, WhatsAppMessageHistoryEventsEdge>;
3939
+ export type GetMessageTemplateError = BadRequest | WhatsAppOpError;
3940
+ /** Get template by ID (default fields) - Guide: [Message Templates](https://developers.facebook.com/docs/business-messaging/whatsapp/templates/overview) - Guide: [How To Monitor Quality Signals](https://developers.facebook.com/docs/whatsapp/guides/how-to-monitor-quality-signals) - Endpoint reference: [WhatsApp Message Template](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-hsm/) */
3941
+ export declare const getMessageTemplate: API.OperationMethod<GetMessageTemplateRequest, GetMessageTemplateResponse, GetMessageTemplateError, WhatsAppOpContext>;
3942
+ export type GetMigrationIntentDetailsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3943
+ /** Get Migration Intent Details Retrieve comprehensive details about a WhatsApp Business Account migration intent, including its current status and migration information. **Use Cases:** - Monitor migration intent lifecycle and status changes - Verify migration intent configuration and current state - Check migration progress and completion status - Retrieve migration intent details for business workflows **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Migration intent details can be cached for short periods, but status information may change frequently during migration processes. Implement appropriate cache invalidation strategies. */
3944
+ export declare const getMigrationIntentDetails: API.OperationMethod<GetMigrationIntentDetailsRequest, WhatsAppBusinessAccountMigrationIntent, GetMigrationIntentDetailsError, WhatsAppOpContext>;
3945
+ export type GetOBOMobilityIntentError = BadRequest | Forbidden | NotFound | WhatsAppOpError;
3946
+ /** Get OBO Mobility Intent Details Retrieve details for a specific OBO Mobility Intent Node. This endpoint provides comprehensive information about the mobility intent, including current status, associated WABA and solution details, and operation history. **Use Cases:** - Monitor status of ongoing mobility operations - Retrieve mobility intent configuration details - Audit mobility operation progress - Verify operation parameters and settings **Response Fields:** The response includes the complete OBO Mobility Intent Node with all available fields including id, waba, solution, status, and timestamps. */
3947
+ export declare const getOBOMobilityIntent: API.OperationMethod<GetOBOMobilityIntentRequest, OBOMobilityIntentNode, GetOBOMobilityIntentError, WhatsAppOpContext>;
3948
+ export type GetOfficialBusinessAccountStatusError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3949
+ /** Get Official Business Account Status Retrieve the Official Business Account (OBA) status and related information for a WhatsApp Business Account phone number. **Use Cases:** - Check current OBA verification status - Monitor OBA application progress - Retrieve status messages for business account verification - Validate business credibility status **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** OBA status information can be cached for moderate periods, but status may change during verification processes. Implement appropriate cache invalidation strategies. */
3950
+ export declare const getOfficialBusinessAccountStatus: API.OperationMethod<GetOfficialBusinessAccountStatusRequest, OfficialBusinessAccountStatus, GetOfficialBusinessAccountStatusError, WhatsAppOpContext>;
3951
+ export type GetOwnedWhatsAppBusinessAccountsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3952
+ /** Get Owned WhatsApp Business Accounts Retrieve WhatsApp Business Accounts owned by the specified business. This endpoint provides comprehensive information about all WABAs owned by the business, including account details, configuration, and status information. **Use Cases:** - Retrieve all WhatsApp Business Accounts owned by a business - Filter accounts by business type - Find specific accounts by ID - Monitor business portfolio of WhatsApp Business Accounts - Manage account access and permissions across multiple WABAs **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Account information can be cached for short periods, but status and configuration may change frequently. Implement appropriate cache invalidation strategies. */
3953
+ export declare const getOwnedWhatsAppBusinessAccounts: API.PaginatedOperationMethod<GetOwnedWhatsAppBusinessAccountsRequest, WhatsAppBusinessAccountsConnection, GetOwnedWhatsAppBusinessAccountsError, WhatsAppOpContext, WhatsAppBusinessAccount>;
3954
+ export type GetPhoneNumberError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3955
+ /** Retrieve WhatsApp Business Phone Number Information Retrieve comprehensive information about a WhatsApp Business phone number using its unique ID (CSID). This endpoint provides phone number status, verification details, quality metrics, and configuration information. **Core Information Returned:** - Phone number ID and display format - Verification status and verified business name - Quality rating based on message delivery performance - Code verification status for two-step verification - Display name certification status (when requested) **Quality Rating System:** The quality rating reflects how recipients have been receiving messages from this phone number: - **GREEN**: High quality - messages are being delivered and engaged with well - **YELLOW**: Medium quality - some delivery or engagement issues detected - **RED**: Low quality - significant delivery or engagement problems - **NA**: Quality rating not yet determined (new phone numbers) **Display Name Status:** When requesting the `name_status` field, you'll receive the current verification status: - **APPROVED**: Business display name has been verified and is ready to use - **AVAILABLE_WITHOUT_REVIEW**: Display name is ready to use without additional review - **DECLINED**: Business display name verification was rejected - **EXPIRED**: Display name approval has expired - **PENDING_REVIEW**: Display name verification request is under review - **NONE**: No display name verification request exists **Code Verification Status:** Indicates the two-step verification status: - **VERIFIED**: Phone number has completed two-step verification - **UNVERIFIED**: Two-step verification is pending or incomplete **Use Cases:** - Monitor phone number quality and delivery performance - Check verification and display name status - Validate phone number configuration before sending messages - Retrieve display information for business profiles - Audit phone number compliance and status For more information on quality ratings, see [WhatsApp Business Account Message Quality Rating](https://www.facebook.com/business/help/896873687365001). */
3956
+ export declare const getPhoneNumber: API.OperationMethod<GetPhoneNumberRequest, PhoneNumberInfo, GetPhoneNumberError, WhatsAppOpContext>;
3957
+ export type GetPhoneNumberSettingsError = BadRequest | Forbidden | WhatsAppOpError;
3958
+ /** Get phone number settings Retrieve current settings for a WhatsApp Business phone number. Returns calling settings, payload encryption settings, and data storage configurations. */
3959
+ export declare const getPhoneNumberSettings: API.OperationMethod<GetPhoneNumberSettingsRequest, PhoneNumberSettingsResponse, GetPhoneNumberSettingsError, WhatsAppOpContext>;
3960
+ export type GetPreVerifiedPhoneNumberDetailsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3961
+ /** Get Pre-Verified Phone Number Details Retrieve details about a specific pre-verified phone number, including validation status, formatting information, and any associated error messages. **Use Cases:** - Check validation status of a pre-verified phone number - Retrieve formatted display version of the phone number - Get country code and formatting information - Troubleshoot validation errors **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Phone number details can be cached for moderate periods, but validation status may change. Implement appropriate cache invalidation strategies. */
3962
+ export declare const getPreVerifiedPhoneNumberDetails: API.OperationMethod<GetPreVerifiedPhoneNumberDetailsRequest, PreVerifiedPhoneNumberValidation, GetPreVerifiedPhoneNumberDetailsError, WhatsAppOpContext>;
3963
+ export type GetPreVerifiedPhoneNumberPartnersError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3964
+ /** Get Pre-Verified Phone Number Partners Retrieve the list of partner businesses that have been granted access to a specific WhatsApp Business Pre-Verified Phone Number. **Use Cases:** - Monitor partner business relationships and access permissions - Verify which businesses have access to shared pre-verified phone numbers - Retrieve partner business information for operational purposes - Validate partnership configurations before business operations **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Partner information can be cached for moderate periods, but partnership relationships may change. Implement appropriate cache invalidation strategies. */
3965
+ export declare const getPreVerifiedPhoneNumberPartners: API.PaginatedOperationMethod<GetPreVerifiedPhoneNumberPartnersRequest, WhatsAppBusinessPreVerifiedPhoneNumberPartnersResponse, GetPreVerifiedPhoneNumberPartnersError, WhatsAppOpContext, BusinessPartner>;
3966
+ export type GetPreVerifiedPhoneNumbersError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3967
+ /** Get Pre-Verified Phone Numbers Retrieve pre-verified phone numbers available for use with the specified business. This endpoint provides information about phone numbers that have been pre-verified and are ready for immediate use with WhatsApp Business messaging operations. **Use Cases:** - Retrieve available pre-verified phone numbers for business messaging setup - Check verification status and availability of phone numbers - Monitor pre-verified phone number inventory - Validate phone number options before WhatsApp Business Account configuration - Facilitate quick business messaging setup with pre-verified numbers **Filtering and Pagination:** - Results can be filtered by verification status, availability, and country - Cursor-based pagination is supported for large result sets - Default page size is 25 items, maximum is 100 items per page **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Phone number information can be cached for short periods, but availability status may change frequently. Implement appropriate cache invalidation strategies. */
3968
+ export declare const getPreVerifiedPhoneNumbers: API.PaginatedOperationMethod<GetPreVerifiedPhoneNumbersRequest, PreVerifiedPhoneNumbersResponse, GetPreVerifiedPhoneNumbersError, WhatsAppOpContext, PreVerifiedPhoneNumber>;
3969
+ export type GetSolutionAccessTokenError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3970
+ /** Get Multi-Partner Solution Access Token Retrieve a granular BISU access token for accessing customer business resources through the Multi-Partner Solution. The token provides secure, scoped access to WhatsApp Business Accounts that have been shared with the solution. **Use Cases:** - Obtain secure access tokens for partner applications to access customer business resources - Enable multi-tenant partner architectures with dedicated tokens per customer business - Support secure API operations on shared WhatsApp Business Accounts - Implement proper security boundaries between different customer businesses **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Token Management:** Access tokens are time-limited and should be refreshed before expiration. Store tokens securely and implement proper token rotation strategies. */
3971
+ export declare const getSolutionAccessToken: API.OperationMethod<GetSolutionAccessTokenRequest, WhatsAppBusinessSolutionAccessToken, GetSolutionAccessTokenError, WhatsAppOpContext>;
3972
+ export type GetSolutionDetailsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3973
+ /** Get Multi-Partner Solution Details Retrieve comprehensive details about a Multi-Partner Solution, including its current status, pending status transitions, ownership information, and granted permissions. **Use Cases:** - Monitor solution lifecycle and status changes - Verify solution configuration before business onboarding - Check pending approval requests and status transitions - Retrieve solution ownership and permission details **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Solution details can be cached for short periods, but status information may change frequently during transitions. Implement appropriate cache invalidation strategies. */
3974
+ export declare const getSolutionDetails: API.OperationMethod<GetSolutionDetailsRequest, WhatsAppBusinessSolution, GetSolutionDetailsError, WhatsAppOpContext>;
3975
+ export type GetWhatsAppAccountNumberDetailsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3976
+ /** Get WhatsApp Account Number Details Retrieve comprehensive details about a WhatsApp Account Number, including its current status, verification information, quality rating, and configuration settings. **Use Cases:** - Monitor account number status and quality rating - Verify account number configuration before messaging operations - Check verification and approval status - Retrieve display name and business profile information **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Account number details can be cached for short periods, but status information may change frequently. Implement appropriate cache invalidation strategies. */
3977
+ export declare const getWhatsAppAccountNumberDetails: API.OperationMethod<GetWhatsAppAccountNumberDetailsRequest, WhatsAppAccountNumber, GetWhatsAppAccountNumberDetailsError, WhatsAppOpContext>;
3978
+ export type GetWhatsAppBusinessAccountActivitiesError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3979
+ /** Get WhatsApp Business Account Activities Retrieve activity logs and audit trails for a WhatsApp Business Account. This endpoint returns a chronological list of activities performed on the account, including administrative actions, configuration changes, and operational events. **Use Cases:** - Monitor account configuration changes and administrative actions - Generate compliance and audit reports for regulatory requirements - Track user activities and permission modifications - Investigate security incidents and unauthorized access attempts - Monitor API usage patterns and operational events **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Activity data can be cached for short periods, but recent activities may change frequently. Implement appropriate cache invalidation strategies. */
3980
+ export declare const getWhatsAppBusinessAccountActivities: API.PaginatedOperationMethod<GetWhatsAppBusinessAccountActivitiesRequest, ActivityList, GetWhatsAppBusinessAccountActivitiesError, WhatsAppOpContext, WhatsAppBusinessAccountActivity>;
3981
+ export type GetWhatsAppBusinessAccountDetailsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3982
+ /** Get WhatsApp Business Account Details Retrieve comprehensive details about a WhatsApp Business Account, including its configuration, status, and settings. **Use Cases:** - Retrieve WhatsApp Business Account configuration and details - Monitor account status and verification state - Check account ownership and business information - Validate account state before messaging operations **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Account details can be cached for moderate periods, but verification status may change. Implement appropriate cache invalidation strategies. */
3983
+ export declare const getWhatsAppBusinessAccountDetails: API.OperationMethod<GetWhatsAppBusinessAccountDetailsRequest, WhatsAppBusinessAccount, GetWhatsAppBusinessAccountDetailsError, WhatsAppOpContext>;
3984
+ export type GetWhatsAppBusinessAccountPhoneNumbersError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3985
+ /** Get WhatsApp Business Account Phone Numbers Retrieve all phone numbers associated with a WhatsApp Business Account, including their status, verification details, and configuration information. **Use Cases:** - List all phone numbers in a WhatsApp Business Account - Monitor phone number status and verification progress - Check phone number quality ratings and messaging limits - Retrieve phone number configuration details **Filtering:** You can filter results using the `filtering` parameter with JSON-encoded filter conditions. Supported filters include account_mode, messaging_limit_tier, and is_official_business_account. **Sorting:** Results can be sorted by creation_time or last_onboarded_time in ascending or descending order. **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Phone number data can be cached for short periods, but status information may change frequently. Implement appropriate cache invalidation strategies. */
3986
+ export declare const getWhatsAppBusinessAccountPhoneNumbers: API.PaginatedOperationMethod<GetWhatsAppBusinessAccountPhoneNumbersRequest, WhatsAppBusinessAccountPhoneNumbersConnection, GetWhatsAppBusinessAccountPhoneNumbersError, WhatsAppOpContext, WhatsAppBusinessAccountPhoneNumber>;
3987
+ export type GetWhatsAppBusinessAccountSchedulesError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3988
+ /** Get WhatsApp Business Account Schedules Retrieve all schedules associated with a WhatsApp Business Account, including their configuration, status, and execution details. **Use Cases:** - List all schedules in a WhatsApp Business Account - Monitor schedule status and performance - Check schedule configuration and timing details - Retrieve schedule execution history and metrics **Filtering:** You can filter results using the `filtering` parameter with JSON-encoded filter conditions. Supported filters include status, schedule_type, and is_active. **Sorting:** Results can be sorted by created_time or updated_time in ascending or descending order. **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Schedule data can be cached for short periods, but status information may change frequently. Implement appropriate cache invalidation strategies. */
3989
+ export declare const getWhatsAppBusinessAccountSchedules: API.PaginatedOperationMethod<GetWhatsAppBusinessAccountSchedulesRequest, WhatsAppBusinessAccountSchedulesConnection, GetWhatsAppBusinessAccountSchedulesError, WhatsAppOpContext, WhatsAppBusinessAccountSchedule>;
3990
+ export type GetWhatsAppBusinessBotDetailsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3991
+ /** Get WhatsApp Business Bot Details Retrieve comprehensive details about a WhatsApp Business Bot, including its prompts, commands, and welcome message configuration. **Use Cases:** - Retrieve bot configuration and automated response settings - Monitor available bot commands and their descriptions - Check welcome message enablement status - Validate bot state before implementing automation - Audit bot configuration for business compliance **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Bot details can be cached for moderate periods, but configuration may change when bot settings are updated. Implement appropriate cache invalidation strategies. */
3992
+ export declare const getWhatsAppBusinessBotDetails: API.OperationMethod<GetWhatsAppBusinessBotDetailsRequest, WhatsAppBusinessBot, GetWhatsAppBusinessBotDetailsError, WhatsAppOpContext>;
3993
+ export type GetWhatsAppBusinessProfileError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3994
+ /** Get WhatsApp Business Profile Retrieve comprehensive information about a WhatsApp Business Profile, including business details, contact information, and profile settings. **Use Cases:** - Retrieve current business profile information - Check business contact details and settings - Verify business vertical and website information - Get profile picture URL and about section **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Business profile information can be cached for moderate periods, but should be refreshed periodically to ensure accuracy. */
3995
+ export declare const getWhatsAppBusinessProfile: API.OperationMethod<GetWhatsAppBusinessProfileRequest, WhatsAppBusinessProfileResponse, GetWhatsAppBusinessProfileError, WhatsAppOpContext>;
3996
+ export type GetWhatsAppBusinessProfileDetailsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
3997
+ /** Get WhatsApp Business Profile Details Retrieve comprehensive details about a WhatsApp Business Profile, including business information, contact details, and profile configuration. **Use Cases:** - Retrieve business profile information and metadata - Verify profile configuration and contact details - Check profile status and business information - Validate profile state before business operations **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Profile details can be cached for moderate periods, but business information may change occasionally. Implement appropriate cache invalidation strategies. */
3998
+ export declare const getWhatsAppBusinessProfileDetails: API.OperationMethod<GetWhatsAppBusinessProfileDetailsRequest, WhatsAppBusinessProfileNode, GetWhatsAppBusinessProfileDetailsError, WhatsAppOpContext>;
3999
+ export type ListAllQrCodesError = BadRequest | Forbidden | NotFound | WhatsAppOpError;
4000
+ /** List All Message QR Codes Retrieve all message QR codes for a phone number, sorted by creation time (newest first). Supports field selection, filtering by code, cursor-based pagination, and QR image generation. */
4001
+ export declare const listAllQrCodes: API.PaginatedOperationMethod<ListAllQrCodesRequest, QrCodeList, ListAllQrCodesError, WhatsAppOpContext, QrCodeDetails>;
4002
+ export type ListFlowAssetsError = BadRequest | WhatsAppOpError;
4003
+ /** List Assets (Get Flow JSON URL) Returns all assets attached to the flow. Currently only FLOW_JSON asset is supported */
4004
+ export declare const listFlowAssets: API.OperationMethod<ListFlowAssetsRequest, ListFlowAssetsResponse, ListFlowAssetsError, WhatsAppOpContext>;
4005
+ export type ListFlowsError = BadRequest | WhatsAppOpError;
4006
+ /** List Flows List Flows */
4007
+ export declare const listFlows: API.OperationMethod<ListFlowsRequest, ListFlowsResponse, ListFlowsError, WhatsAppOpContext>;
4008
+ export type ListMessageTemplatesError = BadRequest | WhatsAppOpError;
4009
+ /** Get template by name (default fields) - Guide: [Message Templates](https://developers.facebook.com/docs/business-messaging/whatsapp/templates/overview) - Guide: [How To Monitor Quality Signals](https://developers.facebook.com/docs/whatsapp/guides/how-to-monitor-quality-signals) - Endpoint reference: [WhatsApp Business Account > Message Templates](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account/message_templates/) */
4010
+ export declare const listMessageTemplates: API.PaginatedOperationMethod<ListMessageTemplatesRequest, ListMessageTemplatesResponse, ListMessageTemplatesError, WhatsAppOpContext, ListMessageTemplatesResponseDataItem>;
4011
+ export type ListSubscribedAppsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4012
+ /** Get All Subscriptions for a WABA Retrieve a list of all applications currently subscribed to webhook events for the specified WhatsApp Business Account. **Use Cases:** - Monitor which apps are subscribed to WABA webhook events - Audit subscription configurations and permissions - Verify subscription status before making changes - Retrieve subscription details for troubleshooting **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Subscription data can be cached for short periods, but may change when apps subscribe or unsubscribe. Implement appropriate cache invalidation strategies. */
4013
+ export declare const listSubscribedApps: API.OperationMethod<ListSubscribedAppsRequest, SubscribedAppsResponse, ListSubscribedAppsError, WhatsAppOpContext>;
4014
+ export type ListWabaSolutionsError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4015
+ /** List Multi-Partner Solutions for WABA Retrieve a paginated list of Multi-Partner Solutions associated with the specified WhatsApp Business Account. This endpoint supports field selection and cursor-based pagination for efficient data retrieval. **Use Cases:** - Discover available Multi-Partner Solutions for business onboarding - Monitor solution status and availability across your WABA - Retrieve solution ownership and permission details - Filter solutions by specific fields or status requirements **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** Solution listings can be cached for short periods, but status information may change frequently during transitions. Implement appropriate cache invalidation strategies. **Pagination:** This endpoint supports cursor-based pagination using `limit`, `after`, and `before` parameters. Use the `paging` object in responses to navigate through result sets. */
4016
+ export declare const listWabaSolutions: API.PaginatedOperationMethod<ListWabaSolutionsRequest, SolutionsList, ListWabaSolutionsError, WhatsAppOpContext, WhatsAppBusinessSolution>;
4017
+ export type ManageCallsError = BadRequest | WhatsAppOpError;
4018
+ /** Manage Calls Use this endpoint to initiate, accept, reject, or terminate WhatsApp calls. **For initiating or managing a call:** Send a POST request with the appropriate action (connect, pre_accept, accept, reject, terminate). **For terminating a call:** Send a POST request with action "terminate" and the call_id. **Note:** Response with error code 138006 indicates a lack of a call request permission for this business number from the WhatsApp user. */
4019
+ export declare const manageCalls: API.OperationMethod<ManageCallsRequest, ManageCallsResponse, ManageCallsError, WhatsAppOpContext>;
4020
+ export type MigrateFlowsError = BadRequest | WhatsAppOpError;
4021
+ /** Migrate Flows Creates a copy of existing flows from source WABA to destination WABA with the same names. */
4022
+ export declare const migrateFlows: API.OperationMethod<MigrateFlowsRequest, MigrateFlowsResponse, MigrateFlowsError, WhatsAppOpContext>;
4023
+ export type OnboardPartnersToMMLiteError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4024
+ /** Onboard Partners to MM Lite Send a request from the partner to onboard an end business to MM Lite. This creates a business agreement request and sets OBO mobility intents on eligible WhatsApp Business Accounts. **Business Flow:** 1. Validates partner business and app permissions 2. Checks end business eligibility for MM Lite 3. Identifies eligible shared WABAs and OBO WABAs 4. Sets mobility intents on eligible OBO WABAs (BSPs only) 5. Creates business agreement request 6. Returns request ID for tracking **BSP vs TP Behavior:** - BSPs (Business Solution Providers): Can create OBO WABAs and set mobility intents - TPs (Technology Partners): Can only create onboarding requests, no OBO WABA management **Rate Limiting:** Subject to business partner integrations use case throttling limits. Use appropriate retry logic with exponential backoff. **Idempotency:** If a pending request already exists between the same partner and end business, the existing request ID is returned instead of creating a duplicate. */
4025
+ export declare const onboardPartnersToMMLite: API.OperationMethod<OnboardPartnersToMMLiteRequest, MMLiteOnboardingRequest, OnboardPartnersToMMLiteError, WhatsAppOpContext>;
4026
+ export type PublishFlowError = BadRequest | WhatsAppOpError;
4027
+ /** Publish Flow Updates the status of the flow as "PUBLISHED". This action is not reversible. The flow and its assets become immutable once published. To update the flow, you must create a new flow and specify the previous flow id as the \`clone_flow_id\` parameter */
4028
+ export declare const publishFlow: API.OperationMethod<PublishFlowRequest, PublishFlowResponse, PublishFlowError, WhatsAppOpContext>;
4029
+ export type RegisterWhatsAppBusinessPhoneNumberError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4030
+ /** Register WhatsApp Business Phone Number Register a WhatsApp Business phone number for messaging capabilities and enable two-step verification. This is a required step before sending messages through the WhatsApp Business Cloud API. **Registration Process:** 1. Phone number must be in UNVERIFIED status 2. Provide a 6-digit PIN for two-step verification 3. Optionally provide backup data for account migration 4. Registration activates messaging capabilities **Migration Support:** For migrating from on-premises WhatsApp Business API, include backup data with password and encrypted account information. **Rate Limiting:** Registration attempts are rate-limited to prevent abuse. Standard Graph API rate limits apply with additional restrictions for registration endpoints. **Security Requirements:** - Two-step verification is mandatory for all registered numbers - PIN must be securely stored and managed by the business - Registration enables webhook delivery and message sending capabilities */
4031
+ export declare const registerWhatsAppBusinessPhoneNumber: API.OperationMethod<RegisterWhatsAppBusinessPhoneNumberRequest, WhatsAppBusinessPhoneNumberRegistrationResponse, RegisterWhatsAppBusinessPhoneNumberError, WhatsAppOpContext>;
4032
+ export type RejectJoinRequestsError = BadRequest | WhatsAppOpError;
4033
+ /** Reject Join Requests Reject one or more join requests */
4034
+ export declare const rejectJoinRequests: API.OperationMethod<RejectJoinRequestsRequest, RejectJoinRequestsResponse, RejectJoinRequestsError, WhatsAppOpContext>;
4035
+ export type RejectSolutionDeactivationRequestError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4036
+ /** Reject Multi-Partner Solution Deactivation Request Reject a pending deactivation request for a Multi-Partner Solution. This endpoint allows solution partners to decline deactivation requests from solution owners, maintaining the solution in its current active operational state. **Use Cases:** - Reject deactivation requests from solution owners - Maintain active solution partnerships when deactivation is not appropriate - Respond programmatically to deactivation requests through API integration - Keep solutions operational when business requirements or partnerships change **Business Logic:** - Solution status remains ACTIVE after successful rejection - StatusForPendingRequest transitions from PENDING_DEACTIVATION to NONE - All existing solution configurations and permissions are preserved - Solution partners receive notifications about the rejection decision **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Permissions:** Requires whatsapp_business_management permission and valid solution partnership relationship. */
4037
+ export declare const rejectSolutionDeactivationRequest: API.OperationMethod<RejectSolutionDeactivationRequestRequest, WhatsAppBusinessSolution, RejectSolutionDeactivationRequestError, WhatsAppOpContext>;
4038
+ export type RejectSolutionRequestError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4039
+ /** Reject Multi-Partner Solution Request Reject a pending partnership request or deactivation request for a Multi-Partner Solution. This endpoint allows solution owners to decline incoming requests and maintain control over their solution partnerships and lifecycle. **Use Cases:** - Reject partnership requests from unauthorized or incompatible applications - Decline deactivation requests to keep solutions active - Maintain solution security and partnership quality - Control solution access and collaboration boundaries **Request Types:** - `PARTNERSHIP_REQUEST`: Reject an incoming partnership request from another app - `DEACTIVATION_REQUEST`: Reject a request to deactivate the solution **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Business Logic:** - Only solution owners can reject requests for their solutions - Partnership rejections require the partner_app_id parameter - Rejection actions are permanent and cannot be undone through this API - Rejected requests may need to be resubmitted through proper channels */
4040
+ export declare const rejectSolutionRequest: API.OperationMethod<RejectSolutionRequestRequest, SolutionRejectResponse, RejectSolutionRequestError, WhatsAppOpContext>;
4041
+ export type RemoveAssignedUserError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4042
+ /** Remove User from WhatsApp Business Account Remove a user's access from the WhatsApp Business Account. This operation revokes all permissions and access rights for the specified user on the account. **Use Cases:** - Revoke user access when they leave the organization - Remove temporary access grants - Clean up user permissions for security compliance - Manage user lifecycle and access control **Important Notes:** - This operation removes ALL permissions for the user on this WhatsApp Business Account - The user will lose access to all account features and data - This action cannot be undone - the user must be re-added if access is needed again - Webhooks may be triggered to notify of user access changes **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. */
4043
+ export declare const removeAssignedUser: API.OperationMethod<RemoveAssignedUserRequest, SuccessResponse, RemoveAssignedUserError, WhatsAppOpContext>;
4044
+ export type RemoveGroupParticipantsError = BadRequest | WhatsAppOpError;
4045
+ /** Remove Group Participants Remove participants from group */
4046
+ export declare const removeGroupParticipants: API.OperationMethod<RemoveGroupParticipantsRequest, RemoveGroupParticipantsResponse, RemoveGroupParticipantsError, WhatsAppOpContext>;
4047
+ export type RequestPreVerifiedPhoneNumberCodeError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4048
+ /** Request Verification Code for Pre-Verified Phone Number Request a verification code for a pre-verified phone number via SMS or voice call. This is part of the WhatsApp Business Account onboarding process where pre-approved phone numbers must be verified before they can be used for messaging. **Process Flow:** 1. Call this endpoint to request a verification code 2. User receives code via SMS or voice call 3. Use the verify_code endpoint to complete verification 4. Phone number becomes active for messaging **Rate Limiting:** - Limited number of code requests per phone number per time period - Exponential backoff recommended for retry attempts - Voice calls may have additional restrictions **Language Support:** Verification messages are sent in the specified language when available. Falls back to English (en_US) if the requested language is not supported. **Security Considerations:** - Codes expire after a short time period - Limited number of verification attempts allowed - Phone number must be pre-verified and owned by requesting business */
4049
+ export declare const requestPreVerifiedPhoneNumberCode: API.OperationMethod<RequestPreVerifiedPhoneNumberCodeRequest, RequestCodeResponse, RequestPreVerifiedPhoneNumberCodeError, WhatsAppOpContext>;
4050
+ export type RequestVerificationCodeError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4051
+ /** Request Phone Number Verification Code Request a verification code for a WhatsApp Business phone number via SMS or voice call. This is the first step in the phone number verification process. **Use Cases:** - Initial verification of newly added phone numbers - Re-verification when phone number status requires it - Switching between SMS and voice verification methods **Rate Limiting:** Standard Graph API rate limits apply. Additional rate limiting may be enforced for verification code requests to prevent abuse. **Security:** Verification codes are sent only to the registered phone number and expire after a short time period. Multiple failed attempts may result in temporary blocking. */
4052
+ export declare const requestVerificationCode: API.OperationMethod<RequestVerificationCodeRequest, RequestCodeResponse, RequestVerificationCodeError, WhatsAppOpContext>;
4053
+ export type SendEncryptedMessageError = BadRequest | Forbidden | WhatsAppOpError;
4054
+ /** Send Encrypted Message Send encrypted messages using JWE (JSON Web Encryption) format. This endpoint provides an additional layer of security on top of existing standard TLS/SSL by accepting pre-encrypted message payloads and returning encrypted responses. **Important Notes:** - Only successful responses will be encrypted - Error responses will be returned unencrypted if the underlying JSON is incorrectly formatted - Payload encryption must be enabled for the phone number using the `POST /<Phone-Number-ID>/settings` endpoint - The encrypted payload must follow the same structure as the original `/messages` endpoint **Prerequisites:** - User Access Token with `whatsapp_business_messaging` permission - Valid `Phone-Number-ID` for your registered WhatsApp Business account - Payload encryption enabled for the phone number - Properly formatted JWE token containing encrypted message payload using supported algorithms **Supported Algorithms:** - **Content Encryption:** A128GCM, A256GCM... */
4055
+ export declare const sendEncryptedMessage: API.OperationMethod<SendEncryptedMessageRequest, EncryptedMessageResponse, SendEncryptedMessageError, WhatsAppOpContext>;
4056
+ export type SendMarketingMessageError = BadRequest | Forbidden | WhatsAppOpError;
4057
+ /** Send Marketing Template Message Send marketing template messages using pre-approved templates. Supports optional product policy controls and message activity sharing settings. */
4058
+ export declare const sendMarketingMessage: API.OperationMethod<SendMarketingMessageRequest, MarketingMessageResponsePayload, SendMarketingMessageError, WhatsAppOpContext>;
4059
+ export type SendMessageError = RecipientNotAllowed | TemplateNotFound | BadRequest | NotFound | WhatsAppOpError;
4060
+ /** Send Message. Send Message. */
4061
+ export declare const sendMessage: API.OperationMethod<SendMessageRequest, MessageResponsePayload, SendMessageError, WhatsAppOpContext>;
4062
+ export type SendSolutionDeactivationRequestError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4063
+ /** Send Multi-Partner Solution Deactivation Request Submit a deactivation request for a Multi-Partner Solution. This initiates a workflow to transition the solution from its current state to deactivated, following proper business validation and approval processes. **Use Cases:** - Request deactivation of an active Multi-Partner Solution - Initiate solution lifecycle transition management - Trigger business workflow for solution deactivation approval - Programmatically manage solution lifecycle states **Business Logic:** - Solution must be in ACTIVE or INITIATED state to be eligible for deactivation - Deactivation requests are processed asynchronously - Solution status will transition to PENDING_DEACTIVATION during processing - Final deactivation requires business approval workflow completion **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Workflow:** 1. Validate solution ownership and permissions 2. Check solution eligibility for deactivation 3. Submit deactivation request to business workflow 4. Return confirmation with tracking identifier */
4064
+ export declare const sendSolutionDeactivationRequest: API.OperationMethod<SendSolutionDeactivationRequestRequest, WhatsAppBusinessSolutionDeactivationResponse, SendSolutionDeactivationRequestError, WhatsAppOpContext>;
4065
+ export type SetBusinessEncryptionPublicKeyError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4066
+ /** Set Business Encryption Public Key Upload and configure a business public key for message payload encryption. This endpoint accepts a business public key in PEM format, validates it, and stores it with a cryptographic signature for future use in encrypting message payloads and data channel requests. **Use Cases:** - Initial setup of encryption for WhatsApp Business messaging - Update existing public key for key rotation - Enable secure payload encryption for sensitive business communications - Configure encryption keys for compliance requirements **Key Requirements:** - Must be a valid RSA public key in PEM format - Key must meet Meta's security standards for encryption - Only one active public key per phone number at a time - Previous keys are replaced when new ones are uploaded **Rate Limiting:** Standard Graph API rate limits apply. Key uploads may have additional security-related rate limiting to prevent abuse. */
4067
+ export declare const setBusinessEncryptionPublicKey: API.OperationMethod<SetBusinessEncryptionPublicKeyRequest, WhatsAppBusinessEncryptionUploadResponse, SetBusinessEncryptionPublicKeyError, WhatsAppOpContext>;
4068
+ export type SetOBOMobilityIntentError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4069
+ /** Set OBO Mobility Intent Set On-Behalf-Of (OBO) mobility intent for a Multi-Partner Solution associated with a WhatsApp Business Account. This endpoint enables solution providers to establish OBO relationships for managing client WhatsApp Business Accounts. **Use Cases:** - Enable solution provider management of client WABA operations - Establish OBO relationships for business messaging solutions - Configure cross-platform mobility for WhatsApp Business messaging - Set up solution provider access to client accounts - Manage client onboarding for solution provider services **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Caching:** OBO mobility intent settings are cached for performance. Changes may take a few minutes to propagate across all systems. Implement appropriate cache invalidation strategies. */
4070
+ export declare const setOBOMobilityIntent: API.OperationMethod<SetOBOMobilityIntentRequest, SetOBOMobilityIntentResponse, SetOBOMobilityIntentError, WhatsAppOpContext>;
4071
+ export type SetOrUpdateCommerceSettingsError = BadRequest | WhatsAppOpError;
4072
+ /** Set or update commerce settings - Guide: [Sell Products & Services](https://developers.facebook.com/docs/business-messaging/whatsapp/catalogs/sell-products-and-services) (Cloud API) - Guide: [Sell Products & Services](https://developers.facebook.com/docs/whatsapp/on-premises/guides/commerce-guides) (On-Premises API) - Endpoint reference: [WhatsApp Business Phone Number > WhatsApp Commerce Settings](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account-to-number-current-status/whatsapp_commerce_settings) */
4073
+ export declare const setOrUpdateCommerceSettings: API.OperationMethod<SetOrUpdateCommerceSettingsRequest, SetOrUpdateCommerceSettingsResponse, SetOrUpdateCommerceSettingsError, WhatsAppOpContext>;
4074
+ export type SetSolutionMigrationIntentError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4075
+ /** Set Solution Migration Intent Set migration intent for a Multi-Partner Solution associated with a WhatsApp Business Account. This endpoint allows solution partners to initiate, schedule, confirm, or cancel migration processes for their solutions. **Use Cases:** - Initiate migration process for solution transitions - Schedule migration for a specific time - Confirm pending migration requests - Cancel previously set migration intents **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Migration Process:** 1. Set migration intent with INITIATE_MIGRATION 2. System validates migration eligibility 3. Migration intent enters PENDING status 4. Partner can schedule or confirm migration 5. Migration executes at scheduled time or immediately upon confirmation */
4076
+ export declare const setSolutionMigrationIntent: API.OperationMethod<SetSolutionMigrationIntentRequest, SetSolutionMigrationIntentResponse, SetSolutionMigrationIntentError, WhatsAppOpContext>;
4077
+ export type SharePreVerifiedPhoneNumberError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4078
+ /** Share Pre-Verified Phone Number with Another Business Share a pre-verified phone number with another business entity, granting specified permissions for collaborative WhatsApp Business messaging operations. **Use Cases:** - Enable partner businesses to use your pre-verified phone numbers for messaging - Share phone number resources between parent and subsidiary businesses - Facilitate multi-business WhatsApp integrations with shared phone number access - Establish temporary or permanent phone number sharing relationships **Business Logic:** - Only businesses with appropriate ownership or sharing rights can share phone numbers - Shared phone numbers maintain original ownership while granting usage permissions - Multiple businesses can have access to the same phone number with different permission levels - Sharing relationships can be time-limited with automatic expiration **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Validation:** - Pre-verified phone number must exist and be accessible to the requesting business - Target business must be a valid and accessible business entity - Requested permissions must be valid and within the scope of allowed sharing permissions - Sharing operation must comply with business relationship and access control policies */
4079
+ export declare const sharePreVerifiedPhoneNumber: API.OperationMethod<SharePreVerifiedPhoneNumberRequest, PreVerifiedPhoneNumberShareResponse, SharePreVerifiedPhoneNumberError, WhatsAppOpContext>;
4080
+ export type SubscribeToWabaWebhooksError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4081
+ /** Subscribe to WABA Webhooks Subscribe your application to webhook events for the specified WhatsApp Business Account. This enables your app to receive real-time notifications for events such as message deliveries, status updates, and other WABA activities. **Use Cases:** - Enable webhook notifications for your app - Configure custom callback URLs for webhook delivery - Set up webhook verification tokens for security - Override default app webhook settings for specific WABAs **Rate Limiting:** Standard Graph API rate limits apply. Subscription operations may have additional throttling to prevent abuse. **Security:** Always use HTTPS endpoints for webhook callbacks. Verify webhook authenticity using the provided verification tokens and signature validation. */
4082
+ export declare const subscribeToWabaWebhooks: API.OperationMethod<SubscribeToWabaWebhooksRequest, SubscriptionResponse, SubscribeToWabaWebhooksError, WhatsAppOpContext>;
4083
+ export type UnblockUsersError = BadRequest | WhatsAppOpError;
4084
+ /** Unblock user(s) - Guide: [Block Users](https://developers.facebook.com/docs/business-messaging/whatsapp/block-users) - Endpoint reference: [DELETE WhatsApp Buiness Phone Number > block_users](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-account-to-number-current-status/block_users/#Deleting) */
4085
+ export declare const unblockUsers: API.OperationMethod<UnblockUsersRequest, UnblockUsersData, UnblockUsersError, WhatsAppOpContext>;
4086
+ export type UnsubscribeFromWabaWebhooksError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4087
+ /** Unsubscribe from WABA Webhooks Unsubscribe your application from webhook events for the specified WhatsApp Business Account. This will stop your app from receiving webhook notifications for this WABA. **Use Cases:** - Disable webhook notifications when no longer needed - Clean up subscriptions during app decommissioning - Temporarily disable webhooks for maintenance - Remove subscriptions for WABAs no longer managed by your app **Rate Limiting:** Standard Graph API rate limits apply. Unsubscription operations are typically processed immediately. **Important:** Unsubscribing will immediately stop all webhook deliveries for this WABA. Ensure your application can handle the cessation of webhook events gracefully. */
4088
+ export declare const unsubscribeFromWabaWebhooks: API.OperationMethod<UnsubscribeFromWabaWebhooksRequest, SubscriptionResponse, UnsubscribeFromWabaWebhooksError, WhatsAppOpContext>;
4089
+ export type UpdateBusinessComplianceInfoError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4090
+ /** Update Business Compliance Information Create or update comprehensive business compliance information for a WhatsApp Business Account phone number, including entity details, registration status, and required contact information for regulatory compliance. **Use Cases:** - Set business compliance information for regulatory reporting - Update business entity registration status and details - Configure grievance officer and customer care contact information - Ensure compliance data accuracy for regulatory purposes - Support compliance setup for new business operations **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Validation Rules:** - `entity_name` is required and must be between 2 and 128 characters - `entity_type` is required and must be a valid entity type enum value - `entity_type_custom` is mandatory when `entity_type` is "Other" - `entity_type_custom` cannot be used with non-"Other" entity types - `is_registered` can only be used with "Other" or "Partnership" entity types - `grievance_officer_details` is required with complete contact information - `customer_care_details` is required with contact information - Phone numbers must be valid international format with country code - Email addresses must be valid format and under 128 characters */
4091
+ export declare const updateBusinessComplianceInfo: API.OperationMethod<UpdateBusinessComplianceInfoRequest, UpdateBusinessComplianceInfoResponse, UpdateBusinessComplianceInfoError, WhatsAppOpContext>;
4092
+ export type UpdateFlowJsonError = BadRequest | WhatsAppOpError;
4093
+ /** Update Flow JSON Used to upload a flow JSON file with the flow content. Refer to flow JSON documentation here [https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson](https://developers.facebook.com/docs/whatsapp/flows/reference/flowjson) The file must be attached as from data. The response will include any validation errors in the JSON file */
4094
+ export declare const updateFlowJson: API.OperationMethod<UpdateFlowJsonRequest, UpdateFlowJsonResponse, UpdateFlowJsonError, WhatsAppOpContext>;
4095
+ export type UpdateFlowMetadataError = BadRequest | WhatsAppOpError;
4096
+ /** Update Flow Metadata Update Flow Metadata */
4097
+ export declare const updateFlowMetadata: API.OperationMethod<UpdateFlowMetadataRequest, UpdateFlowMetadataResponse, UpdateFlowMetadataError, WhatsAppOpContext>;
4098
+ export type UpdateGroupSettingsError = BadRequest | WhatsAppOpError;
4099
+ /** Update Group Settings Update the subject, description, and photo of a group */
4100
+ export declare const updateGroupSettings: API.OperationMethod<UpdateGroupSettingsRequest, UpdateGroupSettingsResponse, UpdateGroupSettingsError, WhatsAppOpContext>;
4101
+ export type UpdateMessageTemplateError = BadRequest | WhatsAppOpError;
4102
+ /** Edit template - Guide: [Message Templates](https://developers.facebook.com/docs/business-messaging/whatsapp/templates/overview) - Guide: [How To Monitor Quality Signals](https://developers.facebook.com/docs/whatsapp/guides/how-to-monitor-quality-signals) - Endpoint reference: [WhatsApp Message Template](https://developers.facebook.com/docs/graph-api/reference/whats-app-business-hsm/) */
4103
+ export declare const updateMessageTemplate: API.OperationMethod<UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateMessageTemplateError, WhatsAppOpContext>;
4104
+ export type UpdateOfficialBusinessAccountStatusError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | WhatsAppOpError;
4105
+ /** Update Official Business Account Status Update or modify the Official Business Account (OBA) status for a WhatsApp Business Account phone number. This endpoint allows businesses to submit new applications, withdraw existing applications, or resubmit after addressing rejection reasons. **Use Cases:** - Submit initial Official Business Account application - Withdraw pending OBA application - Resubmit OBA application after addressing rejection feedback - Update application data for pending applications **Application Data Requirements:** When submitting or resubmitting an OBA application, certain business information may be required depending on the current status and previous submissions. **Rate Limiting:** Standard Graph API rate limits apply with additional restrictions on application submissions to prevent abuse. Use appropriate retry logic with exponential backoff. **Status Transitions:** - Applications can only be submitted when no active application exists - Withdrawals are only allowed for pending applications - Resubmissions are only allowed after rejection */
4106
+ export declare const updateOfficialBusinessAccountStatus: API.OperationMethod<UpdateOfficialBusinessAccountStatusRequest, OfficialBusinessAccountUpdateResponse, UpdateOfficialBusinessAccountStatusError, WhatsAppOpContext>;
4107
+ export type UpdatePhoneNumberError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4108
+ /** Update WhatsApp Business Account Phone Number Status and Configuration Update the status and configuration of a WhatsApp Business Account phone number. This endpoint supports comprehensive phone number management including status updates, webhook configuration, security settings, and business profile management. **Supported Operations:** - Update connection status between WhatsApp Business Account and phone number - Configure webhook endpoints for message delivery notifications - Set up two-step verification and security notifications - Update display names for name verification - Configure search visibility and privacy settings - Set username for the WhatsApp Business Account - Override webhook callback URIs for message notifications **Business Logic Requirements:** - App must be linked to the WhatsApp Business Account - Webhook subscription must exist before configuring callback URI overrides - Callback URI verification is performed for external URLs - Internal URLs are allowed for development environments **Rate Limiting:** WhatsApp use case throttling applies. Use appropriate retry logic with exponential backoff. **Security Validations:** - App-to-WABA linking validation enforced - Webhook callback URI verification required for external URLs - Business integration system user checks for AI bot onboarding - Capability checks for first-party app access */
4109
+ export declare const updatePhoneNumber: API.OperationMethod<UpdatePhoneNumberRequest, UpdatePhoneNumberResponse, UpdatePhoneNumberError, WhatsAppOpContext>;
4110
+ export type UpdatePhoneNumberSettingsError = BadRequest | Forbidden | WhatsAppOpError;
4111
+ /** Update phone number settings Update various settings for a WhatsApp Business phone number. You can configure calling settings, user identity change settings, payload encryption, and data storage configurations. Only one feature setting can be specified per request. */
4112
+ export declare const updatePhoneNumberSettings: API.OperationMethod<UpdatePhoneNumberSettingsRequest, UpdatePhoneNumberSettingsResponse, UpdatePhoneNumberSettingsError, WhatsAppOpContext>;
4113
+ export type UpdateWhatsAppBusinessAccountError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4114
+ /** Update WhatsApp Business Account Update configuration and settings for a WhatsApp Business Account. **Use Cases:** - Update WhatsApp Business Account name and configuration - Modify account settings and preferences - Update business information and verification details **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. */
4115
+ export declare const updateWhatsAppBusinessAccount: API.OperationMethod<UpdateWhatsAppBusinessAccountRequest, UpdateWhatsAppBusinessAccountResponse, UpdateWhatsAppBusinessAccountError, WhatsAppOpContext>;
4116
+ export type UpdateWhatsAppBusinessProfileError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4117
+ /** Update WhatsApp Business Profile Update the WhatsApp Business Profile information such as business description, email, address, and other profile details. This operation corresponds to the GraphWhatsAppBusinessProfilePost functionality. **Use Cases:** - Update business profile information and metadata - Modify contact details and business description - Change business vertical classification - Update website URLs and profile picture - Maintain current business profile information **Profile Picture Upload:** It is recommended to use the Resumable Upload API to obtain an upload ID, then use this upload ID to obtain the picture handle for the `profile_picture_handle` field. **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. */
4118
+ export declare const updateWhatsAppBusinessProfile: API.OperationMethod<UpdateWhatsAppBusinessProfileRequest, WhatsAppBusinessProfileUpdateResponse, UpdateWhatsAppBusinessProfileError, WhatsAppOpContext>;
4119
+ export type UpdateWhatsAppBusinessProfileInformationError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4120
+ /** Update WhatsApp Business Profile Update WhatsApp Business Profile information including business details, contact information, and profile settings. **Use Cases:** - Update business description and contact information - Modify business address and website information - Change business vertical classification - Update profile picture using Resumable Upload API - Update profile picture and about section **Rate Limiting:** Standard Graph API rate limits apply. Use appropriate retry logic with exponential backoff. **Profile Picture Updates:** To update the profile picture, first use the Resumable Upload API to obtain a profile_picture_handle, then include it in the request. */
4121
+ export declare const updateWhatsAppBusinessProfileInformation: API.OperationMethod<UpdateWhatsAppBusinessProfileInformationRequest, WhatsAppBusinessProfileUpdateResponse, UpdateWhatsAppBusinessProfileInformationError, WhatsAppOpContext>;
4122
+ export type UploadMediaError = BadRequest | WhatsAppOpError;
4123
+ /** Upload Image This request uploads an image as .jpeg. The parameters are specified as **form-data** in the request **body**. */
4124
+ export declare const uploadMedia: API.OperationMethod<UploadMediaRequest, UploadMediaResponse, UploadMediaError, WhatsAppOpContext>;
4125
+ export type VerifyPhoneNumberCodeError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4126
+ /** Verify Phone Number Verification Code Verify a phone number verification code for a WhatsApp Business Account phone number. This endpoint is used to complete the phone number verification process by submitting the verification code received via SMS or voice call. **Use Cases:** - Complete phone number verification during initial setup - Verify phone number ownership for messaging capabilities - Finalize phone number registration process - Complete phone number migration verification **Rate Limiting:** Verification attempts are rate-limited to prevent abuse. Failed attempts may result in temporary blocking. Use appropriate retry logic with exponential backoff. **Security:** Verification codes are time-limited (typically 10 minutes) and single-use. Multiple failed attempts may trigger additional security measures. */
4127
+ export declare const verifyPhoneNumberCode: API.OperationMethod<VerifyPhoneNumberCodeRequest, VerifyCodeResponse, VerifyPhoneNumberCodeError, WhatsAppOpContext>;
4128
+ export type VerifyPreVerifiedPhoneNumberCodeError = BadRequest | Forbidden | NotFound | UnprocessableEntity | WhatsAppOpError;
4129
+ /** Verify OTP Code for Pre-Verified Phone Number Verify the OTP code received for a pre-verified phone number to complete the verification process. This endpoint validates the code and updates the verification status of the phone number. **Use Cases:** - Complete phone number verification during WhatsApp Business onboarding - Verify ownership of phone numbers for business messaging - Enable phone numbers for WhatsApp Business API usage **Rate Limiting:** This endpoint has specific rate limits to prevent abuse: - 125 requests per hour for business use cases - Standard Graph API rate limits also apply **Code Validation:** - Codes are time-sensitive and expire after a set period - Each code can only be used once - Invalid or expired codes will result in verification failure **Error Handling:** - Invalid codes return 400 Bad Request - Expired codes return 422 Unprocessable Entity - Rate limit exceeded returns 429 Too Many Requests */
4130
+ export declare const verifyPreVerifiedPhoneNumberCode: API.OperationMethod<VerifyPreVerifiedPhoneNumberCodeRequest, VerifyCodeResponse, VerifyPreVerifiedPhoneNumberCodeError, WhatsAppOpContext>;
4131
+ //# sourceMappingURL=whatsapp.d.ts.map