@zinn-digital/sdk 0.1.1674 → 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.
@@ -77937,11 +77941,13 @@ export interface components {
77937
77941
  *
77938
77942
  * ⛔ It is reported and **never writable**, which is why this is a separate schema from `CdnCacheLevel` rather than three more values on it. This platform does not manage that parameter list and does not show it, so offering it as a choice would promise a control we cannot honour, and writing one of the other levels over it would silently discard an operator's configuration. `PUT` answers `422` for it, and it appears in no provider's `supported_values` by construction.
77939
77943
  *
77944
+ * `provider_default` means the provider reports **no** query-string option at all — nobody has set one, so the provider's own built-in default applies (Gcore answers `"ignoreQueryString": null`). It is deliberately not reported as `aggressive` or any other level: the platform has not measured that default and does not invent one. It is read-only for the same reason as `by_parameters`; choosing a writable level replaces it.
77945
+ *
77940
77946
  * ⭐ A client renders the current value even when it is not selectable — as a disabled option — rather than showing a control whose value is missing from its own list.
77941
77947
  * @example simplified
77942
77948
  * @enum {string}
77943
77949
  */
77944
- CdnCacheLevelReported: "basic" | "simplified" | "aggressive" | "by_parameters";
77950
+ CdnCacheLevelReported: "basic" | "simplified" | "aggressive" | "by_parameters" | "provider_default";
77945
77951
  CdnConfig: {
77946
77952
  /** @description Which CDN account serves this site, and whether its credential still works. ⛔ Always present — never omitted for "we do not know", because an absent object is read by a client as "nothing to show" (§2.44). The unknown states are carried *inside* it. */
77947
77953
  account: components["schemas"]["CdnAccount"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1674",
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>",