@zinn-digital/sdk 0.1.1675 → 0.1.1676
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.
|
@@ -49273,6 +49273,8 @@ export interface paths {
|
|
|
49273
49273
|
* Schedule a site's permanent deletion.
|
|
49274
49274
|
* @description Starts the grace period after which the site, its vendor hosting package and everything on them are destroyed. Until this operation existed the driver could delete a package and the teardown workflow was in place, and a customer who wanted their own site gone had to open a ticket. The site is **not** suspended while the countdown runs — it serves normally, so waiting costs nothing.
|
|
49275
49275
|
*
|
|
49276
|
+
* **Scheduled backups pause while the deletion is scheduled**: the daily and hourly backups skip the site, and its existing backups are kept. Cancelling the deletion (`cancelSiteDeletion`) resumes them with an immediate backup, so the gap closes the moment the customer keeps the site.
|
|
49277
|
+
*
|
|
49276
49278
|
* ⛔ **This operation carries a request body on `DELETE`.** RFC 9110 permits it and it is deliberate: the typed confirmation must travel with the request that acts on it, because a "confirm" call followed by an unconfirmed delete is two requests and the second one is the whole vulnerability. `confirm_domain` is compared against `SiteDeletion.primary_domain` — case-insensitively, ignoring surrounding whitespace and a trailing root dot, and never against an alias.
|
|
49277
49279
|
*
|
|
49278
49280
|
* `202` and not `200`: nothing has been destroyed yet. The body is the same `SiteDeletion` resource `getSiteDeletion` returns, so the client renders the countdown from the server's answer rather than from what it asked for. A deletion already scheduled is `409`. A confirmation that does not match, an absent `confirm_domain`, or a site whose state does not allow deletion is `422`. `503` means the teardown could not be armed and **nothing was scheduled** — the request is safe to repeat.
|
|
@@ -51266,6 +51268,8 @@ export interface paths {
|
|
|
51266
51268
|
* Stop a site's scheduled deletion.
|
|
51267
51269
|
* @description Cancels the countdown and returns the site's deletion state, which will read `none`. Takes no body.
|
|
51268
51270
|
*
|
|
51271
|
+
* Scheduled backups paused while the deletion was scheduled; a successful cancel resumes them by queuing an immediate backup of the site (when its plan includes daily backups), which appears in `getSiteBackups` with trigger `scheduled` and does not use the on-demand allowance.
|
|
51272
|
+
*
|
|
51269
51273
|
* ⛔ **`DELETE` on the *deletion*, not `POST …/cancel`.** The resource being removed is the scheduled request, and giving the undo its own noun means no request body can ever turn a cancel into a delete by being slightly wrong.
|
|
51270
51274
|
*
|
|
51271
51275
|
* The teardown is stopped **before** the row is marked cancelled, never the other way round: a failed stop leaves a still-scheduled row the customer can retry, while the reverse leaves a row saying "cancelled" above a workflow that deletes their site. `422` when nothing is scheduled or the teardown has already started; `503` when the stop could not be performed, in which case the deletion is still scheduled and the request is safe to repeat.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1676",
|
|
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>",
|