@getlatedev/node 0.2.15 → 0.2.17
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 +266 -26
- package/dist/index.d.ts +266 -26
- package/package.json +1 -1
- package/src/generated/types.gen.ts +253 -13
package/dist/index.d.mts
CHANGED
|
@@ -404,13 +404,13 @@ declare class Zernio {
|
|
|
404
404
|
* contacts API
|
|
405
405
|
*/
|
|
406
406
|
contacts: {
|
|
407
|
-
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
408
|
-
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
409
|
-
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
410
|
-
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
407
|
+
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse, ListContactsError, ThrowOnError>;
|
|
408
|
+
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateContactResponse, unknown, ThrowOnError>;
|
|
409
|
+
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse, GetContactError, ThrowOnError>;
|
|
410
|
+
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse, UpdateContactError, ThrowOnError>;
|
|
411
411
|
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteContactError, ThrowOnError>;
|
|
412
|
-
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
413
|
-
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
412
|
+
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse, GetContactChannelsError, ThrowOnError>;
|
|
413
|
+
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>;
|
|
414
414
|
};
|
|
415
415
|
/**
|
|
416
416
|
* customfields API
|
|
@@ -418,9 +418,9 @@ declare class Zernio {
|
|
|
418
418
|
customfields: {
|
|
419
419
|
setContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SetContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, SetContactFieldValueError, ThrowOnError>;
|
|
420
420
|
clearContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ClearContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ClearContactFieldValueError, ThrowOnError>;
|
|
421
|
-
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
422
|
-
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
423
|
-
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
421
|
+
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCustomFieldsResponse, ListCustomFieldsError, ThrowOnError>;
|
|
422
|
+
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCustomFieldResponse, unknown, ThrowOnError>;
|
|
423
|
+
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCustomFieldResponse, UpdateCustomFieldError, ThrowOnError>;
|
|
424
424
|
deleteCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCustomFieldError, ThrowOnError>;
|
|
425
425
|
};
|
|
426
426
|
/**
|
|
@@ -458,11 +458,11 @@ declare class Zernio {
|
|
|
458
458
|
*/
|
|
459
459
|
commentautomations: {
|
|
460
460
|
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
|
|
461
|
-
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
462
|
-
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
463
|
-
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
461
|
+
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
|
|
462
|
+
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
|
|
463
|
+
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
|
|
464
464
|
deleteCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCommentAutomationError, ThrowOnError>;
|
|
465
|
-
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
465
|
+
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationLogsResponse, ListCommentAutomationLogsError, ThrowOnError>;
|
|
466
466
|
};
|
|
467
467
|
/**
|
|
468
468
|
* Create a new Zernio API client.
|
|
@@ -1884,6 +1884,10 @@ type parseMode = 'HTML' | 'Markdown' | 'MarkdownV2';
|
|
|
1884
1884
|
* Up to 10 images per carousel (no videos). Videos must be H.264/AAC MP4, max 5 min. Images JPEG/PNG, max 8 MB. Use threadItems for reply chains.
|
|
1885
1885
|
*/
|
|
1886
1886
|
type ThreadsPlatformData = {
|
|
1887
|
+
/**
|
|
1888
|
+
* Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
|
|
1889
|
+
*/
|
|
1890
|
+
topic_tag?: string;
|
|
1887
1891
|
/**
|
|
1888
1892
|
* Sequence of posts in a Threads thread (root then replies in order).
|
|
1889
1893
|
*/
|
|
@@ -8848,7 +8852,40 @@ type ListContactsData = {
|
|
|
8848
8852
|
tag?: string;
|
|
8849
8853
|
};
|
|
8850
8854
|
};
|
|
8851
|
-
type ListContactsResponse = (
|
|
8855
|
+
type ListContactsResponse = ({
|
|
8856
|
+
success?: boolean;
|
|
8857
|
+
contacts?: Array<{
|
|
8858
|
+
id?: string;
|
|
8859
|
+
name?: string;
|
|
8860
|
+
email?: string;
|
|
8861
|
+
company?: string;
|
|
8862
|
+
avatarUrl?: string;
|
|
8863
|
+
tags?: Array<(string)>;
|
|
8864
|
+
isSubscribed?: boolean;
|
|
8865
|
+
isBlocked?: boolean;
|
|
8866
|
+
lastMessageSentAt?: string;
|
|
8867
|
+
lastMessageReceivedAt?: string;
|
|
8868
|
+
messagesSentCount?: number;
|
|
8869
|
+
messagesReceivedCount?: number;
|
|
8870
|
+
customFields?: {
|
|
8871
|
+
[key: string]: unknown;
|
|
8872
|
+
};
|
|
8873
|
+
notes?: string;
|
|
8874
|
+
createdAt?: string;
|
|
8875
|
+
platform?: string;
|
|
8876
|
+
platformIdentifier?: string;
|
|
8877
|
+
displayIdentifier?: string;
|
|
8878
|
+
}>;
|
|
8879
|
+
filters?: {
|
|
8880
|
+
tags?: Array<(string)>;
|
|
8881
|
+
};
|
|
8882
|
+
pagination?: {
|
|
8883
|
+
total?: number;
|
|
8884
|
+
limit?: number;
|
|
8885
|
+
skip?: number;
|
|
8886
|
+
hasMore?: boolean;
|
|
8887
|
+
};
|
|
8888
|
+
});
|
|
8852
8889
|
type ListContactsError = ({
|
|
8853
8890
|
error?: string;
|
|
8854
8891
|
});
|
|
@@ -8870,7 +8907,33 @@ type CreateContactData = {
|
|
|
8870
8907
|
displayIdentifier?: string;
|
|
8871
8908
|
};
|
|
8872
8909
|
};
|
|
8873
|
-
type CreateContactResponse = (
|
|
8910
|
+
type CreateContactResponse = ({
|
|
8911
|
+
success?: boolean;
|
|
8912
|
+
contact?: {
|
|
8913
|
+
id?: string;
|
|
8914
|
+
name?: string;
|
|
8915
|
+
email?: string;
|
|
8916
|
+
company?: string;
|
|
8917
|
+
tags?: Array<(string)>;
|
|
8918
|
+
isSubscribed?: boolean;
|
|
8919
|
+
isBlocked?: boolean;
|
|
8920
|
+
customFields?: {
|
|
8921
|
+
[key: string]: unknown;
|
|
8922
|
+
};
|
|
8923
|
+
notes?: string;
|
|
8924
|
+
createdAt?: string;
|
|
8925
|
+
};
|
|
8926
|
+
/**
|
|
8927
|
+
* Created when accountId, platform, and platformIdentifier are provided
|
|
8928
|
+
*/
|
|
8929
|
+
channel?: {
|
|
8930
|
+
id?: string;
|
|
8931
|
+
platform?: string;
|
|
8932
|
+
platformIdentifier?: string;
|
|
8933
|
+
displayIdentifier?: string;
|
|
8934
|
+
};
|
|
8935
|
+
warning?: string;
|
|
8936
|
+
});
|
|
8874
8937
|
type CreateContactError = ({
|
|
8875
8938
|
error?: string;
|
|
8876
8939
|
} | unknown);
|
|
@@ -8879,7 +8942,36 @@ type GetContactData = {
|
|
|
8879
8942
|
contactId: string;
|
|
8880
8943
|
};
|
|
8881
8944
|
};
|
|
8882
|
-
type GetContactResponse = (
|
|
8945
|
+
type GetContactResponse = ({
|
|
8946
|
+
success?: boolean;
|
|
8947
|
+
contact?: {
|
|
8948
|
+
id?: string;
|
|
8949
|
+
name?: string;
|
|
8950
|
+
email?: string;
|
|
8951
|
+
company?: string;
|
|
8952
|
+
avatarUrl?: string;
|
|
8953
|
+
tags?: Array<(string)>;
|
|
8954
|
+
isSubscribed?: boolean;
|
|
8955
|
+
isBlocked?: boolean;
|
|
8956
|
+
customFields?: {
|
|
8957
|
+
[key: string]: unknown;
|
|
8958
|
+
};
|
|
8959
|
+
notes?: string;
|
|
8960
|
+
conversationIds?: Array<(string)>;
|
|
8961
|
+
createdAt?: string;
|
|
8962
|
+
updatedAt?: string;
|
|
8963
|
+
};
|
|
8964
|
+
channels?: Array<{
|
|
8965
|
+
id?: string;
|
|
8966
|
+
accountId?: string;
|
|
8967
|
+
platform?: string;
|
|
8968
|
+
platformIdentifier?: string;
|
|
8969
|
+
displayIdentifier?: string;
|
|
8970
|
+
isSubscribed?: boolean;
|
|
8971
|
+
conversationId?: string;
|
|
8972
|
+
createdAt?: string;
|
|
8973
|
+
}>;
|
|
8974
|
+
});
|
|
8883
8975
|
type GetContactError = ({
|
|
8884
8976
|
error?: string;
|
|
8885
8977
|
});
|
|
@@ -8898,7 +8990,21 @@ type UpdateContactData = {
|
|
|
8898
8990
|
contactId: string;
|
|
8899
8991
|
};
|
|
8900
8992
|
};
|
|
8901
|
-
type UpdateContactResponse = (
|
|
8993
|
+
type UpdateContactResponse = ({
|
|
8994
|
+
success?: boolean;
|
|
8995
|
+
contact?: {
|
|
8996
|
+
id?: string;
|
|
8997
|
+
name?: string;
|
|
8998
|
+
email?: string;
|
|
8999
|
+
company?: string;
|
|
9000
|
+
avatarUrl?: string;
|
|
9001
|
+
tags?: Array<(string)>;
|
|
9002
|
+
isSubscribed?: boolean;
|
|
9003
|
+
isBlocked?: boolean;
|
|
9004
|
+
notes?: string;
|
|
9005
|
+
updatedAt?: string;
|
|
9006
|
+
};
|
|
9007
|
+
});
|
|
8902
9008
|
type UpdateContactError = ({
|
|
8903
9009
|
error?: string;
|
|
8904
9010
|
});
|
|
@@ -8916,7 +9022,22 @@ type GetContactChannelsData = {
|
|
|
8916
9022
|
contactId: string;
|
|
8917
9023
|
};
|
|
8918
9024
|
};
|
|
8919
|
-
type GetContactChannelsResponse = (
|
|
9025
|
+
type GetContactChannelsResponse = ({
|
|
9026
|
+
success?: boolean;
|
|
9027
|
+
channels?: Array<{
|
|
9028
|
+
id?: string;
|
|
9029
|
+
accountId?: string;
|
|
9030
|
+
platform?: string;
|
|
9031
|
+
platformIdentifier?: string;
|
|
9032
|
+
displayIdentifier?: string;
|
|
9033
|
+
isSubscribed?: boolean;
|
|
9034
|
+
conversationId?: string;
|
|
9035
|
+
metadata?: {
|
|
9036
|
+
[key: string]: unknown;
|
|
9037
|
+
};
|
|
9038
|
+
createdAt?: string;
|
|
9039
|
+
}>;
|
|
9040
|
+
});
|
|
8920
9041
|
type GetContactChannelsError = ({
|
|
8921
9042
|
error?: string;
|
|
8922
9043
|
});
|
|
@@ -8935,7 +9056,15 @@ type BulkCreateContactsData = {
|
|
|
8935
9056
|
}>;
|
|
8936
9057
|
};
|
|
8937
9058
|
};
|
|
8938
|
-
type BulkCreateContactsResponse = (
|
|
9059
|
+
type BulkCreateContactsResponse = ({
|
|
9060
|
+
success?: boolean;
|
|
9061
|
+
created?: number;
|
|
9062
|
+
skipped?: number;
|
|
9063
|
+
errors?: Array<{
|
|
9064
|
+
[key: string]: unknown;
|
|
9065
|
+
}>;
|
|
9066
|
+
total?: number;
|
|
9067
|
+
});
|
|
8939
9068
|
type BulkCreateContactsError = ({
|
|
8940
9069
|
error?: string;
|
|
8941
9070
|
});
|
|
@@ -8973,7 +9102,17 @@ type ListCustomFieldsData = {
|
|
|
8973
9102
|
profileId?: string;
|
|
8974
9103
|
};
|
|
8975
9104
|
};
|
|
8976
|
-
type ListCustomFieldsResponse = (
|
|
9105
|
+
type ListCustomFieldsResponse = ({
|
|
9106
|
+
success?: boolean;
|
|
9107
|
+
fields?: Array<{
|
|
9108
|
+
id?: string;
|
|
9109
|
+
name?: string;
|
|
9110
|
+
slug?: string;
|
|
9111
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9112
|
+
options?: Array<(string)>;
|
|
9113
|
+
createdAt?: string;
|
|
9114
|
+
}>;
|
|
9115
|
+
});
|
|
8977
9116
|
type ListCustomFieldsError = ({
|
|
8978
9117
|
error?: string;
|
|
8979
9118
|
});
|
|
@@ -8992,7 +9131,17 @@ type CreateCustomFieldData = {
|
|
|
8992
9131
|
options?: Array<(string)>;
|
|
8993
9132
|
};
|
|
8994
9133
|
};
|
|
8995
|
-
type CreateCustomFieldResponse = (
|
|
9134
|
+
type CreateCustomFieldResponse = ({
|
|
9135
|
+
success?: boolean;
|
|
9136
|
+
field?: {
|
|
9137
|
+
id?: string;
|
|
9138
|
+
name?: string;
|
|
9139
|
+
slug?: string;
|
|
9140
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9141
|
+
options?: Array<(string)>;
|
|
9142
|
+
createdAt?: string;
|
|
9143
|
+
};
|
|
9144
|
+
});
|
|
8996
9145
|
type CreateCustomFieldError = ({
|
|
8997
9146
|
error?: string;
|
|
8998
9147
|
} | unknown);
|
|
@@ -9005,7 +9154,16 @@ type UpdateCustomFieldData = {
|
|
|
9005
9154
|
fieldId: string;
|
|
9006
9155
|
};
|
|
9007
9156
|
};
|
|
9008
|
-
type UpdateCustomFieldResponse = (
|
|
9157
|
+
type UpdateCustomFieldResponse = ({
|
|
9158
|
+
success?: boolean;
|
|
9159
|
+
field?: {
|
|
9160
|
+
id?: string;
|
|
9161
|
+
name?: string;
|
|
9162
|
+
slug?: string;
|
|
9163
|
+
type?: string;
|
|
9164
|
+
options?: Array<(string)>;
|
|
9165
|
+
};
|
|
9166
|
+
});
|
|
9009
9167
|
type UpdateCustomFieldError = ({
|
|
9010
9168
|
error?: string;
|
|
9011
9169
|
});
|
|
@@ -9647,7 +9805,26 @@ type CreateCommentAutomationData = {
|
|
|
9647
9805
|
commentReply?: string;
|
|
9648
9806
|
};
|
|
9649
9807
|
};
|
|
9650
|
-
type CreateCommentAutomationResponse = (
|
|
9808
|
+
type CreateCommentAutomationResponse = ({
|
|
9809
|
+
success?: boolean;
|
|
9810
|
+
automation?: {
|
|
9811
|
+
id?: string;
|
|
9812
|
+
name?: string;
|
|
9813
|
+
platform?: string;
|
|
9814
|
+
platformPostId?: string;
|
|
9815
|
+
keywords?: Array<(string)>;
|
|
9816
|
+
matchMode?: 'exact' | 'contains';
|
|
9817
|
+
dmMessage?: string;
|
|
9818
|
+
commentReply?: string;
|
|
9819
|
+
isActive?: boolean;
|
|
9820
|
+
stats?: {
|
|
9821
|
+
totalTriggered?: number;
|
|
9822
|
+
totalSent?: number;
|
|
9823
|
+
totalFailed?: number;
|
|
9824
|
+
};
|
|
9825
|
+
createdAt?: string;
|
|
9826
|
+
};
|
|
9827
|
+
});
|
|
9651
9828
|
type CreateCommentAutomationError = (unknown | {
|
|
9652
9829
|
error?: string;
|
|
9653
9830
|
});
|
|
@@ -9656,7 +9833,40 @@ type GetCommentAutomationData = {
|
|
|
9656
9833
|
automationId: string;
|
|
9657
9834
|
};
|
|
9658
9835
|
};
|
|
9659
|
-
type GetCommentAutomationResponse = (
|
|
9836
|
+
type GetCommentAutomationResponse = ({
|
|
9837
|
+
success?: boolean;
|
|
9838
|
+
automation?: {
|
|
9839
|
+
id?: string;
|
|
9840
|
+
name?: string;
|
|
9841
|
+
platform?: string;
|
|
9842
|
+
accountId?: string;
|
|
9843
|
+
platformPostId?: string;
|
|
9844
|
+
postId?: string;
|
|
9845
|
+
postTitle?: string;
|
|
9846
|
+
keywords?: Array<(string)>;
|
|
9847
|
+
matchMode?: 'exact' | 'contains';
|
|
9848
|
+
dmMessage?: string;
|
|
9849
|
+
commentReply?: string;
|
|
9850
|
+
isActive?: boolean;
|
|
9851
|
+
stats?: {
|
|
9852
|
+
totalTriggered?: number;
|
|
9853
|
+
totalSent?: number;
|
|
9854
|
+
totalFailed?: number;
|
|
9855
|
+
};
|
|
9856
|
+
createdAt?: string;
|
|
9857
|
+
updatedAt?: string;
|
|
9858
|
+
};
|
|
9859
|
+
logs?: Array<{
|
|
9860
|
+
id?: string;
|
|
9861
|
+
commentId?: string;
|
|
9862
|
+
commenterId?: string;
|
|
9863
|
+
commenterName?: string;
|
|
9864
|
+
commentText?: string;
|
|
9865
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9866
|
+
error?: string;
|
|
9867
|
+
createdAt?: string;
|
|
9868
|
+
}>;
|
|
9869
|
+
});
|
|
9660
9870
|
type GetCommentAutomationError = ({
|
|
9661
9871
|
error?: string;
|
|
9662
9872
|
});
|
|
@@ -9673,7 +9883,19 @@ type UpdateCommentAutomationData = {
|
|
|
9673
9883
|
automationId: string;
|
|
9674
9884
|
};
|
|
9675
9885
|
};
|
|
9676
|
-
type UpdateCommentAutomationResponse = (
|
|
9886
|
+
type UpdateCommentAutomationResponse = ({
|
|
9887
|
+
success?: boolean;
|
|
9888
|
+
automation?: {
|
|
9889
|
+
id?: string;
|
|
9890
|
+
name?: string;
|
|
9891
|
+
keywords?: Array<(string)>;
|
|
9892
|
+
matchMode?: 'exact' | 'contains';
|
|
9893
|
+
dmMessage?: string;
|
|
9894
|
+
commentReply?: string;
|
|
9895
|
+
isActive?: boolean;
|
|
9896
|
+
updatedAt?: string;
|
|
9897
|
+
};
|
|
9898
|
+
});
|
|
9677
9899
|
type UpdateCommentAutomationError = ({
|
|
9678
9900
|
error?: string;
|
|
9679
9901
|
});
|
|
@@ -9699,7 +9921,25 @@ type ListCommentAutomationLogsData = {
|
|
|
9699
9921
|
status?: 'sent' | 'failed' | 'skipped';
|
|
9700
9922
|
};
|
|
9701
9923
|
};
|
|
9702
|
-
type ListCommentAutomationLogsResponse = (
|
|
9924
|
+
type ListCommentAutomationLogsResponse = ({
|
|
9925
|
+
success?: boolean;
|
|
9926
|
+
logs?: Array<{
|
|
9927
|
+
id?: string;
|
|
9928
|
+
commentId?: string;
|
|
9929
|
+
commenterId?: string;
|
|
9930
|
+
commenterName?: string;
|
|
9931
|
+
commentText?: string;
|
|
9932
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9933
|
+
error?: string;
|
|
9934
|
+
createdAt?: string;
|
|
9935
|
+
}>;
|
|
9936
|
+
pagination?: {
|
|
9937
|
+
total?: number;
|
|
9938
|
+
limit?: number;
|
|
9939
|
+
skip?: number;
|
|
9940
|
+
hasMore?: boolean;
|
|
9941
|
+
};
|
|
9942
|
+
});
|
|
9703
9943
|
type ListCommentAutomationLogsError = ({
|
|
9704
9944
|
error?: string;
|
|
9705
9945
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -404,13 +404,13 @@ declare class Zernio {
|
|
|
404
404
|
* contacts API
|
|
405
405
|
*/
|
|
406
406
|
contacts: {
|
|
407
|
-
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
408
|
-
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
409
|
-
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
410
|
-
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
407
|
+
listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListContactsResponse, ListContactsError, ThrowOnError>;
|
|
408
|
+
createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateContactResponse, unknown, ThrowOnError>;
|
|
409
|
+
getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactResponse, GetContactError, ThrowOnError>;
|
|
410
|
+
updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateContactResponse, UpdateContactError, ThrowOnError>;
|
|
411
411
|
deleteContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteContactError, ThrowOnError>;
|
|
412
|
-
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
413
|
-
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
412
|
+
getContactChannels: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactChannelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetContactChannelsResponse, GetContactChannelsError, ThrowOnError>;
|
|
413
|
+
bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<BulkCreateContactsResponse, BulkCreateContactsError, ThrowOnError>;
|
|
414
414
|
};
|
|
415
415
|
/**
|
|
416
416
|
* customfields API
|
|
@@ -418,9 +418,9 @@ declare class Zernio {
|
|
|
418
418
|
customfields: {
|
|
419
419
|
setContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<SetContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, SetContactFieldValueError, ThrowOnError>;
|
|
420
420
|
clearContactFieldValue: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ClearContactFieldValueData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ClearContactFieldValueError, ThrowOnError>;
|
|
421
|
-
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
422
|
-
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
423
|
-
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
421
|
+
listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCustomFieldsResponse, ListCustomFieldsError, ThrowOnError>;
|
|
422
|
+
createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCustomFieldResponse, unknown, ThrowOnError>;
|
|
423
|
+
updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCustomFieldResponse, UpdateCustomFieldError, ThrowOnError>;
|
|
424
424
|
deleteCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCustomFieldError, ThrowOnError>;
|
|
425
425
|
};
|
|
426
426
|
/**
|
|
@@ -458,11 +458,11 @@ declare class Zernio {
|
|
|
458
458
|
*/
|
|
459
459
|
commentautomations: {
|
|
460
460
|
listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
|
|
461
|
-
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
462
|
-
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
463
|
-
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
461
|
+
createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<CreateCommentAutomationResponse, unknown, ThrowOnError>;
|
|
462
|
+
getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<GetCommentAutomationResponse, GetCommentAutomationError, ThrowOnError>;
|
|
463
|
+
updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<UpdateCommentAutomationResponse, UpdateCommentAutomationError, ThrowOnError>;
|
|
464
464
|
deleteCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<DeleteCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, DeleteCommentAutomationError, ThrowOnError>;
|
|
465
|
-
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
465
|
+
listCommentAutomationLogs: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationLogsResponse, ListCommentAutomationLogsError, ThrowOnError>;
|
|
466
466
|
};
|
|
467
467
|
/**
|
|
468
468
|
* Create a new Zernio API client.
|
|
@@ -1884,6 +1884,10 @@ type parseMode = 'HTML' | 'Markdown' | 'MarkdownV2';
|
|
|
1884
1884
|
* Up to 10 images per carousel (no videos). Videos must be H.264/AAC MP4, max 5 min. Images JPEG/PNG, max 8 MB. Use threadItems for reply chains.
|
|
1885
1885
|
*/
|
|
1886
1886
|
type ThreadsPlatformData = {
|
|
1887
|
+
/**
|
|
1888
|
+
* Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
|
|
1889
|
+
*/
|
|
1890
|
+
topic_tag?: string;
|
|
1887
1891
|
/**
|
|
1888
1892
|
* Sequence of posts in a Threads thread (root then replies in order).
|
|
1889
1893
|
*/
|
|
@@ -8848,7 +8852,40 @@ type ListContactsData = {
|
|
|
8848
8852
|
tag?: string;
|
|
8849
8853
|
};
|
|
8850
8854
|
};
|
|
8851
|
-
type ListContactsResponse = (
|
|
8855
|
+
type ListContactsResponse = ({
|
|
8856
|
+
success?: boolean;
|
|
8857
|
+
contacts?: Array<{
|
|
8858
|
+
id?: string;
|
|
8859
|
+
name?: string;
|
|
8860
|
+
email?: string;
|
|
8861
|
+
company?: string;
|
|
8862
|
+
avatarUrl?: string;
|
|
8863
|
+
tags?: Array<(string)>;
|
|
8864
|
+
isSubscribed?: boolean;
|
|
8865
|
+
isBlocked?: boolean;
|
|
8866
|
+
lastMessageSentAt?: string;
|
|
8867
|
+
lastMessageReceivedAt?: string;
|
|
8868
|
+
messagesSentCount?: number;
|
|
8869
|
+
messagesReceivedCount?: number;
|
|
8870
|
+
customFields?: {
|
|
8871
|
+
[key: string]: unknown;
|
|
8872
|
+
};
|
|
8873
|
+
notes?: string;
|
|
8874
|
+
createdAt?: string;
|
|
8875
|
+
platform?: string;
|
|
8876
|
+
platformIdentifier?: string;
|
|
8877
|
+
displayIdentifier?: string;
|
|
8878
|
+
}>;
|
|
8879
|
+
filters?: {
|
|
8880
|
+
tags?: Array<(string)>;
|
|
8881
|
+
};
|
|
8882
|
+
pagination?: {
|
|
8883
|
+
total?: number;
|
|
8884
|
+
limit?: number;
|
|
8885
|
+
skip?: number;
|
|
8886
|
+
hasMore?: boolean;
|
|
8887
|
+
};
|
|
8888
|
+
});
|
|
8852
8889
|
type ListContactsError = ({
|
|
8853
8890
|
error?: string;
|
|
8854
8891
|
});
|
|
@@ -8870,7 +8907,33 @@ type CreateContactData = {
|
|
|
8870
8907
|
displayIdentifier?: string;
|
|
8871
8908
|
};
|
|
8872
8909
|
};
|
|
8873
|
-
type CreateContactResponse = (
|
|
8910
|
+
type CreateContactResponse = ({
|
|
8911
|
+
success?: boolean;
|
|
8912
|
+
contact?: {
|
|
8913
|
+
id?: string;
|
|
8914
|
+
name?: string;
|
|
8915
|
+
email?: string;
|
|
8916
|
+
company?: string;
|
|
8917
|
+
tags?: Array<(string)>;
|
|
8918
|
+
isSubscribed?: boolean;
|
|
8919
|
+
isBlocked?: boolean;
|
|
8920
|
+
customFields?: {
|
|
8921
|
+
[key: string]: unknown;
|
|
8922
|
+
};
|
|
8923
|
+
notes?: string;
|
|
8924
|
+
createdAt?: string;
|
|
8925
|
+
};
|
|
8926
|
+
/**
|
|
8927
|
+
* Created when accountId, platform, and platformIdentifier are provided
|
|
8928
|
+
*/
|
|
8929
|
+
channel?: {
|
|
8930
|
+
id?: string;
|
|
8931
|
+
platform?: string;
|
|
8932
|
+
platformIdentifier?: string;
|
|
8933
|
+
displayIdentifier?: string;
|
|
8934
|
+
};
|
|
8935
|
+
warning?: string;
|
|
8936
|
+
});
|
|
8874
8937
|
type CreateContactError = ({
|
|
8875
8938
|
error?: string;
|
|
8876
8939
|
} | unknown);
|
|
@@ -8879,7 +8942,36 @@ type GetContactData = {
|
|
|
8879
8942
|
contactId: string;
|
|
8880
8943
|
};
|
|
8881
8944
|
};
|
|
8882
|
-
type GetContactResponse = (
|
|
8945
|
+
type GetContactResponse = ({
|
|
8946
|
+
success?: boolean;
|
|
8947
|
+
contact?: {
|
|
8948
|
+
id?: string;
|
|
8949
|
+
name?: string;
|
|
8950
|
+
email?: string;
|
|
8951
|
+
company?: string;
|
|
8952
|
+
avatarUrl?: string;
|
|
8953
|
+
tags?: Array<(string)>;
|
|
8954
|
+
isSubscribed?: boolean;
|
|
8955
|
+
isBlocked?: boolean;
|
|
8956
|
+
customFields?: {
|
|
8957
|
+
[key: string]: unknown;
|
|
8958
|
+
};
|
|
8959
|
+
notes?: string;
|
|
8960
|
+
conversationIds?: Array<(string)>;
|
|
8961
|
+
createdAt?: string;
|
|
8962
|
+
updatedAt?: string;
|
|
8963
|
+
};
|
|
8964
|
+
channels?: Array<{
|
|
8965
|
+
id?: string;
|
|
8966
|
+
accountId?: string;
|
|
8967
|
+
platform?: string;
|
|
8968
|
+
platformIdentifier?: string;
|
|
8969
|
+
displayIdentifier?: string;
|
|
8970
|
+
isSubscribed?: boolean;
|
|
8971
|
+
conversationId?: string;
|
|
8972
|
+
createdAt?: string;
|
|
8973
|
+
}>;
|
|
8974
|
+
});
|
|
8883
8975
|
type GetContactError = ({
|
|
8884
8976
|
error?: string;
|
|
8885
8977
|
});
|
|
@@ -8898,7 +8990,21 @@ type UpdateContactData = {
|
|
|
8898
8990
|
contactId: string;
|
|
8899
8991
|
};
|
|
8900
8992
|
};
|
|
8901
|
-
type UpdateContactResponse = (
|
|
8993
|
+
type UpdateContactResponse = ({
|
|
8994
|
+
success?: boolean;
|
|
8995
|
+
contact?: {
|
|
8996
|
+
id?: string;
|
|
8997
|
+
name?: string;
|
|
8998
|
+
email?: string;
|
|
8999
|
+
company?: string;
|
|
9000
|
+
avatarUrl?: string;
|
|
9001
|
+
tags?: Array<(string)>;
|
|
9002
|
+
isSubscribed?: boolean;
|
|
9003
|
+
isBlocked?: boolean;
|
|
9004
|
+
notes?: string;
|
|
9005
|
+
updatedAt?: string;
|
|
9006
|
+
};
|
|
9007
|
+
});
|
|
8902
9008
|
type UpdateContactError = ({
|
|
8903
9009
|
error?: string;
|
|
8904
9010
|
});
|
|
@@ -8916,7 +9022,22 @@ type GetContactChannelsData = {
|
|
|
8916
9022
|
contactId: string;
|
|
8917
9023
|
};
|
|
8918
9024
|
};
|
|
8919
|
-
type GetContactChannelsResponse = (
|
|
9025
|
+
type GetContactChannelsResponse = ({
|
|
9026
|
+
success?: boolean;
|
|
9027
|
+
channels?: Array<{
|
|
9028
|
+
id?: string;
|
|
9029
|
+
accountId?: string;
|
|
9030
|
+
platform?: string;
|
|
9031
|
+
platformIdentifier?: string;
|
|
9032
|
+
displayIdentifier?: string;
|
|
9033
|
+
isSubscribed?: boolean;
|
|
9034
|
+
conversationId?: string;
|
|
9035
|
+
metadata?: {
|
|
9036
|
+
[key: string]: unknown;
|
|
9037
|
+
};
|
|
9038
|
+
createdAt?: string;
|
|
9039
|
+
}>;
|
|
9040
|
+
});
|
|
8920
9041
|
type GetContactChannelsError = ({
|
|
8921
9042
|
error?: string;
|
|
8922
9043
|
});
|
|
@@ -8935,7 +9056,15 @@ type BulkCreateContactsData = {
|
|
|
8935
9056
|
}>;
|
|
8936
9057
|
};
|
|
8937
9058
|
};
|
|
8938
|
-
type BulkCreateContactsResponse = (
|
|
9059
|
+
type BulkCreateContactsResponse = ({
|
|
9060
|
+
success?: boolean;
|
|
9061
|
+
created?: number;
|
|
9062
|
+
skipped?: number;
|
|
9063
|
+
errors?: Array<{
|
|
9064
|
+
[key: string]: unknown;
|
|
9065
|
+
}>;
|
|
9066
|
+
total?: number;
|
|
9067
|
+
});
|
|
8939
9068
|
type BulkCreateContactsError = ({
|
|
8940
9069
|
error?: string;
|
|
8941
9070
|
});
|
|
@@ -8973,7 +9102,17 @@ type ListCustomFieldsData = {
|
|
|
8973
9102
|
profileId?: string;
|
|
8974
9103
|
};
|
|
8975
9104
|
};
|
|
8976
|
-
type ListCustomFieldsResponse = (
|
|
9105
|
+
type ListCustomFieldsResponse = ({
|
|
9106
|
+
success?: boolean;
|
|
9107
|
+
fields?: Array<{
|
|
9108
|
+
id?: string;
|
|
9109
|
+
name?: string;
|
|
9110
|
+
slug?: string;
|
|
9111
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9112
|
+
options?: Array<(string)>;
|
|
9113
|
+
createdAt?: string;
|
|
9114
|
+
}>;
|
|
9115
|
+
});
|
|
8977
9116
|
type ListCustomFieldsError = ({
|
|
8978
9117
|
error?: string;
|
|
8979
9118
|
});
|
|
@@ -8992,7 +9131,17 @@ type CreateCustomFieldData = {
|
|
|
8992
9131
|
options?: Array<(string)>;
|
|
8993
9132
|
};
|
|
8994
9133
|
};
|
|
8995
|
-
type CreateCustomFieldResponse = (
|
|
9134
|
+
type CreateCustomFieldResponse = ({
|
|
9135
|
+
success?: boolean;
|
|
9136
|
+
field?: {
|
|
9137
|
+
id?: string;
|
|
9138
|
+
name?: string;
|
|
9139
|
+
slug?: string;
|
|
9140
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9141
|
+
options?: Array<(string)>;
|
|
9142
|
+
createdAt?: string;
|
|
9143
|
+
};
|
|
9144
|
+
});
|
|
8996
9145
|
type CreateCustomFieldError = ({
|
|
8997
9146
|
error?: string;
|
|
8998
9147
|
} | unknown);
|
|
@@ -9005,7 +9154,16 @@ type UpdateCustomFieldData = {
|
|
|
9005
9154
|
fieldId: string;
|
|
9006
9155
|
};
|
|
9007
9156
|
};
|
|
9008
|
-
type UpdateCustomFieldResponse = (
|
|
9157
|
+
type UpdateCustomFieldResponse = ({
|
|
9158
|
+
success?: boolean;
|
|
9159
|
+
field?: {
|
|
9160
|
+
id?: string;
|
|
9161
|
+
name?: string;
|
|
9162
|
+
slug?: string;
|
|
9163
|
+
type?: string;
|
|
9164
|
+
options?: Array<(string)>;
|
|
9165
|
+
};
|
|
9166
|
+
});
|
|
9009
9167
|
type UpdateCustomFieldError = ({
|
|
9010
9168
|
error?: string;
|
|
9011
9169
|
});
|
|
@@ -9647,7 +9805,26 @@ type CreateCommentAutomationData = {
|
|
|
9647
9805
|
commentReply?: string;
|
|
9648
9806
|
};
|
|
9649
9807
|
};
|
|
9650
|
-
type CreateCommentAutomationResponse = (
|
|
9808
|
+
type CreateCommentAutomationResponse = ({
|
|
9809
|
+
success?: boolean;
|
|
9810
|
+
automation?: {
|
|
9811
|
+
id?: string;
|
|
9812
|
+
name?: string;
|
|
9813
|
+
platform?: string;
|
|
9814
|
+
platformPostId?: string;
|
|
9815
|
+
keywords?: Array<(string)>;
|
|
9816
|
+
matchMode?: 'exact' | 'contains';
|
|
9817
|
+
dmMessage?: string;
|
|
9818
|
+
commentReply?: string;
|
|
9819
|
+
isActive?: boolean;
|
|
9820
|
+
stats?: {
|
|
9821
|
+
totalTriggered?: number;
|
|
9822
|
+
totalSent?: number;
|
|
9823
|
+
totalFailed?: number;
|
|
9824
|
+
};
|
|
9825
|
+
createdAt?: string;
|
|
9826
|
+
};
|
|
9827
|
+
});
|
|
9651
9828
|
type CreateCommentAutomationError = (unknown | {
|
|
9652
9829
|
error?: string;
|
|
9653
9830
|
});
|
|
@@ -9656,7 +9833,40 @@ type GetCommentAutomationData = {
|
|
|
9656
9833
|
automationId: string;
|
|
9657
9834
|
};
|
|
9658
9835
|
};
|
|
9659
|
-
type GetCommentAutomationResponse = (
|
|
9836
|
+
type GetCommentAutomationResponse = ({
|
|
9837
|
+
success?: boolean;
|
|
9838
|
+
automation?: {
|
|
9839
|
+
id?: string;
|
|
9840
|
+
name?: string;
|
|
9841
|
+
platform?: string;
|
|
9842
|
+
accountId?: string;
|
|
9843
|
+
platformPostId?: string;
|
|
9844
|
+
postId?: string;
|
|
9845
|
+
postTitle?: string;
|
|
9846
|
+
keywords?: Array<(string)>;
|
|
9847
|
+
matchMode?: 'exact' | 'contains';
|
|
9848
|
+
dmMessage?: string;
|
|
9849
|
+
commentReply?: string;
|
|
9850
|
+
isActive?: boolean;
|
|
9851
|
+
stats?: {
|
|
9852
|
+
totalTriggered?: number;
|
|
9853
|
+
totalSent?: number;
|
|
9854
|
+
totalFailed?: number;
|
|
9855
|
+
};
|
|
9856
|
+
createdAt?: string;
|
|
9857
|
+
updatedAt?: string;
|
|
9858
|
+
};
|
|
9859
|
+
logs?: Array<{
|
|
9860
|
+
id?: string;
|
|
9861
|
+
commentId?: string;
|
|
9862
|
+
commenterId?: string;
|
|
9863
|
+
commenterName?: string;
|
|
9864
|
+
commentText?: string;
|
|
9865
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9866
|
+
error?: string;
|
|
9867
|
+
createdAt?: string;
|
|
9868
|
+
}>;
|
|
9869
|
+
});
|
|
9660
9870
|
type GetCommentAutomationError = ({
|
|
9661
9871
|
error?: string;
|
|
9662
9872
|
});
|
|
@@ -9673,7 +9883,19 @@ type UpdateCommentAutomationData = {
|
|
|
9673
9883
|
automationId: string;
|
|
9674
9884
|
};
|
|
9675
9885
|
};
|
|
9676
|
-
type UpdateCommentAutomationResponse = (
|
|
9886
|
+
type UpdateCommentAutomationResponse = ({
|
|
9887
|
+
success?: boolean;
|
|
9888
|
+
automation?: {
|
|
9889
|
+
id?: string;
|
|
9890
|
+
name?: string;
|
|
9891
|
+
keywords?: Array<(string)>;
|
|
9892
|
+
matchMode?: 'exact' | 'contains';
|
|
9893
|
+
dmMessage?: string;
|
|
9894
|
+
commentReply?: string;
|
|
9895
|
+
isActive?: boolean;
|
|
9896
|
+
updatedAt?: string;
|
|
9897
|
+
};
|
|
9898
|
+
});
|
|
9677
9899
|
type UpdateCommentAutomationError = ({
|
|
9678
9900
|
error?: string;
|
|
9679
9901
|
});
|
|
@@ -9699,7 +9921,25 @@ type ListCommentAutomationLogsData = {
|
|
|
9699
9921
|
status?: 'sent' | 'failed' | 'skipped';
|
|
9700
9922
|
};
|
|
9701
9923
|
};
|
|
9702
|
-
type ListCommentAutomationLogsResponse = (
|
|
9924
|
+
type ListCommentAutomationLogsResponse = ({
|
|
9925
|
+
success?: boolean;
|
|
9926
|
+
logs?: Array<{
|
|
9927
|
+
id?: string;
|
|
9928
|
+
commentId?: string;
|
|
9929
|
+
commenterId?: string;
|
|
9930
|
+
commenterName?: string;
|
|
9931
|
+
commentText?: string;
|
|
9932
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
9933
|
+
error?: string;
|
|
9934
|
+
createdAt?: string;
|
|
9935
|
+
}>;
|
|
9936
|
+
pagination?: {
|
|
9937
|
+
total?: number;
|
|
9938
|
+
limit?: number;
|
|
9939
|
+
skip?: number;
|
|
9940
|
+
hasMore?: boolean;
|
|
9941
|
+
};
|
|
9942
|
+
});
|
|
9703
9943
|
type ListCommentAutomationLogsError = ({
|
|
9704
9944
|
error?: string;
|
|
9705
9945
|
});
|
package/package.json
CHANGED
|
@@ -1442,6 +1442,10 @@ export type parseMode = 'HTML' | 'Markdown' | 'MarkdownV2';
|
|
|
1442
1442
|
* Up to 10 images per carousel (no videos). Videos must be H.264/AAC MP4, max 5 min. Images JPEG/PNG, max 8 MB. Use threadItems for reply chains.
|
|
1443
1443
|
*/
|
|
1444
1444
|
export type ThreadsPlatformData = {
|
|
1445
|
+
/**
|
|
1446
|
+
* Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
|
|
1447
|
+
*/
|
|
1448
|
+
topic_tag?: string;
|
|
1445
1449
|
/**
|
|
1446
1450
|
* Sequence of posts in a Threads thread (root then replies in order).
|
|
1447
1451
|
*/
|
|
@@ -9000,7 +9004,40 @@ export type ListContactsData = {
|
|
|
9000
9004
|
};
|
|
9001
9005
|
};
|
|
9002
9006
|
|
|
9003
|
-
export type ListContactsResponse = (
|
|
9007
|
+
export type ListContactsResponse = ({
|
|
9008
|
+
success?: boolean;
|
|
9009
|
+
contacts?: Array<{
|
|
9010
|
+
id?: string;
|
|
9011
|
+
name?: string;
|
|
9012
|
+
email?: string;
|
|
9013
|
+
company?: string;
|
|
9014
|
+
avatarUrl?: string;
|
|
9015
|
+
tags?: Array<(string)>;
|
|
9016
|
+
isSubscribed?: boolean;
|
|
9017
|
+
isBlocked?: boolean;
|
|
9018
|
+
lastMessageSentAt?: string;
|
|
9019
|
+
lastMessageReceivedAt?: string;
|
|
9020
|
+
messagesSentCount?: number;
|
|
9021
|
+
messagesReceivedCount?: number;
|
|
9022
|
+
customFields?: {
|
|
9023
|
+
[key: string]: unknown;
|
|
9024
|
+
};
|
|
9025
|
+
notes?: string;
|
|
9026
|
+
createdAt?: string;
|
|
9027
|
+
platform?: string;
|
|
9028
|
+
platformIdentifier?: string;
|
|
9029
|
+
displayIdentifier?: string;
|
|
9030
|
+
}>;
|
|
9031
|
+
filters?: {
|
|
9032
|
+
tags?: Array<(string)>;
|
|
9033
|
+
};
|
|
9034
|
+
pagination?: {
|
|
9035
|
+
total?: number;
|
|
9036
|
+
limit?: number;
|
|
9037
|
+
skip?: number;
|
|
9038
|
+
hasMore?: boolean;
|
|
9039
|
+
};
|
|
9040
|
+
});
|
|
9004
9041
|
|
|
9005
9042
|
export type ListContactsError = ({
|
|
9006
9043
|
error?: string;
|
|
@@ -9025,7 +9062,33 @@ export type CreateContactData = {
|
|
|
9025
9062
|
};
|
|
9026
9063
|
};
|
|
9027
9064
|
|
|
9028
|
-
export type CreateContactResponse = (
|
|
9065
|
+
export type CreateContactResponse = ({
|
|
9066
|
+
success?: boolean;
|
|
9067
|
+
contact?: {
|
|
9068
|
+
id?: string;
|
|
9069
|
+
name?: string;
|
|
9070
|
+
email?: string;
|
|
9071
|
+
company?: string;
|
|
9072
|
+
tags?: Array<(string)>;
|
|
9073
|
+
isSubscribed?: boolean;
|
|
9074
|
+
isBlocked?: boolean;
|
|
9075
|
+
customFields?: {
|
|
9076
|
+
[key: string]: unknown;
|
|
9077
|
+
};
|
|
9078
|
+
notes?: string;
|
|
9079
|
+
createdAt?: string;
|
|
9080
|
+
};
|
|
9081
|
+
/**
|
|
9082
|
+
* Created when accountId, platform, and platformIdentifier are provided
|
|
9083
|
+
*/
|
|
9084
|
+
channel?: {
|
|
9085
|
+
id?: string;
|
|
9086
|
+
platform?: string;
|
|
9087
|
+
platformIdentifier?: string;
|
|
9088
|
+
displayIdentifier?: string;
|
|
9089
|
+
};
|
|
9090
|
+
warning?: string;
|
|
9091
|
+
});
|
|
9029
9092
|
|
|
9030
9093
|
export type CreateContactError = ({
|
|
9031
9094
|
error?: string;
|
|
@@ -9037,7 +9100,36 @@ export type GetContactData = {
|
|
|
9037
9100
|
};
|
|
9038
9101
|
};
|
|
9039
9102
|
|
|
9040
|
-
export type GetContactResponse = (
|
|
9103
|
+
export type GetContactResponse = ({
|
|
9104
|
+
success?: boolean;
|
|
9105
|
+
contact?: {
|
|
9106
|
+
id?: string;
|
|
9107
|
+
name?: string;
|
|
9108
|
+
email?: string;
|
|
9109
|
+
company?: string;
|
|
9110
|
+
avatarUrl?: string;
|
|
9111
|
+
tags?: Array<(string)>;
|
|
9112
|
+
isSubscribed?: boolean;
|
|
9113
|
+
isBlocked?: boolean;
|
|
9114
|
+
customFields?: {
|
|
9115
|
+
[key: string]: unknown;
|
|
9116
|
+
};
|
|
9117
|
+
notes?: string;
|
|
9118
|
+
conversationIds?: Array<(string)>;
|
|
9119
|
+
createdAt?: string;
|
|
9120
|
+
updatedAt?: string;
|
|
9121
|
+
};
|
|
9122
|
+
channels?: Array<{
|
|
9123
|
+
id?: string;
|
|
9124
|
+
accountId?: string;
|
|
9125
|
+
platform?: string;
|
|
9126
|
+
platformIdentifier?: string;
|
|
9127
|
+
displayIdentifier?: string;
|
|
9128
|
+
isSubscribed?: boolean;
|
|
9129
|
+
conversationId?: string;
|
|
9130
|
+
createdAt?: string;
|
|
9131
|
+
}>;
|
|
9132
|
+
});
|
|
9041
9133
|
|
|
9042
9134
|
export type GetContactError = ({
|
|
9043
9135
|
error?: string;
|
|
@@ -9059,7 +9151,21 @@ export type UpdateContactData = {
|
|
|
9059
9151
|
};
|
|
9060
9152
|
};
|
|
9061
9153
|
|
|
9062
|
-
export type UpdateContactResponse = (
|
|
9154
|
+
export type UpdateContactResponse = ({
|
|
9155
|
+
success?: boolean;
|
|
9156
|
+
contact?: {
|
|
9157
|
+
id?: string;
|
|
9158
|
+
name?: string;
|
|
9159
|
+
email?: string;
|
|
9160
|
+
company?: string;
|
|
9161
|
+
avatarUrl?: string;
|
|
9162
|
+
tags?: Array<(string)>;
|
|
9163
|
+
isSubscribed?: boolean;
|
|
9164
|
+
isBlocked?: boolean;
|
|
9165
|
+
notes?: string;
|
|
9166
|
+
updatedAt?: string;
|
|
9167
|
+
};
|
|
9168
|
+
});
|
|
9063
9169
|
|
|
9064
9170
|
export type UpdateContactError = ({
|
|
9065
9171
|
error?: string;
|
|
@@ -9083,7 +9189,22 @@ export type GetContactChannelsData = {
|
|
|
9083
9189
|
};
|
|
9084
9190
|
};
|
|
9085
9191
|
|
|
9086
|
-
export type GetContactChannelsResponse = (
|
|
9192
|
+
export type GetContactChannelsResponse = ({
|
|
9193
|
+
success?: boolean;
|
|
9194
|
+
channels?: Array<{
|
|
9195
|
+
id?: string;
|
|
9196
|
+
accountId?: string;
|
|
9197
|
+
platform?: string;
|
|
9198
|
+
platformIdentifier?: string;
|
|
9199
|
+
displayIdentifier?: string;
|
|
9200
|
+
isSubscribed?: boolean;
|
|
9201
|
+
conversationId?: string;
|
|
9202
|
+
metadata?: {
|
|
9203
|
+
[key: string]: unknown;
|
|
9204
|
+
};
|
|
9205
|
+
createdAt?: string;
|
|
9206
|
+
}>;
|
|
9207
|
+
});
|
|
9087
9208
|
|
|
9088
9209
|
export type GetContactChannelsError = ({
|
|
9089
9210
|
error?: string;
|
|
@@ -9105,7 +9226,15 @@ export type BulkCreateContactsData = {
|
|
|
9105
9226
|
};
|
|
9106
9227
|
};
|
|
9107
9228
|
|
|
9108
|
-
export type BulkCreateContactsResponse = (
|
|
9229
|
+
export type BulkCreateContactsResponse = ({
|
|
9230
|
+
success?: boolean;
|
|
9231
|
+
created?: number;
|
|
9232
|
+
skipped?: number;
|
|
9233
|
+
errors?: Array<{
|
|
9234
|
+
[key: string]: unknown;
|
|
9235
|
+
}>;
|
|
9236
|
+
total?: number;
|
|
9237
|
+
});
|
|
9109
9238
|
|
|
9110
9239
|
export type BulkCreateContactsError = ({
|
|
9111
9240
|
error?: string;
|
|
@@ -9152,7 +9281,17 @@ export type ListCustomFieldsData = {
|
|
|
9152
9281
|
};
|
|
9153
9282
|
};
|
|
9154
9283
|
|
|
9155
|
-
export type ListCustomFieldsResponse = (
|
|
9284
|
+
export type ListCustomFieldsResponse = ({
|
|
9285
|
+
success?: boolean;
|
|
9286
|
+
fields?: Array<{
|
|
9287
|
+
id?: string;
|
|
9288
|
+
name?: string;
|
|
9289
|
+
slug?: string;
|
|
9290
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9291
|
+
options?: Array<(string)>;
|
|
9292
|
+
createdAt?: string;
|
|
9293
|
+
}>;
|
|
9294
|
+
});
|
|
9156
9295
|
|
|
9157
9296
|
export type ListCustomFieldsError = ({
|
|
9158
9297
|
error?: string;
|
|
@@ -9174,7 +9313,17 @@ export type CreateCustomFieldData = {
|
|
|
9174
9313
|
};
|
|
9175
9314
|
};
|
|
9176
9315
|
|
|
9177
|
-
export type CreateCustomFieldResponse = (
|
|
9316
|
+
export type CreateCustomFieldResponse = ({
|
|
9317
|
+
success?: boolean;
|
|
9318
|
+
field?: {
|
|
9319
|
+
id?: string;
|
|
9320
|
+
name?: string;
|
|
9321
|
+
slug?: string;
|
|
9322
|
+
type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
|
|
9323
|
+
options?: Array<(string)>;
|
|
9324
|
+
createdAt?: string;
|
|
9325
|
+
};
|
|
9326
|
+
});
|
|
9178
9327
|
|
|
9179
9328
|
export type CreateCustomFieldError = ({
|
|
9180
9329
|
error?: string;
|
|
@@ -9190,7 +9339,16 @@ export type UpdateCustomFieldData = {
|
|
|
9190
9339
|
};
|
|
9191
9340
|
};
|
|
9192
9341
|
|
|
9193
|
-
export type UpdateCustomFieldResponse = (
|
|
9342
|
+
export type UpdateCustomFieldResponse = ({
|
|
9343
|
+
success?: boolean;
|
|
9344
|
+
field?: {
|
|
9345
|
+
id?: string;
|
|
9346
|
+
name?: string;
|
|
9347
|
+
slug?: string;
|
|
9348
|
+
type?: string;
|
|
9349
|
+
options?: Array<(string)>;
|
|
9350
|
+
};
|
|
9351
|
+
});
|
|
9194
9352
|
|
|
9195
9353
|
export type UpdateCustomFieldError = ({
|
|
9196
9354
|
error?: string;
|
|
@@ -9901,7 +10059,26 @@ export type CreateCommentAutomationData = {
|
|
|
9901
10059
|
};
|
|
9902
10060
|
};
|
|
9903
10061
|
|
|
9904
|
-
export type CreateCommentAutomationResponse = (
|
|
10062
|
+
export type CreateCommentAutomationResponse = ({
|
|
10063
|
+
success?: boolean;
|
|
10064
|
+
automation?: {
|
|
10065
|
+
id?: string;
|
|
10066
|
+
name?: string;
|
|
10067
|
+
platform?: string;
|
|
10068
|
+
platformPostId?: string;
|
|
10069
|
+
keywords?: Array<(string)>;
|
|
10070
|
+
matchMode?: 'exact' | 'contains';
|
|
10071
|
+
dmMessage?: string;
|
|
10072
|
+
commentReply?: string;
|
|
10073
|
+
isActive?: boolean;
|
|
10074
|
+
stats?: {
|
|
10075
|
+
totalTriggered?: number;
|
|
10076
|
+
totalSent?: number;
|
|
10077
|
+
totalFailed?: number;
|
|
10078
|
+
};
|
|
10079
|
+
createdAt?: string;
|
|
10080
|
+
};
|
|
10081
|
+
});
|
|
9905
10082
|
|
|
9906
10083
|
export type CreateCommentAutomationError = (unknown | {
|
|
9907
10084
|
error?: string;
|
|
@@ -9913,7 +10090,40 @@ export type GetCommentAutomationData = {
|
|
|
9913
10090
|
};
|
|
9914
10091
|
};
|
|
9915
10092
|
|
|
9916
|
-
export type GetCommentAutomationResponse = (
|
|
10093
|
+
export type GetCommentAutomationResponse = ({
|
|
10094
|
+
success?: boolean;
|
|
10095
|
+
automation?: {
|
|
10096
|
+
id?: string;
|
|
10097
|
+
name?: string;
|
|
10098
|
+
platform?: string;
|
|
10099
|
+
accountId?: string;
|
|
10100
|
+
platformPostId?: string;
|
|
10101
|
+
postId?: string;
|
|
10102
|
+
postTitle?: string;
|
|
10103
|
+
keywords?: Array<(string)>;
|
|
10104
|
+
matchMode?: 'exact' | 'contains';
|
|
10105
|
+
dmMessage?: string;
|
|
10106
|
+
commentReply?: string;
|
|
10107
|
+
isActive?: boolean;
|
|
10108
|
+
stats?: {
|
|
10109
|
+
totalTriggered?: number;
|
|
10110
|
+
totalSent?: number;
|
|
10111
|
+
totalFailed?: number;
|
|
10112
|
+
};
|
|
10113
|
+
createdAt?: string;
|
|
10114
|
+
updatedAt?: string;
|
|
10115
|
+
};
|
|
10116
|
+
logs?: Array<{
|
|
10117
|
+
id?: string;
|
|
10118
|
+
commentId?: string;
|
|
10119
|
+
commenterId?: string;
|
|
10120
|
+
commenterName?: string;
|
|
10121
|
+
commentText?: string;
|
|
10122
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
10123
|
+
error?: string;
|
|
10124
|
+
createdAt?: string;
|
|
10125
|
+
}>;
|
|
10126
|
+
});
|
|
9917
10127
|
|
|
9918
10128
|
export type GetCommentAutomationError = ({
|
|
9919
10129
|
error?: string;
|
|
@@ -9933,7 +10143,19 @@ export type UpdateCommentAutomationData = {
|
|
|
9933
10143
|
};
|
|
9934
10144
|
};
|
|
9935
10145
|
|
|
9936
|
-
export type UpdateCommentAutomationResponse = (
|
|
10146
|
+
export type UpdateCommentAutomationResponse = ({
|
|
10147
|
+
success?: boolean;
|
|
10148
|
+
automation?: {
|
|
10149
|
+
id?: string;
|
|
10150
|
+
name?: string;
|
|
10151
|
+
keywords?: Array<(string)>;
|
|
10152
|
+
matchMode?: 'exact' | 'contains';
|
|
10153
|
+
dmMessage?: string;
|
|
10154
|
+
commentReply?: string;
|
|
10155
|
+
isActive?: boolean;
|
|
10156
|
+
updatedAt?: string;
|
|
10157
|
+
};
|
|
10158
|
+
});
|
|
9937
10159
|
|
|
9938
10160
|
export type UpdateCommentAutomationError = ({
|
|
9939
10161
|
error?: string;
|
|
@@ -9965,7 +10187,25 @@ export type ListCommentAutomationLogsData = {
|
|
|
9965
10187
|
};
|
|
9966
10188
|
};
|
|
9967
10189
|
|
|
9968
|
-
export type ListCommentAutomationLogsResponse = (
|
|
10190
|
+
export type ListCommentAutomationLogsResponse = ({
|
|
10191
|
+
success?: boolean;
|
|
10192
|
+
logs?: Array<{
|
|
10193
|
+
id?: string;
|
|
10194
|
+
commentId?: string;
|
|
10195
|
+
commenterId?: string;
|
|
10196
|
+
commenterName?: string;
|
|
10197
|
+
commentText?: string;
|
|
10198
|
+
status?: 'sent' | 'failed' | 'skipped';
|
|
10199
|
+
error?: string;
|
|
10200
|
+
createdAt?: string;
|
|
10201
|
+
}>;
|
|
10202
|
+
pagination?: {
|
|
10203
|
+
total?: number;
|
|
10204
|
+
limit?: number;
|
|
10205
|
+
skip?: number;
|
|
10206
|
+
hasMore?: boolean;
|
|
10207
|
+
};
|
|
10208
|
+
});
|
|
9969
10209
|
|
|
9970
10210
|
export type ListCommentAutomationLogsError = ({
|
|
9971
10211
|
error?: string;
|