@zernio/node 0.2.858 → 0.2.860

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
@@ -22322,17 +22322,27 @@ type TestWebhookError = (unknown | {
22322
22322
  type ListLogsData = {
22323
22323
  query?: {
22324
22324
  /**
22325
- * Filter by connected account ID
22325
+ * Alias of accountId, kept for existing callers
22326
+ * @deprecated
22326
22327
  */
22327
22328
  account_id?: string;
22329
+ /**
22330
+ * Filter by connected account ID
22331
+ */
22332
+ accountId?: string;
22328
22333
  /**
22329
22334
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
22330
22335
  */
22331
22336
  action?: string;
22332
22337
  /**
22333
- * Filter by the API key that made the request (api_request logs)
22338
+ * Alias of apiKeyId, kept for existing callers
22339
+ * @deprecated
22334
22340
  */
22335
22341
  api_key_id?: string;
22342
+ /**
22343
+ * Filter by the API key that made the request (api_request logs)
22344
+ */
22345
+ apiKeyId?: string;
22336
22346
  /**
22337
22347
  * Number of days to look back (max 90)
22338
22348
  */
@@ -22346,9 +22356,14 @@ type ListLogsData = {
22346
22356
  */
22347
22357
  from?: string;
22348
22358
  /**
22349
- * Include message.read / message.delivered events (hidden by default for messaging logs)
22359
+ * Alias of includeReadReceipts, kept for existing callers
22360
+ * @deprecated
22350
22361
  */
22351
22362
  include_read_receipts?: boolean;
22363
+ /**
22364
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
22365
+ */
22366
+ includeReadReceipts?: boolean;
22352
22367
  /**
22353
22368
  * Maximum number of logs to return (max 100)
22354
22369
  */
@@ -22358,9 +22373,14 @@ type ListLogsData = {
22358
22373
  */
22359
22374
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
22360
22375
  /**
22361
- * Correlation ID. Returns every log spawned by a single API request
22376
+ * Alias of requestId, kept for existing callers
22377
+ * @deprecated
22362
22378
  */
22363
22379
  request_id?: string;
22380
+ /**
22381
+ * Correlation ID. Returns every log spawned by a single API request
22382
+ */
22383
+ requestId?: string;
22364
22384
  /**
22365
22385
  * Free-text search across log fields
22366
22386
  */
@@ -22374,9 +22394,14 @@ type ListLogsData = {
22374
22394
  */
22375
22395
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
22376
22396
  /**
22377
- * Filter by exact HTTP status code (api_request logs)
22397
+ * Alias of statusCode, kept for existing callers
22398
+ * @deprecated
22378
22399
  */
22379
22400
  status_code?: number;
22401
+ /**
22402
+ * Filter by exact HTTP status code (api_request logs)
22403
+ */
22404
+ statusCode?: number;
22380
22405
  /**
22381
22406
  * Precise end instant (ISO 8601)
22382
22407
  */
@@ -22457,7 +22482,7 @@ type ListLogsResponse = ({
22457
22482
  hasMore?: boolean;
22458
22483
  };
22459
22484
  });
22460
- type ListLogsError = ({
22485
+ type ListLogsError = (unknown | {
22461
22486
  error?: string;
22462
22487
  });
22463
22488
  type ListInboxConversationsData = {
@@ -33899,9 +33924,14 @@ type GetAdsSearchTermsData = {
33899
33924
  */
33900
33925
  accountId: string;
33901
33926
  /**
33902
- * Numeric Google ad group id filter.
33927
+ * Alias of adSetId, kept for existing callers.
33928
+ * @deprecated
33903
33929
  */
33904
33930
  adGroupId?: string;
33931
+ /**
33932
+ * Platform ad set ID (Google ad group). Same value as adSetId on listAdKeywords and /ad-sets/{adSetId}/assets.
33933
+ */
33934
+ adSetId?: string;
33905
33935
  /**
33906
33936
  * Numeric Google campaign id filter.
33907
33937
  */
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
@@ -22322,17 +22322,27 @@ type TestWebhookError = (unknown | {
22322
22322
  type ListLogsData = {
22323
22323
  query?: {
22324
22324
  /**
22325
- * Filter by connected account ID
22325
+ * Alias of accountId, kept for existing callers
22326
+ * @deprecated
22326
22327
  */
22327
22328
  account_id?: string;
22329
+ /**
22330
+ * Filter by connected account ID
22331
+ */
22332
+ accountId?: string;
22328
22333
  /**
22329
22334
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
22330
22335
  */
22331
22336
  action?: string;
22332
22337
  /**
22333
- * Filter by the API key that made the request (api_request logs)
22338
+ * Alias of apiKeyId, kept for existing callers
22339
+ * @deprecated
22334
22340
  */
22335
22341
  api_key_id?: string;
22342
+ /**
22343
+ * Filter by the API key that made the request (api_request logs)
22344
+ */
22345
+ apiKeyId?: string;
22336
22346
  /**
22337
22347
  * Number of days to look back (max 90)
22338
22348
  */
@@ -22346,9 +22356,14 @@ type ListLogsData = {
22346
22356
  */
22347
22357
  from?: string;
22348
22358
  /**
22349
- * Include message.read / message.delivered events (hidden by default for messaging logs)
22359
+ * Alias of includeReadReceipts, kept for existing callers
22360
+ * @deprecated
22350
22361
  */
22351
22362
  include_read_receipts?: boolean;
22363
+ /**
22364
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
22365
+ */
22366
+ includeReadReceipts?: boolean;
22352
22367
  /**
22353
22368
  * Maximum number of logs to return (max 100)
22354
22369
  */
@@ -22358,9 +22373,14 @@ type ListLogsData = {
22358
22373
  */
22359
22374
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
22360
22375
  /**
22361
- * Correlation ID. Returns every log spawned by a single API request
22376
+ * Alias of requestId, kept for existing callers
22377
+ * @deprecated
22362
22378
  */
22363
22379
  request_id?: string;
22380
+ /**
22381
+ * Correlation ID. Returns every log spawned by a single API request
22382
+ */
22383
+ requestId?: string;
22364
22384
  /**
22365
22385
  * Free-text search across log fields
22366
22386
  */
@@ -22374,9 +22394,14 @@ type ListLogsData = {
22374
22394
  */
22375
22395
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
22376
22396
  /**
22377
- * Filter by exact HTTP status code (api_request logs)
22397
+ * Alias of statusCode, kept for existing callers
22398
+ * @deprecated
22378
22399
  */
22379
22400
  status_code?: number;
22401
+ /**
22402
+ * Filter by exact HTTP status code (api_request logs)
22403
+ */
22404
+ statusCode?: number;
22380
22405
  /**
22381
22406
  * Precise end instant (ISO 8601)
22382
22407
  */
@@ -22457,7 +22482,7 @@ type ListLogsResponse = ({
22457
22482
  hasMore?: boolean;
22458
22483
  };
22459
22484
  });
22460
- type ListLogsError = ({
22485
+ type ListLogsError = (unknown | {
22461
22486
  error?: string;
22462
22487
  });
22463
22488
  type ListInboxConversationsData = {
@@ -33899,9 +33924,14 @@ type GetAdsSearchTermsData = {
33899
33924
  */
33900
33925
  accountId: string;
33901
33926
  /**
33902
- * Numeric Google ad group id filter.
33927
+ * Alias of adSetId, kept for existing callers.
33928
+ * @deprecated
33903
33929
  */
33904
33930
  adGroupId?: string;
33931
+ /**
33932
+ * Platform ad set ID (Google ad group). Same value as adSetId on listAdKeywords and /ad-sets/{adSetId}/assets.
33933
+ */
33934
+ adSetId?: string;
33905
33935
  /**
33906
33936
  * Numeric Google campaign id filter.
33907
33937
  */
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.858",
39
+ version: "0.2.860",
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.858",
8
+ version: "0.2.860",
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.858",
3
+ "version": "0.2.860",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21767,17 +21767,27 @@ export type TestWebhookError = (unknown | {
21767
21767
  export type ListLogsData = {
21768
21768
  query?: {
21769
21769
  /**
21770
- * Filter by connected account ID
21770
+ * Alias of accountId, kept for existing callers
21771
+ * @deprecated
21771
21772
  */
21772
21773
  account_id?: string;
21774
+ /**
21775
+ * Filter by connected account ID
21776
+ */
21777
+ accountId?: string;
21773
21778
  /**
21774
21779
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
21775
21780
  */
21776
21781
  action?: string;
21777
21782
  /**
21778
- * Filter by the API key that made the request (api_request logs)
21783
+ * Alias of apiKeyId, kept for existing callers
21784
+ * @deprecated
21779
21785
  */
21780
21786
  api_key_id?: string;
21787
+ /**
21788
+ * Filter by the API key that made the request (api_request logs)
21789
+ */
21790
+ apiKeyId?: string;
21781
21791
  /**
21782
21792
  * Number of days to look back (max 90)
21783
21793
  */
@@ -21791,9 +21801,14 @@ export type ListLogsData = {
21791
21801
  */
21792
21802
  from?: string;
21793
21803
  /**
21794
- * Include message.read / message.delivered events (hidden by default for messaging logs)
21804
+ * Alias of includeReadReceipts, kept for existing callers
21805
+ * @deprecated
21795
21806
  */
21796
21807
  include_read_receipts?: boolean;
21808
+ /**
21809
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
21810
+ */
21811
+ includeReadReceipts?: boolean;
21797
21812
  /**
21798
21813
  * Maximum number of logs to return (max 100)
21799
21814
  */
@@ -21803,9 +21818,14 @@ export type ListLogsData = {
21803
21818
  */
21804
21819
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
21805
21820
  /**
21806
- * Correlation ID. Returns every log spawned by a single API request
21821
+ * Alias of requestId, kept for existing callers
21822
+ * @deprecated
21807
21823
  */
21808
21824
  request_id?: string;
21825
+ /**
21826
+ * Correlation ID. Returns every log spawned by a single API request
21827
+ */
21828
+ requestId?: string;
21809
21829
  /**
21810
21830
  * Free-text search across log fields
21811
21831
  */
@@ -21819,9 +21839,14 @@ export type ListLogsData = {
21819
21839
  */
21820
21840
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
21821
21841
  /**
21822
- * Filter by exact HTTP status code (api_request logs)
21842
+ * Alias of statusCode, kept for existing callers
21843
+ * @deprecated
21823
21844
  */
21824
21845
  status_code?: number;
21846
+ /**
21847
+ * Filter by exact HTTP status code (api_request logs)
21848
+ */
21849
+ statusCode?: number;
21825
21850
  /**
21826
21851
  * Precise end instant (ISO 8601)
21827
21852
  */
@@ -21904,7 +21929,7 @@ export type ListLogsResponse = ({
21904
21929
  };
21905
21930
  });
21906
21931
 
21907
- export type ListLogsError = ({
21932
+ export type ListLogsError = (unknown | {
21908
21933
  error?: string;
21909
21934
  });
21910
21935
 
@@ -34199,9 +34224,14 @@ export type GetAdsSearchTermsData = {
34199
34224
  */
34200
34225
  accountId: string;
34201
34226
  /**
34202
- * Numeric Google ad group id filter.
34227
+ * Alias of adSetId, kept for existing callers.
34228
+ * @deprecated
34203
34229
  */
34204
34230
  adGroupId?: string;
34231
+ /**
34232
+ * Platform ad set ID (Google ad group). Same value as adSetId on listAdKeywords and /ad-sets/{adSetId}/assets.
34233
+ */
34234
+ adSetId?: string;
34205
34235
  /**
34206
34236
  * Numeric Google campaign id filter.
34207
34237
  */