@zernio/node 0.2.859 → 0.2.861

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
@@ -509,7 +509,7 @@ declare class Zernio {
509
509
  * Logs API - Publishing logs
510
510
  */
511
511
  logs: {
512
- listLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListLogsResponse, ListLogsError, ThrowOnError>;
512
+ listLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListLogsResponse, unknown, ThrowOnError>;
513
513
  };
514
514
  /**
515
515
  * messages API
@@ -19351,7 +19351,12 @@ type ConnectBlueskyCredentialsData = {
19351
19351
  */
19352
19352
  state: string;
19353
19353
  /**
19354
- * Optional URL to redirect to after successful connection
19354
+ * Optional URL to redirect to after successful connection. Used when the state carries no redirect (a state minted by GET /v1/connect/bluesky with redirect_url already carries one, and that one wins).
19355
+ */
19356
+ redirect_url?: string;
19357
+ /**
19358
+ * Alias of redirect_url, kept for existing callers
19359
+ * @deprecated
19355
19360
  */
19356
19361
  redirectUri?: string;
19357
19362
  };
@@ -19378,7 +19383,12 @@ type ConnectOpenAiAdsCredentialsData = {
19378
19383
  */
19379
19384
  state?: string;
19380
19385
  /**
19381
- * Optional URL to redirect to after successful connection
19386
+ * Optional URL to redirect to after successful connection, echoed back as redirectUrl.
19387
+ */
19388
+ redirect_url?: string;
19389
+ /**
19390
+ * Alias of redirect_url, kept for existing callers
19391
+ * @deprecated
19382
19392
  */
19383
19393
  redirectUri?: string;
19384
19394
  };
@@ -19641,6 +19651,11 @@ type ConnectWhatsAppEmbeddedSignupData = {
19641
19651
  /**
19642
19652
  * Hosted signup page only. When present, the response also carries `redirectUrl`, the URL the user should land on, with the outcome mapped exactly like the redirect flow (success params, or `error` and `platform` with the same values). Must be an absolute http(s) URL or a custom app scheme.
19643
19653
  */
19654
+ redirect_url?: string;
19655
+ /**
19656
+ * Alias of redirect_url, kept for existing callers
19657
+ * @deprecated
19658
+ */
19644
19659
  redirectUrl?: string;
19645
19660
  /**
19646
19661
  * Hosted signup page only. Append the connect token to the success redirect, as the redirect flow does for API-key callers.
@@ -19665,7 +19680,7 @@ type ConnectWhatsAppEmbeddedSignupResponse = ({
19665
19680
  selectedPhoneNumber?: string;
19666
19681
  };
19667
19682
  /**
19668
- * Present only when `redirectUrl` was sent; also present on error responses.
19683
+ * Present only when `redirect_url` was sent; also present on error responses.
19669
19684
  */
19670
19685
  redirectUrl?: string;
19671
19686
  });
@@ -22322,17 +22337,27 @@ type TestWebhookError = (unknown | {
22322
22337
  type ListLogsData = {
22323
22338
  query?: {
22324
22339
  /**
22325
- * Filter by connected account ID
22340
+ * Alias of accountId, kept for existing callers
22341
+ * @deprecated
22326
22342
  */
22327
22343
  account_id?: string;
22344
+ /**
22345
+ * Filter by connected account ID
22346
+ */
22347
+ accountId?: string;
22328
22348
  /**
22329
22349
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
22330
22350
  */
22331
22351
  action?: string;
22332
22352
  /**
22333
- * Filter by the API key that made the request (api_request logs)
22353
+ * Alias of apiKeyId, kept for existing callers
22354
+ * @deprecated
22334
22355
  */
22335
22356
  api_key_id?: string;
22357
+ /**
22358
+ * Filter by the API key that made the request (api_request logs)
22359
+ */
22360
+ apiKeyId?: string;
22336
22361
  /**
22337
22362
  * Number of days to look back (max 90)
22338
22363
  */
@@ -22346,9 +22371,14 @@ type ListLogsData = {
22346
22371
  */
22347
22372
  from?: string;
22348
22373
  /**
22349
- * Include message.read / message.delivered events (hidden by default for messaging logs)
22374
+ * Alias of includeReadReceipts, kept for existing callers
22375
+ * @deprecated
22350
22376
  */
22351
22377
  include_read_receipts?: boolean;
22378
+ /**
22379
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
22380
+ */
22381
+ includeReadReceipts?: boolean;
22352
22382
  /**
22353
22383
  * Maximum number of logs to return (max 100)
22354
22384
  */
@@ -22358,9 +22388,14 @@ type ListLogsData = {
22358
22388
  */
22359
22389
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
22360
22390
  /**
22361
- * Correlation ID. Returns every log spawned by a single API request
22391
+ * Alias of requestId, kept for existing callers
22392
+ * @deprecated
22362
22393
  */
22363
22394
  request_id?: string;
22395
+ /**
22396
+ * Correlation ID. Returns every log spawned by a single API request
22397
+ */
22398
+ requestId?: string;
22364
22399
  /**
22365
22400
  * Free-text search across log fields
22366
22401
  */
@@ -22374,9 +22409,14 @@ type ListLogsData = {
22374
22409
  */
22375
22410
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
22376
22411
  /**
22377
- * Filter by exact HTTP status code (api_request logs)
22412
+ * Alias of statusCode, kept for existing callers
22413
+ * @deprecated
22378
22414
  */
22379
22415
  status_code?: number;
22416
+ /**
22417
+ * Filter by exact HTTP status code (api_request logs)
22418
+ */
22419
+ statusCode?: number;
22380
22420
  /**
22381
22421
  * Precise end instant (ISO 8601)
22382
22422
  */
@@ -22457,7 +22497,7 @@ type ListLogsResponse = ({
22457
22497
  hasMore?: boolean;
22458
22498
  };
22459
22499
  });
22460
- type ListLogsError = ({
22500
+ type ListLogsError = (unknown | {
22461
22501
  error?: string;
22462
22502
  });
22463
22503
  type ListInboxConversationsData = {
package/dist/index.d.ts CHANGED
@@ -509,7 +509,7 @@ declare class Zernio {
509
509
  * Logs API - Publishing logs
510
510
  */
511
511
  logs: {
512
- listLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListLogsResponse, ListLogsError, ThrowOnError>;
512
+ listLogs: <ThrowOnError extends boolean = false>(options?: _hey_api_client_fetch.OptionsLegacyParser<ListLogsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ListLogsResponse, unknown, ThrowOnError>;
513
513
  };
514
514
  /**
515
515
  * messages API
@@ -19351,7 +19351,12 @@ type ConnectBlueskyCredentialsData = {
19351
19351
  */
19352
19352
  state: string;
19353
19353
  /**
19354
- * Optional URL to redirect to after successful connection
19354
+ * Optional URL to redirect to after successful connection. Used when the state carries no redirect (a state minted by GET /v1/connect/bluesky with redirect_url already carries one, and that one wins).
19355
+ */
19356
+ redirect_url?: string;
19357
+ /**
19358
+ * Alias of redirect_url, kept for existing callers
19359
+ * @deprecated
19355
19360
  */
19356
19361
  redirectUri?: string;
19357
19362
  };
@@ -19378,7 +19383,12 @@ type ConnectOpenAiAdsCredentialsData = {
19378
19383
  */
19379
19384
  state?: string;
19380
19385
  /**
19381
- * Optional URL to redirect to after successful connection
19386
+ * Optional URL to redirect to after successful connection, echoed back as redirectUrl.
19387
+ */
19388
+ redirect_url?: string;
19389
+ /**
19390
+ * Alias of redirect_url, kept for existing callers
19391
+ * @deprecated
19382
19392
  */
19383
19393
  redirectUri?: string;
19384
19394
  };
@@ -19641,6 +19651,11 @@ type ConnectWhatsAppEmbeddedSignupData = {
19641
19651
  /**
19642
19652
  * Hosted signup page only. When present, the response also carries `redirectUrl`, the URL the user should land on, with the outcome mapped exactly like the redirect flow (success params, or `error` and `platform` with the same values). Must be an absolute http(s) URL or a custom app scheme.
19643
19653
  */
19654
+ redirect_url?: string;
19655
+ /**
19656
+ * Alias of redirect_url, kept for existing callers
19657
+ * @deprecated
19658
+ */
19644
19659
  redirectUrl?: string;
19645
19660
  /**
19646
19661
  * Hosted signup page only. Append the connect token to the success redirect, as the redirect flow does for API-key callers.
@@ -19665,7 +19680,7 @@ type ConnectWhatsAppEmbeddedSignupResponse = ({
19665
19680
  selectedPhoneNumber?: string;
19666
19681
  };
19667
19682
  /**
19668
- * Present only when `redirectUrl` was sent; also present on error responses.
19683
+ * Present only when `redirect_url` was sent; also present on error responses.
19669
19684
  */
19670
19685
  redirectUrl?: string;
19671
19686
  });
@@ -22322,17 +22337,27 @@ type TestWebhookError = (unknown | {
22322
22337
  type ListLogsData = {
22323
22338
  query?: {
22324
22339
  /**
22325
- * Filter by connected account ID
22340
+ * Alias of accountId, kept for existing callers
22341
+ * @deprecated
22326
22342
  */
22327
22343
  account_id?: string;
22344
+ /**
22345
+ * Filter by connected account ID
22346
+ */
22347
+ accountId?: string;
22328
22348
  /**
22329
22349
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
22330
22350
  */
22331
22351
  action?: string;
22332
22352
  /**
22333
- * Filter by the API key that made the request (api_request logs)
22353
+ * Alias of apiKeyId, kept for existing callers
22354
+ * @deprecated
22334
22355
  */
22335
22356
  api_key_id?: string;
22357
+ /**
22358
+ * Filter by the API key that made the request (api_request logs)
22359
+ */
22360
+ apiKeyId?: string;
22336
22361
  /**
22337
22362
  * Number of days to look back (max 90)
22338
22363
  */
@@ -22346,9 +22371,14 @@ type ListLogsData = {
22346
22371
  */
22347
22372
  from?: string;
22348
22373
  /**
22349
- * Include message.read / message.delivered events (hidden by default for messaging logs)
22374
+ * Alias of includeReadReceipts, kept for existing callers
22375
+ * @deprecated
22350
22376
  */
22351
22377
  include_read_receipts?: boolean;
22378
+ /**
22379
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
22380
+ */
22381
+ includeReadReceipts?: boolean;
22352
22382
  /**
22353
22383
  * Maximum number of logs to return (max 100)
22354
22384
  */
@@ -22358,9 +22388,14 @@ type ListLogsData = {
22358
22388
  */
22359
22389
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
22360
22390
  /**
22361
- * Correlation ID. Returns every log spawned by a single API request
22391
+ * Alias of requestId, kept for existing callers
22392
+ * @deprecated
22362
22393
  */
22363
22394
  request_id?: string;
22395
+ /**
22396
+ * Correlation ID. Returns every log spawned by a single API request
22397
+ */
22398
+ requestId?: string;
22364
22399
  /**
22365
22400
  * Free-text search across log fields
22366
22401
  */
@@ -22374,9 +22409,14 @@ type ListLogsData = {
22374
22409
  */
22375
22410
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
22376
22411
  /**
22377
- * Filter by exact HTTP status code (api_request logs)
22412
+ * Alias of statusCode, kept for existing callers
22413
+ * @deprecated
22378
22414
  */
22379
22415
  status_code?: number;
22416
+ /**
22417
+ * Filter by exact HTTP status code (api_request logs)
22418
+ */
22419
+ statusCode?: number;
22380
22420
  /**
22381
22421
  * Precise end instant (ISO 8601)
22382
22422
  */
@@ -22457,7 +22497,7 @@ type ListLogsResponse = ({
22457
22497
  hasMore?: boolean;
22458
22498
  };
22459
22499
  });
22460
- type ListLogsError = ({
22500
+ type ListLogsError = (unknown | {
22461
22501
  error?: string;
22462
22502
  });
22463
22503
  type ListInboxConversationsData = {
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@zernio/node",
39
- version: "0.2.859",
39
+ version: "0.2.861",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@zernio/node",
8
- version: "0.2.859",
8
+ version: "0.2.861",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.859",
3
+ "version": "0.2.861",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -18536,7 +18536,12 @@ export type ConnectBlueskyCredentialsData = {
18536
18536
  */
18537
18537
  state: string;
18538
18538
  /**
18539
- * Optional URL to redirect to after successful connection
18539
+ * Optional URL to redirect to after successful connection. Used when the state carries no redirect (a state minted by GET /v1/connect/bluesky with redirect_url already carries one, and that one wins).
18540
+ */
18541
+ redirect_url?: string;
18542
+ /**
18543
+ * Alias of redirect_url, kept for existing callers
18544
+ * @deprecated
18540
18545
  */
18541
18546
  redirectUri?: string;
18542
18547
  };
@@ -18566,7 +18571,12 @@ export type ConnectOpenAiAdsCredentialsData = {
18566
18571
  */
18567
18572
  state?: string;
18568
18573
  /**
18569
- * Optional URL to redirect to after successful connection
18574
+ * Optional URL to redirect to after successful connection, echoed back as redirectUrl.
18575
+ */
18576
+ redirect_url?: string;
18577
+ /**
18578
+ * Alias of redirect_url, kept for existing callers
18579
+ * @deprecated
18570
18580
  */
18571
18581
  redirectUri?: string;
18572
18582
  };
@@ -18841,6 +18851,11 @@ export type ConnectWhatsAppEmbeddedSignupData = {
18841
18851
  /**
18842
18852
  * Hosted signup page only. When present, the response also carries `redirectUrl`, the URL the user should land on, with the outcome mapped exactly like the redirect flow (success params, or `error` and `platform` with the same values). Must be an absolute http(s) URL or a custom app scheme.
18843
18853
  */
18854
+ redirect_url?: string;
18855
+ /**
18856
+ * Alias of redirect_url, kept for existing callers
18857
+ * @deprecated
18858
+ */
18844
18859
  redirectUrl?: string;
18845
18860
  /**
18846
18861
  * Hosted signup page only. Append the connect token to the success redirect, as the redirect flow does for API-key callers.
@@ -18866,7 +18881,7 @@ export type ConnectWhatsAppEmbeddedSignupResponse = ({
18866
18881
  selectedPhoneNumber?: string;
18867
18882
  };
18868
18883
  /**
18869
- * Present only when `redirectUrl` was sent; also present on error responses.
18884
+ * Present only when `redirect_url` was sent; also present on error responses.
18870
18885
  */
18871
18886
  redirectUrl?: string;
18872
18887
  });
@@ -21767,17 +21782,27 @@ export type TestWebhookError = (unknown | {
21767
21782
  export type ListLogsData = {
21768
21783
  query?: {
21769
21784
  /**
21770
- * Filter by connected account ID
21785
+ * Alias of accountId, kept for existing callers
21786
+ * @deprecated
21771
21787
  */
21772
21788
  account_id?: string;
21789
+ /**
21790
+ * Filter by connected account ID
21791
+ */
21792
+ accountId?: string;
21773
21793
  /**
21774
21794
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
21775
21795
  */
21776
21796
  action?: string;
21777
21797
  /**
21778
- * Filter by the API key that made the request (api_request logs)
21798
+ * Alias of apiKeyId, kept for existing callers
21799
+ * @deprecated
21779
21800
  */
21780
21801
  api_key_id?: string;
21802
+ /**
21803
+ * Filter by the API key that made the request (api_request logs)
21804
+ */
21805
+ apiKeyId?: string;
21781
21806
  /**
21782
21807
  * Number of days to look back (max 90)
21783
21808
  */
@@ -21791,9 +21816,14 @@ export type ListLogsData = {
21791
21816
  */
21792
21817
  from?: string;
21793
21818
  /**
21794
- * Include message.read / message.delivered events (hidden by default for messaging logs)
21819
+ * Alias of includeReadReceipts, kept for existing callers
21820
+ * @deprecated
21795
21821
  */
21796
21822
  include_read_receipts?: boolean;
21823
+ /**
21824
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
21825
+ */
21826
+ includeReadReceipts?: boolean;
21797
21827
  /**
21798
21828
  * Maximum number of logs to return (max 100)
21799
21829
  */
@@ -21803,9 +21833,14 @@ export type ListLogsData = {
21803
21833
  */
21804
21834
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
21805
21835
  /**
21806
- * Correlation ID. Returns every log spawned by a single API request
21836
+ * Alias of requestId, kept for existing callers
21837
+ * @deprecated
21807
21838
  */
21808
21839
  request_id?: string;
21840
+ /**
21841
+ * Correlation ID. Returns every log spawned by a single API request
21842
+ */
21843
+ requestId?: string;
21809
21844
  /**
21810
21845
  * Free-text search across log fields
21811
21846
  */
@@ -21819,9 +21854,14 @@ export type ListLogsData = {
21819
21854
  */
21820
21855
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
21821
21856
  /**
21822
- * Filter by exact HTTP status code (api_request logs)
21857
+ * Alias of statusCode, kept for existing callers
21858
+ * @deprecated
21823
21859
  */
21824
21860
  status_code?: number;
21861
+ /**
21862
+ * Filter by exact HTTP status code (api_request logs)
21863
+ */
21864
+ statusCode?: number;
21825
21865
  /**
21826
21866
  * Precise end instant (ISO 8601)
21827
21867
  */
@@ -21904,7 +21944,7 @@ export type ListLogsResponse = ({
21904
21944
  };
21905
21945
  });
21906
21946
 
21907
- export type ListLogsError = ({
21947
+ export type ListLogsError = (unknown | {
21908
21948
  error?: string;
21909
21949
  });
21910
21950