@getlatedev/node 0.2.299 → 0.2.301

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
@@ -12503,14 +12503,34 @@ type TestWebhookError = (unknown | {
12503
12503
  });
12504
12504
  type ListLogsData = {
12505
12505
  query?: {
12506
+ /**
12507
+ * Filter by connected account ID
12508
+ */
12509
+ account_id?: string;
12506
12510
  /**
12507
12511
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
12508
12512
  */
12509
12513
  action?: string;
12514
+ /**
12515
+ * Filter by the API key that made the request (api_request logs)
12516
+ */
12517
+ api_key_id?: string;
12510
12518
  /**
12511
12519
  * Number of days to look back (max 90)
12512
12520
  */
12513
12521
  days?: number;
12522
+ /**
12523
+ * Filter webhook logs by event (e.g. post.published, message.received)
12524
+ */
12525
+ event?: string;
12526
+ /**
12527
+ * Precise start instant (ISO 8601); narrows within the day range
12528
+ */
12529
+ from?: string;
12530
+ /**
12531
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
12532
+ */
12533
+ include_read_receipts?: boolean;
12514
12534
  /**
12515
12535
  * Maximum number of logs to return (max 100)
12516
12536
  */
@@ -12519,6 +12539,10 @@ type ListLogsData = {
12519
12539
  * Filter by platform
12520
12540
  */
12521
12541
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
12542
+ /**
12543
+ * Correlation ID — returns every log spawned by a single API request
12544
+ */
12545
+ request_id?: string;
12522
12546
  /**
12523
12547
  * Free-text search across log fields
12524
12548
  */
@@ -12532,9 +12556,19 @@ type ListLogsData = {
12532
12556
  */
12533
12557
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
12534
12558
  /**
12535
- * Log category to query
12559
+ * Filter by exact HTTP status code (api_request logs)
12536
12560
  */
12537
- type?: 'publishing' | 'connections' | 'webhooks' | 'messaging';
12561
+ status_code?: number;
12562
+ /**
12563
+ * Precise end instant (ISO 8601)
12564
+ */
12565
+ to?: string;
12566
+ /**
12567
+ * Log category to query. Use `all` for the unified view across every category,
12568
+ * or `api_request` for your API request logs (method, path, status, latency).
12569
+ *
12570
+ */
12571
+ type?: 'all' | 'publishing' | 'connections' | 'webhooks' | 'messaging' | 'workflow_event' | 'api_request';
12538
12572
  };
12539
12573
  };
12540
12574
  type ListLogsResponse = ({
@@ -12572,6 +12606,30 @@ type ListLogsResponse = ({
12572
12606
  * Additional context as JSON string
12573
12607
  */
12574
12608
  metadata?: string;
12609
+ /**
12610
+ * Correlation ID linking every log from one API request (api_request logs)
12611
+ */
12612
+ request_id?: string;
12613
+ /**
12614
+ * The API key that made the request (api_request logs)
12615
+ */
12616
+ api_key_id?: string;
12617
+ /**
12618
+ * HTTP method (api_request logs)
12619
+ */
12620
+ method?: string;
12621
+ /**
12622
+ * Request path (api_request logs)
12623
+ */
12624
+ path?: string;
12625
+ /**
12626
+ * Client IP address (api_request logs)
12627
+ */
12628
+ ip_address?: string;
12629
+ /**
12630
+ * Client user-agent (api_request logs)
12631
+ */
12632
+ user_agent?: string;
12575
12633
  }>;
12576
12634
  pagination?: {
12577
12635
  total?: number;
@@ -13033,6 +13091,10 @@ type SendInboxMessageData = {
13033
13091
  * Type of attachment. Defaults to file if not specified.
13034
13092
  */
13035
13093
  attachmentType?: 'image' | 'video' | 'audio' | 'file';
13094
+ /**
13095
+ * WhatsApp only. Display name for a document sent via attachmentUrl with attachmentType: file (e.g. "Report.pdf"). Maps to the recipient's file name; without it WhatsApp derives the name from the URL and shows "Untitled". Ignored for image/video/audio and for binary uploads (which use the uploaded file's name).
13096
+ */
13097
+ attachmentName?: string;
13036
13098
  /**
13037
13099
  * WhatsApp only. When `true` on an audio attachment, the message is sent
13038
13100
  * as a voice message (PTT) — the recipient sees the waveform + voice-note
package/dist/index.d.ts CHANGED
@@ -12503,14 +12503,34 @@ type TestWebhookError = (unknown | {
12503
12503
  });
12504
12504
  type ListLogsData = {
12505
12505
  query?: {
12506
+ /**
12507
+ * Filter by connected account ID
12508
+ */
12509
+ account_id?: string;
12506
12510
  /**
12507
12511
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
12508
12512
  */
12509
12513
  action?: string;
12514
+ /**
12515
+ * Filter by the API key that made the request (api_request logs)
12516
+ */
12517
+ api_key_id?: string;
12510
12518
  /**
12511
12519
  * Number of days to look back (max 90)
12512
12520
  */
12513
12521
  days?: number;
12522
+ /**
12523
+ * Filter webhook logs by event (e.g. post.published, message.received)
12524
+ */
12525
+ event?: string;
12526
+ /**
12527
+ * Precise start instant (ISO 8601); narrows within the day range
12528
+ */
12529
+ from?: string;
12530
+ /**
12531
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
12532
+ */
12533
+ include_read_receipts?: boolean;
12514
12534
  /**
12515
12535
  * Maximum number of logs to return (max 100)
12516
12536
  */
@@ -12519,6 +12539,10 @@ type ListLogsData = {
12519
12539
  * Filter by platform
12520
12540
  */
12521
12541
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
12542
+ /**
12543
+ * Correlation ID — returns every log spawned by a single API request
12544
+ */
12545
+ request_id?: string;
12522
12546
  /**
12523
12547
  * Free-text search across log fields
12524
12548
  */
@@ -12532,9 +12556,19 @@ type ListLogsData = {
12532
12556
  */
12533
12557
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
12534
12558
  /**
12535
- * Log category to query
12559
+ * Filter by exact HTTP status code (api_request logs)
12536
12560
  */
12537
- type?: 'publishing' | 'connections' | 'webhooks' | 'messaging';
12561
+ status_code?: number;
12562
+ /**
12563
+ * Precise end instant (ISO 8601)
12564
+ */
12565
+ to?: string;
12566
+ /**
12567
+ * Log category to query. Use `all` for the unified view across every category,
12568
+ * or `api_request` for your API request logs (method, path, status, latency).
12569
+ *
12570
+ */
12571
+ type?: 'all' | 'publishing' | 'connections' | 'webhooks' | 'messaging' | 'workflow_event' | 'api_request';
12538
12572
  };
12539
12573
  };
12540
12574
  type ListLogsResponse = ({
@@ -12572,6 +12606,30 @@ type ListLogsResponse = ({
12572
12606
  * Additional context as JSON string
12573
12607
  */
12574
12608
  metadata?: string;
12609
+ /**
12610
+ * Correlation ID linking every log from one API request (api_request logs)
12611
+ */
12612
+ request_id?: string;
12613
+ /**
12614
+ * The API key that made the request (api_request logs)
12615
+ */
12616
+ api_key_id?: string;
12617
+ /**
12618
+ * HTTP method (api_request logs)
12619
+ */
12620
+ method?: string;
12621
+ /**
12622
+ * Request path (api_request logs)
12623
+ */
12624
+ path?: string;
12625
+ /**
12626
+ * Client IP address (api_request logs)
12627
+ */
12628
+ ip_address?: string;
12629
+ /**
12630
+ * Client user-agent (api_request logs)
12631
+ */
12632
+ user_agent?: string;
12575
12633
  }>;
12576
12634
  pagination?: {
12577
12635
  total?: number;
@@ -13033,6 +13091,10 @@ type SendInboxMessageData = {
13033
13091
  * Type of attachment. Defaults to file if not specified.
13034
13092
  */
13035
13093
  attachmentType?: 'image' | 'video' | 'audio' | 'file';
13094
+ /**
13095
+ * WhatsApp only. Display name for a document sent via attachmentUrl with attachmentType: file (e.g. "Report.pdf"). Maps to the recipient's file name; without it WhatsApp derives the name from the URL and shows "Untitled". Ignored for image/video/audio and for binary uploads (which use the uploaded file's name).
13096
+ */
13097
+ attachmentName?: string;
13036
13098
  /**
13037
13099
  * WhatsApp only. When `true` on an audio attachment, the message is sent
13038
13100
  * as a voice message (PTT) — the recipient sees the waveform + voice-note
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: "@getlatedev/node",
39
- version: "0.2.299",
39
+ version: "0.2.301",
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: "@getlatedev/node",
8
- version: "0.2.299",
8
+ version: "0.2.301",
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": "@getlatedev/node",
3
- "version": "0.2.299",
3
+ "version": "0.2.301",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -12455,14 +12455,34 @@ export type TestWebhookError = (unknown | {
12455
12455
 
12456
12456
  export type ListLogsData = {
12457
12457
  query?: {
12458
+ /**
12459
+ * Filter by connected account ID
12460
+ */
12461
+ account_id?: string;
12458
12462
  /**
12459
12463
  * Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
12460
12464
  */
12461
12465
  action?: string;
12466
+ /**
12467
+ * Filter by the API key that made the request (api_request logs)
12468
+ */
12469
+ api_key_id?: string;
12462
12470
  /**
12463
12471
  * Number of days to look back (max 90)
12464
12472
  */
12465
12473
  days?: number;
12474
+ /**
12475
+ * Filter webhook logs by event (e.g. post.published, message.received)
12476
+ */
12477
+ event?: string;
12478
+ /**
12479
+ * Precise start instant (ISO 8601); narrows within the day range
12480
+ */
12481
+ from?: string;
12482
+ /**
12483
+ * Include message.read / message.delivered events (hidden by default for messaging logs)
12484
+ */
12485
+ include_read_receipts?: boolean;
12466
12486
  /**
12467
12487
  * Maximum number of logs to return (max 100)
12468
12488
  */
@@ -12471,6 +12491,10 @@ export type ListLogsData = {
12471
12491
  * Filter by platform
12472
12492
  */
12473
12493
  platform?: 'tiktok' | 'instagram' | 'whatsapp' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
12494
+ /**
12495
+ * Correlation ID — returns every log spawned by a single API request
12496
+ */
12497
+ request_id?: string;
12474
12498
  /**
12475
12499
  * Free-text search across log fields
12476
12500
  */
@@ -12484,9 +12508,19 @@ export type ListLogsData = {
12484
12508
  */
12485
12509
  status?: 'success' | 'failed' | 'pending' | 'skipped' | 'all';
12486
12510
  /**
12487
- * Log category to query
12511
+ * Filter by exact HTTP status code (api_request logs)
12488
12512
  */
12489
- type?: 'publishing' | 'connections' | 'webhooks' | 'messaging';
12513
+ status_code?: number;
12514
+ /**
12515
+ * Precise end instant (ISO 8601)
12516
+ */
12517
+ to?: string;
12518
+ /**
12519
+ * Log category to query. Use `all` for the unified view across every category,
12520
+ * or `api_request` for your API request logs (method, path, status, latency).
12521
+ *
12522
+ */
12523
+ type?: 'all' | 'publishing' | 'connections' | 'webhooks' | 'messaging' | 'workflow_event' | 'api_request';
12490
12524
  };
12491
12525
  };
12492
12526
 
@@ -12525,6 +12559,30 @@ export type ListLogsResponse = ({
12525
12559
  * Additional context as JSON string
12526
12560
  */
12527
12561
  metadata?: string;
12562
+ /**
12563
+ * Correlation ID linking every log from one API request (api_request logs)
12564
+ */
12565
+ request_id?: string;
12566
+ /**
12567
+ * The API key that made the request (api_request logs)
12568
+ */
12569
+ api_key_id?: string;
12570
+ /**
12571
+ * HTTP method (api_request logs)
12572
+ */
12573
+ method?: string;
12574
+ /**
12575
+ * Request path (api_request logs)
12576
+ */
12577
+ path?: string;
12578
+ /**
12579
+ * Client IP address (api_request logs)
12580
+ */
12581
+ ip_address?: string;
12582
+ /**
12583
+ * Client user-agent (api_request logs)
12584
+ */
12585
+ user_agent?: string;
12528
12586
  }>;
12529
12587
  pagination?: {
12530
12588
  total?: number;
@@ -13003,6 +13061,10 @@ export type SendInboxMessageData = {
13003
13061
  * Type of attachment. Defaults to file if not specified.
13004
13062
  */
13005
13063
  attachmentType?: 'image' | 'video' | 'audio' | 'file';
13064
+ /**
13065
+ * WhatsApp only. Display name for a document sent via attachmentUrl with attachmentType: file (e.g. "Report.pdf"). Maps to the recipient's file name; without it WhatsApp derives the name from the URL and shows "Untitled". Ignored for image/video/audio and for binary uploads (which use the uploaded file's name).
13066
+ */
13067
+ attachmentName?: string;
13006
13068
  /**
13007
13069
  * WhatsApp only. When `true` on an audio attachment, the message is sent
13008
13070
  * as a voice message (PTT) — the recipient sees the waveform + voice-note