@zinn-digital/sdk 0.1.1878 → 0.1.1880
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 +100 -1
- package/package.json +1 -1
|
@@ -4261,6 +4261,28 @@ export interface paths {
|
|
|
4261
4261
|
patch?: never;
|
|
4262
4262
|
trace?: never;
|
|
4263
4263
|
};
|
|
4264
|
+
"/v1/admin/customers/{orgId}/compute-servers": {
|
|
4265
|
+
parameters: {
|
|
4266
|
+
query?: never;
|
|
4267
|
+
header?: never;
|
|
4268
|
+
path: {
|
|
4269
|
+
orgId: components["schemas"]["Uuid"];
|
|
4270
|
+
};
|
|
4271
|
+
cookie?: never;
|
|
4272
|
+
};
|
|
4273
|
+
get?: never;
|
|
4274
|
+
put?: never;
|
|
4275
|
+
/**
|
|
4276
|
+
* Place an on-the-house server order into a named customer account.
|
|
4277
|
+
* @description The staff route for a complimentary server. `orderComputeServer` cannot reach a customer account that already has a member (staff act in a customer account only through a delegation, which ends at its first member), so staff name the account in the path and give a reason. The order is staff-arranged (no charge to the customer, trust waivers apply) and runs off the request path exactly like `orderComputeServer`. Refused (`404`) for an organisation that does not exist or is not a customer account. Audit-logged as `compute.server.ordered` with `staff_order` (actor, account, reason). Requires the staff key `billing.entitlement.manage` granted through a staff org.
|
|
4278
|
+
*/
|
|
4279
|
+
post: operations["orderAdminCustomerComputeServer"];
|
|
4280
|
+
delete?: never;
|
|
4281
|
+
options?: never;
|
|
4282
|
+
head?: never;
|
|
4283
|
+
patch?: never;
|
|
4284
|
+
trace?: never;
|
|
4285
|
+
};
|
|
4264
4286
|
"/v1/admin/customers/{orgId}/connected-accounts": {
|
|
4265
4287
|
parameters: {
|
|
4266
4288
|
query?: never;
|
|
@@ -63983,6 +64005,50 @@ export interface components {
|
|
|
63983
64005
|
status: "queued" | "sent" | "delivered" | "opened" | "bounced" | "complained" | "failed" | "skipped";
|
|
63984
64006
|
subject?: string;
|
|
63985
64007
|
};
|
|
64008
|
+
/** @description The ordinary order body (orderComputeServer) without org_id (the path names the account), plus the reason staff must give. */
|
|
64009
|
+
AdminCustomerComputeOrder: {
|
|
64010
|
+
/** @description An explicit transfer allocation, for a provider whose `supports_disk_and_bandwidth` is true. */
|
|
64011
|
+
bandwidth?: string;
|
|
64012
|
+
/**
|
|
64013
|
+
* @description W43-49 (`docs/689`). The software stack installed at first boot on a Zinn® Cloud machine: Docker Engine, single-machine k3s, or k3s with Argo CD. Refused on a range whose first boot we do not write.
|
|
64014
|
+
* @default
|
|
64015
|
+
* @enum {string}
|
|
64016
|
+
*/
|
|
64017
|
+
blueprint: "" | "bare" | "docker" | "k3s" | "k3s_argocd";
|
|
64018
|
+
/** @description An explicit disk allocation, for a provider whose `supports_disk_and_bandwidth` is true. Sending it to one whose is false is refused. */
|
|
64019
|
+
disk?: string;
|
|
64020
|
+
/**
|
|
64021
|
+
* @description The operating system or one-click application the machine boots, as `getComputeCatalogue` reported it in `ComputeProvider.images`.
|
|
64022
|
+
*
|
|
64023
|
+
* ⛔ Required — `422` — on any range that publishes images, and meaningless on one that does not. It is not marked required here because which ranges publish them is a live provider fact a schema cannot know. ⛔⛔ Check the image's `architecture` against the chosen size: ARM and x86 images are separate entries with the **same name**, and a mismatch is refused *after* the customer has paid.
|
|
64024
|
+
*/
|
|
64025
|
+
image?: string;
|
|
64026
|
+
/** @description What to call the machine. It is also the name at the provider, which is what lets a retried purchase find the machine it already bought instead of buying a second. */
|
|
64027
|
+
name: string;
|
|
64028
|
+
/** @description A stack optimisation profile, as the configurator reported it. */
|
|
64029
|
+
optimisation?: string;
|
|
64030
|
+
/** @description The tier to buy, for a catalogue-aware caller. Either this or `spec`. */
|
|
64031
|
+
plan_code?: string;
|
|
64032
|
+
/** @description Which platform to place it on. Omitted, the engine resolves the range's default — ⛔ **except on a range priced per data centre** (`ComputeTier.zoned`), where omitting it is refused `422`: every platform there is one data centre with its own price, so "the default" would be picking a price on the customer's behalf. */
|
|
64033
|
+
provider?: string;
|
|
64034
|
+
/** @description Why staff place this order (for example: complimentary account). Stored in the audit row. */
|
|
64035
|
+
reason: string;
|
|
64036
|
+
/** @description The machine size, as the configurator reported it. ⭐ **Either this or `plan_code`, not both** — and where the provider publishes no sizes the two collapse into one, because the configurator's size ids are our plan codes. */
|
|
64037
|
+
spec?: string;
|
|
64038
|
+
/**
|
|
64039
|
+
* @description The ids of the authorised keys to install at build time, from `listComputeSshKeys`. Every id must be one of the ordering organisation's own registered keys (`listComputeSshKeys` for that org); any other id — another organisation's key, a key name, an unregistered vendor id — is refused `422` `refusal.compute.sshKeyNotYours` and nothing is built.
|
|
64040
|
+
*
|
|
64041
|
+
* ⛔⛔ **Required on the Zinn® Private Cloud range, and the refusal is a security control rather than a convenience.** That provider answers a build with no key by returning a **root password** in its response body, and `null` when a key is sent. An order with no key therefore mints a root credential that would exist in our process, our logs and our exception reports; refusing is how it never exists.
|
|
64042
|
+
*/
|
|
64043
|
+
ssh_keys?: string[];
|
|
64044
|
+
/**
|
|
64045
|
+
* @description How many months to buy up front. Outside 1…36 is refused `422` before a single vendor write, the same bound `renewComputeServer` applies.
|
|
64046
|
+
* @default 1
|
|
64047
|
+
*/
|
|
64048
|
+
term_months: number;
|
|
64049
|
+
/** @description The data centre, as `getComputeCatalogue` reported it. */
|
|
64050
|
+
zone: string;
|
|
64051
|
+
};
|
|
63986
64052
|
AdminCustomerCreate: {
|
|
63987
64053
|
/** @description ISO-3166-1 alpha-2 billing country (tax is destination-rated from it). */
|
|
63988
64054
|
country?: string;
|
|
@@ -97675,7 +97741,7 @@ export interface components {
|
|
|
97675
97741
|
* @default 1
|
|
97676
97742
|
*/
|
|
97677
97743
|
term_months: number;
|
|
97678
|
-
/** @description The data centre, as `getComputeCatalogue` reported it. */
|
|
97744
|
+
/** @description The data centre, as `getComputeCatalogue` reported it, or the city slug `GET /v1/catalog/compute/own-cloud` lists (`falkenstein`): a city resolves to the data centre this size is priced and buildable in there (the cheapest monthly price when it has two), and a city with none is refused `refusal.compute.sizeTemporarilyUnavailableHere`. */
|
|
97679
97745
|
zone: string;
|
|
97680
97746
|
};
|
|
97681
97747
|
OrderConfig: {
|
|
@@ -128922,6 +128988,39 @@ export interface operations {
|
|
|
128922
128988
|
429: components["responses"]["TooManyRequests"];
|
|
128923
128989
|
};
|
|
128924
128990
|
};
|
|
128991
|
+
orderAdminCustomerComputeServer: {
|
|
128992
|
+
parameters: {
|
|
128993
|
+
query?: never;
|
|
128994
|
+
header?: never;
|
|
128995
|
+
path: {
|
|
128996
|
+
orgId: components["schemas"]["Uuid"];
|
|
128997
|
+
};
|
|
128998
|
+
cookie?: never;
|
|
128999
|
+
};
|
|
129000
|
+
requestBody: {
|
|
129001
|
+
content: {
|
|
129002
|
+
"application/json": components["schemas"]["AdminCustomerComputeOrder"];
|
|
129003
|
+
};
|
|
129004
|
+
};
|
|
129005
|
+
responses: {
|
|
129006
|
+
/** @description The order was accepted; the server is being provisioned. */
|
|
129007
|
+
202: {
|
|
129008
|
+
headers: {
|
|
129009
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
129010
|
+
[name: string]: unknown;
|
|
129011
|
+
};
|
|
129012
|
+
content: {
|
|
129013
|
+
"application/json": components["schemas"]["ComputeServer"];
|
|
129014
|
+
};
|
|
129015
|
+
};
|
|
129016
|
+
401: components["responses"]["Unauthorized"];
|
|
129017
|
+
403: components["responses"]["Forbidden"];
|
|
129018
|
+
404: components["responses"]["NotFound"];
|
|
129019
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
129020
|
+
429: components["responses"]["TooManyRequests"];
|
|
129021
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
129022
|
+
};
|
|
129023
|
+
};
|
|
128925
129024
|
getAdminCustomerConnectedAccounts: {
|
|
128926
129025
|
parameters: {
|
|
128927
129026
|
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.1880",
|
|
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>",
|