@getlatedev/node 0.2.1355 → 0.2.1357
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 +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +4 -1
- package/src/generated/types.gen.ts +55 -0
package/dist/index.d.mts
CHANGED
|
@@ -11430,6 +11430,19 @@ type InstagramPlatformData = {
|
|
|
11430
11430
|
* Up to 3 Instagram usernames to invite as collaborators (feed/Reels only)
|
|
11431
11431
|
*/
|
|
11432
11432
|
collaborators?: Array<(string)>;
|
|
11433
|
+
/**
|
|
11434
|
+
* Output only. Set by Zernio when Instagram rejected these collaborators and the retry was sent without them.
|
|
11435
|
+
*/
|
|
11436
|
+
readonly droppedCollaborators?: Array<{
|
|
11437
|
+
/**
|
|
11438
|
+
* The collaborator username Instagram rejected
|
|
11439
|
+
*/
|
|
11440
|
+
username: string;
|
|
11441
|
+
/**
|
|
11442
|
+
* The reason Instagram gave for rejecting the collaborator
|
|
11443
|
+
*/
|
|
11444
|
+
reason: string;
|
|
11445
|
+
}>;
|
|
11433
11446
|
/**
|
|
11434
11447
|
* Optional first comment to add after the post is created (not applied to Stories)
|
|
11435
11448
|
*/
|
|
@@ -46912,6 +46925,48 @@ type UpdateAdSetData = {
|
|
|
46912
46925
|
*
|
|
46913
46926
|
*/
|
|
46914
46927
|
bidStrategy?: (BidStrategy);
|
|
46928
|
+
/**
|
|
46929
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46930
|
+
* set's `dsa_beneficiary`, the legal entity that benefits from its ads, same field and
|
|
46931
|
+
* limits as `dsaBeneficiary` on POST /v1/ads/create. Only the fields you send are
|
|
46932
|
+
* written. It is the EU DSA field; for the regional regimes (Brazil, Malaysia,
|
|
46933
|
+
* Thailand, Australia, Singapore, Taiwan, India) use `regionalRegulatedCategories` and
|
|
46934
|
+
* `regionalRegulationIdentities` instead. Read it back with
|
|
46935
|
+
* GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=dsa_beneficiary,dsa_payor.
|
|
46936
|
+
*
|
|
46937
|
+
*/
|
|
46938
|
+
dsaBeneficiary?: string;
|
|
46939
|
+
/**
|
|
46940
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46941
|
+
* set's `dsa_payor`, the legal entity that pays for its ads, same field and limits as
|
|
46942
|
+
* `dsaPayor` on POST /v1/ads/create. Can differ from `dsaBeneficiary`.
|
|
46943
|
+
*
|
|
46944
|
+
*/
|
|
46945
|
+
dsaPayor?: string;
|
|
46946
|
+
/**
|
|
46947
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46948
|
+
* set's `regional_regulated_categories`, same values as on POST /v1/ads/create
|
|
46949
|
+
* (AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV,
|
|
46950
|
+
* MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL,
|
|
46951
|
+
* THAILAND_UNIVERSAL). Send it with `regionalRegulationIdentities`. An empty array is a 400.
|
|
46952
|
+
*
|
|
46953
|
+
*/
|
|
46954
|
+
regionalRegulatedCategories?: Array<(string)>;
|
|
46955
|
+
/**
|
|
46956
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46957
|
+
* set's `regional_regulation_identities`: the Verified identity IDs of the beneficiary
|
|
46958
|
+
* and payer for each declared category, same keys and validation as on
|
|
46959
|
+
* POST /v1/ads/create (for example `universal_beneficiary` / `universal_payer` for
|
|
46960
|
+
* BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL). Send each ID as a
|
|
46961
|
+
* string of digits; an empty object is a 400. When Meta refuses the ad set for a missing
|
|
46962
|
+
* verified advertiser, the 400 `platform_api_error` names the keys the declared categories
|
|
46963
|
+
* expect in `details.expectedIdentityKeys`, as on create. Read both back with
|
|
46964
|
+
* GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=regional_regulated_categories,regional_regulation_identities.
|
|
46965
|
+
*
|
|
46966
|
+
*/
|
|
46967
|
+
regionalRegulationIdentities?: {
|
|
46968
|
+
[key: string]: (string | number);
|
|
46969
|
+
};
|
|
46915
46970
|
/**
|
|
46916
46971
|
* TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
|
|
46917
46972
|
* TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
|
package/dist/index.d.ts
CHANGED
|
@@ -11430,6 +11430,19 @@ type InstagramPlatformData = {
|
|
|
11430
11430
|
* Up to 3 Instagram usernames to invite as collaborators (feed/Reels only)
|
|
11431
11431
|
*/
|
|
11432
11432
|
collaborators?: Array<(string)>;
|
|
11433
|
+
/**
|
|
11434
|
+
* Output only. Set by Zernio when Instagram rejected these collaborators and the retry was sent without them.
|
|
11435
|
+
*/
|
|
11436
|
+
readonly droppedCollaborators?: Array<{
|
|
11437
|
+
/**
|
|
11438
|
+
* The collaborator username Instagram rejected
|
|
11439
|
+
*/
|
|
11440
|
+
username: string;
|
|
11441
|
+
/**
|
|
11442
|
+
* The reason Instagram gave for rejecting the collaborator
|
|
11443
|
+
*/
|
|
11444
|
+
reason: string;
|
|
11445
|
+
}>;
|
|
11433
11446
|
/**
|
|
11434
11447
|
* Optional first comment to add after the post is created (not applied to Stories)
|
|
11435
11448
|
*/
|
|
@@ -46912,6 +46925,48 @@ type UpdateAdSetData = {
|
|
|
46912
46925
|
*
|
|
46913
46926
|
*/
|
|
46914
46927
|
bidStrategy?: (BidStrategy);
|
|
46928
|
+
/**
|
|
46929
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46930
|
+
* set's `dsa_beneficiary`, the legal entity that benefits from its ads, same field and
|
|
46931
|
+
* limits as `dsaBeneficiary` on POST /v1/ads/create. Only the fields you send are
|
|
46932
|
+
* written. It is the EU DSA field; for the regional regimes (Brazil, Malaysia,
|
|
46933
|
+
* Thailand, Australia, Singapore, Taiwan, India) use `regionalRegulatedCategories` and
|
|
46934
|
+
* `regionalRegulationIdentities` instead. Read it back with
|
|
46935
|
+
* GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=dsa_beneficiary,dsa_payor.
|
|
46936
|
+
*
|
|
46937
|
+
*/
|
|
46938
|
+
dsaBeneficiary?: string;
|
|
46939
|
+
/**
|
|
46940
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46941
|
+
* set's `dsa_payor`, the legal entity that pays for its ads, same field and limits as
|
|
46942
|
+
* `dsaPayor` on POST /v1/ads/create. Can differ from `dsaBeneficiary`.
|
|
46943
|
+
*
|
|
46944
|
+
*/
|
|
46945
|
+
dsaPayor?: string;
|
|
46946
|
+
/**
|
|
46947
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46948
|
+
* set's `regional_regulated_categories`, same values as on POST /v1/ads/create
|
|
46949
|
+
* (AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV,
|
|
46950
|
+
* MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL,
|
|
46951
|
+
* THAILAND_UNIVERSAL). Send it with `regionalRegulationIdentities`. An empty array is a 400.
|
|
46952
|
+
*
|
|
46953
|
+
*/
|
|
46954
|
+
regionalRegulatedCategories?: Array<(string)>;
|
|
46955
|
+
/**
|
|
46956
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
46957
|
+
* set's `regional_regulation_identities`: the Verified identity IDs of the beneficiary
|
|
46958
|
+
* and payer for each declared category, same keys and validation as on
|
|
46959
|
+
* POST /v1/ads/create (for example `universal_beneficiary` / `universal_payer` for
|
|
46960
|
+
* BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL). Send each ID as a
|
|
46961
|
+
* string of digits; an empty object is a 400. When Meta refuses the ad set for a missing
|
|
46962
|
+
* verified advertiser, the 400 `platform_api_error` names the keys the declared categories
|
|
46963
|
+
* expect in `details.expectedIdentityKeys`, as on create. Read both back with
|
|
46964
|
+
* GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=regional_regulated_categories,regional_regulation_identities.
|
|
46965
|
+
*
|
|
46966
|
+
*/
|
|
46967
|
+
regionalRegulationIdentities?: {
|
|
46968
|
+
[key: string]: (string | number);
|
|
46969
|
+
};
|
|
46915
46970
|
/**
|
|
46916
46971
|
* TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
|
|
46917
46972
|
* TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
|
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.1357",
|
|
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.1357",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -11575,7 +11575,10 @@ export const getAdSetDetails = <ThrowOnError extends boolean = false>(options: O
|
|
|
11575
11575
|
* Changes an ad set's settings, such as its budget, bid strategy, status or delivery options.
|
|
11576
11576
|
*
|
|
11577
11577
|
* Use this for ABO budget updates, ad-set-scoped
|
|
11578
|
-
* pause/resume, bid-strategy edits, Meta value-rule-set attach/detach,
|
|
11578
|
+
* pause/resume, bid-strategy edits, Meta value-rule-set attach/detach, Meta
|
|
11579
|
+
* beneficiary and payer (`dsaBeneficiary` / `dsaPayor` for the EU,
|
|
11580
|
+
* `regionalRegulatedCategories` / `regionalRegulationIdentities` for the
|
|
11581
|
+
* regional regimes), and
|
|
11579
11582
|
* Meta-only post-launch delivery settings via `platformSpecificData`. At
|
|
11580
11583
|
* least one updatable field is required.
|
|
11581
11584
|
*
|
|
@@ -9681,6 +9681,19 @@ export type InstagramPlatformData = {
|
|
|
9681
9681
|
* Up to 3 Instagram usernames to invite as collaborators (feed/Reels only)
|
|
9682
9682
|
*/
|
|
9683
9683
|
collaborators?: Array<(string)>;
|
|
9684
|
+
/**
|
|
9685
|
+
* Output only. Set by Zernio when Instagram rejected these collaborators and the retry was sent without them.
|
|
9686
|
+
*/
|
|
9687
|
+
readonly droppedCollaborators?: Array<{
|
|
9688
|
+
/**
|
|
9689
|
+
* The collaborator username Instagram rejected
|
|
9690
|
+
*/
|
|
9691
|
+
username: string;
|
|
9692
|
+
/**
|
|
9693
|
+
* The reason Instagram gave for rejecting the collaborator
|
|
9694
|
+
*/
|
|
9695
|
+
reason: string;
|
|
9696
|
+
}>;
|
|
9684
9697
|
/**
|
|
9685
9698
|
* Optional first comment to add after the post is created (not applied to Stories)
|
|
9686
9699
|
*/
|
|
@@ -47598,6 +47611,48 @@ export type UpdateAdSetData = {
|
|
|
47598
47611
|
*
|
|
47599
47612
|
*/
|
|
47600
47613
|
bidStrategy?: (BidStrategy);
|
|
47614
|
+
/**
|
|
47615
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
47616
|
+
* set's `dsa_beneficiary`, the legal entity that benefits from its ads, same field and
|
|
47617
|
+
* limits as `dsaBeneficiary` on POST /v1/ads/create. Only the fields you send are
|
|
47618
|
+
* written. It is the EU DSA field; for the regional regimes (Brazil, Malaysia,
|
|
47619
|
+
* Thailand, Australia, Singapore, Taiwan, India) use `regionalRegulatedCategories` and
|
|
47620
|
+
* `regionalRegulationIdentities` instead. Read it back with
|
|
47621
|
+
* GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=dsa_beneficiary,dsa_payor.
|
|
47622
|
+
*
|
|
47623
|
+
*/
|
|
47624
|
+
dsaBeneficiary?: string;
|
|
47625
|
+
/**
|
|
47626
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
47627
|
+
* set's `dsa_payor`, the legal entity that pays for its ads, same field and limits as
|
|
47628
|
+
* `dsaPayor` on POST /v1/ads/create. Can differ from `dsaBeneficiary`.
|
|
47629
|
+
*
|
|
47630
|
+
*/
|
|
47631
|
+
dsaPayor?: string;
|
|
47632
|
+
/**
|
|
47633
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
47634
|
+
* set's `regional_regulated_categories`, same values as on POST /v1/ads/create
|
|
47635
|
+
* (AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV,
|
|
47636
|
+
* MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL,
|
|
47637
|
+
* THAILAND_UNIVERSAL). Send it with `regionalRegulationIdentities`. An empty array is a 400.
|
|
47638
|
+
*
|
|
47639
|
+
*/
|
|
47640
|
+
regionalRegulatedCategories?: Array<(string)>;
|
|
47641
|
+
/**
|
|
47642
|
+
* Meta only (400 elsewhere, before anything in the request is written). Writes the ad
|
|
47643
|
+
* set's `regional_regulation_identities`: the Verified identity IDs of the beneficiary
|
|
47644
|
+
* and payer for each declared category, same keys and validation as on
|
|
47645
|
+
* POST /v1/ads/create (for example `universal_beneficiary` / `universal_payer` for
|
|
47646
|
+
* BRAZIL_REGULATION, MALAYSIA_UNIVERSAL and THAILAND_UNIVERSAL). Send each ID as a
|
|
47647
|
+
* string of digits; an empty object is a 400. When Meta refuses the ad set for a missing
|
|
47648
|
+
* verified advertiser, the 400 `platform_api_error` names the keys the declared categories
|
|
47649
|
+
* expect in `details.expectedIdentityKeys`, as on create. Read both back with
|
|
47650
|
+
* GET /v1/ads/ad-sets/{adSetId}?accountId={accountId}&fields=regional_regulated_categories,regional_regulation_identities.
|
|
47651
|
+
*
|
|
47652
|
+
*/
|
|
47653
|
+
regionalRegulationIdentities?: {
|
|
47654
|
+
[key: string]: (string | number);
|
|
47655
|
+
};
|
|
47601
47656
|
/**
|
|
47602
47657
|
* TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group: `audience` is
|
|
47603
47658
|
* TikTok's `smart_audience_enabled`, `interestsBehaviors` its `smart_interest_behavior_enabled`.
|