@getlatedev/node 0.2.254 → 0.2.256
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 +29 -11
- package/dist/index.d.ts +29 -11
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +29 -11
package/dist/index.d.mts
CHANGED
|
@@ -5254,6 +5254,14 @@ type WebhookPayloadMessageDeliveryStatus = {
|
|
|
5254
5254
|
code?: number;
|
|
5255
5255
|
title?: string;
|
|
5256
5256
|
message?: string;
|
|
5257
|
+
/**
|
|
5258
|
+
* Plain-language translation of `code` (e.g. for 131026, that the
|
|
5259
|
+
* recipient has likely opted out of marketing messages while utility
|
|
5260
|
+
* templates are unaffected). Null for unmapped codes; fall back to
|
|
5261
|
+
* title/message.
|
|
5262
|
+
*
|
|
5263
|
+
*/
|
|
5264
|
+
explanation?: (string) | null;
|
|
5257
5265
|
} | null;
|
|
5258
5266
|
conversation: InboxWebhookConversation;
|
|
5259
5267
|
account: InboxWebhookAccount;
|
|
@@ -8715,21 +8723,27 @@ type ConnectAdsData = {
|
|
|
8715
8723
|
*/
|
|
8716
8724
|
accountId?: string;
|
|
8717
8725
|
/**
|
|
8718
|
-
*
|
|
8719
|
-
*
|
|
8720
|
-
*
|
|
8721
|
-
* account
|
|
8722
|
-
*
|
|
8723
|
-
*
|
|
8726
|
+
* Scope ad sync to a single platform ad account. Without this param,
|
|
8727
|
+
* sync covers every ad account the connected token can see. Supported
|
|
8728
|
+
* on `facebook`/`instagram` (Meta, `act_<digits>`), `linkedin` (bare
|
|
8729
|
+
* numeric sponsored-account id), `googleads` (bare customer id digits)
|
|
8730
|
+
* and `twitter` (X Ads, base36 account id). `tiktok` scopes advertisers
|
|
8731
|
+
* at OAuth and `pinterest` has no ads discovery, so both ignore it.
|
|
8732
|
+
* Meta ids are additionally validated against the connected token;
|
|
8733
|
+
* unreachable IDs return 400. Setting a scope also removes already
|
|
8734
|
+
* synced ads from de-scoped ad accounts. For multiple accounts use
|
|
8735
|
+
* `adAccountIds` instead.
|
|
8724
8736
|
*
|
|
8725
8737
|
*/
|
|
8726
8738
|
adAccountId?: string;
|
|
8727
8739
|
/**
|
|
8728
|
-
*
|
|
8729
|
-
*
|
|
8730
|
-
* (`?adAccountIds=act_1
|
|
8731
|
-
* Persisted server-side; latest call
|
|
8732
|
-
* and
|
|
8740
|
+
* Scope ad sync to multiple platform ad accounts (same platform
|
|
8741
|
+
* support and id shapes as `adAccountId`). Repeat the param
|
|
8742
|
+
* (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
|
|
8743
|
+
* (`?adAccountIds=act_1,act_2`). Persisted server-side; latest call
|
|
8744
|
+
* wins, and de-scoped ad accounts have their synced ads removed.
|
|
8745
|
+
* Omitting both `adAccountId` and `adAccountIds` keeps any previously
|
|
8746
|
+
* persisted scope unchanged.
|
|
8733
8747
|
*
|
|
8734
8748
|
*/
|
|
8735
8749
|
adAccountIds?: Array<(string)>;
|
|
@@ -17011,6 +17025,10 @@ type ListBroadcastRecipientsResponse = ({
|
|
|
17011
17025
|
* Meta WhatsApp error code (e.g. 131049 for antispam, 131021 for invalid phone, 131026 for re-engagement required). Only populated for status=failed.
|
|
17012
17026
|
*/
|
|
17013
17027
|
errorCode?: (number) | null;
|
|
17028
|
+
/**
|
|
17029
|
+
* Plain-language translation of errorCode (e.g. for 131026, that the recipient has likely opted out of marketing messages). Null for unmapped codes; fall back to error.
|
|
17030
|
+
*/
|
|
17031
|
+
errorExplanation?: (string) | null;
|
|
17014
17032
|
sentAt?: string;
|
|
17015
17033
|
deliveredAt?: string;
|
|
17016
17034
|
readAt?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -5254,6 +5254,14 @@ type WebhookPayloadMessageDeliveryStatus = {
|
|
|
5254
5254
|
code?: number;
|
|
5255
5255
|
title?: string;
|
|
5256
5256
|
message?: string;
|
|
5257
|
+
/**
|
|
5258
|
+
* Plain-language translation of `code` (e.g. for 131026, that the
|
|
5259
|
+
* recipient has likely opted out of marketing messages while utility
|
|
5260
|
+
* templates are unaffected). Null for unmapped codes; fall back to
|
|
5261
|
+
* title/message.
|
|
5262
|
+
*
|
|
5263
|
+
*/
|
|
5264
|
+
explanation?: (string) | null;
|
|
5257
5265
|
} | null;
|
|
5258
5266
|
conversation: InboxWebhookConversation;
|
|
5259
5267
|
account: InboxWebhookAccount;
|
|
@@ -8715,21 +8723,27 @@ type ConnectAdsData = {
|
|
|
8715
8723
|
*/
|
|
8716
8724
|
accountId?: string;
|
|
8717
8725
|
/**
|
|
8718
|
-
*
|
|
8719
|
-
*
|
|
8720
|
-
*
|
|
8721
|
-
* account
|
|
8722
|
-
*
|
|
8723
|
-
*
|
|
8726
|
+
* Scope ad sync to a single platform ad account. Without this param,
|
|
8727
|
+
* sync covers every ad account the connected token can see. Supported
|
|
8728
|
+
* on `facebook`/`instagram` (Meta, `act_<digits>`), `linkedin` (bare
|
|
8729
|
+
* numeric sponsored-account id), `googleads` (bare customer id digits)
|
|
8730
|
+
* and `twitter` (X Ads, base36 account id). `tiktok` scopes advertisers
|
|
8731
|
+
* at OAuth and `pinterest` has no ads discovery, so both ignore it.
|
|
8732
|
+
* Meta ids are additionally validated against the connected token;
|
|
8733
|
+
* unreachable IDs return 400. Setting a scope also removes already
|
|
8734
|
+
* synced ads from de-scoped ad accounts. For multiple accounts use
|
|
8735
|
+
* `adAccountIds` instead.
|
|
8724
8736
|
*
|
|
8725
8737
|
*/
|
|
8726
8738
|
adAccountId?: string;
|
|
8727
8739
|
/**
|
|
8728
|
-
*
|
|
8729
|
-
*
|
|
8730
|
-
* (`?adAccountIds=act_1
|
|
8731
|
-
* Persisted server-side; latest call
|
|
8732
|
-
* and
|
|
8740
|
+
* Scope ad sync to multiple platform ad accounts (same platform
|
|
8741
|
+
* support and id shapes as `adAccountId`). Repeat the param
|
|
8742
|
+
* (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
|
|
8743
|
+
* (`?adAccountIds=act_1,act_2`). Persisted server-side; latest call
|
|
8744
|
+
* wins, and de-scoped ad accounts have their synced ads removed.
|
|
8745
|
+
* Omitting both `adAccountId` and `adAccountIds` keeps any previously
|
|
8746
|
+
* persisted scope unchanged.
|
|
8733
8747
|
*
|
|
8734
8748
|
*/
|
|
8735
8749
|
adAccountIds?: Array<(string)>;
|
|
@@ -17011,6 +17025,10 @@ type ListBroadcastRecipientsResponse = ({
|
|
|
17011
17025
|
* Meta WhatsApp error code (e.g. 131049 for antispam, 131021 for invalid phone, 131026 for re-engagement required). Only populated for status=failed.
|
|
17012
17026
|
*/
|
|
17013
17027
|
errorCode?: (number) | null;
|
|
17028
|
+
/**
|
|
17029
|
+
* Plain-language translation of errorCode (e.g. for 131026, that the recipient has likely opted out of marketing messages). Null for unmapped codes; fall back to error.
|
|
17030
|
+
*/
|
|
17031
|
+
errorExplanation?: (string) | null;
|
|
17014
17032
|
sentAt?: string;
|
|
17015
17033
|
deliveredAt?: string;
|
|
17016
17034
|
readAt?: string;
|
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.
|
|
39
|
+
version: "0.2.256",
|
|
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.
|
|
8
|
+
version: "0.2.256",
|
|
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
|
@@ -4692,6 +4692,14 @@ export type WebhookPayloadMessageDeliveryStatus = {
|
|
|
4692
4692
|
code?: number;
|
|
4693
4693
|
title?: string;
|
|
4694
4694
|
message?: string;
|
|
4695
|
+
/**
|
|
4696
|
+
* Plain-language translation of `code` (e.g. for 131026, that the
|
|
4697
|
+
* recipient has likely opted out of marketing messages while utility
|
|
4698
|
+
* templates are unaffected). Null for unmapped codes; fall back to
|
|
4699
|
+
* title/message.
|
|
4700
|
+
*
|
|
4701
|
+
*/
|
|
4702
|
+
explanation?: (string) | null;
|
|
4695
4703
|
} | null;
|
|
4696
4704
|
conversation: InboxWebhookConversation;
|
|
4697
4705
|
account: InboxWebhookAccount;
|
|
@@ -8403,21 +8411,27 @@ export type ConnectAdsData = {
|
|
|
8403
8411
|
*/
|
|
8404
8412
|
accountId?: string;
|
|
8405
8413
|
/**
|
|
8406
|
-
*
|
|
8407
|
-
*
|
|
8408
|
-
*
|
|
8409
|
-
* account
|
|
8410
|
-
*
|
|
8411
|
-
*
|
|
8414
|
+
* Scope ad sync to a single platform ad account. Without this param,
|
|
8415
|
+
* sync covers every ad account the connected token can see. Supported
|
|
8416
|
+
* on `facebook`/`instagram` (Meta, `act_<digits>`), `linkedin` (bare
|
|
8417
|
+
* numeric sponsored-account id), `googleads` (bare customer id digits)
|
|
8418
|
+
* and `twitter` (X Ads, base36 account id). `tiktok` scopes advertisers
|
|
8419
|
+
* at OAuth and `pinterest` has no ads discovery, so both ignore it.
|
|
8420
|
+
* Meta ids are additionally validated against the connected token;
|
|
8421
|
+
* unreachable IDs return 400. Setting a scope also removes already
|
|
8422
|
+
* synced ads from de-scoped ad accounts. For multiple accounts use
|
|
8423
|
+
* `adAccountIds` instead.
|
|
8412
8424
|
*
|
|
8413
8425
|
*/
|
|
8414
8426
|
adAccountId?: string;
|
|
8415
8427
|
/**
|
|
8416
|
-
*
|
|
8417
|
-
*
|
|
8418
|
-
* (`?adAccountIds=act_1
|
|
8419
|
-
* Persisted server-side; latest call
|
|
8420
|
-
* and
|
|
8428
|
+
* Scope ad sync to multiple platform ad accounts (same platform
|
|
8429
|
+
* support and id shapes as `adAccountId`). Repeat the param
|
|
8430
|
+
* (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
|
|
8431
|
+
* (`?adAccountIds=act_1,act_2`). Persisted server-side; latest call
|
|
8432
|
+
* wins, and de-scoped ad accounts have their synced ads removed.
|
|
8433
|
+
* Omitting both `adAccountId` and `adAccountIds` keeps any previously
|
|
8434
|
+
* persisted scope unchanged.
|
|
8421
8435
|
*
|
|
8422
8436
|
*/
|
|
8423
8437
|
adAccountIds?: Array<(string)>;
|
|
@@ -17357,6 +17371,10 @@ export type ListBroadcastRecipientsResponse = ({
|
|
|
17357
17371
|
* Meta WhatsApp error code (e.g. 131049 for antispam, 131021 for invalid phone, 131026 for re-engagement required). Only populated for status=failed.
|
|
17358
17372
|
*/
|
|
17359
17373
|
errorCode?: (number) | null;
|
|
17374
|
+
/**
|
|
17375
|
+
* Plain-language translation of errorCode (e.g. for 131026, that the recipient has likely opted out of marketing messages). Null for unmapped codes; fall back to error.
|
|
17376
|
+
*/
|
|
17377
|
+
errorExplanation?: (string) | null;
|
|
17360
17378
|
sentAt?: string;
|
|
17361
17379
|
deliveredAt?: string;
|
|
17362
17380
|
readAt?: string;
|