@zinn-digital/sdk 0.1.1924 → 0.1.1925
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 +60 -0
- package/package.json +1 -1
|
@@ -4040,6 +4040,29 @@ export interface paths {
|
|
|
4040
4040
|
patch?: never;
|
|
4041
4041
|
trace?: never;
|
|
4042
4042
|
};
|
|
4043
|
+
"/v1/admin/compute/servers/{serverId}/terminate": {
|
|
4044
|
+
parameters: {
|
|
4045
|
+
query?: never;
|
|
4046
|
+
header?: never;
|
|
4047
|
+
path: {
|
|
4048
|
+
/** @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. */
|
|
4049
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
4050
|
+
};
|
|
4051
|
+
cookie?: never;
|
|
4052
|
+
};
|
|
4053
|
+
get?: never;
|
|
4054
|
+
put?: never;
|
|
4055
|
+
/**
|
|
4056
|
+
* Staff end a cloud server (delete it at the supplier and close its meter).
|
|
4057
|
+
* @description DAY-0364. Starts the same `ComputeTeardownWorkflow` a customer's own cancel starts (licence back, renewal off, delete at the supplier — a machine already gone counts as deleted — then the hourly meter is rated and settled and the row reaches `terminated`). The org is resolved from the row. Staff-only on `abuse.suspend` (the same key as suspend); audit-logged (`compute.server.terminated`, with the actor, the server, the org and the reason) BEFORE the workflow starts. Idempotent: a call on a server already `terminating` answers `202` with the same row and starts nothing. ⛔ `422` on a server already `terminated` (`refusal.compute.alreadyRemoved`), on any status other than `active` (`refusal.compute.changedWaitFinishTry`) and on a cluster member (`refusal.compute.serverMachineClusterDelete`).
|
|
4058
|
+
*/
|
|
4059
|
+
post: operations["adminTerminateComputeServer"];
|
|
4060
|
+
delete?: never;
|
|
4061
|
+
options?: never;
|
|
4062
|
+
head?: never;
|
|
4063
|
+
patch?: never;
|
|
4064
|
+
trace?: never;
|
|
4065
|
+
};
|
|
4043
4066
|
"/v1/admin/compute/servers/{serverId}/unsuspend": {
|
|
4044
4067
|
parameters: {
|
|
4045
4068
|
query?: never;
|
|
@@ -128950,6 +128973,43 @@ export interface operations {
|
|
|
128950
128973
|
503: components["responses"]["ServiceUnavailable"];
|
|
128951
128974
|
};
|
|
128952
128975
|
};
|
|
128976
|
+
adminTerminateComputeServer: {
|
|
128977
|
+
parameters: {
|
|
128978
|
+
query?: never;
|
|
128979
|
+
header?: never;
|
|
128980
|
+
path: {
|
|
128981
|
+
/** @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. */
|
|
128982
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
128983
|
+
};
|
|
128984
|
+
cookie?: never;
|
|
128985
|
+
};
|
|
128986
|
+
requestBody: {
|
|
128987
|
+
content: {
|
|
128988
|
+
"application/json": {
|
|
128989
|
+
/** @description Why staff ended the server (stored in the audit row). */
|
|
128990
|
+
reason: string;
|
|
128991
|
+
};
|
|
128992
|
+
};
|
|
128993
|
+
};
|
|
128994
|
+
responses: {
|
|
128995
|
+
/** @description The server's admin row, now `terminating`; the teardown runs in the background. */
|
|
128996
|
+
202: {
|
|
128997
|
+
headers: {
|
|
128998
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
128999
|
+
[name: string]: unknown;
|
|
129000
|
+
};
|
|
129001
|
+
content: {
|
|
129002
|
+
"application/json": components["schemas"]["AdminComputeServerEnvelope"];
|
|
129003
|
+
};
|
|
129004
|
+
};
|
|
129005
|
+
401: components["responses"]["Unauthorized"];
|
|
129006
|
+
403: components["responses"]["Forbidden"];
|
|
129007
|
+
404: components["responses"]["NotFound"];
|
|
129008
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
129009
|
+
429: components["responses"]["TooManyRequests"];
|
|
129010
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
129011
|
+
};
|
|
129012
|
+
};
|
|
128953
129013
|
unsuspendAdminComputeServer: {
|
|
128954
129014
|
parameters: {
|
|
128955
129015
|
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.1925",
|
|
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>",
|