@zinn-digital/sdk 0.1.1934 → 0.1.1936

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.
@@ -40673,6 +40673,8 @@ export interface paths {
40673
40673
  * An offload writing to **our** storage answers `422` with `code: FEATURE_NOT_INCLUDED` and no URLs once the organisation no longer holds a plan that includes object storage — checked on every request, because a plugin token outlives the plan that paid for it (D26223). An offload writing to the customer's own bucket is unaffected.
40674
40674
  *
40675
40675
  * **Hard cap.** When the plan states `object_storage_overage_cap_gb` and the latest complete measurement of the organisation's storage on our buckets has reached the allowance plus that cap, this answers `422` with `code: STORAGE_CAP_REACHED`, no URLs, and `refusal: {key: refusal.objectstorage.storageCapReached, params: {limitGb}}`. Nothing stored is touched: reads and deletes continue. An upgrade lifts it at once.
40676
+ *
40677
+ * **Issue-time ledger.** On a capped plan, every URL issued on our storage reserves its stated size, and the reservation is held until a complete usage measurement that started after the URL expired has counted whatever it uploaded (never released by the clock alone). A batch is refused with the same `STORAGE_CAP_REACHED` answer when the last measurement plus every held reservation plus this batch would cross the limit; the body then also carries `reasons`: the cap refusal followed by `refusal.objectstorage.uploadSpaceFreesAfterCheck` (space held for recent uploads frees after the next usage check). Each size is signed into its URL: storage refuses a body of any other length. On a capped plan a batch WITHOUT `sizes` (a plugin older than 1.7.0) is always refused, whatever the room left, with `code: STORAGE_CAP_REACHED` and `refusal: {key: refusal.objectstorage.updatePluginForCap}`, so every URL a capped plan is issued is length-bound. Uncapped plans (old plugins included) and a customer's own bucket are unaffected.
40676
40678
  */
40677
40679
  post: operations["createMediaOffloadUploads"];
40678
40680
  delete?: never;
@@ -191266,6 +191268,8 @@ export interface operations {
191266
191268
  "application/json": {
191267
191269
  keys: string[];
191268
191270
  plugin_version?: string;
191271
+ /** @description Optional. The byte size of each key, in key order (one per key, else a validation `422`). Each size is signed into its upload URL as `content-length`. */
191272
+ sizes?: number[];
191269
191273
  };
191270
191274
  };
191271
191275
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1934",
3
+ "version": "0.1.1936",
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>",