@getlatedev/node 0.2.371 → 0.2.373
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +46 -35
- package/dist/index.d.ts +46 -35
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +34 -23
package/dist/index.d.mts
CHANGED
|
@@ -111,7 +111,7 @@ declare class Zernio {
|
|
|
111
111
|
listAccountGroups: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListAccountGroupsResponse, ListAccountGroupsError, ThrowOnError>;
|
|
112
112
|
createAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateAccountGroupResponse, unknown, ThrowOnError>;
|
|
113
113
|
updateAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAccountGroupResponse, unknown, ThrowOnError>;
|
|
114
|
-
deleteAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAccountGroupResponse,
|
|
114
|
+
deleteAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAccountGroupResponse, unknown, ThrowOnError>;
|
|
115
115
|
};
|
|
116
116
|
/**
|
|
117
117
|
* Media API - Upload and manage media files
|
|
@@ -635,13 +635,13 @@ declare class Zernio {
|
|
|
635
635
|
* contacts API
|
|
636
636
|
*/
|
|
637
637
|
contacts: {
|
|
638
|
-
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse,
|
|
638
|
+
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse, unknown, ThrowOnError>;
|
|
639
639
|
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateContactResponse, unknown, ThrowOnError>;
|
|
640
|
-
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse,
|
|
641
|
-
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse,
|
|
642
|
-
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown,
|
|
643
|
-
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse,
|
|
644
|
-
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse,
|
|
640
|
+
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse, unknown, ThrowOnError>;
|
|
641
|
+
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse, unknown, ThrowOnError>;
|
|
642
|
+
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
643
|
+
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse, unknown, ThrowOnError>;
|
|
644
|
+
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse, unknown, ThrowOnError>;
|
|
645
645
|
};
|
|
646
646
|
/**
|
|
647
647
|
* customfields API
|
|
@@ -658,16 +658,16 @@ declare class Zernio {
|
|
|
658
658
|
* broadcasts API
|
|
659
659
|
*/
|
|
660
660
|
broadcasts: {
|
|
661
|
-
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse,
|
|
662
|
-
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateBroadcastResponse,
|
|
661
|
+
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, unknown, ThrowOnError>;
|
|
662
|
+
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateBroadcastResponse, unknown, ThrowOnError>;
|
|
663
663
|
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBroadcastResponse, GetBroadcastError, ThrowOnError>;
|
|
664
664
|
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateBroadcastResponse, UpdateBroadcastError, ThrowOnError>;
|
|
665
665
|
deleteBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteBroadcastError, ThrowOnError>;
|
|
666
666
|
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendBroadcastResponse, unknown, ThrowOnError>;
|
|
667
667
|
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ScheduleBroadcastResponse, unknown, ThrowOnError>;
|
|
668
668
|
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CancelBroadcastResponse, unknown, ThrowOnError>;
|
|
669
|
-
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastRecipientsResponse,
|
|
670
|
-
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AddBroadcastRecipientsResponse,
|
|
669
|
+
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastRecipientsResponse, unknown, ThrowOnError>;
|
|
670
|
+
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AddBroadcastRecipientsResponse, unknown, ThrowOnError>;
|
|
671
671
|
};
|
|
672
672
|
/**
|
|
673
673
|
* workflows API
|
|
@@ -707,7 +707,7 @@ declare class Zernio {
|
|
|
707
707
|
* commentautomations API
|
|
708
708
|
*/
|
|
709
709
|
commentautomations: {
|
|
710
|
-
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse,
|
|
710
|
+
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, unknown, ThrowOnError>;
|
|
711
711
|
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
|
|
712
712
|
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
|
|
713
713
|
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
|
|
@@ -5007,15 +5007,15 @@ type UsageMetering = {
|
|
|
5007
5007
|
*/
|
|
5008
5008
|
tax?: {
|
|
5009
5009
|
/**
|
|
5010
|
-
* Estimated tax in USD
|
|
5010
|
+
* Estimated tax in USD, added on top of `totals.total`.
|
|
5011
5011
|
*/
|
|
5012
5012
|
taxUsd?: number;
|
|
5013
5013
|
/**
|
|
5014
|
-
* Combined rate percentage
|
|
5014
|
+
* Combined rate percentage, e.g. 21.
|
|
5015
5015
|
*/
|
|
5016
5016
|
ratePercent?: (number) | null;
|
|
5017
5017
|
/**
|
|
5018
|
-
* Human jurisdiction label
|
|
5018
|
+
* Human jurisdiction label, e.g. "ES VAT" or "WA sales tax".
|
|
5019
5019
|
*/
|
|
5020
5020
|
jurisdictionLabel?: (string) | null;
|
|
5021
5021
|
/**
|
|
@@ -8700,9 +8700,9 @@ type UpdateAccountGroupResponse = ({
|
|
|
8700
8700
|
[key: string]: unknown;
|
|
8701
8701
|
};
|
|
8702
8702
|
});
|
|
8703
|
-
type UpdateAccountGroupError = ({
|
|
8703
|
+
type UpdateAccountGroupError = (unknown | {
|
|
8704
8704
|
error?: string;
|
|
8705
|
-
}
|
|
8705
|
+
});
|
|
8706
8706
|
type DeleteAccountGroupData = {
|
|
8707
8707
|
path: {
|
|
8708
8708
|
groupId: string;
|
|
@@ -8711,7 +8711,7 @@ type DeleteAccountGroupData = {
|
|
|
8711
8711
|
type DeleteAccountGroupResponse = ({
|
|
8712
8712
|
message?: string;
|
|
8713
8713
|
});
|
|
8714
|
-
type DeleteAccountGroupError = ({
|
|
8714
|
+
type DeleteAccountGroupError = (unknown | {
|
|
8715
8715
|
error?: string;
|
|
8716
8716
|
});
|
|
8717
8717
|
type GetMediaPresignedUrlData = {
|
|
@@ -14662,10 +14662,21 @@ type SendInboxMessageData = {
|
|
|
14662
14662
|
}>;
|
|
14663
14663
|
/**
|
|
14664
14664
|
* Action buttons. Mutually exclusive with quickReplies. Max 3 items.
|
|
14665
|
+
*
|
|
14666
|
+
* WhatsApp: buttons always render as interactive reply buttons.
|
|
14667
|
+
* Only `title` and `payload` are used — `type`, `url`, and `phone`
|
|
14668
|
+
* are ignored (WhatsApp has no URL/phone button in this field; use
|
|
14669
|
+
* the `interactive` field with `type: cta_url` for a link button).
|
|
14670
|
+
* `payload` becomes the button reply ID delivered on the
|
|
14671
|
+
* `message.received` webhook when the user taps. To send a simple
|
|
14672
|
+
* reply-button message, provide `title` + `payload` and set
|
|
14673
|
+
* `type: postback`, e.g.
|
|
14674
|
+
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
14675
|
+
*
|
|
14665
14676
|
*/
|
|
14666
14677
|
buttons?: Array<{
|
|
14667
14678
|
/**
|
|
14668
|
-
* Button type. phone is Facebook only.
|
|
14679
|
+
* Button type. phone is Facebook only. Ignored on WhatsApp (buttons always render as reply buttons).
|
|
14669
14680
|
*/
|
|
14670
14681
|
type: 'url' | 'postback' | 'phone';
|
|
14671
14682
|
/**
|
|
@@ -14673,11 +14684,11 @@ type SendInboxMessageData = {
|
|
|
14673
14684
|
*/
|
|
14674
14685
|
title: string;
|
|
14675
14686
|
/**
|
|
14676
|
-
* URL for url-type buttons
|
|
14687
|
+
* URL for url-type buttons (Facebook/Instagram only)
|
|
14677
14688
|
*/
|
|
14678
14689
|
url?: string;
|
|
14679
14690
|
/**
|
|
14680
|
-
* Payload for postback-type buttons
|
|
14691
|
+
* Payload for postback-type buttons. On WhatsApp, this is the reply ID returned on the message.received webhook when the button is tapped.
|
|
14681
14692
|
*/
|
|
14682
14693
|
payload?: string;
|
|
14683
14694
|
/**
|
|
@@ -17314,7 +17325,7 @@ type StartSmsRegistrationData = {
|
|
|
17314
17325
|
messageFlow: string;
|
|
17315
17326
|
sample1: string;
|
|
17316
17327
|
/**
|
|
17317
|
-
* Second example message; carriers require two distinct samples
|
|
17328
|
+
* Second example message; carriers require two distinct samples, so it must differ from sample1.
|
|
17318
17329
|
*/
|
|
17319
17330
|
sample2: string;
|
|
17320
17331
|
helpMessage?: string;
|
|
@@ -20604,7 +20615,7 @@ type ListContactsResponse = ({
|
|
|
20604
20615
|
hasMore?: boolean;
|
|
20605
20616
|
};
|
|
20606
20617
|
});
|
|
20607
|
-
type ListContactsError = ({
|
|
20618
|
+
type ListContactsError = (unknown | {
|
|
20608
20619
|
error?: string;
|
|
20609
20620
|
});
|
|
20610
20621
|
type CreateContactData = {
|
|
@@ -20652,9 +20663,9 @@ type CreateContactResponse = ({
|
|
|
20652
20663
|
};
|
|
20653
20664
|
warning?: string;
|
|
20654
20665
|
});
|
|
20655
|
-
type CreateContactError = ({
|
|
20666
|
+
type CreateContactError = (unknown | {
|
|
20656
20667
|
error?: string;
|
|
20657
|
-
}
|
|
20668
|
+
});
|
|
20658
20669
|
type GetContactData = {
|
|
20659
20670
|
path: {
|
|
20660
20671
|
contactId: string;
|
|
@@ -20710,7 +20721,7 @@ type GetContactResponse = ({
|
|
|
20710
20721
|
createdAt?: string;
|
|
20711
20722
|
}>;
|
|
20712
20723
|
});
|
|
20713
|
-
type GetContactError = ({
|
|
20724
|
+
type GetContactError = (unknown | {
|
|
20714
20725
|
error?: string;
|
|
20715
20726
|
});
|
|
20716
20727
|
type UpdateContactData = {
|
|
@@ -20743,7 +20754,7 @@ type UpdateContactResponse = ({
|
|
|
20743
20754
|
updatedAt?: string;
|
|
20744
20755
|
};
|
|
20745
20756
|
});
|
|
20746
|
-
type UpdateContactError = ({
|
|
20757
|
+
type UpdateContactError = (unknown | {
|
|
20747
20758
|
error?: string;
|
|
20748
20759
|
});
|
|
20749
20760
|
type DeleteContactData = {
|
|
@@ -20752,7 +20763,7 @@ type DeleteContactData = {
|
|
|
20752
20763
|
};
|
|
20753
20764
|
};
|
|
20754
20765
|
type DeleteContactResponse = (unknown);
|
|
20755
|
-
type DeleteContactError = ({
|
|
20766
|
+
type DeleteContactError = (unknown | {
|
|
20756
20767
|
error?: string;
|
|
20757
20768
|
});
|
|
20758
20769
|
type GetContactChannelsData = {
|
|
@@ -20776,7 +20787,7 @@ type GetContactChannelsResponse = ({
|
|
|
20776
20787
|
createdAt?: string;
|
|
20777
20788
|
}>;
|
|
20778
20789
|
});
|
|
20779
|
-
type GetContactChannelsError = ({
|
|
20790
|
+
type GetContactChannelsError = (unknown | {
|
|
20780
20791
|
error?: string;
|
|
20781
20792
|
});
|
|
20782
20793
|
type BulkCreateContactsData = {
|
|
@@ -20803,7 +20814,7 @@ type BulkCreateContactsResponse = ({
|
|
|
20803
20814
|
}>;
|
|
20804
20815
|
total?: number;
|
|
20805
20816
|
});
|
|
20806
|
-
type BulkCreateContactsError = ({
|
|
20817
|
+
type BulkCreateContactsError = (unknown | {
|
|
20807
20818
|
error?: string;
|
|
20808
20819
|
});
|
|
20809
20820
|
type SetContactFieldValueData = {
|
|
@@ -20960,7 +20971,7 @@ type ListBroadcastsResponse = ({
|
|
|
20960
20971
|
hasMore?: boolean;
|
|
20961
20972
|
};
|
|
20962
20973
|
});
|
|
20963
|
-
type ListBroadcastsError = ({
|
|
20974
|
+
type ListBroadcastsError = (unknown | {
|
|
20964
20975
|
error?: string;
|
|
20965
20976
|
});
|
|
20966
20977
|
type CreateBroadcastData = {
|
|
@@ -21018,7 +21029,7 @@ type CreateBroadcastResponse = ({
|
|
|
21018
21029
|
createdAt?: string;
|
|
21019
21030
|
};
|
|
21020
21031
|
});
|
|
21021
|
-
type CreateBroadcastError = ({
|
|
21032
|
+
type CreateBroadcastError = (unknown | {
|
|
21022
21033
|
error?: string;
|
|
21023
21034
|
});
|
|
21024
21035
|
type GetBroadcastData = {
|
|
@@ -21220,7 +21231,7 @@ type ListBroadcastRecipientsResponse = ({
|
|
|
21220
21231
|
hasMore?: boolean;
|
|
21221
21232
|
};
|
|
21222
21233
|
});
|
|
21223
|
-
type ListBroadcastRecipientsError = ({
|
|
21234
|
+
type ListBroadcastRecipientsError = (unknown | {
|
|
21224
21235
|
error?: string;
|
|
21225
21236
|
});
|
|
21226
21237
|
type AddBroadcastRecipientsData = {
|
|
@@ -21253,7 +21264,7 @@ type AddBroadcastRecipientsResponse = ({
|
|
|
21253
21264
|
*/
|
|
21254
21265
|
skipped?: number;
|
|
21255
21266
|
});
|
|
21256
|
-
type AddBroadcastRecipientsError = ({
|
|
21267
|
+
type AddBroadcastRecipientsError = (unknown | {
|
|
21257
21268
|
error?: string;
|
|
21258
21269
|
});
|
|
21259
21270
|
type ListWorkflowsData = {
|
|
@@ -21999,7 +22010,7 @@ type ListCommentAutomationsResponse = ({
|
|
|
21999
22010
|
createdAt?: string;
|
|
22000
22011
|
}>;
|
|
22001
22012
|
});
|
|
22002
|
-
type ListCommentAutomationsError = ({
|
|
22013
|
+
type ListCommentAutomationsError = (unknown | {
|
|
22003
22014
|
error?: string;
|
|
22004
22015
|
});
|
|
22005
22016
|
type CreateCommentAutomationData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ declare class Zernio {
|
|
|
111
111
|
listAccountGroups: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<unknown, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListAccountGroupsResponse, ListAccountGroupsError, ThrowOnError>;
|
|
112
112
|
createAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateAccountGroupResponse, unknown, ThrowOnError>;
|
|
113
113
|
updateAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateAccountGroupResponse, unknown, ThrowOnError>;
|
|
114
|
-
deleteAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAccountGroupResponse,
|
|
114
|
+
deleteAccountGroup: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteAccountGroupData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<DeleteAccountGroupResponse, unknown, ThrowOnError>;
|
|
115
115
|
};
|
|
116
116
|
/**
|
|
117
117
|
* Media API - Upload and manage media files
|
|
@@ -635,13 +635,13 @@ declare class Zernio {
|
|
|
635
635
|
* contacts API
|
|
636
636
|
*/
|
|
637
637
|
contacts: {
|
|
638
|
-
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse,
|
|
638
|
+
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse, unknown, ThrowOnError>;
|
|
639
639
|
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateContactResponse, unknown, ThrowOnError>;
|
|
640
|
-
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse,
|
|
641
|
-
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse,
|
|
642
|
-
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown,
|
|
643
|
-
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse,
|
|
644
|
-
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse,
|
|
640
|
+
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse, unknown, ThrowOnError>;
|
|
641
|
+
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse, unknown, ThrowOnError>;
|
|
642
|
+
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
|
|
643
|
+
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse, unknown, ThrowOnError>;
|
|
644
|
+
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse, unknown, ThrowOnError>;
|
|
645
645
|
};
|
|
646
646
|
/**
|
|
647
647
|
* customfields API
|
|
@@ -658,16 +658,16 @@ declare class Zernio {
|
|
|
658
658
|
* broadcasts API
|
|
659
659
|
*/
|
|
660
660
|
broadcasts: {
|
|
661
|
-
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse,
|
|
662
|
-
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateBroadcastResponse,
|
|
661
|
+
listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastsResponse, unknown, ThrowOnError>;
|
|
662
|
+
createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateBroadcastResponse, unknown, ThrowOnError>;
|
|
663
663
|
getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetBroadcastResponse, GetBroadcastError, ThrowOnError>;
|
|
664
664
|
updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateBroadcastResponse, UpdateBroadcastError, ThrowOnError>;
|
|
665
665
|
deleteBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteBroadcastError, ThrowOnError>;
|
|
666
666
|
sendBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SendBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<SendBroadcastResponse, unknown, ThrowOnError>;
|
|
667
667
|
scheduleBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ScheduleBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ScheduleBroadcastResponse, unknown, ThrowOnError>;
|
|
668
668
|
cancelBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CancelBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CancelBroadcastResponse, unknown, ThrowOnError>;
|
|
669
|
-
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastRecipientsResponse,
|
|
670
|
-
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AddBroadcastRecipientsResponse,
|
|
669
|
+
listBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListBroadcastRecipientsResponse, unknown, ThrowOnError>;
|
|
670
|
+
addBroadcastRecipients: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<AddBroadcastRecipientsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AddBroadcastRecipientsResponse, unknown, ThrowOnError>;
|
|
671
671
|
};
|
|
672
672
|
/**
|
|
673
673
|
* workflows API
|
|
@@ -707,7 +707,7 @@ declare class Zernio {
|
|
|
707
707
|
* commentautomations API
|
|
708
708
|
*/
|
|
709
709
|
commentautomations: {
|
|
710
|
-
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse,
|
|
710
|
+
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, unknown, ThrowOnError>;
|
|
711
711
|
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
|
|
712
712
|
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
|
|
713
713
|
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
|
|
@@ -5007,15 +5007,15 @@ type UsageMetering = {
|
|
|
5007
5007
|
*/
|
|
5008
5008
|
tax?: {
|
|
5009
5009
|
/**
|
|
5010
|
-
* Estimated tax in USD
|
|
5010
|
+
* Estimated tax in USD, added on top of `totals.total`.
|
|
5011
5011
|
*/
|
|
5012
5012
|
taxUsd?: number;
|
|
5013
5013
|
/**
|
|
5014
|
-
* Combined rate percentage
|
|
5014
|
+
* Combined rate percentage, e.g. 21.
|
|
5015
5015
|
*/
|
|
5016
5016
|
ratePercent?: (number) | null;
|
|
5017
5017
|
/**
|
|
5018
|
-
* Human jurisdiction label
|
|
5018
|
+
* Human jurisdiction label, e.g. "ES VAT" or "WA sales tax".
|
|
5019
5019
|
*/
|
|
5020
5020
|
jurisdictionLabel?: (string) | null;
|
|
5021
5021
|
/**
|
|
@@ -8700,9 +8700,9 @@ type UpdateAccountGroupResponse = ({
|
|
|
8700
8700
|
[key: string]: unknown;
|
|
8701
8701
|
};
|
|
8702
8702
|
});
|
|
8703
|
-
type UpdateAccountGroupError = ({
|
|
8703
|
+
type UpdateAccountGroupError = (unknown | {
|
|
8704
8704
|
error?: string;
|
|
8705
|
-
}
|
|
8705
|
+
});
|
|
8706
8706
|
type DeleteAccountGroupData = {
|
|
8707
8707
|
path: {
|
|
8708
8708
|
groupId: string;
|
|
@@ -8711,7 +8711,7 @@ type DeleteAccountGroupData = {
|
|
|
8711
8711
|
type DeleteAccountGroupResponse = ({
|
|
8712
8712
|
message?: string;
|
|
8713
8713
|
});
|
|
8714
|
-
type DeleteAccountGroupError = ({
|
|
8714
|
+
type DeleteAccountGroupError = (unknown | {
|
|
8715
8715
|
error?: string;
|
|
8716
8716
|
});
|
|
8717
8717
|
type GetMediaPresignedUrlData = {
|
|
@@ -14662,10 +14662,21 @@ type SendInboxMessageData = {
|
|
|
14662
14662
|
}>;
|
|
14663
14663
|
/**
|
|
14664
14664
|
* Action buttons. Mutually exclusive with quickReplies. Max 3 items.
|
|
14665
|
+
*
|
|
14666
|
+
* WhatsApp: buttons always render as interactive reply buttons.
|
|
14667
|
+
* Only `title` and `payload` are used — `type`, `url`, and `phone`
|
|
14668
|
+
* are ignored (WhatsApp has no URL/phone button in this field; use
|
|
14669
|
+
* the `interactive` field with `type: cta_url` for a link button).
|
|
14670
|
+
* `payload` becomes the button reply ID delivered on the
|
|
14671
|
+
* `message.received` webhook when the user taps. To send a simple
|
|
14672
|
+
* reply-button message, provide `title` + `payload` and set
|
|
14673
|
+
* `type: postback`, e.g.
|
|
14674
|
+
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
14675
|
+
*
|
|
14665
14676
|
*/
|
|
14666
14677
|
buttons?: Array<{
|
|
14667
14678
|
/**
|
|
14668
|
-
* Button type. phone is Facebook only.
|
|
14679
|
+
* Button type. phone is Facebook only. Ignored on WhatsApp (buttons always render as reply buttons).
|
|
14669
14680
|
*/
|
|
14670
14681
|
type: 'url' | 'postback' | 'phone';
|
|
14671
14682
|
/**
|
|
@@ -14673,11 +14684,11 @@ type SendInboxMessageData = {
|
|
|
14673
14684
|
*/
|
|
14674
14685
|
title: string;
|
|
14675
14686
|
/**
|
|
14676
|
-
* URL for url-type buttons
|
|
14687
|
+
* URL for url-type buttons (Facebook/Instagram only)
|
|
14677
14688
|
*/
|
|
14678
14689
|
url?: string;
|
|
14679
14690
|
/**
|
|
14680
|
-
* Payload for postback-type buttons
|
|
14691
|
+
* Payload for postback-type buttons. On WhatsApp, this is the reply ID returned on the message.received webhook when the button is tapped.
|
|
14681
14692
|
*/
|
|
14682
14693
|
payload?: string;
|
|
14683
14694
|
/**
|
|
@@ -17314,7 +17325,7 @@ type StartSmsRegistrationData = {
|
|
|
17314
17325
|
messageFlow: string;
|
|
17315
17326
|
sample1: string;
|
|
17316
17327
|
/**
|
|
17317
|
-
* Second example message; carriers require two distinct samples
|
|
17328
|
+
* Second example message; carriers require two distinct samples, so it must differ from sample1.
|
|
17318
17329
|
*/
|
|
17319
17330
|
sample2: string;
|
|
17320
17331
|
helpMessage?: string;
|
|
@@ -20604,7 +20615,7 @@ type ListContactsResponse = ({
|
|
|
20604
20615
|
hasMore?: boolean;
|
|
20605
20616
|
};
|
|
20606
20617
|
});
|
|
20607
|
-
type ListContactsError = ({
|
|
20618
|
+
type ListContactsError = (unknown | {
|
|
20608
20619
|
error?: string;
|
|
20609
20620
|
});
|
|
20610
20621
|
type CreateContactData = {
|
|
@@ -20652,9 +20663,9 @@ type CreateContactResponse = ({
|
|
|
20652
20663
|
};
|
|
20653
20664
|
warning?: string;
|
|
20654
20665
|
});
|
|
20655
|
-
type CreateContactError = ({
|
|
20666
|
+
type CreateContactError = (unknown | {
|
|
20656
20667
|
error?: string;
|
|
20657
|
-
}
|
|
20668
|
+
});
|
|
20658
20669
|
type GetContactData = {
|
|
20659
20670
|
path: {
|
|
20660
20671
|
contactId: string;
|
|
@@ -20710,7 +20721,7 @@ type GetContactResponse = ({
|
|
|
20710
20721
|
createdAt?: string;
|
|
20711
20722
|
}>;
|
|
20712
20723
|
});
|
|
20713
|
-
type GetContactError = ({
|
|
20724
|
+
type GetContactError = (unknown | {
|
|
20714
20725
|
error?: string;
|
|
20715
20726
|
});
|
|
20716
20727
|
type UpdateContactData = {
|
|
@@ -20743,7 +20754,7 @@ type UpdateContactResponse = ({
|
|
|
20743
20754
|
updatedAt?: string;
|
|
20744
20755
|
};
|
|
20745
20756
|
});
|
|
20746
|
-
type UpdateContactError = ({
|
|
20757
|
+
type UpdateContactError = (unknown | {
|
|
20747
20758
|
error?: string;
|
|
20748
20759
|
});
|
|
20749
20760
|
type DeleteContactData = {
|
|
@@ -20752,7 +20763,7 @@ type DeleteContactData = {
|
|
|
20752
20763
|
};
|
|
20753
20764
|
};
|
|
20754
20765
|
type DeleteContactResponse = (unknown);
|
|
20755
|
-
type DeleteContactError = ({
|
|
20766
|
+
type DeleteContactError = (unknown | {
|
|
20756
20767
|
error?: string;
|
|
20757
20768
|
});
|
|
20758
20769
|
type GetContactChannelsData = {
|
|
@@ -20776,7 +20787,7 @@ type GetContactChannelsResponse = ({
|
|
|
20776
20787
|
createdAt?: string;
|
|
20777
20788
|
}>;
|
|
20778
20789
|
});
|
|
20779
|
-
type GetContactChannelsError = ({
|
|
20790
|
+
type GetContactChannelsError = (unknown | {
|
|
20780
20791
|
error?: string;
|
|
20781
20792
|
});
|
|
20782
20793
|
type BulkCreateContactsData = {
|
|
@@ -20803,7 +20814,7 @@ type BulkCreateContactsResponse = ({
|
|
|
20803
20814
|
}>;
|
|
20804
20815
|
total?: number;
|
|
20805
20816
|
});
|
|
20806
|
-
type BulkCreateContactsError = ({
|
|
20817
|
+
type BulkCreateContactsError = (unknown | {
|
|
20807
20818
|
error?: string;
|
|
20808
20819
|
});
|
|
20809
20820
|
type SetContactFieldValueData = {
|
|
@@ -20960,7 +20971,7 @@ type ListBroadcastsResponse = ({
|
|
|
20960
20971
|
hasMore?: boolean;
|
|
20961
20972
|
};
|
|
20962
20973
|
});
|
|
20963
|
-
type ListBroadcastsError = ({
|
|
20974
|
+
type ListBroadcastsError = (unknown | {
|
|
20964
20975
|
error?: string;
|
|
20965
20976
|
});
|
|
20966
20977
|
type CreateBroadcastData = {
|
|
@@ -21018,7 +21029,7 @@ type CreateBroadcastResponse = ({
|
|
|
21018
21029
|
createdAt?: string;
|
|
21019
21030
|
};
|
|
21020
21031
|
});
|
|
21021
|
-
type CreateBroadcastError = ({
|
|
21032
|
+
type CreateBroadcastError = (unknown | {
|
|
21022
21033
|
error?: string;
|
|
21023
21034
|
});
|
|
21024
21035
|
type GetBroadcastData = {
|
|
@@ -21220,7 +21231,7 @@ type ListBroadcastRecipientsResponse = ({
|
|
|
21220
21231
|
hasMore?: boolean;
|
|
21221
21232
|
};
|
|
21222
21233
|
});
|
|
21223
|
-
type ListBroadcastRecipientsError = ({
|
|
21234
|
+
type ListBroadcastRecipientsError = (unknown | {
|
|
21224
21235
|
error?: string;
|
|
21225
21236
|
});
|
|
21226
21237
|
type AddBroadcastRecipientsData = {
|
|
@@ -21253,7 +21264,7 @@ type AddBroadcastRecipientsResponse = ({
|
|
|
21253
21264
|
*/
|
|
21254
21265
|
skipped?: number;
|
|
21255
21266
|
});
|
|
21256
|
-
type AddBroadcastRecipientsError = ({
|
|
21267
|
+
type AddBroadcastRecipientsError = (unknown | {
|
|
21257
21268
|
error?: string;
|
|
21258
21269
|
});
|
|
21259
21270
|
type ListWorkflowsData = {
|
|
@@ -21999,7 +22010,7 @@ type ListCommentAutomationsResponse = ({
|
|
|
21999
22010
|
createdAt?: string;
|
|
22000
22011
|
}>;
|
|
22001
22012
|
});
|
|
22002
|
-
type ListCommentAutomationsError = ({
|
|
22013
|
+
type ListCommentAutomationsError = (unknown | {
|
|
22003
22014
|
error?: string;
|
|
22004
22015
|
});
|
|
22005
22016
|
type CreateCommentAutomationData = {
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.373",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.373",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
|
@@ -4298,15 +4298,15 @@ export type UsageMetering = {
|
|
|
4298
4298
|
*/
|
|
4299
4299
|
tax?: {
|
|
4300
4300
|
/**
|
|
4301
|
-
* Estimated tax in USD
|
|
4301
|
+
* Estimated tax in USD, added on top of `totals.total`.
|
|
4302
4302
|
*/
|
|
4303
4303
|
taxUsd?: number;
|
|
4304
4304
|
/**
|
|
4305
|
-
* Combined rate percentage
|
|
4305
|
+
* Combined rate percentage, e.g. 21.
|
|
4306
4306
|
*/
|
|
4307
4307
|
ratePercent?: (number) | null;
|
|
4308
4308
|
/**
|
|
4309
|
-
* Human jurisdiction label
|
|
4309
|
+
* Human jurisdiction label, e.g. "ES VAT" or "WA sales tax".
|
|
4310
4310
|
*/
|
|
4311
4311
|
jurisdictionLabel?: (string) | null;
|
|
4312
4312
|
/**
|
|
@@ -8180,9 +8180,9 @@ export type UpdateAccountGroupResponse = ({
|
|
|
8180
8180
|
};
|
|
8181
8181
|
});
|
|
8182
8182
|
|
|
8183
|
-
export type UpdateAccountGroupError = ({
|
|
8183
|
+
export type UpdateAccountGroupError = (unknown | {
|
|
8184
8184
|
error?: string;
|
|
8185
|
-
}
|
|
8185
|
+
});
|
|
8186
8186
|
|
|
8187
8187
|
export type DeleteAccountGroupData = {
|
|
8188
8188
|
path: {
|
|
@@ -8194,7 +8194,7 @@ export type DeleteAccountGroupResponse = ({
|
|
|
8194
8194
|
message?: string;
|
|
8195
8195
|
});
|
|
8196
8196
|
|
|
8197
|
-
export type DeleteAccountGroupError = ({
|
|
8197
|
+
export type DeleteAccountGroupError = (unknown | {
|
|
8198
8198
|
error?: string;
|
|
8199
8199
|
});
|
|
8200
8200
|
|
|
@@ -14594,10 +14594,21 @@ export type SendInboxMessageData = {
|
|
|
14594
14594
|
}>;
|
|
14595
14595
|
/**
|
|
14596
14596
|
* Action buttons. Mutually exclusive with quickReplies. Max 3 items.
|
|
14597
|
+
*
|
|
14598
|
+
* WhatsApp: buttons always render as interactive reply buttons.
|
|
14599
|
+
* Only `title` and `payload` are used — `type`, `url`, and `phone`
|
|
14600
|
+
* are ignored (WhatsApp has no URL/phone button in this field; use
|
|
14601
|
+
* the `interactive` field with `type: cta_url` for a link button).
|
|
14602
|
+
* `payload` becomes the button reply ID delivered on the
|
|
14603
|
+
* `message.received` webhook when the user taps. To send a simple
|
|
14604
|
+
* reply-button message, provide `title` + `payload` and set
|
|
14605
|
+
* `type: postback`, e.g.
|
|
14606
|
+
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
14607
|
+
*
|
|
14597
14608
|
*/
|
|
14598
14609
|
buttons?: Array<{
|
|
14599
14610
|
/**
|
|
14600
|
-
* Button type. phone is Facebook only.
|
|
14611
|
+
* Button type. phone is Facebook only. Ignored on WhatsApp (buttons always render as reply buttons).
|
|
14601
14612
|
*/
|
|
14602
14613
|
type: 'url' | 'postback' | 'phone';
|
|
14603
14614
|
/**
|
|
@@ -14605,11 +14616,11 @@ export type SendInboxMessageData = {
|
|
|
14605
14616
|
*/
|
|
14606
14617
|
title: string;
|
|
14607
14618
|
/**
|
|
14608
|
-
* URL for url-type buttons
|
|
14619
|
+
* URL for url-type buttons (Facebook/Instagram only)
|
|
14609
14620
|
*/
|
|
14610
14621
|
url?: string;
|
|
14611
14622
|
/**
|
|
14612
|
-
* Payload for postback-type buttons
|
|
14623
|
+
* Payload for postback-type buttons. On WhatsApp, this is the reply ID returned on the message.received webhook when the button is tapped.
|
|
14613
14624
|
*/
|
|
14614
14625
|
payload?: string;
|
|
14615
14626
|
/**
|
|
@@ -17452,7 +17463,7 @@ export type StartSmsRegistrationData = {
|
|
|
17452
17463
|
messageFlow: string;
|
|
17453
17464
|
sample1: string;
|
|
17454
17465
|
/**
|
|
17455
|
-
* Second example message; carriers require two distinct samples
|
|
17466
|
+
* Second example message; carriers require two distinct samples, so it must differ from sample1.
|
|
17456
17467
|
*/
|
|
17457
17468
|
sample2: string;
|
|
17458
17469
|
helpMessage?: string;
|
|
@@ -21031,7 +21042,7 @@ export type ListContactsResponse = ({
|
|
|
21031
21042
|
};
|
|
21032
21043
|
});
|
|
21033
21044
|
|
|
21034
|
-
export type ListContactsError = ({
|
|
21045
|
+
export type ListContactsError = (unknown | {
|
|
21035
21046
|
error?: string;
|
|
21036
21047
|
});
|
|
21037
21048
|
|
|
@@ -21082,9 +21093,9 @@ export type CreateContactResponse = ({
|
|
|
21082
21093
|
warning?: string;
|
|
21083
21094
|
});
|
|
21084
21095
|
|
|
21085
|
-
export type CreateContactError = ({
|
|
21096
|
+
export type CreateContactError = (unknown | {
|
|
21086
21097
|
error?: string;
|
|
21087
|
-
}
|
|
21098
|
+
});
|
|
21088
21099
|
|
|
21089
21100
|
export type GetContactData = {
|
|
21090
21101
|
path: {
|
|
@@ -21143,7 +21154,7 @@ export type GetContactResponse = ({
|
|
|
21143
21154
|
}>;
|
|
21144
21155
|
});
|
|
21145
21156
|
|
|
21146
|
-
export type GetContactError = ({
|
|
21157
|
+
export type GetContactError = (unknown | {
|
|
21147
21158
|
error?: string;
|
|
21148
21159
|
});
|
|
21149
21160
|
|
|
@@ -21179,7 +21190,7 @@ export type UpdateContactResponse = ({
|
|
|
21179
21190
|
};
|
|
21180
21191
|
});
|
|
21181
21192
|
|
|
21182
|
-
export type UpdateContactError = ({
|
|
21193
|
+
export type UpdateContactError = (unknown | {
|
|
21183
21194
|
error?: string;
|
|
21184
21195
|
});
|
|
21185
21196
|
|
|
@@ -21191,7 +21202,7 @@ export type DeleteContactData = {
|
|
|
21191
21202
|
|
|
21192
21203
|
export type DeleteContactResponse = (unknown);
|
|
21193
21204
|
|
|
21194
|
-
export type DeleteContactError = ({
|
|
21205
|
+
export type DeleteContactError = (unknown | {
|
|
21195
21206
|
error?: string;
|
|
21196
21207
|
});
|
|
21197
21208
|
|
|
@@ -21218,7 +21229,7 @@ export type GetContactChannelsResponse = ({
|
|
|
21218
21229
|
}>;
|
|
21219
21230
|
});
|
|
21220
21231
|
|
|
21221
|
-
export type GetContactChannelsError = ({
|
|
21232
|
+
export type GetContactChannelsError = (unknown | {
|
|
21222
21233
|
error?: string;
|
|
21223
21234
|
});
|
|
21224
21235
|
|
|
@@ -21248,7 +21259,7 @@ export type BulkCreateContactsResponse = ({
|
|
|
21248
21259
|
total?: number;
|
|
21249
21260
|
});
|
|
21250
21261
|
|
|
21251
|
-
export type BulkCreateContactsError = ({
|
|
21262
|
+
export type BulkCreateContactsError = (unknown | {
|
|
21252
21263
|
error?: string;
|
|
21253
21264
|
});
|
|
21254
21265
|
|
|
@@ -21426,7 +21437,7 @@ export type ListBroadcastsResponse = ({
|
|
|
21426
21437
|
};
|
|
21427
21438
|
});
|
|
21428
21439
|
|
|
21429
|
-
export type ListBroadcastsError = ({
|
|
21440
|
+
export type ListBroadcastsError = (unknown | {
|
|
21430
21441
|
error?: string;
|
|
21431
21442
|
});
|
|
21432
21443
|
|
|
@@ -21487,7 +21498,7 @@ export type CreateBroadcastResponse = ({
|
|
|
21487
21498
|
};
|
|
21488
21499
|
});
|
|
21489
21500
|
|
|
21490
|
-
export type CreateBroadcastError = ({
|
|
21501
|
+
export type CreateBroadcastError = (unknown | {
|
|
21491
21502
|
error?: string;
|
|
21492
21503
|
});
|
|
21493
21504
|
|
|
@@ -21710,7 +21721,7 @@ export type ListBroadcastRecipientsResponse = ({
|
|
|
21710
21721
|
};
|
|
21711
21722
|
});
|
|
21712
21723
|
|
|
21713
|
-
export type ListBroadcastRecipientsError = ({
|
|
21724
|
+
export type ListBroadcastRecipientsError = (unknown | {
|
|
21714
21725
|
error?: string;
|
|
21715
21726
|
});
|
|
21716
21727
|
|
|
@@ -21746,7 +21757,7 @@ export type AddBroadcastRecipientsResponse = ({
|
|
|
21746
21757
|
skipped?: number;
|
|
21747
21758
|
});
|
|
21748
21759
|
|
|
21749
|
-
export type AddBroadcastRecipientsError = ({
|
|
21760
|
+
export type AddBroadcastRecipientsError = (unknown | {
|
|
21750
21761
|
error?: string;
|
|
21751
21762
|
});
|
|
21752
21763
|
|
|
@@ -22567,7 +22578,7 @@ export type ListCommentAutomationsResponse = ({
|
|
|
22567
22578
|
}>;
|
|
22568
22579
|
});
|
|
22569
22580
|
|
|
22570
|
-
export type ListCommentAutomationsError = ({
|
|
22581
|
+
export type ListCommentAutomationsError = (unknown | {
|
|
22571
22582
|
error?: string;
|
|
22572
22583
|
});
|
|
22573
22584
|
|