@zernio/node 0.2.786 → 0.2.788
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 +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +17 -10
- package/src/generated/types.gen.ts +13 -1
package/dist/index.d.mts
CHANGED
|
@@ -27788,6 +27788,10 @@ type SubmitPhoneNumberKycData = {
|
|
|
27788
27788
|
* Id from POST /v1/phone-numbers/kyc/upload-document.
|
|
27789
27789
|
*/
|
|
27790
27790
|
documentId: string;
|
|
27791
|
+
/**
|
|
27792
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
27793
|
+
*/
|
|
27794
|
+
issuedAt?: string;
|
|
27791
27795
|
})>;
|
|
27792
27796
|
address?: {
|
|
27793
27797
|
requirementId?: string;
|
|
@@ -28251,6 +28255,10 @@ type ReviewPhoneNumberKycPacketData = {
|
|
|
28251
28255
|
* Id from POST /v1/phone-numbers/kyc/upload-document.
|
|
28252
28256
|
*/
|
|
28253
28257
|
documentId: string;
|
|
28258
|
+
/**
|
|
28259
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
28260
|
+
*/
|
|
28261
|
+
issuedAt?: string;
|
|
28254
28262
|
}>;
|
|
28255
28263
|
};
|
|
28256
28264
|
};
|
|
@@ -28373,6 +28381,10 @@ type RespondToPhoneNumberReviewerData = {
|
|
|
28373
28381
|
* Id of a document already uploaded out-of-band.
|
|
28374
28382
|
*/
|
|
28375
28383
|
documentId?: string;
|
|
28384
|
+
/**
|
|
28385
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
28386
|
+
*/
|
|
28387
|
+
issuedAt?: string;
|
|
28376
28388
|
}>;
|
|
28377
28389
|
/**
|
|
28378
28390
|
* A corrected address record, keyed to its requirement.
|
|
@@ -39167,7 +39179,7 @@ type SearchAdTargetingData = {
|
|
|
39167
39179
|
type SearchAdTargetingResponse = ({
|
|
39168
39180
|
results?: Array<{
|
|
39169
39181
|
/**
|
|
39170
|
-
* The platform's opaque id. Use as a geo `key` (regions/cities/zips/metros) or an entity `id` (interests/behaviors) in TargetingSpec.
|
|
39182
|
+
* The platform's opaque id. Use as a geo `key` (regions/cities/zips/metros) or an entity `id` (interests/behaviors) in TargetingSpec. A `country` result is the exception on every platform: its id is the ISO 3166-1 alpha-2 code, which is what `targeting.countries` takes.
|
|
39171
39183
|
*/
|
|
39172
39184
|
id: string;
|
|
39173
39185
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -27788,6 +27788,10 @@ type SubmitPhoneNumberKycData = {
|
|
|
27788
27788
|
* Id from POST /v1/phone-numbers/kyc/upload-document.
|
|
27789
27789
|
*/
|
|
27790
27790
|
documentId: string;
|
|
27791
|
+
/**
|
|
27792
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
27793
|
+
*/
|
|
27794
|
+
issuedAt?: string;
|
|
27791
27795
|
})>;
|
|
27792
27796
|
address?: {
|
|
27793
27797
|
requirementId?: string;
|
|
@@ -28251,6 +28255,10 @@ type ReviewPhoneNumberKycPacketData = {
|
|
|
28251
28255
|
* Id from POST /v1/phone-numbers/kyc/upload-document.
|
|
28252
28256
|
*/
|
|
28253
28257
|
documentId: string;
|
|
28258
|
+
/**
|
|
28259
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
28260
|
+
*/
|
|
28261
|
+
issuedAt?: string;
|
|
28254
28262
|
}>;
|
|
28255
28263
|
};
|
|
28256
28264
|
};
|
|
@@ -28373,6 +28381,10 @@ type RespondToPhoneNumberReviewerData = {
|
|
|
28373
28381
|
* Id of a document already uploaded out-of-band.
|
|
28374
28382
|
*/
|
|
28375
28383
|
documentId?: string;
|
|
28384
|
+
/**
|
|
28385
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
28386
|
+
*/
|
|
28387
|
+
issuedAt?: string;
|
|
28376
28388
|
}>;
|
|
28377
28389
|
/**
|
|
28378
28390
|
* A corrected address record, keyed to its requirement.
|
|
@@ -39167,7 +39179,7 @@ type SearchAdTargetingData = {
|
|
|
39167
39179
|
type SearchAdTargetingResponse = ({
|
|
39168
39180
|
results?: Array<{
|
|
39169
39181
|
/**
|
|
39170
|
-
* The platform's opaque id. Use as a geo `key` (regions/cities/zips/metros) or an entity `id` (interests/behaviors) in TargetingSpec.
|
|
39182
|
+
* The platform's opaque id. Use as a geo `key` (regions/cities/zips/metros) or an entity `id` (interests/behaviors) in TargetingSpec. A `country` result is the exception on every platform: its id is the ISO 3166-1 alpha-2 code, which is what `targeting.countries` takes.
|
|
39171
39183
|
*/
|
|
39172
39184
|
id: string;
|
|
39173
39185
|
/**
|
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.
|
|
39
|
+
version: "0.2.788",
|
|
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.
|
|
8
|
+
version: "0.2.788",
|
|
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
|
@@ -10451,15 +10451,20 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
10451
10451
|
* TikTok geo searches return every matching level in one list (`type` is
|
|
10452
10452
|
* `country`, `region`, `city`, `district`, or `metro` for DMA areas), and
|
|
10453
10453
|
* `geoType` is not applied. Results are scoped to the advertiser's targetable
|
|
10454
|
-
* markets
|
|
10455
|
-
* `
|
|
10454
|
+
* markets. A `country` result's id is its ISO 3166-1 alpha-2 code, for
|
|
10455
|
+
* `targeting.countries`; every other id is TikTok's numeric location id,
|
|
10456
|
+
* usable in `regions`/`cities`/`metros` keys on `POST /v1/ads/create`.
|
|
10456
10457
|
*
|
|
10457
10458
|
* LinkedIn geo searches also return every matching level in one list, and
|
|
10458
10459
|
* neither `geoType` nor `countryCode` is applied: LinkedIn's typeahead only
|
|
10459
10460
|
* returns a name and a URN per result, with no level or country field to
|
|
10460
|
-
* filter on.
|
|
10461
|
-
* `
|
|
10462
|
-
* `
|
|
10461
|
+
* filter on. A result whose URN is a country Zernio holds a code for has
|
|
10462
|
+
* `type: country` and its ISO 3166-1 alpha-2 code as the id, for
|
|
10463
|
+
* `targeting.countries`. Every other result has `type: region` and keeps
|
|
10464
|
+
* its `urn:li:geo:*` URN as the id, usable as a `regions[].key` on
|
|
10465
|
+
* `POST /v1/ads/create`, `POST /v1/ads/boost` and
|
|
10466
|
+
* `POST /v1/ads/targeting/reach-estimate` (LinkedIn puts countries and
|
|
10467
|
+
* regions in the same `locations` facet, so both target the same way).
|
|
10463
10468
|
*
|
|
10464
10469
|
* LinkedIn B2B searches (`industry`, `jobFunction`, `seniority`, `companySize`) return the
|
|
10465
10470
|
* full URN to pass straight back, so no URN id fragment has to be assembled by hand:
|
|
@@ -10475,11 +10480,13 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
10475
10480
|
* `target_type` is an open taxonomy that does not map one-to-one onto the
|
|
10476
10481
|
* `geoType` enum), so filter client-side on the returned `type` (`country`,
|
|
10477
10482
|
* `region`, `city`, `zip`, `metro`, or the lowercased Google target type for
|
|
10478
|
-
* rarer levels). `countryCode` scopes the search to one country.
|
|
10479
|
-
*
|
|
10480
|
-
*
|
|
10481
|
-
* `
|
|
10482
|
-
*
|
|
10483
|
+
* rarer levels). `countryCode` scopes the search to one country. A `country`
|
|
10484
|
+
* result's id is its ISO 3166-1 alpha-2 code, for `targeting.countries`;
|
|
10485
|
+
* every other id is Google's numeric criterion id, usable as a
|
|
10486
|
+
* `regions`/`cities`/`zips`/`metros` `key` on `POST /v1/ads/create`. Google
|
|
10487
|
+
* city radius is not supported (pass a `customLocations` lat/lng pin for a
|
|
10488
|
+
* radius); country targeting also accepts plain ISO codes via `countries`
|
|
10489
|
+
* with no search call.
|
|
10483
10490
|
*
|
|
10484
10491
|
* Pinterest resolves against three whole-catalog endpoints (interests, locations,
|
|
10485
10492
|
* regions) with no server-side query or pagination, so matching, ranking and the
|
|
@@ -27663,6 +27663,10 @@ export type SubmitPhoneNumberKycData = {
|
|
|
27663
27663
|
* Id from POST /v1/phone-numbers/kyc/upload-document.
|
|
27664
27664
|
*/
|
|
27665
27665
|
documentId: string;
|
|
27666
|
+
/**
|
|
27667
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
27668
|
+
*/
|
|
27669
|
+
issuedAt?: string;
|
|
27666
27670
|
})>;
|
|
27667
27671
|
address?: {
|
|
27668
27672
|
requirementId?: string;
|
|
@@ -28161,6 +28165,10 @@ export type ReviewPhoneNumberKycPacketData = {
|
|
|
28161
28165
|
* Id from POST /v1/phone-numbers/kyc/upload-document.
|
|
28162
28166
|
*/
|
|
28163
28167
|
documentId: string;
|
|
28168
|
+
/**
|
|
28169
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
28170
|
+
*/
|
|
28171
|
+
issuedAt?: string;
|
|
28164
28172
|
}>;
|
|
28165
28173
|
};
|
|
28166
28174
|
};
|
|
@@ -28295,6 +28303,10 @@ export type RespondToPhoneNumberReviewerData = {
|
|
|
28295
28303
|
* Id of a document already uploaded out-of-band.
|
|
28296
28304
|
*/
|
|
28297
28305
|
documentId?: string;
|
|
28306
|
+
/**
|
|
28307
|
+
* Date printed on the document (YYYY-MM-DD), for slots the regulator windows such as proof of address. The pre-submit review trusts it over its own read of the PDF.
|
|
28308
|
+
*/
|
|
28309
|
+
issuedAt?: string;
|
|
28298
28310
|
}>;
|
|
28299
28311
|
/**
|
|
28300
28312
|
* A corrected address record, keyed to its requirement.
|
|
@@ -39819,7 +39831,7 @@ export type SearchAdTargetingData = {
|
|
|
39819
39831
|
export type SearchAdTargetingResponse = ({
|
|
39820
39832
|
results?: Array<{
|
|
39821
39833
|
/**
|
|
39822
|
-
* The platform's opaque id. Use as a geo `key` (regions/cities/zips/metros) or an entity `id` (interests/behaviors) in TargetingSpec.
|
|
39834
|
+
* The platform's opaque id. Use as a geo `key` (regions/cities/zips/metros) or an entity `id` (interests/behaviors) in TargetingSpec. A `country` result is the exception on every platform: its id is the ISO 3166-1 alpha-2 code, which is what `targeting.countries` takes.
|
|
39823
39835
|
*/
|
|
39824
39836
|
id: string;
|
|
39825
39837
|
/**
|