@zinn-digital/sdk 0.1.1478 → 0.1.1479

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.
@@ -16323,6 +16323,32 @@ export interface paths {
16323
16323
  patch?: never;
16324
16324
  trace?: never;
16325
16325
  };
16326
+ "/v1/ads/briefs/{brief_id}/unlaunch": {
16327
+ parameters: {
16328
+ query?: never;
16329
+ header?: never;
16330
+ path: {
16331
+ brief_id: string;
16332
+ };
16333
+ cookie?: never;
16334
+ };
16335
+ /**
16336
+ * What Unlaunch would pause or cancel now (nothing is written).
16337
+ * @description Gated on `ads.view` (za-317). Each launched change and campaign with the state Unlaunch would move it to (`will_cancel`, `will_pause`, `in_flight`, …). Once an Unlaunch has started, its recorded progress.
16338
+ */
16339
+ get: operations["previewAdsLaunchBriefUnlaunch"];
16340
+ put?: never;
16341
+ /**
16342
+ * Unlaunch a brief - pause everything it launched, approve-first, deleting nothing.
16343
+ * @description Gated on `ads.manage`; audit action `ads.brief_unlaunch` (za-317, owner ruling 2026-11-04). Every launch change still pending is rejected (nothing was sent for it); every campaign a launch change created gets a PAUSE change in the approval queue (`listAdsChanges`) on its own network (Google, Microsoft, X), which a person approves. An Unlaunch pause cannot be undone from Zinn® Ads. Once every item is paused or gone the brief is `done`: its plans become `paused`, the offering stops counting it against its ceiling, and its currency can change. Calling again moves it on and re-proposes a pause a person rejected or the network refused. An unlaunched brief is never launched again (`unlaunched`); make a new brief. Refused `notLaunched` when nothing was launched and `unlaunchDone` once done.
16344
+ */
16345
+ post: operations["unlaunchAdsLaunchBrief"];
16346
+ delete?: never;
16347
+ options?: never;
16348
+ head?: never;
16349
+ patch?: never;
16350
+ trace?: never;
16351
+ };
16326
16352
  "/v1/ads/briefs/networks": {
16327
16353
  parameters: {
16328
16354
  query?: never;
@@ -64338,8 +64364,35 @@ export interface components {
64338
64364
  [key: string]: unknown;
64339
64365
  };
64340
64366
  share_pct: number;
64367
+ /**
64368
+ * @description `paused`: was queued; Unlaunch paused or cancelled everything it launched (za-317).
64369
+ * @enum {string}
64370
+ */
64371
+ status: "preview" | "queued" | "empty" | "paused";
64372
+ };
64373
+ /** @description za-317: a brief's Unlaunch. `status` is empty (launched, or never launched), `pausing` (pauses wait for approval, or a launch change is still being applied) or `done` (everything the brief launched is paused or gone: the offering's ceiling and currency are free). Nothing is ever deleted; the brief, its plans and every change are kept. */
64374
+ AdsBriefUnlaunch: {
64375
+ /** @description One entry per launched change and per campaign it created. */
64376
+ items: {
64377
+ /** @description The network's campaign id, or empty. */
64378
+ campaign: string;
64379
+ /** Format: uuid */
64380
+ change_id: string;
64381
+ network: string;
64382
+ /** @description The approve-first pause change */
64383
+ pause_change_id?: string;
64384
+ /**
64385
+ * @description Done states: `cancelled` (was pending, rejected by Unlaunch), `not_created` (rejected, refused or failed before Unlaunch), `gone` (undone), `no_campaign` (applied, created no campaign), `paused`. Not yet done: `pending`, `in_flight` (being applied), `pausing` (its pause waits for approval), `pause_rejected`, `pause_failed` (asking again proposes it again). A preview also shows `will_cancel` and `will_pause`.
64386
+ * @enum {string}
64387
+ */
64388
+ state: "cancelled" | "not_created" | "gone" | "no_campaign" | "paused" | "pending" | "in_flight" | "pausing" | "pause_rejected" | "pause_failed" | "will_cancel" | "will_pause";
64389
+ }[];
64390
+ /** Format: date-time */
64391
+ requested_at: string | null;
64341
64392
  /** @enum {string} */
64342
- status: "preview" | "queued" | "empty";
64393
+ status: "" | "pausing" | "done";
64394
+ /** Format: date-time */
64395
+ unlaunched_at: string | null;
64343
64396
  };
64344
64397
  /** @enum {string} */
64345
64398
  AdsBriefWhy: "bestReturn" | "offTarget" | "testShare" | "held" | "unreadable" | "otherCurrency" | "noReturn";
@@ -65989,6 +66042,7 @@ export interface components {
65989
66042
  split: {
65990
66043
  [key: string]: number;
65991
66044
  };
66045
+ unlaunch?: components["schemas"]["AdsBriefUnlaunch"];
65992
66046
  };
65993
66047
  AdsMarketLanguage: {
65994
66048
  /** @enum {string} */
@@ -139097,6 +139151,61 @@ export interface operations {
139097
139151
  429: components["responses"]["TooManyRequests"];
139098
139152
  };
139099
139153
  };
139154
+ previewAdsLaunchBriefUnlaunch: {
139155
+ parameters: {
139156
+ query?: never;
139157
+ header?: never;
139158
+ path: {
139159
+ brief_id: string;
139160
+ };
139161
+ cookie?: never;
139162
+ };
139163
+ requestBody?: never;
139164
+ responses: {
139165
+ /** @description The Unlaunch preview or progress. */
139166
+ 200: {
139167
+ headers: {
139168
+ [name: string]: unknown;
139169
+ };
139170
+ content: {
139171
+ "application/json": components["schemas"]["AdsBriefUnlaunch"];
139172
+ };
139173
+ };
139174
+ 401: components["responses"]["Unauthorized"];
139175
+ 404: components["responses"]["NotFound"];
139176
+ 429: components["responses"]["TooManyRequests"];
139177
+ };
139178
+ };
139179
+ unlaunchAdsLaunchBrief: {
139180
+ parameters: {
139181
+ query?: never;
139182
+ header?: never;
139183
+ path: {
139184
+ brief_id: string;
139185
+ };
139186
+ cookie?: never;
139187
+ };
139188
+ requestBody?: {
139189
+ content: {
139190
+ "application/json": Record<string, never>;
139191
+ };
139192
+ };
139193
+ responses: {
139194
+ /** @description The brief with its Unlaunch progress (`unlaunch`). */
139195
+ 200: {
139196
+ headers: {
139197
+ [name: string]: unknown;
139198
+ };
139199
+ content: {
139200
+ "application/json": components["schemas"]["AdsLaunchBrief"];
139201
+ };
139202
+ };
139203
+ 401: components["responses"]["Unauthorized"];
139204
+ 404: components["responses"]["NotFound"];
139205
+ 422: components["responses"]["UnprocessableEntity"];
139206
+ 429: components["responses"]["TooManyRequests"];
139207
+ };
139208
+ };
139100
139209
  listAdsBriefNetworks: {
139101
139210
  parameters: {
139102
139211
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1478",
3
+ "version": "0.1.1479",
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>",