@getlatedev/node 0.2.368 → 0.2.370
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 +106 -3
- package/dist/index.d.ts +106 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +106 -3
package/dist/index.d.mts
CHANGED
|
@@ -10055,6 +10055,16 @@ type ConnectAdsData = {
|
|
|
10055
10055
|
*
|
|
10056
10056
|
*/
|
|
10057
10057
|
adAccountIds?: Array<(string)>;
|
|
10058
|
+
/**
|
|
10059
|
+
* Force a fresh OAuth even when an account already exists. Normally the
|
|
10060
|
+
* endpoint returns `alreadyConnected: true` whenever a connected account
|
|
10061
|
+
* is found, keying off its active state rather than token liveness.
|
|
10062
|
+
* Set `force=true` to bypass that and always receivean `authUrl`.
|
|
10063
|
+
* Completing the returned OAuth refreshes the stored token
|
|
10064
|
+
* on the existing posting and ads accounts in place.
|
|
10065
|
+
*
|
|
10066
|
+
*/
|
|
10067
|
+
force?: boolean;
|
|
10058
10068
|
/**
|
|
10059
10069
|
* Enable headless mode (same-token platforms only)
|
|
10060
10070
|
*/
|
|
@@ -17333,6 +17343,16 @@ type StartSmsRegistrationData = {
|
|
|
17333
17343
|
*/
|
|
17334
17344
|
termsAndConditionsLink?: string;
|
|
17335
17345
|
};
|
|
17346
|
+
/**
|
|
17347
|
+
* Raw dashboard-wizard answers, stored only to prefill edit-and-resubmit. API integrators can omit.
|
|
17348
|
+
*/
|
|
17349
|
+
wizardValues?: {
|
|
17350
|
+
[key: string]: (string);
|
|
17351
|
+
};
|
|
17352
|
+
/**
|
|
17353
|
+
* Resubmit a registration that was returned for changes — updates it in place instead of creating a new one.
|
|
17354
|
+
*/
|
|
17355
|
+
resubmitRequestId?: string;
|
|
17336
17356
|
/**
|
|
17337
17357
|
* Required for toll_free.
|
|
17338
17358
|
*/
|
|
@@ -17401,7 +17421,10 @@ type ListSmsRegistrationsResponse = ({
|
|
|
17401
17421
|
id?: string;
|
|
17402
17422
|
registrationType?: 'standard_10dlc' | 'sole_prop_10dlc' | 'toll_free';
|
|
17403
17423
|
displayName?: (string) | null;
|
|
17404
|
-
|
|
17424
|
+
/**
|
|
17425
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
17426
|
+
*/
|
|
17427
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
17405
17428
|
/**
|
|
17406
17429
|
* Carrier-registry brand status (e.g. VERIFIED).
|
|
17407
17430
|
*/
|
|
@@ -17457,7 +17480,10 @@ type GetSmsRegistrationData = {
|
|
|
17457
17480
|
type GetSmsRegistrationResponse = ({
|
|
17458
17481
|
id?: string;
|
|
17459
17482
|
registrationType?: 'standard_10dlc' | 'sole_prop_10dlc' | 'toll_free';
|
|
17460
|
-
|
|
17483
|
+
/**
|
|
17484
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
17485
|
+
*/
|
|
17486
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
17461
17487
|
brandStatus?: string;
|
|
17462
17488
|
campaignStatus?: string;
|
|
17463
17489
|
declineReason?: (string) | null;
|
|
@@ -19588,7 +19614,10 @@ type ReuseSmsRegistrationForNumberData = {
|
|
|
19588
19614
|
};
|
|
19589
19615
|
type ReuseSmsRegistrationForNumberResponse = ({
|
|
19590
19616
|
registrationId?: string;
|
|
19591
|
-
|
|
19617
|
+
/**
|
|
19618
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
19619
|
+
*/
|
|
19620
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
19592
19621
|
});
|
|
19593
19622
|
type ReuseSmsRegistrationForNumberError = ({
|
|
19594
19623
|
error?: string;
|
|
@@ -23348,13 +23377,76 @@ type BoostPostData = {
|
|
|
23348
23377
|
*/
|
|
23349
23378
|
endDate?: string;
|
|
23350
23379
|
};
|
|
23380
|
+
/**
|
|
23381
|
+
* Same geo/demographic fields as the `TargetingSpec` used by /v1/ads/create.
|
|
23382
|
+
* Geo keys (`regions`/`cities`/`zips`/`metros`) resolve via
|
|
23383
|
+
* GET /v1/ads/targeting/search?dimension=geo. City radius and lat/lng
|
|
23384
|
+
* `customLocations` are Meta-only and preserve the boosted post's
|
|
23385
|
+
* social proof (the ad references the existing post).
|
|
23386
|
+
*
|
|
23387
|
+
*/
|
|
23351
23388
|
targeting?: {
|
|
23352
23389
|
ageMin?: number;
|
|
23353
23390
|
ageMax?: number;
|
|
23391
|
+
/**
|
|
23392
|
+
* Meta only.
|
|
23393
|
+
*/
|
|
23394
|
+
gender?: 'all' | 'male' | 'female';
|
|
23395
|
+
/**
|
|
23396
|
+
* Meta locale ids (numeric), passed through as given.
|
|
23397
|
+
*/
|
|
23398
|
+
languages?: Array<(string)>;
|
|
23354
23399
|
/**
|
|
23355
23400
|
* ISO country codes. Required for TikTok boosts (TikTok's ad group requires location_ids); optional on other platforms.
|
|
23356
23401
|
*/
|
|
23357
23402
|
countries?: Array<(string)>;
|
|
23403
|
+
/**
|
|
23404
|
+
* Region/state targeting. `key` from /v1/ads/targeting/search?dimension=geo&geoType=region.
|
|
23405
|
+
*/
|
|
23406
|
+
regions?: Array<{
|
|
23407
|
+
key: string;
|
|
23408
|
+
name?: string;
|
|
23409
|
+
}>;
|
|
23410
|
+
/**
|
|
23411
|
+
* City targeting. Optional `radius` + `distance_unit` extend beyond the city limits (both set together, Meta only).
|
|
23412
|
+
*/
|
|
23413
|
+
cities?: Array<{
|
|
23414
|
+
key: string;
|
|
23415
|
+
name?: string;
|
|
23416
|
+
/**
|
|
23417
|
+
* Requires distance_unit.
|
|
23418
|
+
*/
|
|
23419
|
+
radius?: number;
|
|
23420
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
23421
|
+
}>;
|
|
23422
|
+
/**
|
|
23423
|
+
* Postal/ZIP targeting. `key` is the platform's postal location ID (e.g. Meta `US:94304`).
|
|
23424
|
+
*/
|
|
23425
|
+
zips?: Array<{
|
|
23426
|
+
key: string;
|
|
23427
|
+
name?: string;
|
|
23428
|
+
}>;
|
|
23429
|
+
/**
|
|
23430
|
+
* DMA / metro-area targeting. `key` is the platform's metro ID (e.g. Meta `DMA:807`).
|
|
23431
|
+
*/
|
|
23432
|
+
metros?: Array<{
|
|
23433
|
+
key: string;
|
|
23434
|
+
name?: string;
|
|
23435
|
+
}>;
|
|
23436
|
+
/**
|
|
23437
|
+
* Point-radius (lat/lng) targeting (Meta custom_locations). No geo `key` lookup needed.
|
|
23438
|
+
*/
|
|
23439
|
+
customLocations?: Array<{
|
|
23440
|
+
latitude: number;
|
|
23441
|
+
longitude: number;
|
|
23442
|
+
radius: number;
|
|
23443
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
23444
|
+
name?: string;
|
|
23445
|
+
/**
|
|
23446
|
+
* Optional label, sent to Meta as `address_string`.
|
|
23447
|
+
*/
|
|
23448
|
+
address?: string;
|
|
23449
|
+
}>;
|
|
23358
23450
|
/**
|
|
23359
23451
|
* Interest objects from /v1/ads/interests. Each must include id and name.
|
|
23360
23452
|
*/
|
|
@@ -23367,6 +23459,17 @@ type BoostPostData = {
|
|
|
23367
23459
|
*/
|
|
23368
23460
|
advantage_audience?: 0 | 1;
|
|
23369
23461
|
};
|
|
23462
|
+
/**
|
|
23463
|
+
* Meta only. A verbatim Meta-native targeting spec (e.g.
|
|
23464
|
+
* `{ "geo_locations": { "cities": [{ "key": "...", "radius": 15, "distance_unit": "kilometer" }] } }`),
|
|
23465
|
+
* forwarded unchanged. Mutually exclusive with `targeting` (sending both is a 400).
|
|
23466
|
+
* Use for advanced fields the structured object does not expose (flexible_spec,
|
|
23467
|
+
* excluded audiences, business places).
|
|
23468
|
+
*
|
|
23469
|
+
*/
|
|
23470
|
+
rawTargeting?: {
|
|
23471
|
+
[key: string]: unknown;
|
|
23472
|
+
};
|
|
23370
23473
|
/**
|
|
23371
23474
|
* Meta bid strategy applied to the ad set. On TikTok, mapped to
|
|
23372
23475
|
* `bid_type` / `bid_price` / `deep_bid_type` automatically.
|
package/dist/index.d.ts
CHANGED
|
@@ -10055,6 +10055,16 @@ type ConnectAdsData = {
|
|
|
10055
10055
|
*
|
|
10056
10056
|
*/
|
|
10057
10057
|
adAccountIds?: Array<(string)>;
|
|
10058
|
+
/**
|
|
10059
|
+
* Force a fresh OAuth even when an account already exists. Normally the
|
|
10060
|
+
* endpoint returns `alreadyConnected: true` whenever a connected account
|
|
10061
|
+
* is found, keying off its active state rather than token liveness.
|
|
10062
|
+
* Set `force=true` to bypass that and always receivean `authUrl`.
|
|
10063
|
+
* Completing the returned OAuth refreshes the stored token
|
|
10064
|
+
* on the existing posting and ads accounts in place.
|
|
10065
|
+
*
|
|
10066
|
+
*/
|
|
10067
|
+
force?: boolean;
|
|
10058
10068
|
/**
|
|
10059
10069
|
* Enable headless mode (same-token platforms only)
|
|
10060
10070
|
*/
|
|
@@ -17333,6 +17343,16 @@ type StartSmsRegistrationData = {
|
|
|
17333
17343
|
*/
|
|
17334
17344
|
termsAndConditionsLink?: string;
|
|
17335
17345
|
};
|
|
17346
|
+
/**
|
|
17347
|
+
* Raw dashboard-wizard answers, stored only to prefill edit-and-resubmit. API integrators can omit.
|
|
17348
|
+
*/
|
|
17349
|
+
wizardValues?: {
|
|
17350
|
+
[key: string]: (string);
|
|
17351
|
+
};
|
|
17352
|
+
/**
|
|
17353
|
+
* Resubmit a registration that was returned for changes — updates it in place instead of creating a new one.
|
|
17354
|
+
*/
|
|
17355
|
+
resubmitRequestId?: string;
|
|
17336
17356
|
/**
|
|
17337
17357
|
* Required for toll_free.
|
|
17338
17358
|
*/
|
|
@@ -17401,7 +17421,10 @@ type ListSmsRegistrationsResponse = ({
|
|
|
17401
17421
|
id?: string;
|
|
17402
17422
|
registrationType?: 'standard_10dlc' | 'sole_prop_10dlc' | 'toll_free';
|
|
17403
17423
|
displayName?: (string) | null;
|
|
17404
|
-
|
|
17424
|
+
/**
|
|
17425
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
17426
|
+
*/
|
|
17427
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
17405
17428
|
/**
|
|
17406
17429
|
* Carrier-registry brand status (e.g. VERIFIED).
|
|
17407
17430
|
*/
|
|
@@ -17457,7 +17480,10 @@ type GetSmsRegistrationData = {
|
|
|
17457
17480
|
type GetSmsRegistrationResponse = ({
|
|
17458
17481
|
id?: string;
|
|
17459
17482
|
registrationType?: 'standard_10dlc' | 'sole_prop_10dlc' | 'toll_free';
|
|
17460
|
-
|
|
17483
|
+
/**
|
|
17484
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
17485
|
+
*/
|
|
17486
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
17461
17487
|
brandStatus?: string;
|
|
17462
17488
|
campaignStatus?: string;
|
|
17463
17489
|
declineReason?: (string) | null;
|
|
@@ -19588,7 +19614,10 @@ type ReuseSmsRegistrationForNumberData = {
|
|
|
19588
19614
|
};
|
|
19589
19615
|
type ReuseSmsRegistrationForNumberResponse = ({
|
|
19590
19616
|
registrationId?: string;
|
|
19591
|
-
|
|
19617
|
+
/**
|
|
19618
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
19619
|
+
*/
|
|
19620
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
19592
19621
|
});
|
|
19593
19622
|
type ReuseSmsRegistrationForNumberError = ({
|
|
19594
19623
|
error?: string;
|
|
@@ -23348,13 +23377,76 @@ type BoostPostData = {
|
|
|
23348
23377
|
*/
|
|
23349
23378
|
endDate?: string;
|
|
23350
23379
|
};
|
|
23380
|
+
/**
|
|
23381
|
+
* Same geo/demographic fields as the `TargetingSpec` used by /v1/ads/create.
|
|
23382
|
+
* Geo keys (`regions`/`cities`/`zips`/`metros`) resolve via
|
|
23383
|
+
* GET /v1/ads/targeting/search?dimension=geo. City radius and lat/lng
|
|
23384
|
+
* `customLocations` are Meta-only and preserve the boosted post's
|
|
23385
|
+
* social proof (the ad references the existing post).
|
|
23386
|
+
*
|
|
23387
|
+
*/
|
|
23351
23388
|
targeting?: {
|
|
23352
23389
|
ageMin?: number;
|
|
23353
23390
|
ageMax?: number;
|
|
23391
|
+
/**
|
|
23392
|
+
* Meta only.
|
|
23393
|
+
*/
|
|
23394
|
+
gender?: 'all' | 'male' | 'female';
|
|
23395
|
+
/**
|
|
23396
|
+
* Meta locale ids (numeric), passed through as given.
|
|
23397
|
+
*/
|
|
23398
|
+
languages?: Array<(string)>;
|
|
23354
23399
|
/**
|
|
23355
23400
|
* ISO country codes. Required for TikTok boosts (TikTok's ad group requires location_ids); optional on other platforms.
|
|
23356
23401
|
*/
|
|
23357
23402
|
countries?: Array<(string)>;
|
|
23403
|
+
/**
|
|
23404
|
+
* Region/state targeting. `key` from /v1/ads/targeting/search?dimension=geo&geoType=region.
|
|
23405
|
+
*/
|
|
23406
|
+
regions?: Array<{
|
|
23407
|
+
key: string;
|
|
23408
|
+
name?: string;
|
|
23409
|
+
}>;
|
|
23410
|
+
/**
|
|
23411
|
+
* City targeting. Optional `radius` + `distance_unit` extend beyond the city limits (both set together, Meta only).
|
|
23412
|
+
*/
|
|
23413
|
+
cities?: Array<{
|
|
23414
|
+
key: string;
|
|
23415
|
+
name?: string;
|
|
23416
|
+
/**
|
|
23417
|
+
* Requires distance_unit.
|
|
23418
|
+
*/
|
|
23419
|
+
radius?: number;
|
|
23420
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
23421
|
+
}>;
|
|
23422
|
+
/**
|
|
23423
|
+
* Postal/ZIP targeting. `key` is the platform's postal location ID (e.g. Meta `US:94304`).
|
|
23424
|
+
*/
|
|
23425
|
+
zips?: Array<{
|
|
23426
|
+
key: string;
|
|
23427
|
+
name?: string;
|
|
23428
|
+
}>;
|
|
23429
|
+
/**
|
|
23430
|
+
* DMA / metro-area targeting. `key` is the platform's metro ID (e.g. Meta `DMA:807`).
|
|
23431
|
+
*/
|
|
23432
|
+
metros?: Array<{
|
|
23433
|
+
key: string;
|
|
23434
|
+
name?: string;
|
|
23435
|
+
}>;
|
|
23436
|
+
/**
|
|
23437
|
+
* Point-radius (lat/lng) targeting (Meta custom_locations). No geo `key` lookup needed.
|
|
23438
|
+
*/
|
|
23439
|
+
customLocations?: Array<{
|
|
23440
|
+
latitude: number;
|
|
23441
|
+
longitude: number;
|
|
23442
|
+
radius: number;
|
|
23443
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
23444
|
+
name?: string;
|
|
23445
|
+
/**
|
|
23446
|
+
* Optional label, sent to Meta as `address_string`.
|
|
23447
|
+
*/
|
|
23448
|
+
address?: string;
|
|
23449
|
+
}>;
|
|
23358
23450
|
/**
|
|
23359
23451
|
* Interest objects from /v1/ads/interests. Each must include id and name.
|
|
23360
23452
|
*/
|
|
@@ -23367,6 +23459,17 @@ type BoostPostData = {
|
|
|
23367
23459
|
*/
|
|
23368
23460
|
advantage_audience?: 0 | 1;
|
|
23369
23461
|
};
|
|
23462
|
+
/**
|
|
23463
|
+
* Meta only. A verbatim Meta-native targeting spec (e.g.
|
|
23464
|
+
* `{ "geo_locations": { "cities": [{ "key": "...", "radius": 15, "distance_unit": "kilometer" }] } }`),
|
|
23465
|
+
* forwarded unchanged. Mutually exclusive with `targeting` (sending both is a 400).
|
|
23466
|
+
* Use for advanced fields the structured object does not expose (flexible_spec,
|
|
23467
|
+
* excluded audiences, business places).
|
|
23468
|
+
*
|
|
23469
|
+
*/
|
|
23470
|
+
rawTargeting?: {
|
|
23471
|
+
[key: string]: unknown;
|
|
23472
|
+
};
|
|
23370
23473
|
/**
|
|
23371
23474
|
* Meta bid strategy applied to the ad set. On TikTok, mapped to
|
|
23372
23475
|
* `bid_type` / `bid_price` / `deep_bid_type` automatically.
|
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.370",
|
|
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.370",
|
|
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
|
@@ -9658,6 +9658,16 @@ export type ConnectAdsData = {
|
|
|
9658
9658
|
*
|
|
9659
9659
|
*/
|
|
9660
9660
|
adAccountIds?: Array<(string)>;
|
|
9661
|
+
/**
|
|
9662
|
+
* Force a fresh OAuth even when an account already exists. Normally the
|
|
9663
|
+
* endpoint returns `alreadyConnected: true` whenever a connected account
|
|
9664
|
+
* is found, keying off its active state rather than token liveness.
|
|
9665
|
+
* Set `force=true` to bypass that and always receivean `authUrl`.
|
|
9666
|
+
* Completing the returned OAuth refreshes the stored token
|
|
9667
|
+
* on the existing posting and ads accounts in place.
|
|
9668
|
+
*
|
|
9669
|
+
*/
|
|
9670
|
+
force?: boolean;
|
|
9661
9671
|
/**
|
|
9662
9672
|
* Enable headless mode (same-token platforms only)
|
|
9663
9673
|
*/
|
|
@@ -17471,6 +17481,16 @@ export type StartSmsRegistrationData = {
|
|
|
17471
17481
|
*/
|
|
17472
17482
|
termsAndConditionsLink?: string;
|
|
17473
17483
|
};
|
|
17484
|
+
/**
|
|
17485
|
+
* Raw dashboard-wizard answers, stored only to prefill edit-and-resubmit. API integrators can omit.
|
|
17486
|
+
*/
|
|
17487
|
+
wizardValues?: {
|
|
17488
|
+
[key: string]: (string);
|
|
17489
|
+
};
|
|
17490
|
+
/**
|
|
17491
|
+
* Resubmit a registration that was returned for changes — updates it in place instead of creating a new one.
|
|
17492
|
+
*/
|
|
17493
|
+
resubmitRequestId?: string;
|
|
17474
17494
|
/**
|
|
17475
17495
|
* Required for toll_free.
|
|
17476
17496
|
*/
|
|
@@ -17543,7 +17563,10 @@ export type ListSmsRegistrationsResponse = ({
|
|
|
17543
17563
|
id?: string;
|
|
17544
17564
|
registrationType?: 'standard_10dlc' | 'sole_prop_10dlc' | 'toll_free';
|
|
17545
17565
|
displayName?: (string) | null;
|
|
17546
|
-
|
|
17566
|
+
/**
|
|
17567
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
17568
|
+
*/
|
|
17569
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
17547
17570
|
/**
|
|
17548
17571
|
* Carrier-registry brand status (e.g. VERIFIED).
|
|
17549
17572
|
*/
|
|
@@ -17605,7 +17628,10 @@ export type GetSmsRegistrationData = {
|
|
|
17605
17628
|
export type GetSmsRegistrationResponse = ({
|
|
17606
17629
|
id?: string;
|
|
17607
17630
|
registrationType?: 'standard_10dlc' | 'sole_prop_10dlc' | 'toll_free';
|
|
17608
|
-
|
|
17631
|
+
/**
|
|
17632
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
17633
|
+
*/
|
|
17634
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
17609
17635
|
brandStatus?: string;
|
|
17610
17636
|
campaignStatus?: string;
|
|
17611
17637
|
declineReason?: (string) | null;
|
|
@@ -19913,7 +19939,10 @@ export type ReuseSmsRegistrationForNumberData = {
|
|
|
19913
19939
|
|
|
19914
19940
|
export type ReuseSmsRegistrationForNumberResponse = ({
|
|
19915
19941
|
registrationId?: string;
|
|
19916
|
-
|
|
19942
|
+
/**
|
|
19943
|
+
* requested/changes_requested = pre-submission review states; customers see them as pending / needs changes.
|
|
19944
|
+
*/
|
|
19945
|
+
status?: 'pending' | 'approved' | 'rejected' | 'requested' | 'changes_requested' | 'deactivated';
|
|
19917
19946
|
});
|
|
19918
19947
|
|
|
19919
19948
|
export type ReuseSmsRegistrationForNumberError = ({
|
|
@@ -24007,13 +24036,76 @@ export type BoostPostData = {
|
|
|
24007
24036
|
*/
|
|
24008
24037
|
endDate?: string;
|
|
24009
24038
|
};
|
|
24039
|
+
/**
|
|
24040
|
+
* Same geo/demographic fields as the `TargetingSpec` used by /v1/ads/create.
|
|
24041
|
+
* Geo keys (`regions`/`cities`/`zips`/`metros`) resolve via
|
|
24042
|
+
* GET /v1/ads/targeting/search?dimension=geo. City radius and lat/lng
|
|
24043
|
+
* `customLocations` are Meta-only and preserve the boosted post's
|
|
24044
|
+
* social proof (the ad references the existing post).
|
|
24045
|
+
*
|
|
24046
|
+
*/
|
|
24010
24047
|
targeting?: {
|
|
24011
24048
|
ageMin?: number;
|
|
24012
24049
|
ageMax?: number;
|
|
24050
|
+
/**
|
|
24051
|
+
* Meta only.
|
|
24052
|
+
*/
|
|
24053
|
+
gender?: 'all' | 'male' | 'female';
|
|
24054
|
+
/**
|
|
24055
|
+
* Meta locale ids (numeric), passed through as given.
|
|
24056
|
+
*/
|
|
24057
|
+
languages?: Array<(string)>;
|
|
24013
24058
|
/**
|
|
24014
24059
|
* ISO country codes. Required for TikTok boosts (TikTok's ad group requires location_ids); optional on other platforms.
|
|
24015
24060
|
*/
|
|
24016
24061
|
countries?: Array<(string)>;
|
|
24062
|
+
/**
|
|
24063
|
+
* Region/state targeting. `key` from /v1/ads/targeting/search?dimension=geo&geoType=region.
|
|
24064
|
+
*/
|
|
24065
|
+
regions?: Array<{
|
|
24066
|
+
key: string;
|
|
24067
|
+
name?: string;
|
|
24068
|
+
}>;
|
|
24069
|
+
/**
|
|
24070
|
+
* City targeting. Optional `radius` + `distance_unit` extend beyond the city limits (both set together, Meta only).
|
|
24071
|
+
*/
|
|
24072
|
+
cities?: Array<{
|
|
24073
|
+
key: string;
|
|
24074
|
+
name?: string;
|
|
24075
|
+
/**
|
|
24076
|
+
* Requires distance_unit.
|
|
24077
|
+
*/
|
|
24078
|
+
radius?: number;
|
|
24079
|
+
distance_unit?: 'mile' | 'kilometer';
|
|
24080
|
+
}>;
|
|
24081
|
+
/**
|
|
24082
|
+
* Postal/ZIP targeting. `key` is the platform's postal location ID (e.g. Meta `US:94304`).
|
|
24083
|
+
*/
|
|
24084
|
+
zips?: Array<{
|
|
24085
|
+
key: string;
|
|
24086
|
+
name?: string;
|
|
24087
|
+
}>;
|
|
24088
|
+
/**
|
|
24089
|
+
* DMA / metro-area targeting. `key` is the platform's metro ID (e.g. Meta `DMA:807`).
|
|
24090
|
+
*/
|
|
24091
|
+
metros?: Array<{
|
|
24092
|
+
key: string;
|
|
24093
|
+
name?: string;
|
|
24094
|
+
}>;
|
|
24095
|
+
/**
|
|
24096
|
+
* Point-radius (lat/lng) targeting (Meta custom_locations). No geo `key` lookup needed.
|
|
24097
|
+
*/
|
|
24098
|
+
customLocations?: Array<{
|
|
24099
|
+
latitude: number;
|
|
24100
|
+
longitude: number;
|
|
24101
|
+
radius: number;
|
|
24102
|
+
distanceUnit: 'mile' | 'kilometer';
|
|
24103
|
+
name?: string;
|
|
24104
|
+
/**
|
|
24105
|
+
* Optional label, sent to Meta as `address_string`.
|
|
24106
|
+
*/
|
|
24107
|
+
address?: string;
|
|
24108
|
+
}>;
|
|
24017
24109
|
/**
|
|
24018
24110
|
* Interest objects from /v1/ads/interests. Each must include id and name.
|
|
24019
24111
|
*/
|
|
@@ -24026,6 +24118,17 @@ export type BoostPostData = {
|
|
|
24026
24118
|
*/
|
|
24027
24119
|
advantage_audience?: 0 | 1;
|
|
24028
24120
|
};
|
|
24121
|
+
/**
|
|
24122
|
+
* Meta only. A verbatim Meta-native targeting spec (e.g.
|
|
24123
|
+
* `{ "geo_locations": { "cities": [{ "key": "...", "radius": 15, "distance_unit": "kilometer" }] } }`),
|
|
24124
|
+
* forwarded unchanged. Mutually exclusive with `targeting` (sending both is a 400).
|
|
24125
|
+
* Use for advanced fields the structured object does not expose (flexible_spec,
|
|
24126
|
+
* excluded audiences, business places).
|
|
24127
|
+
*
|
|
24128
|
+
*/
|
|
24129
|
+
rawTargeting?: {
|
|
24130
|
+
[key: string]: unknown;
|
|
24131
|
+
};
|
|
24029
24132
|
/**
|
|
24030
24133
|
* Meta bid strategy applied to the ad set. On TikTok, mapped to
|
|
24031
24134
|
* `bid_type` / `bid_price` / `deep_bid_type` automatically.
|