@zinn-digital/sdk 0.1.1742 → 0.1.1743
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/generated/schema.d.ts +180 -3
- package/package.json +1 -1
|
@@ -21267,6 +21267,50 @@ export interface paths {
|
|
|
21267
21267
|
patch?: never;
|
|
21268
21268
|
trace?: never;
|
|
21269
21269
|
};
|
|
21270
|
+
"/v1/ads/connections/{connection_id}/tiktok/changes": {
|
|
21271
|
+
parameters: {
|
|
21272
|
+
query?: never;
|
|
21273
|
+
header?: never;
|
|
21274
|
+
path: {
|
|
21275
|
+
connection_id: string;
|
|
21276
|
+
};
|
|
21277
|
+
cookie?: never;
|
|
21278
|
+
};
|
|
21279
|
+
get?: never;
|
|
21280
|
+
put?: never;
|
|
21281
|
+
/**
|
|
21282
|
+
* Pause, resume, re-budget, re-bid, exclude audiences or add a negative keyword on TikTok — the click is the approval (TTFULL).
|
|
21283
|
+
* @description Gated on `ads.manage`; audit action `ads.tiktok_change`. The object is read from TikTok first (the value it holds is kept as the Undo); the change is proposed and approved in one step, then sent by the apply workflow through the same gate as every write (kill switches, good standing, spend ceilings), with a 30-day Undo that puts back exactly what TikTok held. `action`: `pause` / `enable` (`kind` campaigns, adgroups or ads), `budget` (`kind` campaigns or adgroups, `amount_micros`), `bid` (an ad group, `amount_micros`), `exclude_audiences` (an ad group, `audience_ids`; needs TikTok's Audience management permission), `negative` (a Search Ads campaign, `text`, EXACT match). Refusals (`422`): `noSuchConnection`, `netScopeNotGranted` (TikTok said this grant cannot: reconnect), `noSuchAd`, `netNotEditable` (no budget or bid of its own, or nothing would change), `paused`, `killed`, `disconnected`, `notInGoodStanding`.
|
|
21284
|
+
*/
|
|
21285
|
+
post: operations["createAdsTiktokChange"];
|
|
21286
|
+
delete?: never;
|
|
21287
|
+
options?: never;
|
|
21288
|
+
head?: never;
|
|
21289
|
+
patch?: never;
|
|
21290
|
+
trace?: never;
|
|
21291
|
+
};
|
|
21292
|
+
"/v1/ads/connections/{connection_id}/tiktok/objects": {
|
|
21293
|
+
parameters: {
|
|
21294
|
+
query?: never;
|
|
21295
|
+
header?: never;
|
|
21296
|
+
path: {
|
|
21297
|
+
connection_id: string;
|
|
21298
|
+
};
|
|
21299
|
+
cookie?: never;
|
|
21300
|
+
};
|
|
21301
|
+
/**
|
|
21302
|
+
* A TikTok advertiser's campaigns, ad groups and ads with status, budget, bid and 7-day spend (TTFULL).
|
|
21303
|
+
* @description Gated on `ads.view`. Read from TikTok now (TTFULL, docs/1006 §TikTok writes): every campaign, ad group and ad TikTok lists (deleted ones it does not), whether each is serving, its own budget and bid (null where it has none), the audiences an ad group excludes and its spend over the last `since_days` days. `grants` is what this connection's grant may do, measured from TikTok's answers (`writes`, `audiences`, `diagnosis`; absent = not measured yet). Refusals (`422`): `noSuchConnection` (not a TikTok connection), `needsReconnect`.
|
|
21304
|
+
*/
|
|
21305
|
+
get: operations["listAdsTiktokObjects"];
|
|
21306
|
+
put?: never;
|
|
21307
|
+
post?: never;
|
|
21308
|
+
delete?: never;
|
|
21309
|
+
options?: never;
|
|
21310
|
+
head?: never;
|
|
21311
|
+
patch?: never;
|
|
21312
|
+
trace?: never;
|
|
21313
|
+
};
|
|
21270
21314
|
"/v1/ads/connections/{connection_id}/tracking": {
|
|
21271
21315
|
parameters: {
|
|
21272
21316
|
query?: never;
|
|
@@ -22268,8 +22312,8 @@ export interface paths {
|
|
|
22268
22312
|
cookie?: never;
|
|
22269
22313
|
};
|
|
22270
22314
|
/**
|
|
22271
|
-
* The social-network autopilot on this org's X and
|
|
22272
|
-
* @description Gated on `ads.view`. Read from our own rows (no network call). Per X and Meta account: `levers` says what the autopilot judges there (`audiences` and `creatives` are judged by the scheduled audit; Meta `placements` by the placement guard and `budgets` by the cross-network budget, `elsewhere` with the screen in `where`; X offers no placement change on a running line item, `not_offered`). `review` is the latest audit: audiences (X line items, Meta ad sets) and creatives (X promoted Tweets, Meta ads) judged, the spend found wasted (`waste_micros`, micros of the account currency: spend with no conversion), what was proposed or applied and `findings` (at most 50). A creative is stopped only while its audience keeps another creative that is not waste. `needs_permission` means Meta has not granted Zinn® Ads `ads_management
|
|
22315
|
+
* The social-network autopilot on this org's X, Meta and TikTok accounts.
|
|
22316
|
+
* @description Gated on `ads.view`. Read from our own rows (no network call). Per X and Meta account: `levers` says what the autopilot judges there (`audiences` and `creatives` are judged by the scheduled audit; Meta `placements` by the placement guard and `budgets` by the cross-network budget, `elsewhere` with the screen in `where`; X offers no placement change on a running line item, `not_offered`). `review` is the latest audit: audiences (X line items, Meta ad sets) and creatives (X promoted Tweets, Meta ads) judged, the spend found wasted (`waste_micros`, micros of the account currency: spend with no conversion), what was proposed or applied and `findings` (at most 50). A creative is stopped only while its audience keeps another creative that is not waste. `needs_permission` means Meta has not granted Zinn® Ads `ads_management`, or (TTFULL) TikTok answered that this grant cannot write (measured, `vendor_grants.writes` false): judged, nothing proposed. TikTok audiences are ad groups and its creatives are ads, and only SERVING ones are judged. `pending` counts the pauses waiting for a person (docs/1006 §121, za-55).
|
|
22273
22317
|
*/
|
|
22274
22318
|
get: operations["getAdsSocial"];
|
|
22275
22319
|
put?: never;
|
|
@@ -66817,6 +66861,8 @@ export interface components {
|
|
|
66817
66861
|
free_plan_campaigns: string[];
|
|
66818
66862
|
/** @description ADSUI1 (za-246): the sign-in (OAuth grant) this connection's token came from. Accounts picked from one sign-in share it, so the dashboard groups accounts by network, then by sign-in. Empty for the house connection. */
|
|
66819
66863
|
grant_ref: string;
|
|
66864
|
+
/** @description TTFULL: the `vendor_grants` keys the network refused for this grant. Non-empty: show "Reconnect" — signing in again and picking the same account replaces the token, and TikTok grants every permission the Zinn® Ads app now holds. */
|
|
66865
|
+
grants_missing?: string[];
|
|
66820
66866
|
/** @description "Hold until a sale" (default on): the autopilot never raises a budget by itself while the account had no conversion in the last 30 days; the raise waits for approval. */
|
|
66821
66867
|
hold_until_sale: boolean;
|
|
66822
66868
|
/** Format: uuid */
|
|
@@ -66932,6 +66978,10 @@ export interface components {
|
|
|
66932
66978
|
tidy_paused_mode: "auto" | "suggest";
|
|
66933
66979
|
/** @description DMAPI2: show "reconnect to enable conversion uploads" — a live Google connection whose grant lacks `auth/datamanager` while Connect asks for that scope. Signing in again and picking the same account replaces its token. */
|
|
66934
66980
|
uploads_need_reconnect: boolean;
|
|
66981
|
+
/** @description TTFULL: what this connection's grant may do, MEASURED from the network's own answers (never typed). TikTok keys: `writes` (campaign, ad group, ad and negative keyword changes), `audiences` (audience exclusions), `diagnosis` (TikTok's own ad group diagnosis). A key that is absent was never measured (the daily audit measures it); `false` means the network refused it for this grant. Empty for a network that does not measure its grant. */
|
|
66982
|
+
vendor_grants?: {
|
|
66983
|
+
[key: string]: boolean;
|
|
66984
|
+
};
|
|
66935
66985
|
/**
|
|
66936
66986
|
* Format: date-time
|
|
66937
66987
|
* @description za-264: the end of a NEW Google connection's learning period (14 days from connect; `null` for an account connected before za-264, or one whose learning was ended). Until then an automatic bid, budget, pause or keyword change is proposed for a person instead of sent (a person's approval still sends it); a guarded automatic negative still applies by itself (owner rule); and no bid-strategy switch is proposed or sent by itself. End it early with `endAdsWarmStart`.
|
|
@@ -72667,7 +72717,7 @@ export interface components {
|
|
|
72667
72717
|
}[];
|
|
72668
72718
|
pending: number;
|
|
72669
72719
|
/** @enum {string} */
|
|
72670
|
-
platform: "x" | "meta";
|
|
72720
|
+
platform: "x" | "meta" | "tiktok";
|
|
72671
72721
|
review: {
|
|
72672
72722
|
applied: number;
|
|
72673
72723
|
/** Format: date-time */
|
|
@@ -155073,6 +155123,133 @@ export interface operations {
|
|
|
155073
155123
|
429: components["responses"]["TooManyRequests"];
|
|
155074
155124
|
};
|
|
155075
155125
|
};
|
|
155126
|
+
createAdsTiktokChange: {
|
|
155127
|
+
parameters: {
|
|
155128
|
+
query?: never;
|
|
155129
|
+
header?: never;
|
|
155130
|
+
path: {
|
|
155131
|
+
connection_id: string;
|
|
155132
|
+
};
|
|
155133
|
+
cookie?: never;
|
|
155134
|
+
};
|
|
155135
|
+
requestBody: {
|
|
155136
|
+
content: {
|
|
155137
|
+
"application/json": {
|
|
155138
|
+
/** @enum {string} */
|
|
155139
|
+
action: "pause" | "enable" | "budget" | "bid" | "exclude_audiences" | "negative";
|
|
155140
|
+
/** @description Micros of the account currency (1 unit = 1,000,000). */
|
|
155141
|
+
amount_micros?: number;
|
|
155142
|
+
audience_ids?: string[];
|
|
155143
|
+
/** @enum {string} */
|
|
155144
|
+
kind?: "campaigns" | "adgroups" | "ads";
|
|
155145
|
+
object_id: string;
|
|
155146
|
+
text?: string;
|
|
155147
|
+
};
|
|
155148
|
+
};
|
|
155149
|
+
};
|
|
155150
|
+
responses: {
|
|
155151
|
+
/** @description Approved; the apply workflow sends it. */
|
|
155152
|
+
202: {
|
|
155153
|
+
headers: {
|
|
155154
|
+
[name: string]: unknown;
|
|
155155
|
+
};
|
|
155156
|
+
content: {
|
|
155157
|
+
"application/json": components["schemas"]["AdsChange"];
|
|
155158
|
+
};
|
|
155159
|
+
};
|
|
155160
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
155161
|
+
401: components["responses"]["Unauthorized"];
|
|
155162
|
+
403: components["responses"]["Forbidden"];
|
|
155163
|
+
404: components["responses"]["NotFound"];
|
|
155164
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
155165
|
+
429: components["responses"]["TooManyRequests"];
|
|
155166
|
+
};
|
|
155167
|
+
};
|
|
155168
|
+
listAdsTiktokObjects: {
|
|
155169
|
+
parameters: {
|
|
155170
|
+
query?: never;
|
|
155171
|
+
header?: never;
|
|
155172
|
+
path: {
|
|
155173
|
+
connection_id: string;
|
|
155174
|
+
};
|
|
155175
|
+
cookie?: never;
|
|
155176
|
+
};
|
|
155177
|
+
requestBody?: never;
|
|
155178
|
+
responses: {
|
|
155179
|
+
/** @description The advertiser's objects. */
|
|
155180
|
+
200: {
|
|
155181
|
+
headers: {
|
|
155182
|
+
[name: string]: unknown;
|
|
155183
|
+
};
|
|
155184
|
+
content: {
|
|
155185
|
+
"application/json": {
|
|
155186
|
+
adgroups: {
|
|
155187
|
+
adgroup_id: string;
|
|
155188
|
+
/** @description Its own bid (ad groups); null when TikTok bids automatically. */
|
|
155189
|
+
bid_micros: number | null;
|
|
155190
|
+
/** @description Its own budget (micros of the account currency); null when it has none of its own. */
|
|
155191
|
+
budget_micros: number | null;
|
|
155192
|
+
campaign_id: string;
|
|
155193
|
+
excluded_audience_ids: string[];
|
|
155194
|
+
id: string;
|
|
155195
|
+
name: string;
|
|
155196
|
+
/** @description TikTok reports it delivering now (secondary_status *_DELIVERY_OK). */
|
|
155197
|
+
serving: boolean;
|
|
155198
|
+
/** @description Spend over the last since_days days; null when TikTok's figure is unreadable. */
|
|
155199
|
+
spend_micros: number | null;
|
|
155200
|
+
/** @description TikTok's operation_status (ENABLE, DISABLE). */
|
|
155201
|
+
status: string;
|
|
155202
|
+
}[];
|
|
155203
|
+
ads: {
|
|
155204
|
+
adgroup_id: string;
|
|
155205
|
+
/** @description Its own bid (ad groups); null when TikTok bids automatically. */
|
|
155206
|
+
bid_micros: number | null;
|
|
155207
|
+
/** @description Its own budget (micros of the account currency); null when it has none of its own. */
|
|
155208
|
+
budget_micros: number | null;
|
|
155209
|
+
campaign_id: string;
|
|
155210
|
+
excluded_audience_ids: string[];
|
|
155211
|
+
id: string;
|
|
155212
|
+
name: string;
|
|
155213
|
+
/** @description TikTok reports it delivering now (secondary_status *_DELIVERY_OK). */
|
|
155214
|
+
serving: boolean;
|
|
155215
|
+
/** @description Spend over the last since_days days; null when TikTok's figure is unreadable. */
|
|
155216
|
+
spend_micros: number | null;
|
|
155217
|
+
/** @description TikTok's operation_status (ENABLE, DISABLE). */
|
|
155218
|
+
status: string;
|
|
155219
|
+
}[];
|
|
155220
|
+
campaigns: {
|
|
155221
|
+
adgroup_id: string;
|
|
155222
|
+
/** @description Its own bid (ad groups); null when TikTok bids automatically. */
|
|
155223
|
+
bid_micros: number | null;
|
|
155224
|
+
/** @description Its own budget (micros of the account currency); null when it has none of its own. */
|
|
155225
|
+
budget_micros: number | null;
|
|
155226
|
+
campaign_id: string;
|
|
155227
|
+
excluded_audience_ids: string[];
|
|
155228
|
+
id: string;
|
|
155229
|
+
name: string;
|
|
155230
|
+
/** @description TikTok reports it delivering now (secondary_status *_DELIVERY_OK). */
|
|
155231
|
+
serving: boolean;
|
|
155232
|
+
/** @description Spend over the last since_days days; null when TikTok's figure is unreadable. */
|
|
155233
|
+
spend_micros: number | null;
|
|
155234
|
+
/** @description TikTok's operation_status (ENABLE, DISABLE). */
|
|
155235
|
+
status: string;
|
|
155236
|
+
}[];
|
|
155237
|
+
/** @description ISO 4217 code of the ad account. */
|
|
155238
|
+
currency: string;
|
|
155239
|
+
grants: {
|
|
155240
|
+
[key: string]: boolean;
|
|
155241
|
+
};
|
|
155242
|
+
since_days: number;
|
|
155243
|
+
};
|
|
155244
|
+
};
|
|
155245
|
+
};
|
|
155246
|
+
401: components["responses"]["Unauthorized"];
|
|
155247
|
+
403: components["responses"]["Forbidden"];
|
|
155248
|
+
404: components["responses"]["NotFound"];
|
|
155249
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
155250
|
+
429: components["responses"]["TooManyRequests"];
|
|
155251
|
+
};
|
|
155252
|
+
};
|
|
155076
155253
|
getAdsTracking: {
|
|
155077
155254
|
parameters: {
|
|
155078
155255
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1743",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|