@getlatedev/node 0.2.6 → 0.2.7

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,7 +404,7 @@ 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>;
407
+ listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListContactsError, ThrowOnError>;
408
408
  createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
409
409
  getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetContactError, ThrowOnError>;
410
410
  updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateContactError, ThrowOnError>;
@@ -418,7 +418,7 @@ 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>;
421
+ listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListCustomFieldsError, ThrowOnError>;
422
422
  createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
423
423
  updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, 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>;
@@ -427,7 +427,7 @@ declare class Zernio {
427
427
  * broadcasts API
428
428
  */
429
429
  broadcasts: {
430
- listBroadcasts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListBroadcastsError, ThrowOnError>;
430
+ listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListBroadcastsError, ThrowOnError>;
431
431
  createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateBroadcastError, ThrowOnError>;
432
432
  getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetBroadcastError, ThrowOnError>;
433
433
  updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateBroadcastError, ThrowOnError>;
@@ -442,7 +442,7 @@ declare class Zernio {
442
442
  * sequences API
443
443
  */
444
444
  sequences: {
445
- listSequences: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListSequencesError, ThrowOnError>;
445
+ listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListSequencesError, ThrowOnError>;
446
446
  createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateSequenceError, ThrowOnError>;
447
447
  getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetSequenceError, ThrowOnError>;
448
448
  updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateSequenceError, ThrowOnError>;
@@ -457,7 +457,7 @@ declare class Zernio {
457
457
  * commentautomations API
458
458
  */
459
459
  commentautomations: {
460
- listCommentAutomations: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
460
+ listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
461
461
  createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
462
462
  getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetCommentAutomationError, ThrowOnError>;
463
463
  updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateCommentAutomationError, ThrowOnError>;
@@ -8820,11 +8820,14 @@ type ReleaseWhatsAppPhoneNumberError = (unknown | {
8820
8820
  error?: string;
8821
8821
  });
8822
8822
  type ListContactsData = {
8823
- query: {
8823
+ query?: {
8824
8824
  isSubscribed?: 'true' | 'false';
8825
8825
  limit?: number;
8826
8826
  platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
8827
- profileId: string;
8827
+ /**
8828
+ * Filter by profile. Omit to list across all profiles
8829
+ */
8830
+ profileId?: string;
8828
8831
  search?: string;
8829
8832
  skip?: number;
8830
8833
  tag?: string;
@@ -8948,8 +8951,11 @@ type ClearContactFieldValueError = ({
8948
8951
  error?: string;
8949
8952
  });
8950
8953
  type ListCustomFieldsData = {
8951
- query: {
8952
- profileId: string;
8954
+ query?: {
8955
+ /**
8956
+ * Filter by profile. Omit to list across all profiles
8957
+ */
8958
+ profileId?: string;
8953
8959
  };
8954
8960
  };
8955
8961
  type ListCustomFieldsResponse = (unknown);
@@ -8998,10 +9004,13 @@ type DeleteCustomFieldError = ({
8998
9004
  error?: string;
8999
9005
  });
9000
9006
  type ListBroadcastsData = {
9001
- query: {
9007
+ query?: {
9002
9008
  limit?: number;
9003
9009
  platform?: string;
9004
- profileId: string;
9010
+ /**
9011
+ * Filter by profile. Omit to list across all profiles
9012
+ */
9013
+ profileId?: string;
9005
9014
  skip?: number;
9006
9015
  status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
9007
9016
  };
@@ -9134,9 +9143,12 @@ type AddBroadcastRecipientsError = ({
9134
9143
  error?: string;
9135
9144
  });
9136
9145
  type ListSequencesData = {
9137
- query: {
9146
+ query?: {
9138
9147
  limit?: number;
9139
- profileId: string;
9148
+ /**
9149
+ * Filter by profile. Omit to list across all profiles
9150
+ */
9151
+ profileId?: string;
9140
9152
  skip?: number;
9141
9153
  status?: 'draft' | 'active' | 'paused';
9142
9154
  };
@@ -9257,11 +9269,11 @@ type ListSequenceEnrollmentsError = ({
9257
9269
  error?: string;
9258
9270
  });
9259
9271
  type ListCommentAutomationsData = {
9260
- query: {
9272
+ query?: {
9261
9273
  /**
9262
- * Profile ID
9274
+ * Filter by profile. Omit to list across all profiles
9263
9275
  */
9264
- profileId: string;
9276
+ profileId?: string;
9265
9277
  };
9266
9278
  };
9267
9279
  type ListCommentAutomationsResponse = ({
package/dist/index.d.ts CHANGED
@@ -404,7 +404,7 @@ 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>;
407
+ listContacts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListContactsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListContactsError, ThrowOnError>;
408
408
  createContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
409
409
  getContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetContactError, ThrowOnError>;
410
410
  updateContact: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateContactData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateContactError, ThrowOnError>;
@@ -418,7 +418,7 @@ 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>;
421
+ listCustomFields: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListCustomFieldsError, ThrowOnError>;
422
422
  createCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
423
423
  updateCustomField: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCustomFieldData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, 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>;
@@ -427,7 +427,7 @@ declare class Zernio {
427
427
  * broadcasts API
428
428
  */
429
429
  broadcasts: {
430
- listBroadcasts: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListBroadcastsError, ThrowOnError>;
430
+ listBroadcasts: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListBroadcastsError, ThrowOnError>;
431
431
  createBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateBroadcastError, ThrowOnError>;
432
432
  getBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetBroadcastError, ThrowOnError>;
433
433
  updateBroadcast: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateBroadcastData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateBroadcastError, ThrowOnError>;
@@ -442,7 +442,7 @@ declare class Zernio {
442
442
  * sequences API
443
443
  */
444
444
  sequences: {
445
- listSequences: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListSequencesError, ThrowOnError>;
445
+ listSequences: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListSequencesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, ListSequencesError, ThrowOnError>;
446
446
  createSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, CreateSequenceError, ThrowOnError>;
447
447
  getSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetSequenceError, ThrowOnError>;
448
448
  updateSequence: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateSequenceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateSequenceError, ThrowOnError>;
@@ -457,7 +457,7 @@ declare class Zernio {
457
457
  * commentautomations API
458
458
  */
459
459
  commentautomations: {
460
- listCommentAutomations: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
460
+ listCommentAutomations: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>;
461
461
  createCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<CreateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, unknown, ThrowOnError>;
462
462
  getCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<GetCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, GetCommentAutomationError, ThrowOnError>;
463
463
  updateCommentAutomation: <ThrowOnError extends boolean = false>(options: _hey_api_client_fetch.OptionsLegacyParser<UpdateCommentAutomationData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<unknown, UpdateCommentAutomationError, ThrowOnError>;
@@ -8820,11 +8820,14 @@ type ReleaseWhatsAppPhoneNumberError = (unknown | {
8820
8820
  error?: string;
8821
8821
  });
8822
8822
  type ListContactsData = {
8823
- query: {
8823
+ query?: {
8824
8824
  isSubscribed?: 'true' | 'false';
8825
8825
  limit?: number;
8826
8826
  platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
8827
- profileId: string;
8827
+ /**
8828
+ * Filter by profile. Omit to list across all profiles
8829
+ */
8830
+ profileId?: string;
8828
8831
  search?: string;
8829
8832
  skip?: number;
8830
8833
  tag?: string;
@@ -8948,8 +8951,11 @@ type ClearContactFieldValueError = ({
8948
8951
  error?: string;
8949
8952
  });
8950
8953
  type ListCustomFieldsData = {
8951
- query: {
8952
- profileId: string;
8954
+ query?: {
8955
+ /**
8956
+ * Filter by profile. Omit to list across all profiles
8957
+ */
8958
+ profileId?: string;
8953
8959
  };
8954
8960
  };
8955
8961
  type ListCustomFieldsResponse = (unknown);
@@ -8998,10 +9004,13 @@ type DeleteCustomFieldError = ({
8998
9004
  error?: string;
8999
9005
  });
9000
9006
  type ListBroadcastsData = {
9001
- query: {
9007
+ query?: {
9002
9008
  limit?: number;
9003
9009
  platform?: string;
9004
- profileId: string;
9010
+ /**
9011
+ * Filter by profile. Omit to list across all profiles
9012
+ */
9013
+ profileId?: string;
9005
9014
  skip?: number;
9006
9015
  status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
9007
9016
  };
@@ -9134,9 +9143,12 @@ type AddBroadcastRecipientsError = ({
9134
9143
  error?: string;
9135
9144
  });
9136
9145
  type ListSequencesData = {
9137
- query: {
9146
+ query?: {
9138
9147
  limit?: number;
9139
- profileId: string;
9148
+ /**
9149
+ * Filter by profile. Omit to list across all profiles
9150
+ */
9151
+ profileId?: string;
9140
9152
  skip?: number;
9141
9153
  status?: 'draft' | 'active' | 'paused';
9142
9154
  };
@@ -9257,11 +9269,11 @@ type ListSequenceEnrollmentsError = ({
9257
9269
  error?: string;
9258
9270
  });
9259
9271
  type ListCommentAutomationsData = {
9260
- query: {
9272
+ query?: {
9261
9273
  /**
9262
- * Profile ID
9274
+ * Filter by profile. Omit to list across all profiles
9263
9275
  */
9264
- profileId: string;
9276
+ profileId?: string;
9265
9277
  };
9266
9278
  };
9267
9279
  type ListCommentAutomationsResponse = ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2357,7 +2357,7 @@ export const releaseWhatsAppPhoneNumber = <ThrowOnError extends boolean = false>
2357
2357
  * List contacts
2358
2358
  * List and search contacts for a profile. Supports filtering by tags, platform, subscription status, and full-text search.
2359
2359
  */
2360
- export const listContacts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListContactsData, ThrowOnError>) => {
2360
+ export const listContacts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListContactsData, ThrowOnError>) => {
2361
2361
  return (options?.client ?? client).get<ListContactsResponse, ListContactsError, ThrowOnError>({
2362
2362
  ...options,
2363
2363
  url: '/v1/contacts'
@@ -2449,7 +2449,7 @@ export const clearContactFieldValue = <ThrowOnError extends boolean = false>(opt
2449
2449
  /**
2450
2450
  * List custom field definitions
2451
2451
  */
2452
- export const listCustomFields = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => {
2452
+ export const listCustomFields = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListCustomFieldsData, ThrowOnError>) => {
2453
2453
  return (options?.client ?? client).get<ListCustomFieldsResponse, ListCustomFieldsError, ThrowOnError>({
2454
2454
  ...options,
2455
2455
  url: '/v1/custom-fields'
@@ -2489,7 +2489,7 @@ export const deleteCustomField = <ThrowOnError extends boolean = false>(options:
2489
2489
  /**
2490
2490
  * List broadcasts
2491
2491
  */
2492
- export const listBroadcasts = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => {
2492
+ export const listBroadcasts = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListBroadcastsData, ThrowOnError>) => {
2493
2493
  return (options?.client ?? client).get<ListBroadcastsResponse, ListBroadcastsError, ThrowOnError>({
2494
2494
  ...options,
2495
2495
  url: '/v1/broadcasts'
@@ -2589,7 +2589,7 @@ export const addBroadcastRecipients = <ThrowOnError extends boolean = false>(opt
2589
2589
  /**
2590
2590
  * List sequences
2591
2591
  */
2592
- export const listSequences = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListSequencesData, ThrowOnError>) => {
2592
+ export const listSequences = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListSequencesData, ThrowOnError>) => {
2593
2593
  return (options?.client ?? client).get<ListSequencesResponse, ListSequencesError, ThrowOnError>({
2594
2594
  ...options,
2595
2595
  url: '/v1/sequences'
@@ -2690,7 +2690,7 @@ export const listSequenceEnrollments = <ThrowOnError extends boolean = false>(op
2690
2690
  * List comment-to-DM automations
2691
2691
  * List all comment-to-DM automations for a profile. Returns automations with their stats.
2692
2692
  */
2693
- export const listCommentAutomations = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => {
2693
+ export const listCommentAutomations = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListCommentAutomationsData, ThrowOnError>) => {
2694
2694
  return (options?.client ?? client).get<ListCommentAutomationsResponse, ListCommentAutomationsError, ThrowOnError>({
2695
2695
  ...options,
2696
2696
  url: '/v1/comment-automations'
@@ -8971,11 +8971,14 @@ export type ReleaseWhatsAppPhoneNumberError = (unknown | {
8971
8971
  });
8972
8972
 
8973
8973
  export type ListContactsData = {
8974
- query: {
8974
+ query?: {
8975
8975
  isSubscribed?: 'true' | 'false';
8976
8976
  limit?: number;
8977
8977
  platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
8978
- profileId: string;
8978
+ /**
8979
+ * Filter by profile. Omit to list across all profiles
8980
+ */
8981
+ profileId?: string;
8979
8982
  search?: string;
8980
8983
  skip?: number;
8981
8984
  tag?: string;
@@ -9126,8 +9129,11 @@ export type ClearContactFieldValueError = ({
9126
9129
  });
9127
9130
 
9128
9131
  export type ListCustomFieldsData = {
9129
- query: {
9130
- profileId: string;
9132
+ query?: {
9133
+ /**
9134
+ * Filter by profile. Omit to list across all profiles
9135
+ */
9136
+ profileId?: string;
9131
9137
  };
9132
9138
  };
9133
9139
 
@@ -9188,10 +9194,13 @@ export type DeleteCustomFieldError = ({
9188
9194
  });
9189
9195
 
9190
9196
  export type ListBroadcastsData = {
9191
- query: {
9197
+ query?: {
9192
9198
  limit?: number;
9193
9199
  platform?: string;
9194
- profileId: string;
9200
+ /**
9201
+ * Filter by profile. Omit to list across all profiles
9202
+ */
9203
+ profileId?: string;
9195
9204
  skip?: number;
9196
9205
  status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
9197
9206
  };
@@ -9354,9 +9363,12 @@ export type AddBroadcastRecipientsError = ({
9354
9363
  });
9355
9364
 
9356
9365
  export type ListSequencesData = {
9357
- query: {
9366
+ query?: {
9358
9367
  limit?: number;
9359
- profileId: string;
9368
+ /**
9369
+ * Filter by profile. Omit to list across all profiles
9370
+ */
9371
+ profileId?: string;
9360
9372
  skip?: number;
9361
9373
  status?: 'draft' | 'active' | 'paused';
9362
9374
  };
@@ -9507,11 +9519,11 @@ export type ListSequenceEnrollmentsError = ({
9507
9519
  });
9508
9520
 
9509
9521
  export type ListCommentAutomationsData = {
9510
- query: {
9522
+ query?: {
9511
9523
  /**
9512
- * Profile ID
9524
+ * Filter by profile. Omit to list across all profiles
9513
9525
  */
9514
- profileId: string;
9526
+ profileId?: string;
9515
9527
  };
9516
9528
  };
9517
9529