@getlatedev/node 0.2.1186 → 0.2.1188

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
@@ -2110,6 +2110,10 @@ type Ad = {
2110
2110
  _id?: string;
2111
2111
  name?: string;
2112
2112
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit';
2113
+ /**
2114
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
2115
+ */
2116
+ profileId?: string;
2113
2117
  /**
2114
2118
  * Delivery status. Derived from the platform `effective_status`, so it inherits ancestor pauses (an ACTIVE ad under a PAUSED campaign reads `paused`). For the ad's own on/off toggle use `configuredStatus`; for the review state use `reviewStatus`.
2115
2119
  */
@@ -2615,6 +2619,9 @@ type AdCampaign = {
2615
2619
  */
2616
2620
  platformAdAccountName?: (string) | null;
2617
2621
  accountId?: string;
2622
+ /**
2623
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
2624
+ */
2618
2625
  profileId?: string;
2619
2626
  /**
2620
2627
  * TikTok only. true when the campaign is an Upgraded Smart+ campaign. See AdTreeCampaign.isSmartPlus.
@@ -2844,6 +2851,9 @@ type AdKeyword = {
2844
2851
  * Account ID owning the sync
2845
2852
  */
2846
2853
  accountId?: string;
2854
+ /**
2855
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
2856
+ */
2847
2857
  profileId?: string;
2848
2858
  platform?: 'google';
2849
2859
  /**
@@ -3542,6 +3552,9 @@ type AdTreeCampaign = {
3542
3552
  */
3543
3553
  platformAdAccountName?: (string) | null;
3544
3554
  accountId?: string;
3555
+ /**
3556
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
3557
+ */
3545
3558
  profileId?: string;
3546
3559
  /**
3547
3560
  * TikTok only. true when the campaign is an Upgraded Smart+ campaign (TikTok lists it on /smart_plus/campaign/get/), false when it is not. Set by ads sync, so the key is absent on other platforms and on TikTok campaigns not synced since this field shipped. On Smart+ objects Zernio can pause, resume, rename, delete and change the budget of the campaign and ad set, and pause or resume an ad; other edits answer 422 and belong in TikTok Ads Manager.
@@ -27898,11 +27911,11 @@ type ListInboxConversationsData = {
27898
27911
  */
27899
27912
  cursor?: string;
27900
27913
  /**
27901
- * requests lists Facebook and Instagram Message Requests (threads from people the account has not accepted) live from Meta, first page only, each item with `folder: requests`. Meta has no accept call: replying moves a thread to the inbox, which is what POST /v1/inbox/conversations/{conversationId}/accept does. When Meta will not list the folder for the one account asked (`accountId`), the call answers 400 PLATFORM_LIMITATION; across several accounts the refusal is reported per account in meta.failedAccounts.
27914
+ * requests lists Facebook and Instagram Message Requests (threads from people the account has not accepted) live from Meta, each item with `folder: requests`. Meta has no accept call: replying moves a thread to the inbox, which is what POST /v1/inbox/conversations/{conversationId}/accept does. When Meta will not list the folder for the one account asked (`accountId`), the call answers 400 PLATFORM_LIMITATION; across several accounts the refusal is reported per account in meta.failedAccounts. Instagram accounts connected with Instagram Login answer PLATFORM_LIMITATION (Meta does not expose the folder on that login); Facebook and Instagram via Facebook Login are served. One page of up to `limit` threads; `pagination.hasMore` is true when threads past `limit` were cut (narrow with `accountId`), `pagination.nextCursor` is always null and a `cursor` answers 400.
27902
27915
  */
27903
27916
  folder?: 'inbox' | 'requests';
27904
27917
  /**
27905
- * Maximum number of conversations to return
27918
+ * Maximum number of conversations to return; values above 100 are served as 100.
27906
27919
  */
27907
27920
  limit?: number;
27908
27921
  /**
@@ -41675,6 +41688,9 @@ type ListAdSetsResponse = ({
41675
41688
  platformCampaignId?: (string) | null;
41676
41689
  platformAdAccountId?: string;
41677
41690
  accountId?: (string) | null;
41691
+ /**
41692
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
41693
+ */
41678
41694
  profileId?: string;
41679
41695
  currency?: (string) | null;
41680
41696
  budget?: {
package/dist/index.d.ts CHANGED
@@ -2110,6 +2110,10 @@ type Ad = {
2110
2110
  _id?: string;
2111
2111
  name?: string;
2112
2112
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit';
2113
+ /**
2114
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
2115
+ */
2116
+ profileId?: string;
2113
2117
  /**
2114
2118
  * Delivery status. Derived from the platform `effective_status`, so it inherits ancestor pauses (an ACTIVE ad under a PAUSED campaign reads `paused`). For the ad's own on/off toggle use `configuredStatus`; for the review state use `reviewStatus`.
2115
2119
  */
@@ -2615,6 +2619,9 @@ type AdCampaign = {
2615
2619
  */
2616
2620
  platformAdAccountName?: (string) | null;
2617
2621
  accountId?: string;
2622
+ /**
2623
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
2624
+ */
2618
2625
  profileId?: string;
2619
2626
  /**
2620
2627
  * TikTok only. true when the campaign is an Upgraded Smart+ campaign. See AdTreeCampaign.isSmartPlus.
@@ -2844,6 +2851,9 @@ type AdKeyword = {
2844
2851
  * Account ID owning the sync
2845
2852
  */
2846
2853
  accountId?: string;
2854
+ /**
2855
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
2856
+ */
2847
2857
  profileId?: string;
2848
2858
  platform?: 'google';
2849
2859
  /**
@@ -3542,6 +3552,9 @@ type AdTreeCampaign = {
3542
3552
  */
3543
3553
  platformAdAccountName?: (string) | null;
3544
3554
  accountId?: string;
3555
+ /**
3556
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
3557
+ */
3545
3558
  profileId?: string;
3546
3559
  /**
3547
3560
  * TikTok only. true when the campaign is an Upgraded Smart+ campaign (TikTok lists it on /smart_plus/campaign/get/), false when it is not. Set by ads sync, so the key is absent on other platforms and on TikTok campaigns not synced since this field shipped. On Smart+ objects Zernio can pause, resume, rename, delete and change the budget of the campaign and ad set, and pause or resume an ad; other edits answer 422 and belong in TikTok Ads Manager.
@@ -27898,11 +27911,11 @@ type ListInboxConversationsData = {
27898
27911
  */
27899
27912
  cursor?: string;
27900
27913
  /**
27901
- * requests lists Facebook and Instagram Message Requests (threads from people the account has not accepted) live from Meta, first page only, each item with `folder: requests`. Meta has no accept call: replying moves a thread to the inbox, which is what POST /v1/inbox/conversations/{conversationId}/accept does. When Meta will not list the folder for the one account asked (`accountId`), the call answers 400 PLATFORM_LIMITATION; across several accounts the refusal is reported per account in meta.failedAccounts.
27914
+ * requests lists Facebook and Instagram Message Requests (threads from people the account has not accepted) live from Meta, each item with `folder: requests`. Meta has no accept call: replying moves a thread to the inbox, which is what POST /v1/inbox/conversations/{conversationId}/accept does. When Meta will not list the folder for the one account asked (`accountId`), the call answers 400 PLATFORM_LIMITATION; across several accounts the refusal is reported per account in meta.failedAccounts. Instagram accounts connected with Instagram Login answer PLATFORM_LIMITATION (Meta does not expose the folder on that login); Facebook and Instagram via Facebook Login are served. One page of up to `limit` threads; `pagination.hasMore` is true when threads past `limit` were cut (narrow with `accountId`), `pagination.nextCursor` is always null and a `cursor` answers 400.
27902
27915
  */
27903
27916
  folder?: 'inbox' | 'requests';
27904
27917
  /**
27905
- * Maximum number of conversations to return
27918
+ * Maximum number of conversations to return; values above 100 are served as 100.
27906
27919
  */
27907
27920
  limit?: number;
27908
27921
  /**
@@ -41675,6 +41688,9 @@ type ListAdSetsResponse = ({
41675
41688
  platformCampaignId?: (string) | null;
41676
41689
  platformAdAccountId?: string;
41677
41690
  accountId?: (string) | null;
41691
+ /**
41692
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
41693
+ */
41678
41694
  profileId?: string;
41679
41695
  currency?: (string) | null;
41680
41696
  budget?: {
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.1186",
39
+ version: "0.2.1188",
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.1186",
8
+ version: "0.2.1188",
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.1186",
3
+ "version": "0.2.1188",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -106,6 +106,10 @@ export type Ad = {
106
106
  _id?: string;
107
107
  name?: string;
108
108
  platform?: 'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai' | 'reddit';
109
+ /**
110
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
111
+ */
112
+ profileId?: string;
109
113
  /**
110
114
  * Delivery status. Derived from the platform `effective_status`, so it inherits ancestor pauses (an ACTIVE ad under a PAUSED campaign reads `paused`). For the ad's own on/off toggle use `configuredStatus`; for the review state use `reviewStatus`.
111
115
  */
@@ -620,6 +624,9 @@ export type AdCampaign = {
620
624
  */
621
625
  platformAdAccountName?: (string) | null;
622
626
  accountId?: string;
627
+ /**
628
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
629
+ */
623
630
  profileId?: string;
624
631
  /**
625
632
  * TikTok only. true when the campaign is an Upgraded Smart+ campaign. See AdTreeCampaign.isSmartPlus.
@@ -855,6 +862,9 @@ export type AdKeyword = {
855
862
  * Account ID owning the sync
856
863
  */
857
864
  accountId?: string;
865
+ /**
866
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
867
+ */
858
868
  profileId?: string;
859
869
  platform?: 'google';
860
870
  /**
@@ -1575,6 +1585,9 @@ export type AdTreeCampaign = {
1575
1585
  */
1576
1586
  platformAdAccountName?: (string) | null;
1577
1587
  accountId?: string;
1588
+ /**
1589
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
1590
+ */
1578
1591
  profileId?: string;
1579
1592
  /**
1580
1593
  * TikTok only. true when the campaign is an Upgraded Smart+ campaign (TikTok lists it on /smart_plus/campaign/get/), false when it is not. Set by ads sync, so the key is absent on other platforms and on TikTok campaigns not synced since this field shipped. On Smart+ objects Zernio can pause, resume, rename, delete and change the budget of the campaign and ad set, and pause or resume an ad; other edits answer 422 and belong in TikTok Ads Manager.
@@ -27266,11 +27279,11 @@ export type ListInboxConversationsData = {
27266
27279
  */
27267
27280
  cursor?: string;
27268
27281
  /**
27269
- * requests lists Facebook and Instagram Message Requests (threads from people the account has not accepted) live from Meta, first page only, each item with `folder: requests`. Meta has no accept call: replying moves a thread to the inbox, which is what POST /v1/inbox/conversations/{conversationId}/accept does. When Meta will not list the folder for the one account asked (`accountId`), the call answers 400 PLATFORM_LIMITATION; across several accounts the refusal is reported per account in meta.failedAccounts.
27282
+ * requests lists Facebook and Instagram Message Requests (threads from people the account has not accepted) live from Meta, each item with `folder: requests`. Meta has no accept call: replying moves a thread to the inbox, which is what POST /v1/inbox/conversations/{conversationId}/accept does. When Meta will not list the folder for the one account asked (`accountId`), the call answers 400 PLATFORM_LIMITATION; across several accounts the refusal is reported per account in meta.failedAccounts. Instagram accounts connected with Instagram Login answer PLATFORM_LIMITATION (Meta does not expose the folder on that login); Facebook and Instagram via Facebook Login are served. One page of up to `limit` threads; `pagination.hasMore` is true when threads past `limit` were cut (narrow with `accountId`), `pagination.nextCursor` is always null and a `cursor` answers 400.
27270
27283
  */
27271
27284
  folder?: 'inbox' | 'requests';
27272
27285
  /**
27273
- * Maximum number of conversations to return
27286
+ * Maximum number of conversations to return; values above 100 are served as 100.
27274
27287
  */
27275
27288
  limit?: number;
27276
27289
  /**
@@ -42143,6 +42156,9 @@ export type ListAdSetsResponse = ({
42143
42156
  platformCampaignId?: (string) | null;
42144
42157
  platformAdAccountId?: string;
42145
42158
  accountId?: (string) | null;
42159
+ /**
42160
+ * Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it.
42161
+ */
42146
42162
  profileId?: string;
42147
42163
  currency?: (string) | null;
42148
42164
  budget?: {