@zinn-digital/sdk 0.1.1511 → 0.1.1512

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;
@@ -62172,6 +62200,21 @@ export interface components {
62172
62200
  /** @description Temporal status of an active job's workflow, or `unknown`. */
62173
62201
  workflow: string;
62174
62202
  };
62203
+ AdminSiteObjectStorageLimit: {
62204
+ /** Format: int64 */
62205
+ limit_bytes: number | null;
62206
+ /** Format: date-time */
62207
+ measured_at: string | null;
62208
+ /** Format: int64 */
62209
+ override_bytes: number | null;
62210
+ /** Format: int64 */
62211
+ plan_limit_bytes: number | null;
62212
+ /** Format: uuid */
62213
+ site_id: string;
62214
+ uploads_blocked: boolean;
62215
+ /** Format: int64 */
62216
+ used_bytes: number | null;
62217
+ };
62175
62218
  AdminSitePage: {
62176
62219
  data: components["schemas"]["AdminSiteRow"][];
62177
62220
  page: components["schemas"]["PageMeta"];
@@ -104106,6 +104149,25 @@ export interface components {
104106
104149
  /** @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
104150
  email_muted?: boolean;
104108
104151
  };
104152
+ SiteObjectStorage: {
104153
+ /**
104154
+ * Format: int64
104155
+ * @description The allowance in bytes, or null when the plan states none.
104156
+ */
104157
+ limit_bytes: number | null;
104158
+ /** Format: date-time */
104159
+ measured_at: string | null;
104160
+ /** Format: int64 */
104161
+ object_count: number | null;
104162
+ percent: number | null;
104163
+ /** @description True at 100% - new files stay on the site's own disk until there is room. */
104164
+ uploads_blocked: boolean;
104165
+ /**
104166
+ * Format: int64
104167
+ * @description Bytes stored. Null until the first daily measurement (never a guessed 0).
104168
+ */
104169
+ used_bytes: number | null;
104170
+ };
104109
104171
  SiteOffsite: {
104110
104172
  copies: components["schemas"]["OffsiteCopy"][];
104111
104173
  entitled: boolean;
@@ -105190,6 +105252,8 @@ export interface components {
105190
105252
  SiteQuotaResources: {
105191
105253
  /** @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
105254
  frozen: boolean;
105255
+ /** @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. */
105256
+ object_storage?: components["schemas"]["SiteObjectStorage"] | null;
105193
105257
  /** @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
105258
  resources: components["schemas"]["SiteQuotaResource"][];
105195
105259
  };
@@ -136443,6 +136507,90 @@ export interface operations {
136443
136507
  503: components["responses"]["ServiceUnavailable"];
136444
136508
  };
136445
136509
  };
136510
+ getSiteObjectStorageLimit: {
136511
+ parameters: {
136512
+ query?: never;
136513
+ header?: never;
136514
+ path: {
136515
+ /** @description Site ID (UUIDv7). */
136516
+ siteId: components["parameters"]["SiteId"];
136517
+ };
136518
+ cookie?: never;
136519
+ };
136520
+ requestBody?: never;
136521
+ responses: {
136522
+ /** @description The site's allowance. */
136523
+ 200: {
136524
+ headers: {
136525
+ [name: string]: unknown;
136526
+ };
136527
+ content: {
136528
+ "application/json": components["schemas"]["AdminSiteObjectStorageLimit"];
136529
+ };
136530
+ };
136531
+ 401: components["responses"]["Unauthorized"];
136532
+ 403: components["responses"]["Forbidden"];
136533
+ 404: components["responses"]["NotFound"];
136534
+ };
136535
+ };
136536
+ setSiteObjectStorageLimit: {
136537
+ parameters: {
136538
+ query?: never;
136539
+ header?: never;
136540
+ path: {
136541
+ /** @description Site ID (UUIDv7). */
136542
+ siteId: components["parameters"]["SiteId"];
136543
+ };
136544
+ cookie?: never;
136545
+ };
136546
+ requestBody: {
136547
+ content: {
136548
+ "application/json": {
136549
+ limit_mb: number;
136550
+ reason: string;
136551
+ };
136552
+ };
136553
+ };
136554
+ responses: {
136555
+ /** @description The site's allowance after the change. */
136556
+ 200: {
136557
+ headers: {
136558
+ [name: string]: unknown;
136559
+ };
136560
+ content: {
136561
+ "application/json": components["schemas"]["AdminSiteObjectStorageLimit"];
136562
+ };
136563
+ };
136564
+ 401: components["responses"]["Unauthorized"];
136565
+ 403: components["responses"]["Forbidden"];
136566
+ 404: components["responses"]["NotFound"];
136567
+ 422: components["responses"]["UnprocessableEntity"];
136568
+ };
136569
+ };
136570
+ clearSiteObjectStorageLimit: {
136571
+ parameters: {
136572
+ query?: never;
136573
+ header?: never;
136574
+ path: {
136575
+ /** @description Site ID (UUIDv7). */
136576
+ siteId: components["parameters"]["SiteId"];
136577
+ };
136578
+ cookie?: never;
136579
+ };
136580
+ requestBody?: never;
136581
+ responses: {
136582
+ /** @description Cleared. */
136583
+ 204: {
136584
+ headers: {
136585
+ [name: string]: unknown;
136586
+ };
136587
+ content?: never;
136588
+ };
136589
+ 401: components["responses"]["Unauthorized"];
136590
+ 403: components["responses"]["Forbidden"];
136591
+ 404: components["responses"]["NotFound"];
136592
+ };
136593
+ };
136446
136594
  adminGetSiteOriginKey: {
136447
136595
  parameters: {
136448
136596
  query?: never;
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.1512",
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>",