@zinn-digital/sdk 0.1.1476 → 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.
- package/dist/generated/schema.d.ts +197 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -33514,6 +33540,26 @@ export interface paths {
|
|
|
33514
33540
|
patch?: never;
|
|
33515
33541
|
trace?: never;
|
|
33516
33542
|
};
|
|
33543
|
+
"/v1/fleet/phish-watch": {
|
|
33544
|
+
parameters: {
|
|
33545
|
+
query?: never;
|
|
33546
|
+
header?: never;
|
|
33547
|
+
path?: never;
|
|
33548
|
+
cookie?: never;
|
|
33549
|
+
};
|
|
33550
|
+
get?: never;
|
|
33551
|
+
put?: never;
|
|
33552
|
+
/**
|
|
33553
|
+
* The box's upload watch graded freshly written site files as suspicious.
|
|
33554
|
+
* @description A worker box's on-box upload watch (docs/1093 §8) scores a site's document root with the phishing detector the moment files in it are written, and the agent posts every MEDIUM/HIGH grade here. A **trigger, never a verdict**: the engine starts its own scan of THIS box's sites at the reported document roots and acts only on that scan, exactly as the hourly sweep would. Unknown document roots and other boxes' sites are ignored. Answers at once (`202`); one scan per box and document-root set per two minutes.
|
|
33555
|
+
*/
|
|
33556
|
+
post: operations["reportFleetPhishWatch"];
|
|
33557
|
+
delete?: never;
|
|
33558
|
+
options?: never;
|
|
33559
|
+
head?: never;
|
|
33560
|
+
patch?: never;
|
|
33561
|
+
trace?: never;
|
|
33562
|
+
};
|
|
33517
33563
|
"/v1/fleet/register": {
|
|
33518
33564
|
parameters: {
|
|
33519
33565
|
query?: never;
|
|
@@ -57539,6 +57585,8 @@ export interface components {
|
|
|
57539
57585
|
AbuseCategory: "phishing" | "malware" | "copyright" | "spam" | "csam" | "illegal_content" | "network_abuse" | "other";
|
|
57540
57586
|
/** @description One abuse complaint about one of our sites or one server on our cloud — exactly one of `site` and `compute_server` is set (W43-50). This is the LIST shape and it deliberately omits the complainant's raw text. */
|
|
57541
57587
|
AbuseReport: {
|
|
57588
|
+
/** @description The provider's own case ids read out of the notice (`afcf32d299f58549 23907333`), space-separated. `provider_ref` stays the dedupe key. */
|
|
57589
|
+
case_ref?: string;
|
|
57542
57590
|
category: components["schemas"]["AbuseCategory"];
|
|
57543
57591
|
/** @description The server complained about, usually matched by its public address. */
|
|
57544
57592
|
compute_server?: components["schemas"]["Uuid"] | null;
|
|
@@ -57583,6 +57631,12 @@ export interface components {
|
|
|
57583
57631
|
target_url?: string;
|
|
57584
57632
|
};
|
|
57585
57633
|
AbuseReportDetail: components["schemas"]["AbuseReport"] & {
|
|
57634
|
+
/** @description What the intake automation did for this report and what it left for staff: our scan verdict, the action taken, and the case summary (`done`, `left`, `suspended_sites`, `banned_orgs`, `reply_id`). Empty until it ran. */
|
|
57635
|
+
automation?: {
|
|
57636
|
+
[key: string]: unknown;
|
|
57637
|
+
};
|
|
57638
|
+
/** @description The abuse desk's answer address the automated reply goes to. */
|
|
57639
|
+
reply_to?: string;
|
|
57586
57640
|
/** @description The complainant's raw text. May contain their name, email and postal address. Staff-only, and NEVER forwarded to the customer — the notify action sends a summary composed from structured fields instead. */
|
|
57587
57641
|
reporter_body?: string;
|
|
57588
57642
|
};
|
|
@@ -57592,21 +57646,37 @@ export interface components {
|
|
|
57592
57646
|
active: boolean;
|
|
57593
57647
|
/** Format: date-time */
|
|
57594
57648
|
created_at?: string;
|
|
57649
|
+
/** @description The category recorded when the notice's own words name none (an `AbuseCategory` value), or empty to let the content decide. */
|
|
57650
|
+
default_category?: string;
|
|
57595
57651
|
id: components["schemas"]["Uuid"];
|
|
57652
|
+
/**
|
|
57653
|
+
* @description What kind of desk this is.
|
|
57654
|
+
* @enum {string}
|
|
57655
|
+
*/
|
|
57656
|
+
kind?: "cdn" | "dns" | "registrar" | "hosting" | "cert" | "blocklist" | "other";
|
|
57657
|
+
/** @description Non-empty = this desk cannot be answered by mail (no auto-reply is sent); the step is listed on the case as left for staff. */
|
|
57658
|
+
manual_reply_step?: string;
|
|
57596
57659
|
note?: string;
|
|
57597
57660
|
/** @description A full address (`abuse@cloudflare.com`) or a bare domain (`cloudflare.com`). A domain also matches its subdomains. Stored normalised (lower-cased, any display-name wrapper and leading `@` removed). */
|
|
57598
57661
|
pattern: string;
|
|
57599
57662
|
/** @description What to record as the report's `provider` when this matches. */
|
|
57600
57663
|
provider: string;
|
|
57664
|
+
/** @description Where the automated reply goes; empty = the notice's Reply-To, else From. */
|
|
57665
|
+
reply_address?: string;
|
|
57601
57666
|
/** Format: date-time */
|
|
57602
57667
|
updated_at?: string;
|
|
57603
57668
|
};
|
|
57604
57669
|
/** @description Create or update a recognised sender. All fields optional on PATCH. */
|
|
57605
57670
|
AbuseSenderWrite: {
|
|
57606
57671
|
active?: boolean;
|
|
57672
|
+
default_category?: string;
|
|
57673
|
+
/** @enum {string} */
|
|
57674
|
+
kind?: "cdn" | "dns" | "registrar" | "hosting" | "cert" | "blocklist" | "other";
|
|
57675
|
+
manual_reply_step?: string;
|
|
57607
57676
|
note?: string;
|
|
57608
57677
|
pattern?: string;
|
|
57609
57678
|
provider?: string;
|
|
57679
|
+
reply_address?: string;
|
|
57610
57680
|
};
|
|
57611
57681
|
/**
|
|
57612
57682
|
* @description Where a report is in the operator loop. `expired` records that we did not act in time — a failure, kept rather than hidden.
|
|
@@ -64294,8 +64364,35 @@ export interface components {
|
|
|
64294
64364
|
[key: string]: unknown;
|
|
64295
64365
|
};
|
|
64296
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;
|
|
64297
64392
|
/** @enum {string} */
|
|
64298
|
-
status: "
|
|
64393
|
+
status: "" | "pausing" | "done";
|
|
64394
|
+
/** Format: date-time */
|
|
64395
|
+
unlaunched_at: string | null;
|
|
64299
64396
|
};
|
|
64300
64397
|
/** @enum {string} */
|
|
64301
64398
|
AdsBriefWhy: "bestReturn" | "offTarget" | "testShare" | "held" | "unreadable" | "otherCurrency" | "noReturn";
|
|
@@ -65945,6 +66042,7 @@ export interface components {
|
|
|
65945
66042
|
split: {
|
|
65946
66043
|
[key: string]: number;
|
|
65947
66044
|
};
|
|
66045
|
+
unlaunch?: components["schemas"]["AdsBriefUnlaunch"];
|
|
65948
66046
|
};
|
|
65949
66047
|
AdsMarketLanguage: {
|
|
65950
66048
|
/** @enum {string} */
|
|
@@ -112133,6 +112231,22 @@ export interface components {
|
|
|
112133
112231
|
/** Format: uuid */
|
|
112134
112232
|
worker_id?: string;
|
|
112135
112233
|
};
|
|
112234
|
+
/** @description One document root graded MEDIUM/HIGH by the box's upload watch. Names only, never file content. */
|
|
112235
|
+
WorkerPhishWatchFinding: {
|
|
112236
|
+
changed?: string[];
|
|
112237
|
+
/** @enum {string} */
|
|
112238
|
+
confidence: "medium" | "high";
|
|
112239
|
+
docroot: string;
|
|
112240
|
+
markers?: string[];
|
|
112241
|
+
reasons?: string[];
|
|
112242
|
+
};
|
|
112243
|
+
WorkerPhishWatchRequest: {
|
|
112244
|
+
findings: components["schemas"]["WorkerPhishWatchFinding"][];
|
|
112245
|
+
};
|
|
112246
|
+
WorkerPhishWatchResult: {
|
|
112247
|
+
accepted: number;
|
|
112248
|
+
workflow_id: string | null;
|
|
112249
|
+
};
|
|
112136
112250
|
WorkerRegisterRequest: {
|
|
112137
112251
|
agent_version?: string;
|
|
112138
112252
|
/** @description `/proc/sys/kernel/random/boot_id`. Distinguishes "the agent restarted" from "the box rebooted" — a crash loop from a kernel panic. */
|
|
@@ -139037,6 +139151,61 @@ export interface operations {
|
|
|
139037
139151
|
429: components["responses"]["TooManyRequests"];
|
|
139038
139152
|
};
|
|
139039
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
|
+
};
|
|
139040
139209
|
listAdsBriefNetworks: {
|
|
139041
139210
|
parameters: {
|
|
139042
139211
|
query?: {
|
|
@@ -168774,6 +168943,33 @@ export interface operations {
|
|
|
168774
168943
|
429: components["responses"]["TooManyRequests"];
|
|
168775
168944
|
};
|
|
168776
168945
|
};
|
|
168946
|
+
reportFleetPhishWatch: {
|
|
168947
|
+
parameters: {
|
|
168948
|
+
query?: never;
|
|
168949
|
+
header?: never;
|
|
168950
|
+
path?: never;
|
|
168951
|
+
cookie?: never;
|
|
168952
|
+
};
|
|
168953
|
+
requestBody: {
|
|
168954
|
+
content: {
|
|
168955
|
+
"application/json": components["schemas"]["WorkerPhishWatchRequest"];
|
|
168956
|
+
};
|
|
168957
|
+
};
|
|
168958
|
+
responses: {
|
|
168959
|
+
/** @description The scan was started (or one for the same sites is already running). */
|
|
168960
|
+
202: {
|
|
168961
|
+
headers: {
|
|
168962
|
+
[name: string]: unknown;
|
|
168963
|
+
};
|
|
168964
|
+
content: {
|
|
168965
|
+
"application/json": components["schemas"]["WorkerPhishWatchResult"];
|
|
168966
|
+
};
|
|
168967
|
+
};
|
|
168968
|
+
401: components["responses"]["Unauthorized"];
|
|
168969
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
168970
|
+
429: components["responses"]["TooManyRequests"];
|
|
168971
|
+
};
|
|
168972
|
+
};
|
|
168777
168973
|
registerFleetWorker: {
|
|
168778
168974
|
parameters: {
|
|
168779
168975
|
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.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>",
|