@zinn-digital/sdk 0.1.1478 → 0.1.1480

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.
@@ -14390,6 +14390,52 @@ export interface paths {
14390
14390
  patch?: never;
14391
14391
  trace?: never;
14392
14392
  };
14393
+ "/v1/admin/sites/{siteId}/secrets": {
14394
+ parameters: {
14395
+ query?: never;
14396
+ header?: never;
14397
+ path: {
14398
+ /** @description Site ID (UUIDv7). */
14399
+ siteId: components["parameters"]["SiteId"];
14400
+ };
14401
+ cookie?: never;
14402
+ };
14403
+ /**
14404
+ * Staff view of a site's database-password and event-secret epoch.
14405
+ * @description **Staff only** (`sites.restart`), any tenant. The site's secret epoch and where its last rotation is (docs/1235). Never carries a password or a secret.
14406
+ */
14407
+ get: operations["adminGetSiteSecrets"];
14408
+ put?: never;
14409
+ post?: never;
14410
+ delete?: never;
14411
+ options?: never;
14412
+ head?: never;
14413
+ patch?: never;
14414
+ trace?: never;
14415
+ };
14416
+ "/v1/admin/sites/{siteId}/secrets/rotate": {
14417
+ parameters: {
14418
+ query?: never;
14419
+ header?: never;
14420
+ path: {
14421
+ /** @description Site ID (UUIDv7). */
14422
+ siteId: components["parameters"]["SiteId"];
14423
+ };
14424
+ cookie?: never;
14425
+ };
14426
+ get?: never;
14427
+ put?: never;
14428
+ /**
14429
+ * Staff rotation of ONE site's database password and event secret, with a reason.
14430
+ * @description **Staff only** (`sites.restart`), audit-logged with the stated `reason` (docs/1235). Starts a background job that changes this site only: the database user's password and `DB_PASSWORD` in `wp-config.php`, then `ZINN_CACHE_PANEL_SECRET`, proven by a real database login, then moves the site's secret epoch. About one second in which the site cannot reach its database. On failure the site is put back on its current values. WordPress and WooCommerce sites on our own servers only (`422` otherwise); `409` while a rotation is already running.
14431
+ */
14432
+ post: operations["adminRotateSiteSecrets"];
14433
+ delete?: never;
14434
+ options?: never;
14435
+ head?: never;
14436
+ patch?: never;
14437
+ trace?: never;
14438
+ };
14393
14439
  "/v1/admin/sites/{siteId}/security/warn": {
14394
14440
  parameters: {
14395
14441
  query?: never;
@@ -16323,6 +16369,32 @@ export interface paths {
16323
16369
  patch?: never;
16324
16370
  trace?: never;
16325
16371
  };
16372
+ "/v1/ads/briefs/{brief_id}/unlaunch": {
16373
+ parameters: {
16374
+ query?: never;
16375
+ header?: never;
16376
+ path: {
16377
+ brief_id: string;
16378
+ };
16379
+ cookie?: never;
16380
+ };
16381
+ /**
16382
+ * What Unlaunch would pause or cancel now (nothing is written).
16383
+ * @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.
16384
+ */
16385
+ get: operations["previewAdsLaunchBriefUnlaunch"];
16386
+ put?: never;
16387
+ /**
16388
+ * Unlaunch a brief - pause everything it launched, approve-first, deleting nothing.
16389
+ * @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.
16390
+ */
16391
+ post: operations["unlaunchAdsLaunchBrief"];
16392
+ delete?: never;
16393
+ options?: never;
16394
+ head?: never;
16395
+ patch?: never;
16396
+ trace?: never;
16397
+ };
16326
16398
  "/v1/ads/briefs/networks": {
16327
16399
  parameters: {
16328
16400
  query?: never;
@@ -64338,8 +64410,35 @@ export interface components {
64338
64410
  [key: string]: unknown;
64339
64411
  };
64340
64412
  share_pct: number;
64413
+ /**
64414
+ * @description `paused`: was queued; Unlaunch paused or cancelled everything it launched (za-317).
64415
+ * @enum {string}
64416
+ */
64417
+ status: "preview" | "queued" | "empty" | "paused";
64418
+ };
64419
+ /** @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. */
64420
+ AdsBriefUnlaunch: {
64421
+ /** @description One entry per launched change and per campaign it created. */
64422
+ items: {
64423
+ /** @description The network's campaign id, or empty. */
64424
+ campaign: string;
64425
+ /** Format: uuid */
64426
+ change_id: string;
64427
+ network: string;
64428
+ /** @description The approve-first pause change */
64429
+ pause_change_id?: string;
64430
+ /**
64431
+ * @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`.
64432
+ * @enum {string}
64433
+ */
64434
+ state: "cancelled" | "not_created" | "gone" | "no_campaign" | "paused" | "pending" | "in_flight" | "pausing" | "pause_rejected" | "pause_failed" | "will_cancel" | "will_pause";
64435
+ }[];
64436
+ /** Format: date-time */
64437
+ requested_at: string | null;
64341
64438
  /** @enum {string} */
64342
- status: "preview" | "queued" | "empty";
64439
+ status: "" | "pausing" | "done";
64440
+ /** Format: date-time */
64441
+ unlaunched_at: string | null;
64343
64442
  };
64344
64443
  /** @enum {string} */
64345
64444
  AdsBriefWhy: "bestReturn" | "offTarget" | "testShare" | "held" | "unreadable" | "otherCurrency" | "noReturn";
@@ -65989,6 +66088,7 @@ export interface components {
65989
66088
  split: {
65990
66089
  [key: string]: number;
65991
66090
  };
66091
+ unlaunch?: components["schemas"]["AdsBriefUnlaunch"];
65992
66092
  };
65993
66093
  AdsMarketLanguage: {
65994
66094
  /** @enum {string} */
@@ -104789,6 +104889,27 @@ export interface components {
104789
104889
  */
104790
104890
  target?: string;
104791
104891
  };
104892
+ /** @description Where one site's database-password and event-secret rotation is (docs/1235). Never carries a password or a secret. */
104893
+ SiteSecrets: {
104894
+ /** @description How many rotations have finished. 0 is the values the site was created with. */
104895
+ epoch: number;
104896
+ /** @description Why the last rotation stopped, or empty. */
104897
+ last_error: string;
104898
+ /**
104899
+ * Format: date-time
104900
+ * @description When the site last moved to new values.
104901
+ */
104902
+ rotated_at: string | null;
104903
+ /** @description True while `state` is `running`. */
104904
+ rotating: boolean;
104905
+ /** Format: uuid */
104906
+ site_id: string;
104907
+ /**
104908
+ * @description `running` - the background job is changing the site; `failed` - the last rotation stopped (see `last_error`) and the site is on its current values.
104909
+ * @enum {string}
104910
+ */
104911
+ state: "idle" | "running" | "failed";
104912
+ };
104792
104913
  /** @description A site's malware state as its owner sees it (see `getSiteSecurity`) — the stored projection a scan writes, never a live vendor call. */
104793
104914
  SiteSecurity: {
104794
104915
  /**
@@ -136047,6 +136168,66 @@ export interface operations {
136047
136168
  503: components["responses"]["ServiceUnavailable"];
136048
136169
  };
136049
136170
  };
136171
+ adminGetSiteSecrets: {
136172
+ parameters: {
136173
+ query?: never;
136174
+ header?: never;
136175
+ path: {
136176
+ /** @description Site ID (UUIDv7). */
136177
+ siteId: components["parameters"]["SiteId"];
136178
+ };
136179
+ cookie?: never;
136180
+ };
136181
+ requestBody?: never;
136182
+ responses: {
136183
+ /** @description The site's secret epoch and rotation state. */
136184
+ 200: {
136185
+ headers: {
136186
+ [name: string]: unknown;
136187
+ };
136188
+ content: {
136189
+ "application/json": components["schemas"]["SiteSecrets"];
136190
+ };
136191
+ };
136192
+ 401: components["responses"]["Unauthorized"];
136193
+ 403: components["responses"]["Forbidden"];
136194
+ 404: components["responses"]["NotFound"];
136195
+ 429: components["responses"]["TooManyRequests"];
136196
+ };
136197
+ };
136198
+ adminRotateSiteSecrets: {
136199
+ parameters: {
136200
+ query?: never;
136201
+ header?: never;
136202
+ path: {
136203
+ /** @description Site ID (UUIDv7). */
136204
+ siteId: components["parameters"]["SiteId"];
136205
+ };
136206
+ cookie?: never;
136207
+ };
136208
+ requestBody: {
136209
+ content: {
136210
+ "application/json": components["schemas"]["StaffRecoveryReason"];
136211
+ };
136212
+ };
136213
+ responses: {
136214
+ /** @description Rotation started. */
136215
+ 202: {
136216
+ headers: {
136217
+ [name: string]: unknown;
136218
+ };
136219
+ content: {
136220
+ "application/json": components["schemas"]["SiteSecrets"];
136221
+ };
136222
+ };
136223
+ 401: components["responses"]["Unauthorized"];
136224
+ 403: components["responses"]["Forbidden"];
136225
+ 404: components["responses"]["NotFound"];
136226
+ 409: components["responses"]["Conflict"];
136227
+ 422: components["responses"]["UnprocessableEntity"];
136228
+ 429: components["responses"]["TooManyRequests"];
136229
+ };
136230
+ };
136050
136231
  warnSiteMalware: {
136051
136232
  parameters: {
136052
136233
  query?: never;
@@ -139097,6 +139278,61 @@ export interface operations {
139097
139278
  429: components["responses"]["TooManyRequests"];
139098
139279
  };
139099
139280
  };
139281
+ previewAdsLaunchBriefUnlaunch: {
139282
+ parameters: {
139283
+ query?: never;
139284
+ header?: never;
139285
+ path: {
139286
+ brief_id: string;
139287
+ };
139288
+ cookie?: never;
139289
+ };
139290
+ requestBody?: never;
139291
+ responses: {
139292
+ /** @description The Unlaunch preview or progress. */
139293
+ 200: {
139294
+ headers: {
139295
+ [name: string]: unknown;
139296
+ };
139297
+ content: {
139298
+ "application/json": components["schemas"]["AdsBriefUnlaunch"];
139299
+ };
139300
+ };
139301
+ 401: components["responses"]["Unauthorized"];
139302
+ 404: components["responses"]["NotFound"];
139303
+ 429: components["responses"]["TooManyRequests"];
139304
+ };
139305
+ };
139306
+ unlaunchAdsLaunchBrief: {
139307
+ parameters: {
139308
+ query?: never;
139309
+ header?: never;
139310
+ path: {
139311
+ brief_id: string;
139312
+ };
139313
+ cookie?: never;
139314
+ };
139315
+ requestBody?: {
139316
+ content: {
139317
+ "application/json": Record<string, never>;
139318
+ };
139319
+ };
139320
+ responses: {
139321
+ /** @description The brief with its Unlaunch progress (`unlaunch`). */
139322
+ 200: {
139323
+ headers: {
139324
+ [name: string]: unknown;
139325
+ };
139326
+ content: {
139327
+ "application/json": components["schemas"]["AdsLaunchBrief"];
139328
+ };
139329
+ };
139330
+ 401: components["responses"]["Unauthorized"];
139331
+ 404: components["responses"]["NotFound"];
139332
+ 422: components["responses"]["UnprocessableEntity"];
139333
+ 429: components["responses"]["TooManyRequests"];
139334
+ };
139335
+ };
139100
139336
  listAdsBriefNetworks: {
139101
139337
  parameters: {
139102
139338
  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.1480",
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>",