@zinn-digital/sdk 0.1.1390 → 0.1.1393
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 +84 -0
- package/package.json +1 -1
|
@@ -20050,6 +20050,26 @@ export interface paths {
|
|
|
20050
20050
|
patch?: never;
|
|
20051
20051
|
trace?: never;
|
|
20052
20052
|
};
|
|
20053
|
+
"/v1/ads/social": {
|
|
20054
|
+
parameters: {
|
|
20055
|
+
query?: never;
|
|
20056
|
+
header?: never;
|
|
20057
|
+
path?: never;
|
|
20058
|
+
cookie?: never;
|
|
20059
|
+
};
|
|
20060
|
+
/**
|
|
20061
|
+
* The social-network autopilot on this org's X and Meta accounts.
|
|
20062
|
+
* @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`: judged, nothing proposed. `pending` counts the pauses waiting for a person (docs/1006 §121, za-55).
|
|
20063
|
+
*/
|
|
20064
|
+
get: operations["getAdsSocial"];
|
|
20065
|
+
put?: never;
|
|
20066
|
+
post?: never;
|
|
20067
|
+
delete?: never;
|
|
20068
|
+
options?: never;
|
|
20069
|
+
head?: never;
|
|
20070
|
+
patch?: never;
|
|
20071
|
+
trace?: never;
|
|
20072
|
+
};
|
|
20053
20073
|
"/v1/ads/tracking/events": {
|
|
20054
20074
|
parameters: {
|
|
20055
20075
|
query?: never;
|
|
@@ -65146,6 +65166,44 @@ export interface components {
|
|
|
65146
65166
|
/** @description The address of the site in that language. */
|
|
65147
65167
|
url?: string;
|
|
65148
65168
|
};
|
|
65169
|
+
AdsSocial: {
|
|
65170
|
+
accounts: {
|
|
65171
|
+
/** Format: uuid */
|
|
65172
|
+
connection_id: string;
|
|
65173
|
+
currency: string;
|
|
65174
|
+
label: string;
|
|
65175
|
+
levers: {
|
|
65176
|
+
/** @enum {string} */
|
|
65177
|
+
lever: "audiences" | "placements" | "creatives" | "budgets";
|
|
65178
|
+
/** @enum {string} */
|
|
65179
|
+
state: "judged" | "elsewhere" | "not_offered";
|
|
65180
|
+
where: string;
|
|
65181
|
+
}[];
|
|
65182
|
+
pending: number;
|
|
65183
|
+
/** @enum {string} */
|
|
65184
|
+
platform: "x" | "meta";
|
|
65185
|
+
review: {
|
|
65186
|
+
applied: number;
|
|
65187
|
+
/** Format: date-time */
|
|
65188
|
+
at: string;
|
|
65189
|
+
audiences: number;
|
|
65190
|
+
creatives: number;
|
|
65191
|
+
findings: {
|
|
65192
|
+
clicks: number;
|
|
65193
|
+
cost_micros: number;
|
|
65194
|
+
id: string;
|
|
65195
|
+
/** @enum {string} */
|
|
65196
|
+
lever: "audiences" | "creatives";
|
|
65197
|
+
name: string;
|
|
65198
|
+
}[];
|
|
65199
|
+
held: boolean;
|
|
65200
|
+
needs_permission: boolean;
|
|
65201
|
+
ok: boolean;
|
|
65202
|
+
proposed: number;
|
|
65203
|
+
waste_micros: number;
|
|
65204
|
+
} | null;
|
|
65205
|
+
}[];
|
|
65206
|
+
};
|
|
65149
65207
|
/** @description za-N2 out-of-stock pause settings of one connection. Each value is the customer's own; `recommended` holds our Recommended defaults and `bounds` the accepted range (minutes). */
|
|
65150
65208
|
AdsStockPauseSettings: {
|
|
65151
65209
|
bounds: {
|
|
@@ -142214,6 +142272,32 @@ export interface operations {
|
|
|
142214
142272
|
429: components["responses"]["TooManyRequests"];
|
|
142215
142273
|
};
|
|
142216
142274
|
};
|
|
142275
|
+
getAdsSocial: {
|
|
142276
|
+
parameters: {
|
|
142277
|
+
query?: {
|
|
142278
|
+
org_id?: string;
|
|
142279
|
+
};
|
|
142280
|
+
header?: never;
|
|
142281
|
+
path?: never;
|
|
142282
|
+
cookie?: never;
|
|
142283
|
+
};
|
|
142284
|
+
requestBody?: never;
|
|
142285
|
+
responses: {
|
|
142286
|
+
/** @description The social accounts and their latest review. */
|
|
142287
|
+
200: {
|
|
142288
|
+
headers: {
|
|
142289
|
+
[name: string]: unknown;
|
|
142290
|
+
};
|
|
142291
|
+
content: {
|
|
142292
|
+
"application/json": components["schemas"]["AdsSocial"];
|
|
142293
|
+
};
|
|
142294
|
+
};
|
|
142295
|
+
401: components["responses"]["Unauthorized"];
|
|
142296
|
+
403: components["responses"]["Forbidden"];
|
|
142297
|
+
404: components["responses"]["NotFound"];
|
|
142298
|
+
429: components["responses"]["TooManyRequests"];
|
|
142299
|
+
};
|
|
142300
|
+
};
|
|
142217
142301
|
listAdsTrackingEvents: {
|
|
142218
142302
|
parameters: {
|
|
142219
142303
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1393",
|
|
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>",
|