@getlatedev/node 0.2.15 → 0.2.16

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 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<unknown, ListContactsError, ThrowOnError>;
408
- createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
409
- getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetContactError, ThrowOnError>;
410
- updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateContactError, ThrowOnError>;
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<unknown, GetContactChannelsError, ThrowOnError>;
413
- bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, BulkCreateContactsError, ThrowOnError>;
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<unknown, ListCustomFieldsError, ThrowOnError>;
422
- createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
423
- updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateCustomFieldError, ThrowOnError>;
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<unknown, unknown, ThrowOnError>;
462
- getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetCommentAutomationError, ThrowOnError>;
463
- updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateCommentAutomationError, ThrowOnError>;
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<unknown, ListCommentAutomationLogsError, ThrowOnError>;
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.
@@ -8848,7 +8848,40 @@ type ListContactsData = {
8848
8848
  tag?: string;
8849
8849
  };
8850
8850
  };
8851
- type ListContactsResponse = (unknown);
8851
+ type ListContactsResponse = ({
8852
+ success?: boolean;
8853
+ contacts?: Array<{
8854
+ id?: string;
8855
+ name?: string;
8856
+ email?: string;
8857
+ company?: string;
8858
+ avatarUrl?: string;
8859
+ tags?: Array<(string)>;
8860
+ isSubscribed?: boolean;
8861
+ isBlocked?: boolean;
8862
+ lastMessageSentAt?: string;
8863
+ lastMessageReceivedAt?: string;
8864
+ messagesSentCount?: number;
8865
+ messagesReceivedCount?: number;
8866
+ customFields?: {
8867
+ [key: string]: unknown;
8868
+ };
8869
+ notes?: string;
8870
+ createdAt?: string;
8871
+ platform?: string;
8872
+ platformIdentifier?: string;
8873
+ displayIdentifier?: string;
8874
+ }>;
8875
+ filters?: {
8876
+ tags?: Array<(string)>;
8877
+ };
8878
+ pagination?: {
8879
+ total?: number;
8880
+ limit?: number;
8881
+ skip?: number;
8882
+ hasMore?: boolean;
8883
+ };
8884
+ });
8852
8885
  type ListContactsError = ({
8853
8886
  error?: string;
8854
8887
  });
@@ -8870,7 +8903,33 @@ type CreateContactData = {
8870
8903
  displayIdentifier?: string;
8871
8904
  };
8872
8905
  };
8873
- type CreateContactResponse = (unknown);
8906
+ type CreateContactResponse = ({
8907
+ success?: boolean;
8908
+ contact?: {
8909
+ id?: string;
8910
+ name?: string;
8911
+ email?: string;
8912
+ company?: string;
8913
+ tags?: Array<(string)>;
8914
+ isSubscribed?: boolean;
8915
+ isBlocked?: boolean;
8916
+ customFields?: {
8917
+ [key: string]: unknown;
8918
+ };
8919
+ notes?: string;
8920
+ createdAt?: string;
8921
+ };
8922
+ /**
8923
+ * Created when accountId, platform, and platformIdentifier are provided
8924
+ */
8925
+ channel?: {
8926
+ id?: string;
8927
+ platform?: string;
8928
+ platformIdentifier?: string;
8929
+ displayIdentifier?: string;
8930
+ };
8931
+ warning?: string;
8932
+ });
8874
8933
  type CreateContactError = ({
8875
8934
  error?: string;
8876
8935
  } | unknown);
@@ -8879,7 +8938,36 @@ type GetContactData = {
8879
8938
  contactId: string;
8880
8939
  };
8881
8940
  };
8882
- type GetContactResponse = (unknown);
8941
+ type GetContactResponse = ({
8942
+ success?: boolean;
8943
+ contact?: {
8944
+ id?: string;
8945
+ name?: string;
8946
+ email?: string;
8947
+ company?: string;
8948
+ avatarUrl?: string;
8949
+ tags?: Array<(string)>;
8950
+ isSubscribed?: boolean;
8951
+ isBlocked?: boolean;
8952
+ customFields?: {
8953
+ [key: string]: unknown;
8954
+ };
8955
+ notes?: string;
8956
+ conversationIds?: Array<(string)>;
8957
+ createdAt?: string;
8958
+ updatedAt?: string;
8959
+ };
8960
+ channels?: Array<{
8961
+ id?: string;
8962
+ accountId?: string;
8963
+ platform?: string;
8964
+ platformIdentifier?: string;
8965
+ displayIdentifier?: string;
8966
+ isSubscribed?: boolean;
8967
+ conversationId?: string;
8968
+ createdAt?: string;
8969
+ }>;
8970
+ });
8883
8971
  type GetContactError = ({
8884
8972
  error?: string;
8885
8973
  });
@@ -8898,7 +8986,21 @@ type UpdateContactData = {
8898
8986
  contactId: string;
8899
8987
  };
8900
8988
  };
8901
- type UpdateContactResponse = (unknown);
8989
+ type UpdateContactResponse = ({
8990
+ success?: boolean;
8991
+ contact?: {
8992
+ id?: string;
8993
+ name?: string;
8994
+ email?: string;
8995
+ company?: string;
8996
+ avatarUrl?: string;
8997
+ tags?: Array<(string)>;
8998
+ isSubscribed?: boolean;
8999
+ isBlocked?: boolean;
9000
+ notes?: string;
9001
+ updatedAt?: string;
9002
+ };
9003
+ });
8902
9004
  type UpdateContactError = ({
8903
9005
  error?: string;
8904
9006
  });
@@ -8916,7 +9018,22 @@ type GetContactChannelsData = {
8916
9018
  contactId: string;
8917
9019
  };
8918
9020
  };
8919
- type GetContactChannelsResponse = (unknown);
9021
+ type GetContactChannelsResponse = ({
9022
+ success?: boolean;
9023
+ channels?: Array<{
9024
+ id?: string;
9025
+ accountId?: string;
9026
+ platform?: string;
9027
+ platformIdentifier?: string;
9028
+ displayIdentifier?: string;
9029
+ isSubscribed?: boolean;
9030
+ conversationId?: string;
9031
+ metadata?: {
9032
+ [key: string]: unknown;
9033
+ };
9034
+ createdAt?: string;
9035
+ }>;
9036
+ });
8920
9037
  type GetContactChannelsError = ({
8921
9038
  error?: string;
8922
9039
  });
@@ -8935,7 +9052,15 @@ type BulkCreateContactsData = {
8935
9052
  }>;
8936
9053
  };
8937
9054
  };
8938
- type BulkCreateContactsResponse = (unknown);
9055
+ type BulkCreateContactsResponse = ({
9056
+ success?: boolean;
9057
+ created?: number;
9058
+ skipped?: number;
9059
+ errors?: Array<{
9060
+ [key: string]: unknown;
9061
+ }>;
9062
+ total?: number;
9063
+ });
8939
9064
  type BulkCreateContactsError = ({
8940
9065
  error?: string;
8941
9066
  });
@@ -8973,7 +9098,17 @@ type ListCustomFieldsData = {
8973
9098
  profileId?: string;
8974
9099
  };
8975
9100
  };
8976
- type ListCustomFieldsResponse = (unknown);
9101
+ type ListCustomFieldsResponse = ({
9102
+ success?: boolean;
9103
+ fields?: Array<{
9104
+ id?: string;
9105
+ name?: string;
9106
+ slug?: string;
9107
+ type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
9108
+ options?: Array<(string)>;
9109
+ createdAt?: string;
9110
+ }>;
9111
+ });
8977
9112
  type ListCustomFieldsError = ({
8978
9113
  error?: string;
8979
9114
  });
@@ -8992,7 +9127,17 @@ type CreateCustomFieldData = {
8992
9127
  options?: Array<(string)>;
8993
9128
  };
8994
9129
  };
8995
- type CreateCustomFieldResponse = (unknown);
9130
+ type CreateCustomFieldResponse = ({
9131
+ success?: boolean;
9132
+ field?: {
9133
+ id?: string;
9134
+ name?: string;
9135
+ slug?: string;
9136
+ type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
9137
+ options?: Array<(string)>;
9138
+ createdAt?: string;
9139
+ };
9140
+ });
8996
9141
  type CreateCustomFieldError = ({
8997
9142
  error?: string;
8998
9143
  } | unknown);
@@ -9005,7 +9150,16 @@ type UpdateCustomFieldData = {
9005
9150
  fieldId: string;
9006
9151
  };
9007
9152
  };
9008
- type UpdateCustomFieldResponse = (unknown);
9153
+ type UpdateCustomFieldResponse = ({
9154
+ success?: boolean;
9155
+ field?: {
9156
+ id?: string;
9157
+ name?: string;
9158
+ slug?: string;
9159
+ type?: string;
9160
+ options?: Array<(string)>;
9161
+ };
9162
+ });
9009
9163
  type UpdateCustomFieldError = ({
9010
9164
  error?: string;
9011
9165
  });
@@ -9647,7 +9801,26 @@ type CreateCommentAutomationData = {
9647
9801
  commentReply?: string;
9648
9802
  };
9649
9803
  };
9650
- type CreateCommentAutomationResponse = (unknown);
9804
+ type CreateCommentAutomationResponse = ({
9805
+ success?: boolean;
9806
+ automation?: {
9807
+ id?: string;
9808
+ name?: string;
9809
+ platform?: string;
9810
+ platformPostId?: string;
9811
+ keywords?: Array<(string)>;
9812
+ matchMode?: 'exact' | 'contains';
9813
+ dmMessage?: string;
9814
+ commentReply?: string;
9815
+ isActive?: boolean;
9816
+ stats?: {
9817
+ totalTriggered?: number;
9818
+ totalSent?: number;
9819
+ totalFailed?: number;
9820
+ };
9821
+ createdAt?: string;
9822
+ };
9823
+ });
9651
9824
  type CreateCommentAutomationError = (unknown | {
9652
9825
  error?: string;
9653
9826
  });
@@ -9656,7 +9829,40 @@ type GetCommentAutomationData = {
9656
9829
  automationId: string;
9657
9830
  };
9658
9831
  };
9659
- type GetCommentAutomationResponse = (unknown);
9832
+ type GetCommentAutomationResponse = ({
9833
+ success?: boolean;
9834
+ automation?: {
9835
+ id?: string;
9836
+ name?: string;
9837
+ platform?: string;
9838
+ accountId?: string;
9839
+ platformPostId?: string;
9840
+ postId?: string;
9841
+ postTitle?: string;
9842
+ keywords?: Array<(string)>;
9843
+ matchMode?: 'exact' | 'contains';
9844
+ dmMessage?: string;
9845
+ commentReply?: string;
9846
+ isActive?: boolean;
9847
+ stats?: {
9848
+ totalTriggered?: number;
9849
+ totalSent?: number;
9850
+ totalFailed?: number;
9851
+ };
9852
+ createdAt?: string;
9853
+ updatedAt?: string;
9854
+ };
9855
+ logs?: Array<{
9856
+ id?: string;
9857
+ commentId?: string;
9858
+ commenterId?: string;
9859
+ commenterName?: string;
9860
+ commentText?: string;
9861
+ status?: 'sent' | 'failed' | 'skipped';
9862
+ error?: string;
9863
+ createdAt?: string;
9864
+ }>;
9865
+ });
9660
9866
  type GetCommentAutomationError = ({
9661
9867
  error?: string;
9662
9868
  });
@@ -9673,7 +9879,19 @@ type UpdateCommentAutomationData = {
9673
9879
  automationId: string;
9674
9880
  };
9675
9881
  };
9676
- type UpdateCommentAutomationResponse = (unknown);
9882
+ type UpdateCommentAutomationResponse = ({
9883
+ success?: boolean;
9884
+ automation?: {
9885
+ id?: string;
9886
+ name?: string;
9887
+ keywords?: Array<(string)>;
9888
+ matchMode?: 'exact' | 'contains';
9889
+ dmMessage?: string;
9890
+ commentReply?: string;
9891
+ isActive?: boolean;
9892
+ updatedAt?: string;
9893
+ };
9894
+ });
9677
9895
  type UpdateCommentAutomationError = ({
9678
9896
  error?: string;
9679
9897
  });
@@ -9699,7 +9917,25 @@ type ListCommentAutomationLogsData = {
9699
9917
  status?: 'sent' | 'failed' | 'skipped';
9700
9918
  };
9701
9919
  };
9702
- type ListCommentAutomationLogsResponse = (unknown);
9920
+ type ListCommentAutomationLogsResponse = ({
9921
+ success?: boolean;
9922
+ logs?: Array<{
9923
+ id?: string;
9924
+ commentId?: string;
9925
+ commenterId?: string;
9926
+ commenterName?: string;
9927
+ commentText?: string;
9928
+ status?: 'sent' | 'failed' | 'skipped';
9929
+ error?: string;
9930
+ createdAt?: string;
9931
+ }>;
9932
+ pagination?: {
9933
+ total?: number;
9934
+ limit?: number;
9935
+ skip?: number;
9936
+ hasMore?: boolean;
9937
+ };
9938
+ });
9703
9939
  type ListCommentAutomationLogsError = ({
9704
9940
  error?: string;
9705
9941
  });
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<unknown, ListContactsError, ThrowOnError>;
408
- createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
409
- getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetContactError, ThrowOnError>;
410
- updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateContactError, ThrowOnError>;
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<unknown, GetContactChannelsError, ThrowOnError>;
413
- bulkCreateContacts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<BulkCreateContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, BulkCreateContactsError, ThrowOnError>;
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<unknown, ListCustomFieldsError, ThrowOnError>;
422
- createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
423
- updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateCustomFieldError, ThrowOnError>;
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<unknown, unknown, ThrowOnError>;
462
- getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetCommentAutomationError, ThrowOnError>;
463
- updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateCommentAutomationError, ThrowOnError>;
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<unknown, ListCommentAutomationLogsError, ThrowOnError>;
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.
@@ -8848,7 +8848,40 @@ type ListContactsData = {
8848
8848
  tag?: string;
8849
8849
  };
8850
8850
  };
8851
- type ListContactsResponse = (unknown);
8851
+ type ListContactsResponse = ({
8852
+ success?: boolean;
8853
+ contacts?: Array<{
8854
+ id?: string;
8855
+ name?: string;
8856
+ email?: string;
8857
+ company?: string;
8858
+ avatarUrl?: string;
8859
+ tags?: Array<(string)>;
8860
+ isSubscribed?: boolean;
8861
+ isBlocked?: boolean;
8862
+ lastMessageSentAt?: string;
8863
+ lastMessageReceivedAt?: string;
8864
+ messagesSentCount?: number;
8865
+ messagesReceivedCount?: number;
8866
+ customFields?: {
8867
+ [key: string]: unknown;
8868
+ };
8869
+ notes?: string;
8870
+ createdAt?: string;
8871
+ platform?: string;
8872
+ platformIdentifier?: string;
8873
+ displayIdentifier?: string;
8874
+ }>;
8875
+ filters?: {
8876
+ tags?: Array<(string)>;
8877
+ };
8878
+ pagination?: {
8879
+ total?: number;
8880
+ limit?: number;
8881
+ skip?: number;
8882
+ hasMore?: boolean;
8883
+ };
8884
+ });
8852
8885
  type ListContactsError = ({
8853
8886
  error?: string;
8854
8887
  });
@@ -8870,7 +8903,33 @@ type CreateContactData = {
8870
8903
  displayIdentifier?: string;
8871
8904
  };
8872
8905
  };
8873
- type CreateContactResponse = (unknown);
8906
+ type CreateContactResponse = ({
8907
+ success?: boolean;
8908
+ contact?: {
8909
+ id?: string;
8910
+ name?: string;
8911
+ email?: string;
8912
+ company?: string;
8913
+ tags?: Array<(string)>;
8914
+ isSubscribed?: boolean;
8915
+ isBlocked?: boolean;
8916
+ customFields?: {
8917
+ [key: string]: unknown;
8918
+ };
8919
+ notes?: string;
8920
+ createdAt?: string;
8921
+ };
8922
+ /**
8923
+ * Created when accountId, platform, and platformIdentifier are provided
8924
+ */
8925
+ channel?: {
8926
+ id?: string;
8927
+ platform?: string;
8928
+ platformIdentifier?: string;
8929
+ displayIdentifier?: string;
8930
+ };
8931
+ warning?: string;
8932
+ });
8874
8933
  type CreateContactError = ({
8875
8934
  error?: string;
8876
8935
  } | unknown);
@@ -8879,7 +8938,36 @@ type GetContactData = {
8879
8938
  contactId: string;
8880
8939
  };
8881
8940
  };
8882
- type GetContactResponse = (unknown);
8941
+ type GetContactResponse = ({
8942
+ success?: boolean;
8943
+ contact?: {
8944
+ id?: string;
8945
+ name?: string;
8946
+ email?: string;
8947
+ company?: string;
8948
+ avatarUrl?: string;
8949
+ tags?: Array<(string)>;
8950
+ isSubscribed?: boolean;
8951
+ isBlocked?: boolean;
8952
+ customFields?: {
8953
+ [key: string]: unknown;
8954
+ };
8955
+ notes?: string;
8956
+ conversationIds?: Array<(string)>;
8957
+ createdAt?: string;
8958
+ updatedAt?: string;
8959
+ };
8960
+ channels?: Array<{
8961
+ id?: string;
8962
+ accountId?: string;
8963
+ platform?: string;
8964
+ platformIdentifier?: string;
8965
+ displayIdentifier?: string;
8966
+ isSubscribed?: boolean;
8967
+ conversationId?: string;
8968
+ createdAt?: string;
8969
+ }>;
8970
+ });
8883
8971
  type GetContactError = ({
8884
8972
  error?: string;
8885
8973
  });
@@ -8898,7 +8986,21 @@ type UpdateContactData = {
8898
8986
  contactId: string;
8899
8987
  };
8900
8988
  };
8901
- type UpdateContactResponse = (unknown);
8989
+ type UpdateContactResponse = ({
8990
+ success?: boolean;
8991
+ contact?: {
8992
+ id?: string;
8993
+ name?: string;
8994
+ email?: string;
8995
+ company?: string;
8996
+ avatarUrl?: string;
8997
+ tags?: Array<(string)>;
8998
+ isSubscribed?: boolean;
8999
+ isBlocked?: boolean;
9000
+ notes?: string;
9001
+ updatedAt?: string;
9002
+ };
9003
+ });
8902
9004
  type UpdateContactError = ({
8903
9005
  error?: string;
8904
9006
  });
@@ -8916,7 +9018,22 @@ type GetContactChannelsData = {
8916
9018
  contactId: string;
8917
9019
  };
8918
9020
  };
8919
- type GetContactChannelsResponse = (unknown);
9021
+ type GetContactChannelsResponse = ({
9022
+ success?: boolean;
9023
+ channels?: Array<{
9024
+ id?: string;
9025
+ accountId?: string;
9026
+ platform?: string;
9027
+ platformIdentifier?: string;
9028
+ displayIdentifier?: string;
9029
+ isSubscribed?: boolean;
9030
+ conversationId?: string;
9031
+ metadata?: {
9032
+ [key: string]: unknown;
9033
+ };
9034
+ createdAt?: string;
9035
+ }>;
9036
+ });
8920
9037
  type GetContactChannelsError = ({
8921
9038
  error?: string;
8922
9039
  });
@@ -8935,7 +9052,15 @@ type BulkCreateContactsData = {
8935
9052
  }>;
8936
9053
  };
8937
9054
  };
8938
- type BulkCreateContactsResponse = (unknown);
9055
+ type BulkCreateContactsResponse = ({
9056
+ success?: boolean;
9057
+ created?: number;
9058
+ skipped?: number;
9059
+ errors?: Array<{
9060
+ [key: string]: unknown;
9061
+ }>;
9062
+ total?: number;
9063
+ });
8939
9064
  type BulkCreateContactsError = ({
8940
9065
  error?: string;
8941
9066
  });
@@ -8973,7 +9098,17 @@ type ListCustomFieldsData = {
8973
9098
  profileId?: string;
8974
9099
  };
8975
9100
  };
8976
- type ListCustomFieldsResponse = (unknown);
9101
+ type ListCustomFieldsResponse = ({
9102
+ success?: boolean;
9103
+ fields?: Array<{
9104
+ id?: string;
9105
+ name?: string;
9106
+ slug?: string;
9107
+ type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
9108
+ options?: Array<(string)>;
9109
+ createdAt?: string;
9110
+ }>;
9111
+ });
8977
9112
  type ListCustomFieldsError = ({
8978
9113
  error?: string;
8979
9114
  });
@@ -8992,7 +9127,17 @@ type CreateCustomFieldData = {
8992
9127
  options?: Array<(string)>;
8993
9128
  };
8994
9129
  };
8995
- type CreateCustomFieldResponse = (unknown);
9130
+ type CreateCustomFieldResponse = ({
9131
+ success?: boolean;
9132
+ field?: {
9133
+ id?: string;
9134
+ name?: string;
9135
+ slug?: string;
9136
+ type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
9137
+ options?: Array<(string)>;
9138
+ createdAt?: string;
9139
+ };
9140
+ });
8996
9141
  type CreateCustomFieldError = ({
8997
9142
  error?: string;
8998
9143
  } | unknown);
@@ -9005,7 +9150,16 @@ type UpdateCustomFieldData = {
9005
9150
  fieldId: string;
9006
9151
  };
9007
9152
  };
9008
- type UpdateCustomFieldResponse = (unknown);
9153
+ type UpdateCustomFieldResponse = ({
9154
+ success?: boolean;
9155
+ field?: {
9156
+ id?: string;
9157
+ name?: string;
9158
+ slug?: string;
9159
+ type?: string;
9160
+ options?: Array<(string)>;
9161
+ };
9162
+ });
9009
9163
  type UpdateCustomFieldError = ({
9010
9164
  error?: string;
9011
9165
  });
@@ -9647,7 +9801,26 @@ type CreateCommentAutomationData = {
9647
9801
  commentReply?: string;
9648
9802
  };
9649
9803
  };
9650
- type CreateCommentAutomationResponse = (unknown);
9804
+ type CreateCommentAutomationResponse = ({
9805
+ success?: boolean;
9806
+ automation?: {
9807
+ id?: string;
9808
+ name?: string;
9809
+ platform?: string;
9810
+ platformPostId?: string;
9811
+ keywords?: Array<(string)>;
9812
+ matchMode?: 'exact' | 'contains';
9813
+ dmMessage?: string;
9814
+ commentReply?: string;
9815
+ isActive?: boolean;
9816
+ stats?: {
9817
+ totalTriggered?: number;
9818
+ totalSent?: number;
9819
+ totalFailed?: number;
9820
+ };
9821
+ createdAt?: string;
9822
+ };
9823
+ });
9651
9824
  type CreateCommentAutomationError = (unknown | {
9652
9825
  error?: string;
9653
9826
  });
@@ -9656,7 +9829,40 @@ type GetCommentAutomationData = {
9656
9829
  automationId: string;
9657
9830
  };
9658
9831
  };
9659
- type GetCommentAutomationResponse = (unknown);
9832
+ type GetCommentAutomationResponse = ({
9833
+ success?: boolean;
9834
+ automation?: {
9835
+ id?: string;
9836
+ name?: string;
9837
+ platform?: string;
9838
+ accountId?: string;
9839
+ platformPostId?: string;
9840
+ postId?: string;
9841
+ postTitle?: string;
9842
+ keywords?: Array<(string)>;
9843
+ matchMode?: 'exact' | 'contains';
9844
+ dmMessage?: string;
9845
+ commentReply?: string;
9846
+ isActive?: boolean;
9847
+ stats?: {
9848
+ totalTriggered?: number;
9849
+ totalSent?: number;
9850
+ totalFailed?: number;
9851
+ };
9852
+ createdAt?: string;
9853
+ updatedAt?: string;
9854
+ };
9855
+ logs?: Array<{
9856
+ id?: string;
9857
+ commentId?: string;
9858
+ commenterId?: string;
9859
+ commenterName?: string;
9860
+ commentText?: string;
9861
+ status?: 'sent' | 'failed' | 'skipped';
9862
+ error?: string;
9863
+ createdAt?: string;
9864
+ }>;
9865
+ });
9660
9866
  type GetCommentAutomationError = ({
9661
9867
  error?: string;
9662
9868
  });
@@ -9673,7 +9879,19 @@ type UpdateCommentAutomationData = {
9673
9879
  automationId: string;
9674
9880
  };
9675
9881
  };
9676
- type UpdateCommentAutomationResponse = (unknown);
9882
+ type UpdateCommentAutomationResponse = ({
9883
+ success?: boolean;
9884
+ automation?: {
9885
+ id?: string;
9886
+ name?: string;
9887
+ keywords?: Array<(string)>;
9888
+ matchMode?: 'exact' | 'contains';
9889
+ dmMessage?: string;
9890
+ commentReply?: string;
9891
+ isActive?: boolean;
9892
+ updatedAt?: string;
9893
+ };
9894
+ });
9677
9895
  type UpdateCommentAutomationError = ({
9678
9896
  error?: string;
9679
9897
  });
@@ -9699,7 +9917,25 @@ type ListCommentAutomationLogsData = {
9699
9917
  status?: 'sent' | 'failed' | 'skipped';
9700
9918
  };
9701
9919
  };
9702
- type ListCommentAutomationLogsResponse = (unknown);
9920
+ type ListCommentAutomationLogsResponse = ({
9921
+ success?: boolean;
9922
+ logs?: Array<{
9923
+ id?: string;
9924
+ commentId?: string;
9925
+ commenterId?: string;
9926
+ commenterName?: string;
9927
+ commentText?: string;
9928
+ status?: 'sent' | 'failed' | 'skipped';
9929
+ error?: string;
9930
+ createdAt?: string;
9931
+ }>;
9932
+ pagination?: {
9933
+ total?: number;
9934
+ limit?: number;
9935
+ skip?: number;
9936
+ hasMore?: boolean;
9937
+ };
9938
+ });
9703
9939
  type ListCommentAutomationLogsError = ({
9704
9940
  error?: string;
9705
9941
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9000,7 +9000,40 @@ export type ListContactsData = {
9000
9000
  };
9001
9001
  };
9002
9002
 
9003
- export type ListContactsResponse = (unknown);
9003
+ export type ListContactsResponse = ({
9004
+ success?: boolean;
9005
+ contacts?: Array<{
9006
+ id?: string;
9007
+ name?: string;
9008
+ email?: string;
9009
+ company?: string;
9010
+ avatarUrl?: string;
9011
+ tags?: Array<(string)>;
9012
+ isSubscribed?: boolean;
9013
+ isBlocked?: boolean;
9014
+ lastMessageSentAt?: string;
9015
+ lastMessageReceivedAt?: string;
9016
+ messagesSentCount?: number;
9017
+ messagesReceivedCount?: number;
9018
+ customFields?: {
9019
+ [key: string]: unknown;
9020
+ };
9021
+ notes?: string;
9022
+ createdAt?: string;
9023
+ platform?: string;
9024
+ platformIdentifier?: string;
9025
+ displayIdentifier?: string;
9026
+ }>;
9027
+ filters?: {
9028
+ tags?: Array<(string)>;
9029
+ };
9030
+ pagination?: {
9031
+ total?: number;
9032
+ limit?: number;
9033
+ skip?: number;
9034
+ hasMore?: boolean;
9035
+ };
9036
+ });
9004
9037
 
9005
9038
  export type ListContactsError = ({
9006
9039
  error?: string;
@@ -9025,7 +9058,33 @@ export type CreateContactData = {
9025
9058
  };
9026
9059
  };
9027
9060
 
9028
- export type CreateContactResponse = (unknown);
9061
+ export type CreateContactResponse = ({
9062
+ success?: boolean;
9063
+ contact?: {
9064
+ id?: string;
9065
+ name?: string;
9066
+ email?: string;
9067
+ company?: string;
9068
+ tags?: Array<(string)>;
9069
+ isSubscribed?: boolean;
9070
+ isBlocked?: boolean;
9071
+ customFields?: {
9072
+ [key: string]: unknown;
9073
+ };
9074
+ notes?: string;
9075
+ createdAt?: string;
9076
+ };
9077
+ /**
9078
+ * Created when accountId, platform, and platformIdentifier are provided
9079
+ */
9080
+ channel?: {
9081
+ id?: string;
9082
+ platform?: string;
9083
+ platformIdentifier?: string;
9084
+ displayIdentifier?: string;
9085
+ };
9086
+ warning?: string;
9087
+ });
9029
9088
 
9030
9089
  export type CreateContactError = ({
9031
9090
  error?: string;
@@ -9037,7 +9096,36 @@ export type GetContactData = {
9037
9096
  };
9038
9097
  };
9039
9098
 
9040
- export type GetContactResponse = (unknown);
9099
+ export type GetContactResponse = ({
9100
+ success?: boolean;
9101
+ contact?: {
9102
+ id?: string;
9103
+ name?: string;
9104
+ email?: string;
9105
+ company?: string;
9106
+ avatarUrl?: string;
9107
+ tags?: Array<(string)>;
9108
+ isSubscribed?: boolean;
9109
+ isBlocked?: boolean;
9110
+ customFields?: {
9111
+ [key: string]: unknown;
9112
+ };
9113
+ notes?: string;
9114
+ conversationIds?: Array<(string)>;
9115
+ createdAt?: string;
9116
+ updatedAt?: string;
9117
+ };
9118
+ channels?: Array<{
9119
+ id?: string;
9120
+ accountId?: string;
9121
+ platform?: string;
9122
+ platformIdentifier?: string;
9123
+ displayIdentifier?: string;
9124
+ isSubscribed?: boolean;
9125
+ conversationId?: string;
9126
+ createdAt?: string;
9127
+ }>;
9128
+ });
9041
9129
 
9042
9130
  export type GetContactError = ({
9043
9131
  error?: string;
@@ -9059,7 +9147,21 @@ export type UpdateContactData = {
9059
9147
  };
9060
9148
  };
9061
9149
 
9062
- export type UpdateContactResponse = (unknown);
9150
+ export type UpdateContactResponse = ({
9151
+ success?: boolean;
9152
+ contact?: {
9153
+ id?: string;
9154
+ name?: string;
9155
+ email?: string;
9156
+ company?: string;
9157
+ avatarUrl?: string;
9158
+ tags?: Array<(string)>;
9159
+ isSubscribed?: boolean;
9160
+ isBlocked?: boolean;
9161
+ notes?: string;
9162
+ updatedAt?: string;
9163
+ };
9164
+ });
9063
9165
 
9064
9166
  export type UpdateContactError = ({
9065
9167
  error?: string;
@@ -9083,7 +9185,22 @@ export type GetContactChannelsData = {
9083
9185
  };
9084
9186
  };
9085
9187
 
9086
- export type GetContactChannelsResponse = (unknown);
9188
+ export type GetContactChannelsResponse = ({
9189
+ success?: boolean;
9190
+ channels?: Array<{
9191
+ id?: string;
9192
+ accountId?: string;
9193
+ platform?: string;
9194
+ platformIdentifier?: string;
9195
+ displayIdentifier?: string;
9196
+ isSubscribed?: boolean;
9197
+ conversationId?: string;
9198
+ metadata?: {
9199
+ [key: string]: unknown;
9200
+ };
9201
+ createdAt?: string;
9202
+ }>;
9203
+ });
9087
9204
 
9088
9205
  export type GetContactChannelsError = ({
9089
9206
  error?: string;
@@ -9105,7 +9222,15 @@ export type BulkCreateContactsData = {
9105
9222
  };
9106
9223
  };
9107
9224
 
9108
- export type BulkCreateContactsResponse = (unknown);
9225
+ export type BulkCreateContactsResponse = ({
9226
+ success?: boolean;
9227
+ created?: number;
9228
+ skipped?: number;
9229
+ errors?: Array<{
9230
+ [key: string]: unknown;
9231
+ }>;
9232
+ total?: number;
9233
+ });
9109
9234
 
9110
9235
  export type BulkCreateContactsError = ({
9111
9236
  error?: string;
@@ -9152,7 +9277,17 @@ export type ListCustomFieldsData = {
9152
9277
  };
9153
9278
  };
9154
9279
 
9155
- export type ListCustomFieldsResponse = (unknown);
9280
+ export type ListCustomFieldsResponse = ({
9281
+ success?: boolean;
9282
+ fields?: Array<{
9283
+ id?: string;
9284
+ name?: string;
9285
+ slug?: string;
9286
+ type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
9287
+ options?: Array<(string)>;
9288
+ createdAt?: string;
9289
+ }>;
9290
+ });
9156
9291
 
9157
9292
  export type ListCustomFieldsError = ({
9158
9293
  error?: string;
@@ -9174,7 +9309,17 @@ export type CreateCustomFieldData = {
9174
9309
  };
9175
9310
  };
9176
9311
 
9177
- export type CreateCustomFieldResponse = (unknown);
9312
+ export type CreateCustomFieldResponse = ({
9313
+ success?: boolean;
9314
+ field?: {
9315
+ id?: string;
9316
+ name?: string;
9317
+ slug?: string;
9318
+ type?: 'text' | 'number' | 'date' | 'boolean' | 'select';
9319
+ options?: Array<(string)>;
9320
+ createdAt?: string;
9321
+ };
9322
+ });
9178
9323
 
9179
9324
  export type CreateCustomFieldError = ({
9180
9325
  error?: string;
@@ -9190,7 +9335,16 @@ export type UpdateCustomFieldData = {
9190
9335
  };
9191
9336
  };
9192
9337
 
9193
- export type UpdateCustomFieldResponse = (unknown);
9338
+ export type UpdateCustomFieldResponse = ({
9339
+ success?: boolean;
9340
+ field?: {
9341
+ id?: string;
9342
+ name?: string;
9343
+ slug?: string;
9344
+ type?: string;
9345
+ options?: Array<(string)>;
9346
+ };
9347
+ });
9194
9348
 
9195
9349
  export type UpdateCustomFieldError = ({
9196
9350
  error?: string;
@@ -9901,7 +10055,26 @@ export type CreateCommentAutomationData = {
9901
10055
  };
9902
10056
  };
9903
10057
 
9904
- export type CreateCommentAutomationResponse = (unknown);
10058
+ export type CreateCommentAutomationResponse = ({
10059
+ success?: boolean;
10060
+ automation?: {
10061
+ id?: string;
10062
+ name?: string;
10063
+ platform?: string;
10064
+ platformPostId?: string;
10065
+ keywords?: Array<(string)>;
10066
+ matchMode?: 'exact' | 'contains';
10067
+ dmMessage?: string;
10068
+ commentReply?: string;
10069
+ isActive?: boolean;
10070
+ stats?: {
10071
+ totalTriggered?: number;
10072
+ totalSent?: number;
10073
+ totalFailed?: number;
10074
+ };
10075
+ createdAt?: string;
10076
+ };
10077
+ });
9905
10078
 
9906
10079
  export type CreateCommentAutomationError = (unknown | {
9907
10080
  error?: string;
@@ -9913,7 +10086,40 @@ export type GetCommentAutomationData = {
9913
10086
  };
9914
10087
  };
9915
10088
 
9916
- export type GetCommentAutomationResponse = (unknown);
10089
+ export type GetCommentAutomationResponse = ({
10090
+ success?: boolean;
10091
+ automation?: {
10092
+ id?: string;
10093
+ name?: string;
10094
+ platform?: string;
10095
+ accountId?: string;
10096
+ platformPostId?: string;
10097
+ postId?: string;
10098
+ postTitle?: string;
10099
+ keywords?: Array<(string)>;
10100
+ matchMode?: 'exact' | 'contains';
10101
+ dmMessage?: string;
10102
+ commentReply?: string;
10103
+ isActive?: boolean;
10104
+ stats?: {
10105
+ totalTriggered?: number;
10106
+ totalSent?: number;
10107
+ totalFailed?: number;
10108
+ };
10109
+ createdAt?: string;
10110
+ updatedAt?: string;
10111
+ };
10112
+ logs?: Array<{
10113
+ id?: string;
10114
+ commentId?: string;
10115
+ commenterId?: string;
10116
+ commenterName?: string;
10117
+ commentText?: string;
10118
+ status?: 'sent' | 'failed' | 'skipped';
10119
+ error?: string;
10120
+ createdAt?: string;
10121
+ }>;
10122
+ });
9917
10123
 
9918
10124
  export type GetCommentAutomationError = ({
9919
10125
  error?: string;
@@ -9933,7 +10139,19 @@ export type UpdateCommentAutomationData = {
9933
10139
  };
9934
10140
  };
9935
10141
 
9936
- export type UpdateCommentAutomationResponse = (unknown);
10142
+ export type UpdateCommentAutomationResponse = ({
10143
+ success?: boolean;
10144
+ automation?: {
10145
+ id?: string;
10146
+ name?: string;
10147
+ keywords?: Array<(string)>;
10148
+ matchMode?: 'exact' | 'contains';
10149
+ dmMessage?: string;
10150
+ commentReply?: string;
10151
+ isActive?: boolean;
10152
+ updatedAt?: string;
10153
+ };
10154
+ });
9937
10155
 
9938
10156
  export type UpdateCommentAutomationError = ({
9939
10157
  error?: string;
@@ -9965,7 +10183,25 @@ export type ListCommentAutomationLogsData = {
9965
10183
  };
9966
10184
  };
9967
10185
 
9968
- export type ListCommentAutomationLogsResponse = (unknown);
10186
+ export type ListCommentAutomationLogsResponse = ({
10187
+ success?: boolean;
10188
+ logs?: Array<{
10189
+ id?: string;
10190
+ commentId?: string;
10191
+ commenterId?: string;
10192
+ commenterName?: string;
10193
+ commentText?: string;
10194
+ status?: 'sent' | 'failed' | 'skipped';
10195
+ error?: string;
10196
+ createdAt?: string;
10197
+ }>;
10198
+ pagination?: {
10199
+ total?: number;
10200
+ limit?: number;
10201
+ skip?: number;
10202
+ hasMore?: boolean;
10203
+ };
10204
+ });
9969
10205
 
9970
10206
  export type ListCommentAutomationLogsError = ({
9971
10207
  error?: string;