@zinn-digital/sdk 0.1.2033 → 0.1.2036
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 +87 -2
- package/package.json +1 -1
|
@@ -14638,7 +14638,7 @@ export interface paths {
|
|
|
14638
14638
|
};
|
|
14639
14639
|
/**
|
|
14640
14640
|
* Abandoned-site clean-up — switch, named dry run, scheduled removals, deletions log (staff).
|
|
14641
|
-
* @description s1014 L22 (`docs/1066` §8). `dry_run` names every org and site the sweep would reach if the switch went on now: an EXPIRED trial's sites (removal
|
|
14641
|
+
* @description s1014 L22 (`docs/1066` §8). `dry_run` names every org and site the sweep would reach if the switch went on now: an EXPIRED UNPAID trial's sites (P1-073: one warning e-mail at trial end, removal 7 full days after that e-mail was SENT, sites and backups together, only while `trial_purge_live` is on; `trial_dry_run` counts the exact selection) and sites that never went live (`pending`/`failed` for 30+ days), each with the earliest removal date, which is never sooner than 14 days after the first warning. `scheduled` lists every OPEN clean-up of both engines (abandoned sites and ended subscriptions) with its derived removal date; `deletions` is the last 180 days of sites removed as `abandoned` or `dunning`. Requires `customer.view` through a staff org.
|
|
14642
14642
|
*/
|
|
14643
14643
|
get: operations["getSiteCleanupBoard"];
|
|
14644
14644
|
put?: never;
|
|
@@ -14679,7 +14679,7 @@ export interface paths {
|
|
|
14679
14679
|
get?: never;
|
|
14680
14680
|
/**
|
|
14681
14681
|
* Switch the abandoned-site clean-up on or off (staff, audited).
|
|
14682
|
-
* @description Ships OFF: with it off the daily sweep (`zinn-site-cleanup`, 06:45 UTC) warns nobody and removes nothing. Turning it on sends the 14-day warning first; nothing is removed on the first run. Requires `sites.delete`.
|
|
14682
|
+
* @description Ships OFF: with it off the daily sweep (`zinn-site-cleanup`, 06:45 UTC) warns nobody and removes nothing. Turning it on sends the 14-day warning first; nothing is removed on the first run. `trial_purge_live` (optional; omitted = unchanged; ships false) turns the UNPAID-trial deletion on: its first run sends the warning e-mails only, and no trial site or backup is deleted before 7 full days after a warning e-mail was SENT; false is the off lever. Every change is audited with the value before. Requires `sites.delete`.
|
|
14683
14683
|
*/
|
|
14684
14684
|
put: operations["setSiteCleanupSwitch"];
|
|
14685
14685
|
post?: never;
|
|
@@ -30944,6 +30944,26 @@ export interface paths {
|
|
|
30944
30944
|
patch?: never;
|
|
30945
30945
|
trace?: never;
|
|
30946
30946
|
};
|
|
30947
|
+
"/v1/compute/guest-reports": {
|
|
30948
|
+
parameters: {
|
|
30949
|
+
query?: never;
|
|
30950
|
+
header?: never;
|
|
30951
|
+
path?: never;
|
|
30952
|
+
cookie?: never;
|
|
30953
|
+
};
|
|
30954
|
+
get?: never;
|
|
30955
|
+
put?: never;
|
|
30956
|
+
/**
|
|
30957
|
+
* A trial-credit machine's own load report (machine-to-engine).
|
|
30958
|
+
* @description TRIALFIX bug 4 (docs/1124 §mining watch). Called every 5 minutes by a timer installed at build on a server paid for by the trial credit alone, never by a person. The `Authorization: Bearer <token>` header carries the per-machine token minted at build (stored as a SHA-256 digest only); there is no session. One row per machine per 5-minute bucket (a repeat in the same bucket replaces it); `401` for an unknown token. The engine suspends only when sustained full CPU AND mining-pool connections are seen together; either alone, or a reporter gone silent, only alerts staff. Throttled `guest-report` 60/min.
|
|
30959
|
+
*/
|
|
30960
|
+
post: operations["reportTrialGuest"];
|
|
30961
|
+
delete?: never;
|
|
30962
|
+
options?: never;
|
|
30963
|
+
head?: never;
|
|
30964
|
+
patch?: never;
|
|
30965
|
+
trace?: never;
|
|
30966
|
+
};
|
|
30947
30967
|
"/v1/compute/networks": {
|
|
30948
30968
|
parameters: {
|
|
30949
30969
|
query?: never;
|
|
@@ -112009,6 +112029,14 @@ export interface components {
|
|
|
112009
112029
|
total: number;
|
|
112010
112030
|
};
|
|
112011
112031
|
dry_run: {
|
|
112032
|
+
/** @description Trial rows only. Stored backups of `sites`. */
|
|
112033
|
+
backups?: number;
|
|
112034
|
+
/** @description Trial rows only (P1-073 ruling B). Sites the deletion never touches, with the reason; `online_after_trial_end` and `staff_action_after_trial_end` need a decision. */
|
|
112035
|
+
held?: {
|
|
112036
|
+
domain: string;
|
|
112037
|
+
/** @enum {string} */
|
|
112038
|
+
reason: "online_after_trial_end" | "staff_action_after_trial_end" | "quarantined" | "restricted" | "malware_suspension" | "open_abuse_report";
|
|
112039
|
+
}[];
|
|
112012
112040
|
/** @enum {string} */
|
|
112013
112041
|
kind: "trial" | "never_launched";
|
|
112014
112042
|
label: string;
|
|
@@ -112042,6 +112070,25 @@ export interface components {
|
|
|
112042
112070
|
/** Format: date-time */
|
|
112043
112071
|
purge_at: string | null;
|
|
112044
112072
|
}[];
|
|
112073
|
+
/** @description Counts over the exact selection the unpaid-trial deletion would warn, then delete, if it went live now (ids: `manage.py site_cleanup_dry_run --trials`). Never selected: an org that ever had a subscription or paid anything above zero, a staff org, the protected org ids, a held site (quarantined, restricted, malware-suspended, open abuse report, or, ruling B, online although the trial ended unpaid or acted on by staff after it ended: those are never warned or deleted and are counted in `needs_decision_sites`). */
|
|
112074
|
+
trial_dry_run: {
|
|
112075
|
+
/** @description Stored backups of those sites. */
|
|
112076
|
+
backups: number;
|
|
112077
|
+
ended_keep_days_ago_backups: number;
|
|
112078
|
+
ended_keep_days_ago_sites: number;
|
|
112079
|
+
ended_keep_days_ago_trials: number;
|
|
112080
|
+
/** @description Live trial sites held (never warned or deleted). */
|
|
112081
|
+
held_sites?: number;
|
|
112082
|
+
keep_days: number;
|
|
112083
|
+
/** @description Held sites a person must decide on (online, or staff acted after the trial ended). */
|
|
112084
|
+
needs_decision_sites?: number;
|
|
112085
|
+
sites: number;
|
|
112086
|
+
trials: number;
|
|
112087
|
+
};
|
|
112088
|
+
/** @description Full days between the SENT warning e-mail and the deletion (7). */
|
|
112089
|
+
trial_keep_days: number;
|
|
112090
|
+
/** @description P1-073: the unpaid-trial deletion is live (false = dry run; warns and deletes nothing). */
|
|
112091
|
+
trial_purge_live: boolean;
|
|
112045
112092
|
};
|
|
112046
112093
|
SiteClone: {
|
|
112047
112094
|
blueprint_id: components["schemas"]["Uuid"];
|
|
@@ -148457,6 +148504,7 @@ export interface operations {
|
|
|
148457
148504
|
content: {
|
|
148458
148505
|
"application/json": {
|
|
148459
148506
|
enabled: boolean;
|
|
148507
|
+
trial_purge_live?: boolean;
|
|
148460
148508
|
};
|
|
148461
148509
|
};
|
|
148462
148510
|
};
|
|
@@ -177272,6 +177320,43 @@ export interface operations {
|
|
|
177272
177320
|
429: components["responses"]["TooManyRequests"];
|
|
177273
177321
|
};
|
|
177274
177322
|
};
|
|
177323
|
+
reportTrialGuest: {
|
|
177324
|
+
parameters: {
|
|
177325
|
+
query?: never;
|
|
177326
|
+
header?: never;
|
|
177327
|
+
path?: never;
|
|
177328
|
+
cookie?: never;
|
|
177329
|
+
};
|
|
177330
|
+
requestBody: {
|
|
177331
|
+
content: {
|
|
177332
|
+
"application/json": {
|
|
177333
|
+
cores?: number;
|
|
177334
|
+
/** @description Whole-machine CPU busy percent over the last sample interval. */
|
|
177335
|
+
cpu_percent: number;
|
|
177336
|
+
/** @description ESTABLISHED TCP connections whose remote port is a common mining-pool port. */
|
|
177337
|
+
pool_connections?: number;
|
|
177338
|
+
};
|
|
177339
|
+
};
|
|
177340
|
+
};
|
|
177341
|
+
responses: {
|
|
177342
|
+
/** @description Recorded; when to report next. */
|
|
177343
|
+
200: {
|
|
177344
|
+
headers: {
|
|
177345
|
+
[name: string]: unknown;
|
|
177346
|
+
};
|
|
177347
|
+
content: {
|
|
177348
|
+
"application/json": {
|
|
177349
|
+
data: {
|
|
177350
|
+
next_report_seconds: number;
|
|
177351
|
+
};
|
|
177352
|
+
};
|
|
177353
|
+
};
|
|
177354
|
+
};
|
|
177355
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
177356
|
+
401: components["responses"]["Unauthorized"];
|
|
177357
|
+
429: components["responses"]["TooManyRequests"];
|
|
177358
|
+
};
|
|
177359
|
+
};
|
|
177275
177360
|
listComputeNetworks: {
|
|
177276
177361
|
parameters: {
|
|
177277
177362
|
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.2036",
|
|
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>",
|