meta-cloud-api 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.d.mts +258 -62
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/enums.d.ts +7 -1
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +1 -1
- package/dist/types/enums.js.map +1 -1
- package/dist/types/index.d.ts +168 -51
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ wa.registration // Phone registration
|
|
|
75
75
|
wa.twoStepVerification // 2FA management
|
|
76
76
|
wa.encryption // End-to-end encryption
|
|
77
77
|
wa.blockUsers // Block/unblock users
|
|
78
|
+
wa.contactBook // Delete a BSUID contact book entry
|
|
78
79
|
wa.waba // WhatsApp Business Account management
|
|
79
80
|
```
|
|
80
81
|
|
package/dist/index.d.mts
CHANGED
|
@@ -187,8 +187,14 @@ declare enum WebhookTypesEnum {
|
|
|
187
187
|
Video = "video"
|
|
188
188
|
}
|
|
189
189
|
declare enum SystemChangeTypesEnum {
|
|
190
|
+
/** @deprecated Meta renamed this to `user_changed_number`. Use {@link SystemChangeTypesEnum.UserChangedNumber}. */
|
|
190
191
|
CustomerChangedNumber = "customer_changed_number",
|
|
191
|
-
|
|
192
|
+
/** @deprecated Meta renamed this to `user_identity_changed`. Use {@link SystemChangeTypesEnum.UserIdentityChanged}. */
|
|
193
|
+
CustomerIdentityChanged = "customer_identity_changed",
|
|
194
|
+
UserChangedNumber = "user_changed_number",
|
|
195
|
+
UserIdentityChanged = "user_identity_changed",
|
|
196
|
+
/** The user's business-scoped user ID (BSUID) changed. */
|
|
197
|
+
UserChangedUserId = "user_changed_user_id"
|
|
192
198
|
}
|
|
193
199
|
declare enum ReferralSourceTypesEnum {
|
|
194
200
|
Ad = "ad",
|
|
@@ -1481,6 +1487,74 @@ declare class CommerceApi extends BaseAPI implements CommerceClass {
|
|
|
1481
1487
|
updateCommerceSettings(params: UpdateCommerceSettingsRequest): Promise<ResponseSuccess>;
|
|
1482
1488
|
}
|
|
1483
1489
|
//#endregion
|
|
1490
|
+
//#region src/api/contactBook/types/contactBook.d.ts
|
|
1491
|
+
/**
|
|
1492
|
+
* Contact Book API Types
|
|
1493
|
+
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids/
|
|
1494
|
+
*/
|
|
1495
|
+
/**
|
|
1496
|
+
* Parameters for deleting a contact book entry.
|
|
1497
|
+
*/
|
|
1498
|
+
type DeleteContactBookEntryParams = {
|
|
1499
|
+
/**
|
|
1500
|
+
* Business-scoped user ID whose entry should be removed, in standard BSUID
|
|
1501
|
+
* format (e.g. "US.13491208655302741918").
|
|
1502
|
+
*/
|
|
1503
|
+
bsuid: string;
|
|
1504
|
+
};
|
|
1505
|
+
/**
|
|
1506
|
+
* Response for a contact book delete request.
|
|
1507
|
+
*/
|
|
1508
|
+
type DeleteContactBookEntryResponse = {
|
|
1509
|
+
messaging_product: 'whatsapp';
|
|
1510
|
+
success?: boolean;
|
|
1511
|
+
deleted?: boolean;
|
|
1512
|
+
};
|
|
1513
|
+
interface ContactBookClass {
|
|
1514
|
+
deleteEntry(params: DeleteContactBookEntryParams): Promise<DeleteContactBookEntryResponse>;
|
|
1515
|
+
}
|
|
1516
|
+
//#endregion
|
|
1517
|
+
//#region src/api/contactBook/ContactBookApi.d.ts
|
|
1518
|
+
/**
|
|
1519
|
+
* API for the Meta-hosted contact book.
|
|
1520
|
+
*
|
|
1521
|
+
* The contact book pairs a WhatsApp user's phone number with their
|
|
1522
|
+
* business-scoped user ID (BSUID). Meta populates it automatically: any message
|
|
1523
|
+
* or call between a business phone number in your portfolio and a user stores
|
|
1524
|
+
* that pairing, which is why webhooks keep including the phone number even after
|
|
1525
|
+
* the user adopts a username. It is scoped to the business portfolio, not to a
|
|
1526
|
+
* single phone number, and only captures interactions from early April 2026
|
|
1527
|
+
* onward — there is no historical backfill.
|
|
1528
|
+
*
|
|
1529
|
+
* Endpoints covered:
|
|
1530
|
+
* - `DELETE /{PHONE_NUMBER_ID}/contact_book` - Delete a user's contact book entry
|
|
1531
|
+
*
|
|
1532
|
+
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids/
|
|
1533
|
+
*/
|
|
1534
|
+
declare class ContactBookApi extends BaseAPI implements ContactBookClass {
|
|
1535
|
+
private readonly endpoint;
|
|
1536
|
+
/**
|
|
1537
|
+
* Delete a user's entry from your contact book.
|
|
1538
|
+
*
|
|
1539
|
+
* Once deleted, the user's phone number and BSUID are no longer included in
|
|
1540
|
+
* webhook payloads for any business phone number in the portfolio — unless
|
|
1541
|
+
* the number is still in the 30-day cache, or a new interaction recreates the
|
|
1542
|
+
* entry.
|
|
1543
|
+
*
|
|
1544
|
+
* @param params - Delete parameters.
|
|
1545
|
+
* @param params.bsuid - BSUID of the entry to delete (e.g. "US.13491208655302741918").
|
|
1546
|
+
* @returns Response reporting whether the entry was deleted.
|
|
1547
|
+
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids/
|
|
1548
|
+
*
|
|
1549
|
+
* @example
|
|
1550
|
+
* ```typescript
|
|
1551
|
+
* const result = await client.contactBook.deleteEntry({ bsuid: 'US.13491208655302741918' });
|
|
1552
|
+
* console.log(result.deleted);
|
|
1553
|
+
* ```
|
|
1554
|
+
*/
|
|
1555
|
+
deleteEntry(params: DeleteContactBookEntryParams): Promise<DeleteContactBookEntryResponse>;
|
|
1556
|
+
}
|
|
1557
|
+
//#endregion
|
|
1484
1558
|
//#region src/api/encryption/types/publicKey.d.ts
|
|
1485
1559
|
type EncryptionPublicKeyResponse = ResponseData<{
|
|
1486
1560
|
business_public_key: string;
|
|
@@ -2229,7 +2303,19 @@ declare class MessagesClass extends BaseClass {
|
|
|
2229
2303
|
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/marketing-messages/send-marketing-messages/
|
|
2230
2304
|
*/
|
|
2231
2305
|
type MarketingMessageRequest = {
|
|
2232
|
-
|
|
2306
|
+
/**
|
|
2307
|
+
* WhatsApp user phone number. Omit when addressing the user by `recipient`
|
|
2308
|
+
* (BSUID) instead.
|
|
2309
|
+
*/
|
|
2310
|
+
to?: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* Business-scoped user ID (BSUID) or parent BSUID of the recipient, used in
|
|
2313
|
+
* place of `to` for individual messages.
|
|
2314
|
+
*
|
|
2315
|
+
* Templates carrying `bid_spec` (max price) cannot be sent to a BSUID
|
|
2316
|
+
* recipient — that combination fails with error `131062`.
|
|
2317
|
+
*/
|
|
2318
|
+
recipient?: string;
|
|
2233
2319
|
template: MessageTemplateObject<ComponentTypesEnum>;
|
|
2234
2320
|
message_activity_sharing?: boolean;
|
|
2235
2321
|
product_policy?: 'CLOUD_API_FALLBACK' | 'STRICT';
|
|
@@ -2926,11 +3012,31 @@ type ProductCarouselCard = {
|
|
|
2926
3012
|
components: TemplateHeader[];
|
|
2927
3013
|
};
|
|
2928
3014
|
type ComponentTypes = TemplateHeader | TemplateBody | TemplateFooter | TemplateButtons | TemplateLimitedTimeOffer | TemplateCarousel;
|
|
3015
|
+
/**
|
|
3016
|
+
* Max price ("bid") configuration for a marketing template.
|
|
3017
|
+
*
|
|
3018
|
+
* Max price is set per template, and templates carrying it must be sent through
|
|
3019
|
+
* the Marketing Messages API (`POST /{PHONE_NUMBER_ID}/marketing_messages`).
|
|
3020
|
+
* Sending one through the Cloud API `/messages` endpoint fails with error
|
|
3021
|
+
* `131061`; sending one to a BSUID recipient fails with error `131062`.
|
|
3022
|
+
* Omitting `bid_spec` leaves the template on standard rate card pricing.
|
|
3023
|
+
*
|
|
3024
|
+
* @see https://developers.facebook.com/documentation/business-messaging/whatsapp/marketing-messages/send-marketing-messages/
|
|
3025
|
+
*/
|
|
3026
|
+
type TemplateBidSpec = {
|
|
3027
|
+
/**
|
|
3028
|
+
* Maximum price per 1,000 message deliveries, in the smallest unit of the
|
|
3029
|
+
* WABA's currency. Multiply the desired per-delivery price by 1,000 after
|
|
3030
|
+
* converting it to the smallest unit.
|
|
3031
|
+
*/
|
|
3032
|
+
bid_amount: number;
|
|
3033
|
+
};
|
|
2929
3034
|
type TemplateRequestBody = GeneralRequestBody & {
|
|
2930
3035
|
name: string;
|
|
2931
3036
|
language: LanguagesEnum;
|
|
2932
3037
|
category?: CategoryEnum;
|
|
2933
|
-
components?: ComponentTypes[];
|
|
3038
|
+
components?: ComponentTypes[]; /** Max price configuration. Marketing templates only, MM API sends only. */
|
|
3039
|
+
bid_spec?: TemplateBidSpec;
|
|
2934
3040
|
};
|
|
2935
3041
|
type TemplateResponse = {
|
|
2936
3042
|
id: string;
|
|
@@ -4253,12 +4359,25 @@ interface OrderMessage extends BaseMessage {
|
|
|
4253
4359
|
}>;
|
|
4254
4360
|
};
|
|
4255
4361
|
}
|
|
4362
|
+
/**
|
|
4363
|
+
* System message webhook (identity changes).
|
|
4364
|
+
*
|
|
4365
|
+
* - `user_changed_number` — the user's phone number changed; `wa_id` holds the new number.
|
|
4366
|
+
* - `user_identity_changed` — the user's identity (profile) changed.
|
|
4367
|
+
* - `user_changed_user_id` — the user's business-scoped user ID (BSUID) changed;
|
|
4368
|
+
* `user_id` / `parent_user_id` hold the new BSUID / parent BSUID.
|
|
4369
|
+
*
|
|
4370
|
+
* Note: there is no subscribable `user_id_update` webhook field. BSUID changes are
|
|
4371
|
+
* delivered as these `messages` field system messages.
|
|
4372
|
+
*/
|
|
4256
4373
|
interface SystemMessage extends BaseMessage {
|
|
4257
4374
|
type: MessageTypesEnum.System;
|
|
4258
4375
|
system: {
|
|
4259
|
-
body: string;
|
|
4260
|
-
wa_id: string;
|
|
4261
|
-
|
|
4376
|
+
/** Human-readable description, e.g. "User A changed from <OLD_BSUID> to <NEW_BSUID>" */body: string; /** New WhatsApp ID of the user */
|
|
4377
|
+
wa_id: string; /** New business-scoped user ID, present for `user_changed_user_id` */
|
|
4378
|
+
user_id?: string; /** New parent business-scoped user ID, present for `user_changed_user_id` */
|
|
4379
|
+
parent_user_id?: string;
|
|
4380
|
+
type: 'user_changed_number' | 'user_identity_changed' | 'user_changed_user_id';
|
|
4262
4381
|
};
|
|
4263
4382
|
}
|
|
4264
4383
|
/**
|
|
@@ -4559,6 +4678,48 @@ interface MessageEchoesWebhookValue {
|
|
|
4559
4678
|
value: MessageEchoesValue;
|
|
4560
4679
|
}
|
|
4561
4680
|
//#endregion
|
|
4681
|
+
//#region src/core/webhook/types/status.d.ts
|
|
4682
|
+
interface StatusWebhook {
|
|
4683
|
+
id: string;
|
|
4684
|
+
status: 'sent' | 'delivered' | 'read' | 'failed';
|
|
4685
|
+
timestamp: string;
|
|
4686
|
+
recipient_id: string;
|
|
4687
|
+
recipient_type?: 'group';
|
|
4688
|
+
recipient_participant_id?: string;
|
|
4689
|
+
recipient_identity_key_hash?: string;
|
|
4690
|
+
biz_opaque_callback_data?: string;
|
|
4691
|
+
/**
|
|
4692
|
+
* ID of the template used to send a Direct Send message.
|
|
4693
|
+
* Present only on statuses for messages sent with a `category` field.
|
|
4694
|
+
*
|
|
4695
|
+
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/supported-message-types | Direct Send}
|
|
4696
|
+
*/
|
|
4697
|
+
template_id?: string;
|
|
4698
|
+
conversation?: {
|
|
4699
|
+
id: string;
|
|
4700
|
+
expiration_timestamp?: string;
|
|
4701
|
+
origin: {
|
|
4702
|
+
type: 'authentication' | 'authentication_international' | 'marketing' | 'marketing_lite' | 'referral_conversion' | 'service' | 'utility';
|
|
4703
|
+
};
|
|
4704
|
+
};
|
|
4705
|
+
pricing?: {
|
|
4706
|
+
billable: boolean;
|
|
4707
|
+
pricing_model: 'CBP' | 'PMP';
|
|
4708
|
+
type: 'regular' | 'free_customer_service' | 'free_entry_point';
|
|
4709
|
+
category: 'authentication' | 'authentication_international' | 'marketing' | 'marketing_lite' | 'referral_conversion' | 'service' | 'utility';
|
|
4710
|
+
};
|
|
4711
|
+
errors?: Array<WebhookError>;
|
|
4712
|
+
}
|
|
4713
|
+
/**
|
|
4714
|
+
* Message status enum
|
|
4715
|
+
*/
|
|
4716
|
+
declare enum MessageStatus {
|
|
4717
|
+
DELIVERED = "delivered",
|
|
4718
|
+
READ = "read",
|
|
4719
|
+
SENT = "sent",
|
|
4720
|
+
FAILED = "failed"
|
|
4721
|
+
}
|
|
4722
|
+
//#endregion
|
|
4562
4723
|
//#region src/core/webhook/types/messaging.d.ts
|
|
4563
4724
|
interface MessagingHandoverControlPassed {
|
|
4564
4725
|
/** Optional metadata string passed with the handover */
|
|
@@ -4584,19 +4745,86 @@ interface MessagingHandoversWebhookValue {
|
|
|
4584
4745
|
field: 'messaging_handovers';
|
|
4585
4746
|
value: MessagingHandoversValue;
|
|
4586
4747
|
}
|
|
4748
|
+
/**
|
|
4749
|
+
* Flow definition attached to a standby message echo, present only for flow
|
|
4750
|
+
* message echoes.
|
|
4751
|
+
*/
|
|
4752
|
+
interface StandbyMessageEchoFlow {
|
|
4753
|
+
id: string;
|
|
4754
|
+
name: string;
|
|
4755
|
+
status: string;
|
|
4756
|
+
categories: string[];
|
|
4757
|
+
}
|
|
4758
|
+
/**
|
|
4759
|
+
* A single echoed outbound message observed while in standby. Carries the raw
|
|
4760
|
+
* Send Message API request body used by the active handler, not rendered content.
|
|
4761
|
+
*/
|
|
4762
|
+
interface StandbyMessageEcho {
|
|
4763
|
+
/** WhatsApp message ID (wamid.*) of the echoed outbound message */
|
|
4764
|
+
id: string;
|
|
4765
|
+
/** Unix timestamp (seconds, as a string) of when the message was sent */
|
|
4766
|
+
timestamp: string;
|
|
4767
|
+
/**
|
|
4768
|
+
* The exact Send Message API request body used to send the message, e.g.
|
|
4769
|
+
* `{ messaging_product, to, recipient_type?, type, [type]: {...}, context? }`.
|
|
4770
|
+
* For template messages the send-time variable values live here under `template`.
|
|
4771
|
+
*/
|
|
4772
|
+
message: {
|
|
4773
|
+
messaging_product: 'whatsapp';
|
|
4774
|
+
recipient_type?: string;
|
|
4775
|
+
to: string;
|
|
4776
|
+
type: string;
|
|
4777
|
+
context?: {
|
|
4778
|
+
message_id: string;
|
|
4779
|
+
};
|
|
4780
|
+
[key: string]: unknown;
|
|
4781
|
+
};
|
|
4782
|
+
/**
|
|
4783
|
+
* Full unhydrated template definition (layout with placeholders). Present only
|
|
4784
|
+
* for template message echoes, alongside `message`.
|
|
4785
|
+
*/
|
|
4786
|
+
template?: Record<string, unknown>;
|
|
4787
|
+
/** Full flow definition. Present only for flow message echoes, alongside `message`. */
|
|
4788
|
+
flow?: StandbyMessageEchoFlow;
|
|
4789
|
+
}
|
|
4790
|
+
/**
|
|
4791
|
+
* The standby event payload nested under `value.standby`. Contains exactly one of
|
|
4792
|
+
* `messages`, `message_echoes`, or `statuses` (with `contacts` alongside `messages`).
|
|
4793
|
+
*/
|
|
4794
|
+
interface StandbyEvent {
|
|
4795
|
+
/** Contact profiles for the users in an inbound standby message event */
|
|
4796
|
+
contacts?: WebhookContact[];
|
|
4797
|
+
/** Inbound messages received while your app is not the active handler */
|
|
4798
|
+
messages?: WhatsAppMessage[];
|
|
4799
|
+
/** Echoes of outbound messages sent by the active handler (e.g. Meta Business Agent) */
|
|
4800
|
+
message_echoes?: StandbyMessageEcho[];
|
|
4801
|
+
/** Delivery/read status updates for messages sent by the active handler */
|
|
4802
|
+
statuses?: StatusWebhook[];
|
|
4803
|
+
}
|
|
4587
4804
|
interface StandbyValue {
|
|
4588
4805
|
messaging_product: 'whatsapp';
|
|
4589
|
-
|
|
4806
|
+
metadata: WebhookMetadata;
|
|
4807
|
+
/** The standby event payload; carries exactly one event array */
|
|
4808
|
+
standby: StandbyEvent;
|
|
4590
4809
|
}
|
|
4591
4810
|
interface StandbyWebhookValue {
|
|
4592
4811
|
field: 'standby';
|
|
4593
4812
|
value: StandbyValue;
|
|
4594
4813
|
}
|
|
4595
4814
|
interface UserPreferenceEntry {
|
|
4596
|
-
/** WhatsApp ID of the user */
|
|
4597
|
-
wa_id
|
|
4598
|
-
/**
|
|
4599
|
-
|
|
4815
|
+
/** WhatsApp ID of the user. May be absent when only BSUIDs are shared. */
|
|
4816
|
+
wa_id?: string;
|
|
4817
|
+
/**
|
|
4818
|
+
* Business-scoped user ID the preference applies to (e.g. "US.1234567").
|
|
4819
|
+
* The preference is always scoped to this ID.
|
|
4820
|
+
*/
|
|
4821
|
+
user_id?: string;
|
|
4822
|
+
/**
|
|
4823
|
+
* Parent business-scoped user ID of the user, when the user is enrolled in a
|
|
4824
|
+
* parent BSUID. Informational only — preferences are never applied at the
|
|
4825
|
+
* parent BSUID level.
|
|
4826
|
+
*/
|
|
4827
|
+
parent_user_id?: string;
|
|
4600
4828
|
/** Human-readable description of the preference change */
|
|
4601
4829
|
detail: string;
|
|
4602
4830
|
/**
|
|
@@ -4606,9 +4834,9 @@ interface UserPreferenceEntry {
|
|
|
4606
4834
|
category: 'marketing_messages' | string;
|
|
4607
4835
|
/**
|
|
4608
4836
|
* New preference value.
|
|
4609
|
-
* Known
|
|
4837
|
+
* Known values: "stop" (user opted out), "resume" (user opted back in)
|
|
4610
4838
|
*/
|
|
4611
|
-
value: 'stop' | string;
|
|
4839
|
+
value: 'stop' | 'resume' | string;
|
|
4612
4840
|
/** Unix timestamp of when the preference was changed */
|
|
4613
4841
|
timestamp: number;
|
|
4614
4842
|
/** Signup ID associated with the preference, if applicable */
|
|
@@ -4619,10 +4847,12 @@ interface UserPreferencesContact {
|
|
|
4619
4847
|
/** Display name of the user */name: string; /** WhatsApp username, if available */
|
|
4620
4848
|
username?: string;
|
|
4621
4849
|
};
|
|
4622
|
-
/** WhatsApp ID of the user */
|
|
4623
|
-
wa_id
|
|
4624
|
-
/**
|
|
4850
|
+
/** WhatsApp ID of the user. May be absent when only BSUIDs are shared. */
|
|
4851
|
+
wa_id?: string;
|
|
4852
|
+
/** Business-scoped user ID of the user */
|
|
4625
4853
|
user_id?: string;
|
|
4854
|
+
/** Parent business-scoped user ID of the user, when enrolled */
|
|
4855
|
+
parent_user_id?: string;
|
|
4626
4856
|
}
|
|
4627
4857
|
interface UserPreferencesValue {
|
|
4628
4858
|
messaging_product: 'whatsapp';
|
|
@@ -4735,48 +4965,6 @@ interface SecurityWebhookValue {
|
|
|
4735
4965
|
value: SecurityValue;
|
|
4736
4966
|
}
|
|
4737
4967
|
//#endregion
|
|
4738
|
-
//#region src/core/webhook/types/status.d.ts
|
|
4739
|
-
interface StatusWebhook {
|
|
4740
|
-
id: string;
|
|
4741
|
-
status: 'sent' | 'delivered' | 'read' | 'failed';
|
|
4742
|
-
timestamp: string;
|
|
4743
|
-
recipient_id: string;
|
|
4744
|
-
recipient_type?: 'group';
|
|
4745
|
-
recipient_participant_id?: string;
|
|
4746
|
-
recipient_identity_key_hash?: string;
|
|
4747
|
-
biz_opaque_callback_data?: string;
|
|
4748
|
-
/**
|
|
4749
|
-
* ID of the template used to send a Direct Send message.
|
|
4750
|
-
* Present only on statuses for messages sent with a `category` field.
|
|
4751
|
-
*
|
|
4752
|
-
* @see {@link https://developers.facebook.com/documentation/business-messaging/whatsapp/direct-send/supported-message-types | Direct Send}
|
|
4753
|
-
*/
|
|
4754
|
-
template_id?: string;
|
|
4755
|
-
conversation?: {
|
|
4756
|
-
id: string;
|
|
4757
|
-
expiration_timestamp?: string;
|
|
4758
|
-
origin: {
|
|
4759
|
-
type: 'authentication' | 'authentication_international' | 'marketing' | 'marketing_lite' | 'referral_conversion' | 'service' | 'utility';
|
|
4760
|
-
};
|
|
4761
|
-
};
|
|
4762
|
-
pricing?: {
|
|
4763
|
-
billable: boolean;
|
|
4764
|
-
pricing_model: 'CBP' | 'PMP';
|
|
4765
|
-
type: 'regular' | 'free_customer_service' | 'free_entry_point';
|
|
4766
|
-
category: 'authentication' | 'authentication_international' | 'marketing' | 'marketing_lite' | 'referral_conversion' | 'service' | 'utility';
|
|
4767
|
-
};
|
|
4768
|
-
errors?: Array<WebhookError>;
|
|
4769
|
-
}
|
|
4770
|
-
/**
|
|
4771
|
-
* Message status enum
|
|
4772
|
-
*/
|
|
4773
|
-
declare enum MessageStatus {
|
|
4774
|
-
DELIVERED = "delivered",
|
|
4775
|
-
READ = "read",
|
|
4776
|
-
SENT = "sent",
|
|
4777
|
-
FAILED = "failed"
|
|
4778
|
-
}
|
|
4779
|
-
//#endregion
|
|
4780
4968
|
//#region src/core/webhook/types/template.d.ts
|
|
4781
4969
|
/**
|
|
4782
4970
|
* Message template status events
|
|
@@ -5006,13 +5194,13 @@ type MetaErrorData = {
|
|
|
5006
5194
|
interface MetaError extends Error {
|
|
5007
5195
|
error: MetaErrorData;
|
|
5008
5196
|
}
|
|
5009
|
-
declare const WHATSAPP_ERROR_CODES: readonly [0, 1, 2, 3, 4, 10, 33, 100, 190, 200, 299, 368, 613, 80007, 130429, 130472, 130497, 131000, 131005, 131008, 131009, 131016, 131020, 131021, 131026, 131030, 131031, 131037, 131041, 131042, 131044, 131045, 131047, 131048, 131049, 131050, 131051, 131052, 131053, 131055, 131056, 131057, 131059, 131201, 131202, 131203, 131204, 131207, 131208, 131209, 131210, 131211, 131212, 131213, 131214, 131215, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 133000, 133004, 133005, 133006, 133008, 133009, 133010, 133015, 133016, 134011, 134100, 134101, 134102, 135000, 137000, 138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 139000, 139001, 139002, 139003, 139004, 139100, 139101, 139102, 139103, 147005, 200005, 200006, 200007, 1752041, 2388001, 2388012, 2388019, 2388040, 2388047, 2388072, 2388073, 2388091, 2388093, 2388103, 2388293, 2388299, 2494100, 2593079, 2593085, 2593107, 2593108];
|
|
5197
|
+
declare const WHATSAPP_ERROR_CODES: readonly [0, 1, 2, 3, 4, 10, 33, 100, 190, 200, 299, 368, 613, 80007, 130429, 130472, 130497, 131000, 131005, 131008, 131009, 131016, 131020, 131021, 131026, 131030, 131031, 131037, 131041, 131042, 131044, 131045, 131047, 131048, 131049, 131050, 131051, 131052, 131053, 131055, 131056, 131057, 131059, 131061, 131062, 131201, 131202, 131203, 131204, 131207, 131208, 131209, 131210, 131211, 131212, 131213, 131214, 131215, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 133000, 133004, 133005, 133006, 133008, 133009, 133010, 133015, 133016, 134011, 134100, 134101, 134102, 135000, 137000, 138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 139000, 139001, 139002, 139003, 139004, 139100, 139101, 139102, 139103, 147005, 200005, 200006, 200007, 1752041, 2388001, 2388012, 2388019, 2388040, 2388047, 2388072, 2388073, 2388091, 2388093, 2388103, 2388293, 2388299, 2494100, 2593079, 2593085, 2593107, 2593108];
|
|
5010
5198
|
type ApiPermissionErrorCode = number;
|
|
5011
5199
|
type WhatsAppErrorCode = (typeof WHATSAPP_ERROR_CODES)[number] | ApiPermissionErrorCode;
|
|
5012
5200
|
declare const AUTHORIZATION_ERROR_CODES: readonly [0, 3, 10, 190];
|
|
5013
5201
|
declare const THROTTLING_ERROR_CODES: readonly [4, 80007, 130429, 131048, 131056];
|
|
5014
5202
|
declare const INTEGRITY_ERROR_CODES: readonly [368, 130497, 131031];
|
|
5015
|
-
declare const SEND_MESSAGE_ERROR_CODES: readonly [130472, 131000, 131005, 131008, 131009, 131016, 131021, 131026, 131030, 131042, 131044, 131045, 131047, 131050, 131051, 131052, 131053, 131056, 131057, 131048, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 135000, 137000];
|
|
5203
|
+
declare const SEND_MESSAGE_ERROR_CODES: readonly [130472, 131000, 131005, 131008, 131009, 131016, 131021, 131026, 131030, 131042, 131044, 131045, 131047, 131050, 131051, 131052, 131053, 131056, 131057, 131048, 131061, 131062, 132000, 132001, 132005, 132007, 132008, 132012, 132015, 132016, 132068, 132069, 135000, 137000];
|
|
5016
5204
|
declare const FLOW_ERROR_CODES: readonly [139000, 139001, 139002, 139003, 139004];
|
|
5017
5205
|
declare const BLOCK_USER_ERROR_CODES: readonly [139100, 139101, 139102, 139103];
|
|
5018
5206
|
declare const CALLING_ERROR_CODES: readonly [138000, 138001, 138002, 138003, 138004, 138005, 138006, 138007, 138009, 138012, 138013, 138018, 613];
|
|
@@ -5272,8 +5460,11 @@ declare const WebhookTypes: {
|
|
|
5272
5460
|
};
|
|
5273
5461
|
type WebhookTypesType = (typeof WebhookTypes)[keyof typeof WebhookTypes];
|
|
5274
5462
|
declare const SystemChangeTypes: {
|
|
5275
|
-
readonly CustomerChangedNumber: "customer_changed_number";
|
|
5463
|
+
/** @deprecated Meta renamed this to `user_changed_number`. Use `UserChangedNumber`. */readonly CustomerChangedNumber: "customer_changed_number"; /** @deprecated Meta renamed this to `user_identity_changed`. Use `UserIdentityChanged`. */
|
|
5276
5464
|
readonly CustomerIdentityChanged: "customer_identity_changed";
|
|
5465
|
+
readonly UserChangedNumber: "user_changed_number";
|
|
5466
|
+
readonly UserIdentityChanged: "user_identity_changed"; /** The user's business-scoped user ID (BSUID) changed. */
|
|
5467
|
+
readonly UserChangedUserId: "user_changed_user_id";
|
|
5277
5468
|
};
|
|
5278
5469
|
type SystemChangeTypesType = (typeof SystemChangeTypes)[keyof typeof SystemChangeTypes];
|
|
5279
5470
|
declare const ReferralSourceTypes: {
|
|
@@ -6307,8 +6498,12 @@ declare class MarketingMessagesApi extends BaseAPI implements MarketingMessagesC
|
|
|
6307
6498
|
/**
|
|
6308
6499
|
* Send a marketing template message to a WhatsApp user.
|
|
6309
6500
|
*
|
|
6501
|
+
* Address the user either by phone number (`to`) or by business-scoped user ID
|
|
6502
|
+
* (`recipient`). Exactly one of the two is required.
|
|
6503
|
+
*
|
|
6310
6504
|
* @param params - The marketing message request parameters.
|
|
6311
6505
|
* @param params.to - The recipient's WhatsApp phone number.
|
|
6506
|
+
* @param params.recipient - The recipient's BSUID or parent BSUID, used instead of `to`.
|
|
6312
6507
|
* @param params.template - The template configuration (name, language, components).
|
|
6313
6508
|
* @param params.message_activity_sharing - Optional flag to enable message activity sharing.
|
|
6314
6509
|
* @param params.product_policy - Optional product policy for marketing messages.
|
|
@@ -8326,6 +8521,7 @@ declare class WhatsApp {
|
|
|
8326
8521
|
business: BusinessApi;
|
|
8327
8522
|
calling: CallingApi;
|
|
8328
8523
|
commerce: CommerceApi;
|
|
8524
|
+
contactBook: ContactBookApi;
|
|
8329
8525
|
groups: GroupsApi;
|
|
8330
8526
|
marketingMessages: MarketingMessagesApi;
|
|
8331
8527
|
messageHistory: MessageHistoryApi;
|
|
@@ -9301,5 +9497,5 @@ declare function isFlowErrorRequest(request: FlowEndpointRequest): request is Fl
|
|
|
9301
9497
|
*/
|
|
9302
9498
|
declare function isFlowPingRequest(request: FlowEndpointRequest): request is FlowHealthCheckRequest;
|
|
9303
9499
|
//#endregion
|
|
9304
|
-
export { AUTHORIZATION_ERROR_CODES, type AcceptCallRequest, AcceptSolutionRequest, AccountMode, AddPhoneNumbersRequest, type ApiPermissionErrorCode, AssignedUserRequest, AssignedUsersListParams, type AudioMediaObject, AudioMediaTypes, AudioMediaTypesEnum, AudioMediaTypesType, type AudioMessage, type AudioMessageHandler, type AudioProcessedMessage, type AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, type BaseApiRequest, type BaseApiResponse, type BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, type BodyOptions, BusinessApi, BusinessClass, BusinessComplianceInfoResponse, BusinessFieldsParam, BusinessGraphListResponse, BusinessGraphObject, BusinessListParams, BusinessProfileApi, type BusinessProfileClass, type BusinessProfileData, type BusinessProfileField, type BusinessProfileFieldsParam, type BusinessProfileResponse, BusinessVerticalEnum, type ButtonMessage, type ButtonMessageHandler, type ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, type ButtonProcessedMessage, CALLING_ERROR_CODES, type CallAction, type CallActionResponse, type CallAnnouncementLanguage, type CallCaptureStatus, type CallHours, type CallHoursDay, type CallHoursStatus, type CallIconVisibility, type CallPermission, type CallPermissionAction, type CallPermissionLimit, type CallPermissionsResponse, type CallRecordingConfig, type CallSdpType, type CallSession, type CallTranscriptionConfig, type CallbackPermissionStatus, CallingApi, type CallingClass, type CallingSettings, type CallingSettingsResponse, type CallingStatus, CarouselCard, type CarouselOptions, CatalogButton, type CatalogTemplateOptions, Category, CategoryEnum, CategoryType, CodeVerificationStatus, CommerceApi, type CommerceClass, type CommerceSetting, type CommerceSettingsResponse, ComponentType, ComponentTypeType, ComponentTypes, ComponentTypesEnum, type ContactInfo, type ContactObject, type ContactsMessage, type ContactsMessageHandler, type ContactsProcessedMessage, ConversationTypes, ConversationTypesEnum, ConversationTypesType, ConversationalAutomationRequest, ConversationalAutomationResponse, ConversationalCommand, ConversationalPrompt, CopyCodeButton, type CouponTemplateOptions, type CreateFlowResponse, CreateOBOMobilityIntentRequest, CreatePhoneNumberRequest, CreatePhoneNumberResponse, type CreateQrCodeRequest, CreateScheduleRequest, type CreateUploadSessionParams, CreateWhatsAppBusinessSolutionRequest, CurrencyCodesEnum, type CurrencyParameter, CursorPaginationParams, Cursors, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, type DateTimeParameter, type DirectSendCategory, type DirectSendConfig, type DirectSendOptions, type DocumentMediaObject, DocumentMediaTypes, DocumentMediaTypesEnum, DocumentMediaTypesType, type DocumentMessage, type DocumentMessageHandler, type DocumentProcessedMessage, type EncryptedMessageRequest, type EncryptedMessagesResponse, EncryptionApi, type EncryptionClass, type EncryptionKeyPair, type EncryptionPublicKeyResponse, type ErrorWebhookValue, type ExpressRequest, type ExpressResponse, type ExpressWebhookConfig, FLOW_ERROR_CODES, FailedUserInfo, type Flow, FlowActionEnum, FlowApi, type FlowAsset, type FlowAssetsResponse, FlowButton, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHandler, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, type FlowType, FlowTypeEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type FooterOptions, GROUP_ERROR_CODES, type GeneralHeaderInterface, type GeneralMessageBody, type GeneralRequestBody, type GetUploadHandleParams, GraphObject, type GroupCreateRequest, type GroupCreateResponse, type GroupInfoField, type GroupInfoFieldsParam, type GroupInfoResponse, type GroupInviteLinkResponse, type GroupJoinApprovalMode, type GroupJoinRequest, type GroupJoinRequestError, type GroupJoinRequestFailure, type GroupJoinRequestsActionResponse, type GroupJoinRequestsResponse, type GroupListParams, type GroupListResponse, type GroupMessage, type GroupParticipant, type GroupParticipantInput, type GroupParticipantsRequest, type GroupSettingsResponse, GroupsApi, type GroupsClass, type HeaderOptions, HealthStatus, HealthStatusEntity, type HolidaySchedule, HostPlatform, HttpMethods, HttpMethodsEnum, HttpMethodsType, type HttpsClientClass, type HttpsClientResponseClass, INTEGRITY_ERROR_CODES, type ImageMediaObject, ImageMediaTypes, ImageMediaTypesEnum, ImageMediaTypesType, type ImageMessage, type ImageMessageHandler, type ImageProcessedMessage, type InitiateCallRequest, type InitiateCallResponse, type InteractiveButtonReplyMessage, type InteractiveListReplyMessage, type InteractiveMessage, type InteractiveMessageHandler, type InteractiveObject, type InteractiveProcessedMessage, type InteractiveReply, InteractiveTypes, InteractiveTypesEnum, InteractiveTypesType, Languages, LanguagesEnum, LanguagesType, type LimitedTimeOfferOptions, type LimitedTimeOfferTemplateOptions, ListBlockedUsersParams, ListBlockedUsersResponse, type LocationInfo, type LocationMessage, type LocationMessageHandler, type LocationObject, type LocationParameter, type LocationProcessedMessage, Logger, type LoggerInterface, MPMButton, type MPMTemplateOptions, type MarketingMessageRequest, MarketingMessagesApi, type MarketingMessagesClass, MediaApi, type MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, type MediaInfo, type MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, MessageCategory, MessageCategoryEnum, MessageCategoryType, type MessageHandler, MessageHistoryApi, MessageHistoryClass, MessageHistoryEventListParams, MessageHistoryFieldsParam, MessageHistoryItem, MessageHistoryListParams, MessageHistoryResponse, type MessageRecipientType, type MessageRequestBody, type MessageRequestParams, type MessageStatus, MessageTemplateObject, MessageTemplateRequestBody, MessageTypes, MessageTypesEnum, MessageTypesType, type MessageWebhookValue, type MessagesClass, type MessagesResponse, MessagingLimitTier, type MetaError, type MetaErrorData, type MetaErrorDetail, type NextFunction, type NextJsAppWebhookConfig, type NextJsWebhookConfig, OTPButton, type OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, type OrderInfo, type OrderMessage, type OrderMessageHandler, type OrderProcessedMessage, type Pagination, type PaginationCursors, type Paging, PagingCursors, PagingInfo, ParametersTypes, ParametersTypesEnum, ParametersTypesType, type PaymentConfiguration, type PaymentConfigurationCode, type PaymentConfigurationCreateRequest, type PaymentConfigurationCreateResponse, type PaymentConfigurationDeleteRequest, type PaymentConfigurationOauthLinkRequest, type PaymentConfigurationOauthLinkResponse, type PaymentConfigurationProvider, type PaymentConfigurationStatus, type PaymentConfigurationUpdateRequest, type PaymentConfigurationUpdateResponse, type PaymentConfigurationsResponse, PaymentsApi, type PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, type PreAcceptCallRequest, type ProcessedMessage, type ProcessedStatus, type ProductCardCarouselTemplateOptions, ProductCarouselCard, type ProductParameter, type ProductSection, QrCodeApi, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, type ReactionInfo, type ReactionMessage, type ReactionMessageHandler, type ReactionParams, type ReactionProcessedMessage, ReferralSourceTypes, ReferralSourceTypesEnum, ReferralSourceTypesType, RegistrationApi, type RegistrationClass, type RegistrationRequest, type RejectCallRequest, RejectSolutionRequest, RemoveAssignedUserRequest, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, SEND_MESSAGE_ERROR_CODES, SPMButton, type SPMTemplateOptions, SetOBOMobilityIntentRequest, SetSolutionMigrationIntentRequest, SharePreVerifiedPhoneNumberRequest, type SipServer, type SipSettings, type SipStatus, SolutionDeactivationRequest, SolutionFieldsParam, SolutionGraphObject, SolutionListParams, SolutionListResponse, SolutionMigrationIntent, SolutionsApi, SolutionsClass, Status, StatusEnum, type StatusHandler, type StatusParams, type StatusResponse, StatusType, type StatusWebhook, type StatusWebhookValue, type StickerMediaObject, StickerMediaTypes, StickerMediaTypesEnum, StickerMediaTypesType, type StickerMessage, type StickerMessageHandler, type StickerProcessedMessage, SubType, SubTypeEnum, SubTypeType, SystemChangeTypes, SystemChangeTypesEnum, SystemChangeTypesType, type SystemMessage, type SystemMessageHandler, type SystemProcessedMessage, THROTTLING_ERROR_CODES, TemplateApi, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, type TemplateOptions, type TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatus, TemplateStatusEnum, TemplateStatusType, type TerminateCallRequest, type TextMessage, type TextMessageHandler, type TextMessageParams, type TextObject, type TextParameter, type TextProcessedMessage, Throughput, ThroughputLevel, ThroughputResponse, TwoStepVerificationApi, type TwoStepVerificationClass, TwoStepVerificationParams, type TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnifiedCertStatus, type UnsupportedMessage, UpdateBusinessComplianceInfoRequest, type UpdateBusinessProfileRequest, type UpdateCallingSettingsRequest, type UpdateCommerceSettingsRequest, type UpdateFlowResponse, type UpdateGroupSettingsRequest, UpdateOfficialBusinessAccountStatusRequest, UpdatePhoneNumberSettingsRequest, UpdatePhoneNumberStatusRequest, type UpdateQrCodeRequest, UpdateUsernameRequest, UpdateWabaAccountRequest, UpdateWabaSubscription, UpdateWhatsAppBusinessProfileRequest, type UploadBusinessProfileResponse, type UploadHandle, type UploadMediaParams, UploadMediaResponse, type UploadSession, type UploadSessionResponse, UsernameResponse, UsernameStatus, UsernameSuggestionsResponse, UsernameTransferAction, type ValidateFlowJsonResponse, VerifyCodeRequest, VerifyPreVerifiedPhoneNumberCodeRequest, type VideoMediaObject, VideoMediaTypes, VideoMediaTypesEnum, VideoMediaTypesType, type VideoMessage, type VideoMessageHandler, type VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, type WabaConfigType, WabaFieldsParam, WabaGraphObject, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaListParams, WabaListResponse, WabaSubscription, WabaSubscriptions, type WebhookContact, type WebhookEvent, type WebhookHandlerContext, type WebhookMessage, type WebhookPayload, WebhookProcessor, type WebhookResponse, WebhookTypes, WebhookTypesEnum, WebhookTypesType, type WebhookValue, type WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, type WhatsAppConfig, WhatsAppError, type WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, type WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, WhatsAppValidationError, buildFieldsQueryString, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, encryptFlowResponse, expressWebhookHandler, extractMessageText, formatConfigTable, generateEncryption, generateXHub256Sig, getContactsInfo, getInteractiveReply, getLocationInfo, getMediaInfo, getOrderInfo, getReactionInfo, isApiPermissionErrorCode, isAudioMessage, isAuthorizationErrorCode, isBlockUserErrorCode, isButtonMessage, isButtonReply, isCallingErrorCode, isContactsMessage, isDocumentMessage, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isImageMessage, isIntegrityErrorCode, isInteractiveMessage, isListReply, isLocationMessage, isMetaError, isNfmReply, isOrderMessage, isReactionMessage, isSendMessageErrorCode, isStickerMessage, isSystemMessage, isTextMessage, isThrottlingErrorCode, isVideoMessage, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, objectToQueryString, processFlowRequest, processWebhookMessages };
|
|
9500
|
+
export { AUTHORIZATION_ERROR_CODES, type AcceptCallRequest, AcceptSolutionRequest, AccountMode, AddPhoneNumbersRequest, type ApiPermissionErrorCode, AssignedUserRequest, AssignedUsersListParams, type AudioMediaObject, AudioMediaTypes, AudioMediaTypesEnum, AudioMediaTypesType, type AudioMessage, type AudioMessageHandler, type AudioProcessedMessage, type AuthenticationTemplateOptions, BLOCK_USER_ERROR_CODES, type BaseApiRequest, type BaseApiResponse, type BaseClass, BlockUserObject, BlockUsersApi, BlockUsersClass, BlockUsersRequest, BlockUsersResponse, BlockedUserInfo, type BodyOptions, BusinessApi, BusinessClass, BusinessComplianceInfoResponse, BusinessFieldsParam, BusinessGraphListResponse, BusinessGraphObject, BusinessListParams, BusinessProfileApi, type BusinessProfileClass, type BusinessProfileData, type BusinessProfileField, type BusinessProfileFieldsParam, type BusinessProfileResponse, BusinessVerticalEnum, type ButtonMessage, type ButtonMessageHandler, type ButtonOptions, ButtonPosition, ButtonPositionEnum, ButtonPositionType, type ButtonProcessedMessage, CALLING_ERROR_CODES, type CallAction, type CallActionResponse, type CallAnnouncementLanguage, type CallCaptureStatus, type CallHours, type CallHoursDay, type CallHoursStatus, type CallIconVisibility, type CallPermission, type CallPermissionAction, type CallPermissionLimit, type CallPermissionsResponse, type CallRecordingConfig, type CallSdpType, type CallSession, type CallTranscriptionConfig, type CallbackPermissionStatus, CallingApi, type CallingClass, type CallingSettings, type CallingSettingsResponse, type CallingStatus, CarouselCard, type CarouselOptions, CatalogButton, type CatalogTemplateOptions, Category, CategoryEnum, CategoryType, CodeVerificationStatus, CommerceApi, type CommerceClass, type CommerceSetting, type CommerceSettingsResponse, ComponentType, ComponentTypeType, ComponentTypes, ComponentTypesEnum, ContactBookApi, ContactBookClass, type ContactInfo, type ContactObject, type ContactsMessage, type ContactsMessageHandler, type ContactsProcessedMessage, ConversationTypes, ConversationTypesEnum, ConversationTypesType, ConversationalAutomationRequest, ConversationalAutomationResponse, ConversationalCommand, ConversationalPrompt, CopyCodeButton, type CouponTemplateOptions, type CreateFlowResponse, CreateOBOMobilityIntentRequest, CreatePhoneNumberRequest, CreatePhoneNumberResponse, type CreateQrCodeRequest, CreateScheduleRequest, type CreateUploadSessionParams, CreateWhatsAppBusinessSolutionRequest, CurrencyCodesEnum, type CurrencyParameter, CursorPaginationParams, Cursors, DataLocalizationRegion, DataLocalizationRegionEnum, DataLocalizationRegionType, type DateTimeParameter, DeleteContactBookEntryParams, DeleteContactBookEntryResponse, type DirectSendCategory, type DirectSendConfig, type DirectSendOptions, type DocumentMediaObject, DocumentMediaTypes, DocumentMediaTypesEnum, DocumentMediaTypesType, type DocumentMessage, type DocumentMessageHandler, type DocumentProcessedMessage, type EncryptedMessageRequest, type EncryptedMessagesResponse, EncryptionApi, type EncryptionClass, type EncryptionKeyPair, type EncryptionPublicKeyResponse, type ErrorWebhookValue, type ExpressRequest, type ExpressResponse, type ExpressWebhookConfig, FLOW_ERROR_CODES, FailedUserInfo, type Flow, FlowActionEnum, FlowApi, type FlowAsset, type FlowAssetsResponse, FlowButton, FlowCategoryEnum, type FlowClass, type FlowDataExchangeRequest, type FlowDataExchangeResponse, type FlowDecryptedRequestResponse, type FlowEncryptedRequestPayload, type FlowEndpointRequest, type FlowEndpointResponse, type FlowErrorNotificationRequest, type FlowErrorNotificationResponse, type FlowHandler, type FlowHealthCheckRequest, type FlowHealthCheckResponse, type FlowHttpRequest, type FlowMigrationFailure, type FlowMigrationResponse, type FlowMigrationResult, type FlowPreview, type FlowPreviewResponse, FlowStatusEnum, type FlowSuccessScreenResponse, type FlowType, FlowTypeEnum, type FlowValidationError, type FlowValidationErrorPointer, type FlowsListResponse, type FooterOptions, GROUP_ERROR_CODES, type GeneralHeaderInterface, type GeneralMessageBody, type GeneralRequestBody, type GetUploadHandleParams, GraphObject, type GroupCreateRequest, type GroupCreateResponse, type GroupInfoField, type GroupInfoFieldsParam, type GroupInfoResponse, type GroupInviteLinkResponse, type GroupJoinApprovalMode, type GroupJoinRequest, type GroupJoinRequestError, type GroupJoinRequestFailure, type GroupJoinRequestsActionResponse, type GroupJoinRequestsResponse, type GroupListParams, type GroupListResponse, type GroupMessage, type GroupParticipant, type GroupParticipantInput, type GroupParticipantsRequest, type GroupSettingsResponse, GroupsApi, type GroupsClass, type HeaderOptions, HealthStatus, HealthStatusEntity, type HolidaySchedule, HostPlatform, HttpMethods, HttpMethodsEnum, HttpMethodsType, type HttpsClientClass, type HttpsClientResponseClass, INTEGRITY_ERROR_CODES, type ImageMediaObject, ImageMediaTypes, ImageMediaTypesEnum, ImageMediaTypesType, type ImageMessage, type ImageMessageHandler, type ImageProcessedMessage, type InitiateCallRequest, type InitiateCallResponse, type InteractiveButtonReplyMessage, type InteractiveListReplyMessage, type InteractiveMessage, type InteractiveMessageHandler, type InteractiveObject, type InteractiveProcessedMessage, type InteractiveReply, InteractiveTypes, InteractiveTypesEnum, InteractiveTypesType, Languages, LanguagesEnum, LanguagesType, type LimitedTimeOfferOptions, type LimitedTimeOfferTemplateOptions, ListBlockedUsersParams, ListBlockedUsersResponse, type LocationInfo, type LocationMessage, type LocationMessageHandler, type LocationObject, type LocationParameter, type LocationProcessedMessage, Logger, type LoggerInterface, MPMButton, type MPMTemplateOptions, type MarketingMessageRequest, MarketingMessagesApi, type MarketingMessagesClass, MediaApi, type MediaCardCarouselTemplateOptions, MediaCarouselCard, MediaClass, type MediaInfo, type MediaParameter, MediaResponse, MediasResponse, MessagesApi as MessageApi, MessagesApi, MessageCategory, MessageCategoryEnum, MessageCategoryType, type MessageHandler, MessageHistoryApi, MessageHistoryClass, MessageHistoryEventListParams, MessageHistoryFieldsParam, MessageHistoryItem, MessageHistoryListParams, MessageHistoryResponse, type MessageRecipientType, type MessageRequestBody, type MessageRequestParams, type MessageStatus, MessageTemplateObject, MessageTemplateRequestBody, MessageTypes, MessageTypesEnum, MessageTypesType, type MessageWebhookValue, type MessagesClass, type MessagesResponse, MessagingLimitTier, type MetaError, type MetaErrorData, type MetaErrorDetail, type NextFunction, type NextJsAppWebhookConfig, type NextJsWebhookConfig, OTPButton, type OTPTemplateOptions, OfficialBusinessAccountAction, OfficialBusinessAccountApplicationData, OfficialBusinessAccountStatusResponse, OnboardPartnersToMMLiteRequest, type OrderInfo, type OrderMessage, type OrderMessageHandler, type OrderProcessedMessage, type Pagination, type PaginationCursors, type Paging, PagingCursors, PagingInfo, ParametersTypes, ParametersTypesEnum, ParametersTypesType, type PaymentConfiguration, type PaymentConfigurationCode, type PaymentConfigurationCreateRequest, type PaymentConfigurationCreateResponse, type PaymentConfigurationDeleteRequest, type PaymentConfigurationOauthLinkRequest, type PaymentConfigurationOauthLinkResponse, type PaymentConfigurationProvider, type PaymentConfigurationStatus, type PaymentConfigurationUpdateRequest, type PaymentConfigurationUpdateResponse, type PaymentConfigurationsResponse, PaymentsApi, type PaymentsClass, PhoneNumberApi, PhoneNumberButton, PhoneNumberClass, PhoneNumberField, PhoneNumberFieldsParam, PhoneNumberFilter, PhoneNumberResponse, PhoneNumberSettingsFieldsParam, PhoneNumberSettingsParams, PhoneNumberSettingsResponse, PhoneNumberSort, PhoneNumberStatus, PhoneNumbersListParams, PhoneNumbersResponse, PlatformType, type PreAcceptCallRequest, type ProcessedMessage, type ProcessedStatus, type ProductCardCarouselTemplateOptions, ProductCarouselCard, type ProductParameter, type ProductSection, QrCodeApi, type QrCodeClass, type QrCodeResponse, type QrCodesResponse, QualityRating, QualityScore, QuickReplyButton, type ReactionInfo, type ReactionMessage, type ReactionMessageHandler, type ReactionParams, type ReactionProcessedMessage, ReferralSourceTypes, ReferralSourceTypesEnum, ReferralSourceTypesType, RegistrationApi, type RegistrationClass, type RegistrationRequest, type RejectCallRequest, RejectSolutionRequest, RemoveAssignedUserRequest, RequestCodeMethods, RequestCodeMethodsEnum, RequestCodeMethodsType, RequestPreVerifiedPhoneNumberCodeRequest, RequestVerificationCodeRequest, type RequesterClass, type RequesterResponseInterface, type ResponseData, type ResponseHeaderValue, type ResponseHeaders, type ResponseJSONBody, type ResponsePagination, type ResponseSuccess, SEND_MESSAGE_ERROR_CODES, SPMButton, type SPMTemplateOptions, SetOBOMobilityIntentRequest, SetSolutionMigrationIntentRequest, SharePreVerifiedPhoneNumberRequest, type SipServer, type SipSettings, type SipStatus, SolutionDeactivationRequest, SolutionFieldsParam, SolutionGraphObject, SolutionListParams, SolutionListResponse, SolutionMigrationIntent, SolutionsApi, SolutionsClass, Status, StatusEnum, type StatusHandler, type StatusParams, type StatusResponse, StatusType, type StatusWebhook, type StatusWebhookValue, type StickerMediaObject, StickerMediaTypes, StickerMediaTypesEnum, StickerMediaTypesType, type StickerMessage, type StickerMessageHandler, type StickerProcessedMessage, SubType, SubTypeEnum, SubTypeType, SystemChangeTypes, SystemChangeTypesEnum, SystemChangeTypesType, type SystemMessage, type SystemMessageHandler, type SystemProcessedMessage, THROTTLING_ERROR_CODES, TemplateApi, TemplateBidSpec, TemplateBody, TemplateButton, TemplateButtons, TemplateCarousel, TemplateClass, TemplateDeleteParams, TemplateFooter, TemplateFormat, TemplateGetParams, TemplateHeader, TemplateHeaderExample, TemplateLimitedTimeOffer, type TemplateOptions, type TemplateParameter, TemplateRequestBody, TemplateResponse, TemplateStatus, TemplateStatusEnum, TemplateStatusType, type TerminateCallRequest, type TextMessage, type TextMessageHandler, type TextMessageParams, type TextObject, type TextParameter, type TextProcessedMessage, Throughput, ThroughputLevel, ThroughputResponse, TwoStepVerificationApi, type TwoStepVerificationClass, TwoStepVerificationParams, type TwoStepVerificationRequest, URLButton, UnblockUsersRequest, UnifiedCertStatus, type UnsupportedMessage, UpdateBusinessComplianceInfoRequest, type UpdateBusinessProfileRequest, type UpdateCallingSettingsRequest, type UpdateCommerceSettingsRequest, type UpdateFlowResponse, type UpdateGroupSettingsRequest, UpdateOfficialBusinessAccountStatusRequest, UpdatePhoneNumberSettingsRequest, UpdatePhoneNumberStatusRequest, type UpdateQrCodeRequest, UpdateUsernameRequest, UpdateWabaAccountRequest, UpdateWabaSubscription, UpdateWhatsAppBusinessProfileRequest, type UploadBusinessProfileResponse, type UploadHandle, type UploadMediaParams, UploadMediaResponse, type UploadSession, type UploadSessionResponse, UsernameResponse, UsernameStatus, UsernameSuggestionsResponse, UsernameTransferAction, type ValidateFlowJsonResponse, VerifyCodeRequest, VerifyPreVerifiedPhoneNumberCodeRequest, type VideoMediaObject, VideoMediaTypes, VideoMediaTypesEnum, VideoMediaTypesType, type VideoMessage, type VideoMessageHandler, type VideoProcessedMessage, WABAClass, WHATSAPP_ERROR_CODES, WabaAccount, WabaAccountFields, WabaAccountFieldsParam, WabaAccountReviewStatus, WabaAccountStatus, WabaApi, WabaBusinessVerificationStatus, WabaConfigEnum, type WabaConfigType, WabaFieldsParam, WabaGraphObject, WabaHealthStatus, WabaHealthStatusCanSendMessage, WabaHealthStatusEntity, WabaHealthStatusError, WabaListParams, WabaListResponse, WabaSubscription, WabaSubscriptions, type WebhookContact, type WebhookEvent, type WebhookHandlerContext, type WebhookMessage, type WebhookPayload, WebhookProcessor, type WebhookResponse, WebhookTypes, WebhookTypesEnum, WebhookTypesType, type WebhookValue, type WeeklyOperatingHours, WhatsApp, WhatsAppApiError, WhatsAppAuthorizationError, WhatsAppBlockUserError, WhatsAppCallingError, type WhatsAppConfig, WhatsAppError, type WhatsAppErrorCode, WhatsAppFlowError, WhatsAppGroupError, WhatsAppIntegrityError, type WhatsAppMessage, WhatsAppNetworkError, WhatsAppSendMessageError, WhatsAppThrottlingError, WhatsAppUnknownError, WhatsAppValidationError, buildFieldsQueryString, constructFullUrl, createAuthenticationTemplate, createCatalogTemplate, createCouponTemplate, createLimitedTimeOfferTemplate, createMPMTemplate, createMediaCardCarouselTemplate, createOTPTemplate, createProductCardCarouselTemplate, createSPMTemplate, createTemplate, createWhatsAppApiError, decryptFlowRequest, encryptFlowResponse, expressWebhookHandler, extractMessageText, formatConfigTable, generateEncryption, generateXHub256Sig, getContactsInfo, getInteractiveReply, getLocationInfo, getMediaInfo, getOrderInfo, getReactionInfo, isApiPermissionErrorCode, isAudioMessage, isAuthorizationErrorCode, isBlockUserErrorCode, isButtonMessage, isButtonReply, isCallingErrorCode, isContactsMessage, isDocumentMessage, isFlowDataExchangeRequest, isFlowErrorCode, isFlowErrorRequest, isFlowPingRequest, isGroupErrorCode, isImageMessage, isIntegrityErrorCode, isInteractiveMessage, isListReply, isLocationMessage, isMetaError, isNfmReply, isOrderMessage, isReactionMessage, isSendMessageErrorCode, isStickerMessage, isSystemMessage, isTextMessage, isThrottlingErrorCode, isVideoMessage, isWhatsAppApiErrorResponse, isWhatsAppAuthorizationError, isWhatsAppBlockUserError, isWhatsAppCallingError, isWhatsAppErrorCode, isWhatsAppFlowError, isWhatsAppGroupError, isWhatsAppIntegrityError, isWhatsAppSendMessageError, isWhatsAppThrottlingError, nextjsAppWebhookHandler, nextjsPagesWebhookHandler, normalizeMetaError, objectToQueryString, processFlowRequest, processWebhookMessages };
|
|
9305
9501
|
//# sourceMappingURL=index.d.mts.map
|