@zinn-digital/sdk 0.1.1906 → 0.1.1909
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 +78 -0
- package/package.json +1 -1
|
@@ -3992,6 +3992,29 @@ export interface paths {
|
|
|
3992
3992
|
patch?: never;
|
|
3993
3993
|
trace?: never;
|
|
3994
3994
|
};
|
|
3995
|
+
"/v1/admin/compute/servers/{serverId}/comp-backups": {
|
|
3996
|
+
parameters: {
|
|
3997
|
+
query?: never;
|
|
3998
|
+
header?: never;
|
|
3999
|
+
path: {
|
|
4000
|
+
/** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
|
|
4001
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
4002
|
+
};
|
|
4003
|
+
cookie?: never;
|
|
4004
|
+
};
|
|
4005
|
+
get?: never;
|
|
4006
|
+
put?: never;
|
|
4007
|
+
/**
|
|
4008
|
+
* Tick or untick free backups on a server staff gave away.
|
|
4009
|
+
* @description DAY-0157 (owner ruling 2026-11-18, "Staff tick per server"): backups are switched on without a charge ONLY on a server staff ticked here (or in the free-server form), and only while the account is active. ⛔ `422` on a server an order line bills or that is billed by the hour: there the tick would mean nothing. Staff-only on `billing.entitlement.manage`; audit-logged (`compute.server.comp_backups_set`) with the reason, before the row changes.
|
|
4010
|
+
*/
|
|
4011
|
+
post: operations["setAdminComputeServerCompBackups"];
|
|
4012
|
+
delete?: never;
|
|
4013
|
+
options?: never;
|
|
4014
|
+
head?: never;
|
|
4015
|
+
patch?: never;
|
|
4016
|
+
trace?: never;
|
|
4017
|
+
};
|
|
3995
4018
|
"/v1/admin/compute/servers/{serverId}/suspend": {
|
|
3996
4019
|
parameters: {
|
|
3997
4020
|
query?: never;
|
|
@@ -63767,6 +63790,10 @@ export interface components {
|
|
|
63767
63790
|
/** @enum {string} */
|
|
63768
63791
|
state: "pending" | "queued" | "installing" | "active" | "failed" | "released";
|
|
63769
63792
|
} | null;
|
|
63793
|
+
/** @description DAY-0157 — whether staff may tick free backups here at all: true only when no order line bills the server and it is not billed by the hour. */
|
|
63794
|
+
comp_backups_allowed?: boolean;
|
|
63795
|
+
/** @description DAY-0157 — staff ticked FREE BACKUPS on this server. Counts only on a server no order line bills; every other server buys backups at the normal price. */
|
|
63796
|
+
comp_backups_free?: boolean;
|
|
63770
63797
|
/** @description CLOUDFIX car 2b — why staff gave this server away; null on a bought server. */
|
|
63771
63798
|
comp_reason?: string | null;
|
|
63772
63799
|
deploy_target: string;
|
|
@@ -64067,6 +64094,11 @@ export interface components {
|
|
|
64067
64094
|
};
|
|
64068
64095
|
/** @description The ordinary order body (orderComputeServer) without org_id (the path names the account), plus the reason staff must give. */
|
|
64069
64096
|
AdminCustomerComputeOrder: {
|
|
64097
|
+
/**
|
|
64098
|
+
* @description DAY-0157 (owner ruling 2026-11-18) — tick FREE BACKUPS for this server. Off by default: a free server without the tick buys backups at the normal price, after the good-standing check every purchase gets.
|
|
64099
|
+
* @default false
|
|
64100
|
+
*/
|
|
64101
|
+
backups_free: boolean;
|
|
64070
64102
|
/** @description An explicit transfer allocation, for a provider whose `supports_disk_and_bandwidth` is true. */
|
|
64071
64103
|
bandwidth?: string;
|
|
64072
64104
|
/**
|
|
@@ -83590,6 +83622,11 @@ export interface components {
|
|
|
83590
83622
|
ComputeServerBackups: {
|
|
83591
83623
|
/** @description Whether the provider takes automatic backups of this machine. */
|
|
83592
83624
|
enabled: boolean;
|
|
83625
|
+
/**
|
|
83626
|
+
* @description Staff ticked free backups on this server (DAY-0157): they are included at no charge, `price_minor` is `null`, and a client says "included" rather than a price.
|
|
83627
|
+
* @default false
|
|
83628
|
+
*/
|
|
83629
|
+
included: boolean;
|
|
83593
83630
|
/** @description Whether **we** can change that through an API. `false` means the customer has a real backup arrangement we can describe and cannot alter — render a statement, not a switch. */
|
|
83594
83631
|
manageable: boolean;
|
|
83595
83632
|
/** @description ISO-4217 code for `price_minor`, or `""` exactly when that is `null`. */
|
|
@@ -118592,6 +118629,8 @@ export interface components {
|
|
|
118592
118629
|
fqdn: string;
|
|
118593
118630
|
/** @description Whether the registry adds a year to the term when the transfer completes. ⛔ `null` means **unknown, not "no"** — true for every gTLD under ICANN's transfer policy, but country registries differ and we hold no source for most of them. Show the "+1 year" line only on `true`. */
|
|
118594
118631
|
grants_year: boolean | null;
|
|
118632
|
+
/** @description Whether the registrar said, before this answer was sent, if the name is priced at a registry premium. `false` on an eligible row means the registry confirmed the name is registered but the registrar had not answered within the pre-flight's time budget: show "ready, confirmed at checkout", never a plain "ready". The cart re-asks the registrar before payment and refuses a premium name with `PREMIUM_NAME`. `null` where the check was not reached (the row was refused earlier). */
|
|
118633
|
+
premium_checked?: boolean | null;
|
|
118595
118634
|
/** @description Why this name cannot be transferred. `TLD_NOT_OFFERED` — we do not sell that extension, or the name is not registrable (a sub-domain). `NOT_REGISTERED` — the name is available, so it is a registration, not a transfer. `CHECK_FAILED` — the registrar could not be asked, so the answer is "try again", **not** "you can buy it instead"; those are different facts and the customer's next action differs. `ALREADY_ON_PLATFORM` — this organisation already holds it. `NOT_PRICED` — we sell the TLD but hold no transfer price in this currency. Read from the registry's own record (RDAP), before payment (P6d-017): `LOCKED` — a client or server transfer lock is on; unlock it at the current registrar and check again. `TOO_NEW` — registered under 60 days ago, and `RECENTLY_TRANSFERRED` — transferred under 60 days ago; both carry `eligible_from`. `REDEMPTION` — in redemption or pending delete; the current registrar must restore it first. `PREMIUM_NAME` — the registrar prices this name at a registry premium (P6d-003); the cart refuses it on add with the same code, so it is refused here before anybody pays. */
|
|
118596
118635
|
reason: string | null;
|
|
118597
118636
|
/** @description Whether the registry's own record (RDAP) was read for this name. `false` on an eligible row means nothing we could see blocks it but the lock state could not be read (some country registries publish no RDAP): show "could not check the lock", never a plain "ready". `null` where the check was not reached (the row was refused earlier). */
|
|
@@ -128718,6 +128757,45 @@ export interface operations {
|
|
|
128718
128757
|
429: components["responses"]["TooManyRequests"];
|
|
128719
128758
|
};
|
|
128720
128759
|
};
|
|
128760
|
+
setAdminComputeServerCompBackups: {
|
|
128761
|
+
parameters: {
|
|
128762
|
+
query?: never;
|
|
128763
|
+
header?: never;
|
|
128764
|
+
path: {
|
|
128765
|
+
/** @description The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. */
|
|
128766
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
128767
|
+
};
|
|
128768
|
+
cookie?: never;
|
|
128769
|
+
};
|
|
128770
|
+
requestBody: {
|
|
128771
|
+
content: {
|
|
128772
|
+
"application/json": {
|
|
128773
|
+
/** @description true ticks free backups; false takes the tick off. */
|
|
128774
|
+
free: boolean;
|
|
128775
|
+
/** @description Why (stored in the audit row). */
|
|
128776
|
+
reason: string;
|
|
128777
|
+
};
|
|
128778
|
+
};
|
|
128779
|
+
};
|
|
128780
|
+
responses: {
|
|
128781
|
+
/** @description The server's admin row, carrying the new `comp_backups_free`. */
|
|
128782
|
+
200: {
|
|
128783
|
+
headers: {
|
|
128784
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
128785
|
+
[name: string]: unknown;
|
|
128786
|
+
};
|
|
128787
|
+
content: {
|
|
128788
|
+
"application/json": components["schemas"]["AdminComputeServerEnvelope"];
|
|
128789
|
+
};
|
|
128790
|
+
};
|
|
128791
|
+
401: components["responses"]["Unauthorized"];
|
|
128792
|
+
403: components["responses"]["Forbidden"];
|
|
128793
|
+
404: components["responses"]["NotFound"];
|
|
128794
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
128795
|
+
429: components["responses"]["TooManyRequests"];
|
|
128796
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
128797
|
+
};
|
|
128798
|
+
};
|
|
128721
128799
|
suspendAdminComputeServer: {
|
|
128722
128800
|
parameters: {
|
|
128723
128801
|
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.1909",
|
|
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>",
|