@zinn-digital/sdk 0.1.1511 → 0.1.1514

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.
@@ -14097,6 +14097,34 @@ export interface paths {
14097
14097
  patch?: never;
14098
14098
  trace?: never;
14099
14099
  };
14100
+ "/v1/admin/sites/{siteId}/object-storage-limit": {
14101
+ parameters: {
14102
+ query?: never;
14103
+ header?: never;
14104
+ path: {
14105
+ /** @description Site ID (UUIDv7). */
14106
+ siteId: components["parameters"]["SiteId"];
14107
+ };
14108
+ cookie?: never;
14109
+ };
14110
+ /**
14111
+ * One site's object-storage allowance, override and usage (staff).
14112
+ * @description The plan's allowance (`object_storage_gb` / `files_object_gb`), any staff override, the limit the daily meter holds the site to, and the last reading. 404 for a site that keeps nothing on object storage. Requires staff + `billing.entitlement.manage`.
14113
+ */
14114
+ get: operations["getSiteObjectStorageLimit"];
14115
+ /**
14116
+ * Override one site's object-storage allowance (staff, audit-logged).
14117
+ * @description Replaces the plan's allowance for this site only, until cleared. A reason is required and the change writes an audit row (`hosting.object_storage_limit.set`). A lower limit never deletes anything: at 100% new files stay on the site's own disk. Applied at the next daily measurement. Requires staff + `billing.entitlement.manage`.
14118
+ */
14119
+ put: operations["setSiteObjectStorageLimit"];
14120
+ post?: never;
14121
+ /** Clear the override; the plan's allowance applies again (staff, audit-logged). */
14122
+ delete: operations["clearSiteObjectStorageLimit"];
14123
+ options?: never;
14124
+ head?: never;
14125
+ patch?: never;
14126
+ trace?: never;
14127
+ };
14100
14128
  "/v1/admin/sites/{siteId}/origin-key": {
14101
14129
  parameters: {
14102
14130
  query?: never;
@@ -53976,15 +54004,17 @@ export interface paths {
53976
54004
  cookie?: never;
53977
54005
  };
53978
54006
  /**
53979
- * Get a site's WordPress staging clones.
54007
+ * Get a site's staging copies (any stageable hosting type).
53980
54008
  * @description The staging copies of the site, and whether staging may be used at all. `permitted` travels beside `data` because they are different sentences to a customer: *"your plan does not include staging"* and *"you have not made a staging copy yet"* need different copy and different buttons, and collapsing them into an empty list produces wording that is wrong for one of the two cases in 58 languages.
53981
54009
  *
53982
- * `404` for a site whose platform has no WordPress to manage. Requires `sites.view`.
54010
+ * `404` for a site whose platform has no staging to manage. Requires `sites.view`.
54011
+ *
54012
+ * ⭐ **Every stageable hosting type, not only WordPress** (owner 2026-11-05). Despite the `wordpress` segment, which is kept so existing SDKs and integrations keep working, this path serves WordPress, WooCommerce, plain PHP, static (PBN included), Node, headless CMS, Joomla and the other one-click PHP applications, Nextcloud, ownCloud, Python, Ruby and .NET. WordPress and WooCommerce (and a PHP site with a WordPress inside it) are copied with WordPress's own tools; every other stack is copied as a whole application (files, its own database and database user, and its stored address moved to the staging address). A stack that cannot have a staging copy is refused `422` with a sentence that names the reason, and a non-WordPress stack is refused `422` when the site is not on the Zinn® fleet.
53983
54013
  */
53984
54014
  get: operations["getSiteWordPressStaging"];
53985
54015
  put?: never;
53986
54016
  /**
53987
- * Copy a site's live WordPress onto staging.
54017
+ * Copy a live site onto its staging copy (any stageable hosting type).
53988
54018
  * @description ⛔ **This copies live onto staging and can do nothing else.** It takes **no body**, so there is no field a caller could set to make it publish over the live site — that is `publishSiteWordPressStaging`, a different path with its own refusal. the platform itself distinguishes the two directions with one string in one field, which is precisely why they must not share an endpoint.
53989
54019
  *
53990
54020
  * An existing staging copy is overwritten by the live site: that is what "refresh my staging" means, and it is the safe direction.
@@ -53993,7 +54023,9 @@ export interface paths {
53993
54023
  *
53994
54024
  * ⭐ Refusals still arrive here, immediately: a site whose platform cannot stage is a `422` from this call, not a failed operation a minute later.
53995
54025
  *
53996
- * `404` for a site whose platform has no WordPress to manage. `409` when another staging operation is already running for the site. Requires `sites.view` and `sites.panel_access`.
54026
+ * `404` for a site whose platform has no staging to manage. `409` when another staging operation is already running for the site. Requires `sites.view` and `sites.panel_access`.
54027
+ *
54028
+ * ⭐ **Every stageable hosting type, not only WordPress** (owner 2026-11-05). Despite the `wordpress` segment, which is kept so existing SDKs and integrations keep working, this path serves WordPress, WooCommerce, plain PHP, static (PBN included), Node, headless CMS, Joomla and the other one-click PHP applications, Nextcloud, ownCloud, Python, Ruby and .NET. WordPress and WooCommerce (and a PHP site with a WordPress inside it) are copied with WordPress's own tools; every other stack is copied as a whole application (files, its own database and database user, and its stored address moved to the staging address). A stack that cannot have a staging copy is refused `422` with a sentence that names the reason, and a non-WordPress stack is refused `422` when the site is not on the Zinn® fleet.
53997
54029
  */
53998
54030
  post: operations["createSiteWordPressStaging"];
53999
54031
  delete?: never;
@@ -54018,7 +54050,7 @@ export interface paths {
54018
54050
  put?: never;
54019
54051
  post?: never;
54020
54052
  /**
54021
- * Delete a site's WordPress staging clone.
54053
+ * Delete a site's staging copy (any stageable hosting type).
54022
54054
  * @description Removes one staging copy. The **live** site is untouched — this path is declared after the literal `publish` and `reinstall` segments precisely so a request to one of those can never resolve here.
54023
54055
  *
54024
54056
  * `202` and the whole staging state, because the removal continues at the vendor. `404` for a site whose platform has no WordPress to manage, and for an id that is not on it. Requires `sites.view` and `sites.panel_access`.
@@ -54042,13 +54074,15 @@ export interface paths {
54042
54074
  get?: never;
54043
54075
  put?: never;
54044
54076
  /**
54045
- * Publish a site's staging WordPress over the live site.
54077
+ * Push a site's staging copy back over the live site (any stageable hosting type).
54046
54078
  * @description ⛔ **The most destructive operation on the managed hosting line**: the live site's files and database are replaced by the staging clone's. Its own path, so no request aimed at any other staging operation can reach it.
54047
54079
  *
54048
54080
  * ⛔⛤ **The one optional field, `mode`, selects SCOPE and never DIRECTION.** This path exists separately from `createSiteWordPressStaging` precisely so that no field can flip which way the copy runs — on managed shared hosting both directions are driven from a single value, and one passthrough endpoint would let a request reading as *"refresh my staging copy"* publish a stale clone over a live shop. Every value of `mode` copies staging onto live; it says only how much travels. A field that could change the direction must never be added here.
54049
54081
  *
54050
54082
  * ⛔ **A scope the site's platform cannot honour is refused `422`.** Read `publish_modes` on `SiteWordPressStaging` first and offer only what it lists: the Zinn® autoscaling platform performs `files`, `db` and `both`, and managed shared hosting performs `both` only, because its staging operation takes no scope at all. That is a property of the platform, not of the customer's plan — a larger package does not add a database-only publish.
54051
54083
  *
54084
+ * ⭐ **Every stageable hosting type, not only WordPress** (owner 2026-11-05): the same path pushes back a staging copy of WordPress, WooCommerce, PHP, static (PBN included), Node, headless CMS, Joomla and the other one-click PHP applications, Nextcloud, ownCloud, Python, Ruby and .NET. A safety backup of the live site is taken first. On a non-WordPress stack the live site keeps its own configuration files, every `.env` and its `robots.txt`, so it keeps its own database credentials (and its own runtime environment and .NET variables); the application's stored address is moved back to the live domain and the application is restarted on the new files. A stack that cannot have a staging copy is refused `422` with the reason.
54085
+ *
54052
54086
  * Refused `422` when the site has **no staging clone** — the platform does not check, and would happily publish an empty staging environment over a live shop. The client is required to take a typed confirmation naming the site.
54053
54087
  *
54054
54088
  * `202` because the publish continues at the vendor after the acknowledgement. `404` for a site whose platform has no WordPress to manage. Requires `sites.view` and `sites.panel_access`.
@@ -54073,10 +54107,10 @@ export interface paths {
54073
54107
  get?: never;
54074
54108
  put?: never;
54075
54109
  /**
54076
- * Reinstall the WordPress on a site's staging copy.
54110
+ * Reinstall the WordPress on a site's staging copy (WordPress copies only).
54077
54111
  * @description Replaces WordPress on the **staging** copy only. Refused `422` when there is no staging copy, so it can never be a live reinstall by another name — that is `reinstallSiteWordPress`, on its own path.
54078
54112
  *
54079
- * `202` and the whole staging state, including the queued operation in `operations` — the reinstall runs on the platform's queue, so the status means *accepted* and the operation row is what says whether it finished. `404` for a site whose platform has no WordPress to manage. Requires `sites.view` and `sites.panel_access`.
54113
+ * `202` and the whole staging state, including the queued operation in `operations` — the reinstall runs on the platform's queue, so the status means *accepted* and the operation row is what says whether it finished. `404` for a site whose platform has no WordPress to manage. A staging copy of a non-WordPress stack has no WordPress to reinstall: `reinstallable` is `false` on its state and this call is refused `422`. Requires `sites.view` and `sites.panel_access`.
54080
54114
  */
54081
54115
  post: operations["reinstallSiteWordPressStaging"];
54082
54116
  delete?: never;
@@ -62172,6 +62206,21 @@ export interface components {
62172
62206
  /** @description Temporal status of an active job's workflow, or `unknown`. */
62173
62207
  workflow: string;
62174
62208
  };
62209
+ AdminSiteObjectStorageLimit: {
62210
+ /** Format: int64 */
62211
+ limit_bytes: number | null;
62212
+ /** Format: date-time */
62213
+ measured_at: string | null;
62214
+ /** Format: int64 */
62215
+ override_bytes: number | null;
62216
+ /** Format: int64 */
62217
+ plan_limit_bytes: number | null;
62218
+ /** Format: uuid */
62219
+ site_id: string;
62220
+ uploads_blocked: boolean;
62221
+ /** Format: int64 */
62222
+ used_bytes: number | null;
62223
+ };
62175
62224
  AdminSitePage: {
62176
62225
  data: components["schemas"]["AdminSiteRow"][];
62177
62226
  page: components["schemas"]["PageMeta"];
@@ -104106,6 +104155,25 @@ export interface components {
104106
104155
  /** @description Ask for e-mail to be switched off. Refused `422` unless at least one listed destination is a non-e-mail channel that is verified and delivering. */
104107
104156
  email_muted?: boolean;
104108
104157
  };
104158
+ SiteObjectStorage: {
104159
+ /**
104160
+ * Format: int64
104161
+ * @description The allowance in bytes, or null when the plan states none.
104162
+ */
104163
+ limit_bytes: number | null;
104164
+ /** Format: date-time */
104165
+ measured_at: string | null;
104166
+ /** Format: int64 */
104167
+ object_count: number | null;
104168
+ percent: number | null;
104169
+ /** @description True at 100% - new files stay on the site's own disk until there is room. */
104170
+ uploads_blocked: boolean;
104171
+ /**
104172
+ * Format: int64
104173
+ * @description Bytes stored. Null until the first daily measurement (never a guessed 0).
104174
+ */
104175
+ used_bytes: number | null;
104176
+ };
104109
104177
  SiteOffsite: {
104110
104178
  copies: components["schemas"]["OffsiteCopy"][];
104111
104179
  entitled: boolean;
@@ -105190,6 +105258,8 @@ export interface components {
105190
105258
  SiteQuotaResources: {
105191
105259
  /** @description Whether the platform has restricted this site **for being over a quota**. It is deliberately not "is this site restricted": that rung is shared with the malware and abuse ladders, and a client must not offer "buy more space to fix this" to a customer whose site is held for phishing. */
105192
105260
  frozen: boolean;
105261
+ /** @description This site's object storage (an LMS Moodle site's course files over 1 MB, a files site's store) against its allowance, or null when the site keeps nothing on object storage. Comes with the plan (`object_storage_gb` / `files_object_gb`) or a staff override. At 100% new files stay on the site's own disk; nothing is deleted. */
105262
+ object_storage?: components["schemas"]["SiteObjectStorage"] | null;
105193
105263
  /** @description Only resources this site's driver can actually enforce. Empty on a managed hosting package, where the disk ceiling belongs to the package type and inodes do not exist. */
105194
105264
  resources: components["schemas"]["SiteQuotaResource"][];
105195
105265
  };
@@ -136443,6 +136513,90 @@ export interface operations {
136443
136513
  503: components["responses"]["ServiceUnavailable"];
136444
136514
  };
136445
136515
  };
136516
+ getSiteObjectStorageLimit: {
136517
+ parameters: {
136518
+ query?: never;
136519
+ header?: never;
136520
+ path: {
136521
+ /** @description Site ID (UUIDv7). */
136522
+ siteId: components["parameters"]["SiteId"];
136523
+ };
136524
+ cookie?: never;
136525
+ };
136526
+ requestBody?: never;
136527
+ responses: {
136528
+ /** @description The site's allowance. */
136529
+ 200: {
136530
+ headers: {
136531
+ [name: string]: unknown;
136532
+ };
136533
+ content: {
136534
+ "application/json": components["schemas"]["AdminSiteObjectStorageLimit"];
136535
+ };
136536
+ };
136537
+ 401: components["responses"]["Unauthorized"];
136538
+ 403: components["responses"]["Forbidden"];
136539
+ 404: components["responses"]["NotFound"];
136540
+ };
136541
+ };
136542
+ setSiteObjectStorageLimit: {
136543
+ parameters: {
136544
+ query?: never;
136545
+ header?: never;
136546
+ path: {
136547
+ /** @description Site ID (UUIDv7). */
136548
+ siteId: components["parameters"]["SiteId"];
136549
+ };
136550
+ cookie?: never;
136551
+ };
136552
+ requestBody: {
136553
+ content: {
136554
+ "application/json": {
136555
+ limit_mb: number;
136556
+ reason: string;
136557
+ };
136558
+ };
136559
+ };
136560
+ responses: {
136561
+ /** @description The site's allowance after the change. */
136562
+ 200: {
136563
+ headers: {
136564
+ [name: string]: unknown;
136565
+ };
136566
+ content: {
136567
+ "application/json": components["schemas"]["AdminSiteObjectStorageLimit"];
136568
+ };
136569
+ };
136570
+ 401: components["responses"]["Unauthorized"];
136571
+ 403: components["responses"]["Forbidden"];
136572
+ 404: components["responses"]["NotFound"];
136573
+ 422: components["responses"]["UnprocessableEntity"];
136574
+ };
136575
+ };
136576
+ clearSiteObjectStorageLimit: {
136577
+ parameters: {
136578
+ query?: never;
136579
+ header?: never;
136580
+ path: {
136581
+ /** @description Site ID (UUIDv7). */
136582
+ siteId: components["parameters"]["SiteId"];
136583
+ };
136584
+ cookie?: never;
136585
+ };
136586
+ requestBody?: never;
136587
+ responses: {
136588
+ /** @description Cleared. */
136589
+ 204: {
136590
+ headers: {
136591
+ [name: string]: unknown;
136592
+ };
136593
+ content?: never;
136594
+ };
136595
+ 401: components["responses"]["Unauthorized"];
136596
+ 403: components["responses"]["Forbidden"];
136597
+ 404: components["responses"]["NotFound"];
136598
+ };
136599
+ };
136446
136600
  adminGetSiteOriginKey: {
136447
136601
  parameters: {
136448
136602
  query?: never;
@@ -202362,6 +202516,7 @@ export interface operations {
202362
202516
  401: components["responses"]["Unauthorized"];
202363
202517
  403: components["responses"]["Forbidden"];
202364
202518
  404: components["responses"]["NotFound"];
202519
+ 422: components["responses"]["UnprocessableEntity"];
202365
202520
  429: components["responses"]["TooManyRequests"];
202366
202521
  503: components["responses"]["ProviderNotConfigured"];
202367
202522
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1511",
3
+ "version": "0.1.1514",
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>",