@getlatedev/node 0.2.6 → 0.2.8

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>;
@@ -2819,6 +2819,10 @@ type ValidateSubredditResponse = (({
2819
2819
  type ValidateSubredditError = unknown;
2820
2820
  type GetAnalyticsData = {
2821
2821
  query?: {
2822
+ /**
2823
+ * Filter by social account ID
2824
+ */
2825
+ accountId?: string;
2822
2826
  /**
2823
2827
  * Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
2824
2828
  */
@@ -2982,6 +2986,10 @@ type GetInstagramDemographicsError = ({
2982
2986
  });
2983
2987
  type GetDailyMetricsData = {
2984
2988
  query?: {
2989
+ /**
2990
+ * Filter by social account ID
2991
+ */
2992
+ accountId?: string;
2985
2993
  /**
2986
2994
  * Inclusive start date (ISO 8601). Defaults to 180 days ago.
2987
2995
  */
@@ -8820,11 +8828,14 @@ type ReleaseWhatsAppPhoneNumberError = (unknown | {
8820
8828
  error?: string;
8821
8829
  });
8822
8830
  type ListContactsData = {
8823
- query: {
8831
+ query?: {
8824
8832
  isSubscribed?: 'true' | 'false';
8825
8833
  limit?: number;
8826
8834
  platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
8827
- profileId: string;
8835
+ /**
8836
+ * Filter by profile. Omit to list across all profiles
8837
+ */
8838
+ profileId?: string;
8828
8839
  search?: string;
8829
8840
  skip?: number;
8830
8841
  tag?: string;
@@ -8948,8 +8959,11 @@ type ClearContactFieldValueError = ({
8948
8959
  error?: string;
8949
8960
  });
8950
8961
  type ListCustomFieldsData = {
8951
- query: {
8952
- profileId: string;
8962
+ query?: {
8963
+ /**
8964
+ * Filter by profile. Omit to list across all profiles
8965
+ */
8966
+ profileId?: string;
8953
8967
  };
8954
8968
  };
8955
8969
  type ListCustomFieldsResponse = (unknown);
@@ -8998,10 +9012,13 @@ type DeleteCustomFieldError = ({
8998
9012
  error?: string;
8999
9013
  });
9000
9014
  type ListBroadcastsData = {
9001
- query: {
9015
+ query?: {
9002
9016
  limit?: number;
9003
9017
  platform?: string;
9004
- profileId: string;
9018
+ /**
9019
+ * Filter by profile. Omit to list across all profiles
9020
+ */
9021
+ profileId?: string;
9005
9022
  skip?: number;
9006
9023
  status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
9007
9024
  };
@@ -9134,9 +9151,12 @@ type AddBroadcastRecipientsError = ({
9134
9151
  error?: string;
9135
9152
  });
9136
9153
  type ListSequencesData = {
9137
- query: {
9154
+ query?: {
9138
9155
  limit?: number;
9139
- profileId: string;
9156
+ /**
9157
+ * Filter by profile. Omit to list across all profiles
9158
+ */
9159
+ profileId?: string;
9140
9160
  skip?: number;
9141
9161
  status?: 'draft' | 'active' | 'paused';
9142
9162
  };
@@ -9257,11 +9277,11 @@ type ListSequenceEnrollmentsError = ({
9257
9277
  error?: string;
9258
9278
  });
9259
9279
  type ListCommentAutomationsData = {
9260
- query: {
9280
+ query?: {
9261
9281
  /**
9262
- * Profile ID
9282
+ * Filter by profile. Omit to list across all profiles
9263
9283
  */
9264
- profileId: string;
9284
+ profileId?: string;
9265
9285
  };
9266
9286
  };
9267
9287
  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>;
@@ -2819,6 +2819,10 @@ type ValidateSubredditResponse = (({
2819
2819
  type ValidateSubredditError = unknown;
2820
2820
  type GetAnalyticsData = {
2821
2821
  query?: {
2822
+ /**
2823
+ * Filter by social account ID
2824
+ */
2825
+ accountId?: string;
2822
2826
  /**
2823
2827
  * Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
2824
2828
  */
@@ -2982,6 +2986,10 @@ type GetInstagramDemographicsError = ({
2982
2986
  });
2983
2987
  type GetDailyMetricsData = {
2984
2988
  query?: {
2989
+ /**
2990
+ * Filter by social account ID
2991
+ */
2992
+ accountId?: string;
2985
2993
  /**
2986
2994
  * Inclusive start date (ISO 8601). Defaults to 180 days ago.
2987
2995
  */
@@ -8820,11 +8828,14 @@ type ReleaseWhatsAppPhoneNumberError = (unknown | {
8820
8828
  error?: string;
8821
8829
  });
8822
8830
  type ListContactsData = {
8823
- query: {
8831
+ query?: {
8824
8832
  isSubscribed?: 'true' | 'false';
8825
8833
  limit?: number;
8826
8834
  platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
8827
- profileId: string;
8835
+ /**
8836
+ * Filter by profile. Omit to list across all profiles
8837
+ */
8838
+ profileId?: string;
8828
8839
  search?: string;
8829
8840
  skip?: number;
8830
8841
  tag?: string;
@@ -8948,8 +8959,11 @@ type ClearContactFieldValueError = ({
8948
8959
  error?: string;
8949
8960
  });
8950
8961
  type ListCustomFieldsData = {
8951
- query: {
8952
- profileId: string;
8962
+ query?: {
8963
+ /**
8964
+ * Filter by profile. Omit to list across all profiles
8965
+ */
8966
+ profileId?: string;
8953
8967
  };
8954
8968
  };
8955
8969
  type ListCustomFieldsResponse = (unknown);
@@ -8998,10 +9012,13 @@ type DeleteCustomFieldError = ({
8998
9012
  error?: string;
8999
9013
  });
9000
9014
  type ListBroadcastsData = {
9001
- query: {
9015
+ query?: {
9002
9016
  limit?: number;
9003
9017
  platform?: string;
9004
- profileId: string;
9018
+ /**
9019
+ * Filter by profile. Omit to list across all profiles
9020
+ */
9021
+ profileId?: string;
9005
9022
  skip?: number;
9006
9023
  status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
9007
9024
  };
@@ -9134,9 +9151,12 @@ type AddBroadcastRecipientsError = ({
9134
9151
  error?: string;
9135
9152
  });
9136
9153
  type ListSequencesData = {
9137
- query: {
9154
+ query?: {
9138
9155
  limit?: number;
9139
- profileId: string;
9156
+ /**
9157
+ * Filter by profile. Omit to list across all profiles
9158
+ */
9159
+ profileId?: string;
9140
9160
  skip?: number;
9141
9161
  status?: 'draft' | 'active' | 'paused';
9142
9162
  };
@@ -9257,11 +9277,11 @@ type ListSequenceEnrollmentsError = ({
9257
9277
  error?: string;
9258
9278
  });
9259
9279
  type ListCommentAutomationsData = {
9260
- query: {
9280
+ query?: {
9261
9281
  /**
9262
- * Profile ID
9282
+ * Filter by profile. Omit to list across all profiles
9263
9283
  */
9264
- profileId: string;
9284
+ profileId?: string;
9265
9285
  };
9266
9286
  };
9267
9287
  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.8",
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'
@@ -2456,6 +2456,10 @@ export type ValidateSubredditError = unknown;
2456
2456
 
2457
2457
  export type GetAnalyticsData = {
2458
2458
  query?: {
2459
+ /**
2460
+ * Filter by social account ID
2461
+ */
2462
+ accountId?: string;
2459
2463
  /**
2460
2464
  * Inclusive lower bound (YYYY-MM-DD). Defaults to 90 days ago if omitted. Max range is 366 days.
2461
2465
  */
@@ -2631,6 +2635,10 @@ export type GetInstagramDemographicsError = ({
2631
2635
 
2632
2636
  export type GetDailyMetricsData = {
2633
2637
  query?: {
2638
+ /**
2639
+ * Filter by social account ID
2640
+ */
2641
+ accountId?: string;
2634
2642
  /**
2635
2643
  * Inclusive start date (ISO 8601). Defaults to 180 days ago.
2636
2644
  */
@@ -8971,11 +8979,14 @@ export type ReleaseWhatsAppPhoneNumberError = (unknown | {
8971
8979
  });
8972
8980
 
8973
8981
  export type ListContactsData = {
8974
- query: {
8982
+ query?: {
8975
8983
  isSubscribed?: 'true' | 'false';
8976
8984
  limit?: number;
8977
8985
  platform?: 'instagram' | 'facebook' | 'telegram' | 'twitter' | 'bluesky' | 'reddit' | 'whatsapp';
8978
- profileId: string;
8986
+ /**
8987
+ * Filter by profile. Omit to list across all profiles
8988
+ */
8989
+ profileId?: string;
8979
8990
  search?: string;
8980
8991
  skip?: number;
8981
8992
  tag?: string;
@@ -9126,8 +9137,11 @@ export type ClearContactFieldValueError = ({
9126
9137
  });
9127
9138
 
9128
9139
  export type ListCustomFieldsData = {
9129
- query: {
9130
- profileId: string;
9140
+ query?: {
9141
+ /**
9142
+ * Filter by profile. Omit to list across all profiles
9143
+ */
9144
+ profileId?: string;
9131
9145
  };
9132
9146
  };
9133
9147
 
@@ -9188,10 +9202,13 @@ export type DeleteCustomFieldError = ({
9188
9202
  });
9189
9203
 
9190
9204
  export type ListBroadcastsData = {
9191
- query: {
9205
+ query?: {
9192
9206
  limit?: number;
9193
9207
  platform?: string;
9194
- profileId: string;
9208
+ /**
9209
+ * Filter by profile. Omit to list across all profiles
9210
+ */
9211
+ profileId?: string;
9195
9212
  skip?: number;
9196
9213
  status?: 'draft' | 'scheduled' | 'sending' | 'completed' | 'failed' | 'cancelled';
9197
9214
  };
@@ -9354,9 +9371,12 @@ export type AddBroadcastRecipientsError = ({
9354
9371
  });
9355
9372
 
9356
9373
  export type ListSequencesData = {
9357
- query: {
9374
+ query?: {
9358
9375
  limit?: number;
9359
- profileId: string;
9376
+ /**
9377
+ * Filter by profile. Omit to list across all profiles
9378
+ */
9379
+ profileId?: string;
9360
9380
  skip?: number;
9361
9381
  status?: 'draft' | 'active' | 'paused';
9362
9382
  };
@@ -9507,11 +9527,11 @@ export type ListSequenceEnrollmentsError = ({
9507
9527
  });
9508
9528
 
9509
9529
  export type ListCommentAutomationsData = {
9510
- query: {
9530
+ query?: {
9511
9531
  /**
9512
- * Profile ID
9532
+ * Filter by profile. Omit to list across all profiles
9513
9533
  */
9514
- profileId: string;
9534
+ profileId?: string;
9515
9535
  };
9516
9536
  };
9517
9537