@zinn-digital/sdk 0.1.1510 → 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.
- package/dist/generated/schema.d.ts +215 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -15866,6 +15894,26 @@ export interface paths {
|
|
|
15866
15894
|
patch: operations["updateMozProjectCap"];
|
|
15867
15895
|
trace?: never;
|
|
15868
15896
|
};
|
|
15897
|
+
"/v1/admin/vendor-usage/moz/settings": {
|
|
15898
|
+
parameters: {
|
|
15899
|
+
query?: never;
|
|
15900
|
+
header?: never;
|
|
15901
|
+
path?: never;
|
|
15902
|
+
cookie?: never;
|
|
15903
|
+
};
|
|
15904
|
+
get?: never;
|
|
15905
|
+
put?: never;
|
|
15906
|
+
post?: never;
|
|
15907
|
+
delete?: never;
|
|
15908
|
+
options?: never;
|
|
15909
|
+
head?: never;
|
|
15910
|
+
/**
|
|
15911
|
+
* Change the accepted monthly Moz ceiling the overage alert compares against (staff).
|
|
15912
|
+
* @description s1014 MOZCEIL (owner 2026-11-05: "raise the Moz allowance to 200,000 rows a month"; he accepts paying overage up to it). `accepted_monthly_rows` 0-5,000,000. The plan allotment is Moz's own figure and is not edited here; the report keeps showing it and the overage cost. Audit-logged (`platform.moz_accepted_ceiling_changed`, before and after). Requires staff + `platform.seo.manage`.
|
|
15913
|
+
*/
|
|
15914
|
+
patch: operations["updateMozAccountSettings"];
|
|
15915
|
+
trace?: never;
|
|
15916
|
+
};
|
|
15869
15917
|
"/v1/admin/visibility": {
|
|
15870
15918
|
parameters: {
|
|
15871
15919
|
query?: never;
|
|
@@ -62152,6 +62200,21 @@ export interface components {
|
|
|
62152
62200
|
/** @description Temporal status of an active job's workflow, or `unknown`. */
|
|
62153
62201
|
workflow: string;
|
|
62154
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
|
+
};
|
|
62155
62218
|
AdminSitePage: {
|
|
62156
62219
|
data: components["schemas"]["AdminSiteRow"][];
|
|
62157
62220
|
page: components["schemas"]["PageMeta"];
|
|
@@ -90150,6 +90213,11 @@ export interface components {
|
|
|
90150
90213
|
};
|
|
90151
90214
|
/** @description The shared Moz account, as `getMozVendorUsage` reports it (s1014 MOZ-V2). */
|
|
90152
90215
|
MozVendorUsage: {
|
|
90216
|
+
/**
|
|
90217
|
+
* @description The owner-set ACCEPTED monthly ceiling (owner 2026-11-05: 200,000; overage up to it is paid on purpose). The overage alert fires only when `projected_month_end` passes it. Not Moz's `allotted`, which stays as reported.
|
|
90218
|
+
* @example 200000
|
|
90219
|
+
*/
|
|
90220
|
+
accepted_monthly_rows?: number;
|
|
90153
90221
|
advice: {
|
|
90154
90222
|
/** @enum {string} */
|
|
90155
90223
|
action: "stay" | "upgrade" | "unknown";
|
|
@@ -90181,6 +90249,16 @@ export interface components {
|
|
|
90181
90249
|
rows_included: number;
|
|
90182
90250
|
}[];
|
|
90183
90251
|
projected_month_end: number | null;
|
|
90252
|
+
/**
|
|
90253
|
+
* @description The projected overage charge on the current plan in integer minor units of `advice.currency` (the plan cost at the projection minus its monthly price).
|
|
90254
|
+
* @example 12000
|
|
90255
|
+
*/
|
|
90256
|
+
projected_overage_cost_minor?: number | null;
|
|
90257
|
+
/**
|
|
90258
|
+
* @description Projected rows past `allotted` this period (0 when under; null = no projection yet).
|
|
90259
|
+
* @example 50251
|
|
90260
|
+
*/
|
|
90261
|
+
projected_overage_rows?: number | null;
|
|
90184
90262
|
projects: {
|
|
90185
90263
|
alert_percent: number;
|
|
90186
90264
|
label: string;
|
|
@@ -104071,6 +104149,25 @@ export interface components {
|
|
|
104071
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. */
|
|
104072
104150
|
email_muted?: boolean;
|
|
104073
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
|
+
};
|
|
104074
104171
|
SiteOffsite: {
|
|
104075
104172
|
copies: components["schemas"]["OffsiteCopy"][];
|
|
104076
104173
|
entitled: boolean;
|
|
@@ -105155,6 +105252,8 @@ export interface components {
|
|
|
105155
105252
|
SiteQuotaResources: {
|
|
105156
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. */
|
|
105157
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;
|
|
105158
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. */
|
|
105159
105258
|
resources: components["schemas"]["SiteQuotaResource"][];
|
|
105160
105259
|
};
|
|
@@ -136408,6 +136507,90 @@ export interface operations {
|
|
|
136408
136507
|
503: components["responses"]["ServiceUnavailable"];
|
|
136409
136508
|
};
|
|
136410
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
|
+
};
|
|
136411
136594
|
adminGetSiteOriginKey: {
|
|
136412
136595
|
parameters: {
|
|
136413
136596
|
query?: never;
|
|
@@ -139062,6 +139245,38 @@ export interface operations {
|
|
|
139062
139245
|
422: components["responses"]["UnprocessableEntity"];
|
|
139063
139246
|
};
|
|
139064
139247
|
};
|
|
139248
|
+
updateMozAccountSettings: {
|
|
139249
|
+
parameters: {
|
|
139250
|
+
query?: never;
|
|
139251
|
+
header?: never;
|
|
139252
|
+
path?: never;
|
|
139253
|
+
cookie?: never;
|
|
139254
|
+
};
|
|
139255
|
+
requestBody: {
|
|
139256
|
+
content: {
|
|
139257
|
+
"application/json": {
|
|
139258
|
+
accepted_monthly_rows: number;
|
|
139259
|
+
};
|
|
139260
|
+
};
|
|
139261
|
+
};
|
|
139262
|
+
responses: {
|
|
139263
|
+
/** @description The ceiling, as stored. */
|
|
139264
|
+
200: {
|
|
139265
|
+
headers: {
|
|
139266
|
+
[name: string]: unknown;
|
|
139267
|
+
};
|
|
139268
|
+
content: {
|
|
139269
|
+
"application/json": {
|
|
139270
|
+
/** @example 200000 */
|
|
139271
|
+
accepted_monthly_rows: number;
|
|
139272
|
+
};
|
|
139273
|
+
};
|
|
139274
|
+
};
|
|
139275
|
+
401: components["responses"]["Unauthorized"];
|
|
139276
|
+
403: components["responses"]["Forbidden"];
|
|
139277
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
139278
|
+
};
|
|
139279
|
+
};
|
|
139065
139280
|
getVisibilitySpend: {
|
|
139066
139281
|
parameters: {
|
|
139067
139282
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
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>",
|