@zinn-digital/sdk 0.1.2033 → 0.1.2035
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 +30 -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;
|
|
@@ -112009,6 +112009,14 @@ export interface components {
|
|
|
112009
112009
|
total: number;
|
|
112010
112010
|
};
|
|
112011
112011
|
dry_run: {
|
|
112012
|
+
/** @description Trial rows only. Stored backups of `sites`. */
|
|
112013
|
+
backups?: number;
|
|
112014
|
+
/** @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. */
|
|
112015
|
+
held?: {
|
|
112016
|
+
domain: string;
|
|
112017
|
+
/** @enum {string} */
|
|
112018
|
+
reason: "online_after_trial_end" | "staff_action_after_trial_end" | "quarantined" | "restricted" | "malware_suspension" | "open_abuse_report";
|
|
112019
|
+
}[];
|
|
112012
112020
|
/** @enum {string} */
|
|
112013
112021
|
kind: "trial" | "never_launched";
|
|
112014
112022
|
label: string;
|
|
@@ -112042,6 +112050,25 @@ export interface components {
|
|
|
112042
112050
|
/** Format: date-time */
|
|
112043
112051
|
purge_at: string | null;
|
|
112044
112052
|
}[];
|
|
112053
|
+
/** @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`). */
|
|
112054
|
+
trial_dry_run: {
|
|
112055
|
+
/** @description Stored backups of those sites. */
|
|
112056
|
+
backups: number;
|
|
112057
|
+
ended_keep_days_ago_backups: number;
|
|
112058
|
+
ended_keep_days_ago_sites: number;
|
|
112059
|
+
ended_keep_days_ago_trials: number;
|
|
112060
|
+
/** @description Live trial sites held (never warned or deleted). */
|
|
112061
|
+
held_sites?: number;
|
|
112062
|
+
keep_days: number;
|
|
112063
|
+
/** @description Held sites a person must decide on (online, or staff acted after the trial ended). */
|
|
112064
|
+
needs_decision_sites?: number;
|
|
112065
|
+
sites: number;
|
|
112066
|
+
trials: number;
|
|
112067
|
+
};
|
|
112068
|
+
/** @description Full days between the SENT warning e-mail and the deletion (7). */
|
|
112069
|
+
trial_keep_days: number;
|
|
112070
|
+
/** @description P1-073: the unpaid-trial deletion is live (false = dry run; warns and deletes nothing). */
|
|
112071
|
+
trial_purge_live: boolean;
|
|
112045
112072
|
};
|
|
112046
112073
|
SiteClone: {
|
|
112047
112074
|
blueprint_id: components["schemas"]["Uuid"];
|
|
@@ -148457,6 +148484,7 @@ export interface operations {
|
|
|
148457
148484
|
content: {
|
|
148458
148485
|
"application/json": {
|
|
148459
148486
|
enabled: boolean;
|
|
148487
|
+
trial_purge_live?: boolean;
|
|
148460
148488
|
};
|
|
148461
148489
|
};
|
|
148462
148490
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2035",
|
|
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>",
|