@zinn-digital/sdk 0.1.1877 → 0.1.1879
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 +101 -2
- 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;
|
|
@@ -28362,7 +28384,7 @@ export interface paths {
|
|
|
28362
28384
|
put?: never;
|
|
28363
28385
|
/**
|
|
28364
28386
|
* Add a line to a cart.
|
|
28365
|
-
* @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. A hosting-plan line whose site allowance does not all fit on the servers today is still added and carries `capacity_notice` (P6b-002); only when the platform refuses plans larger than everything it can hold is it a `422` with error code `CAPACITY_UNAVAILABLE` (`details[0].sites_wanted`, `details[0].sites_possible`).
|
|
28387
|
+
* @description Adds a priced line. A `hosting_plan` line needs a `plan_version_id`; a `domain_register`/`domain_transfer`/`domain_renew` line needs a `domain_name`, `tld` and `period_years`. The line shape and price are validated + stamped by the server; a bad shape (or a plan version with no price) is a `422`. A hosting-plan line whose site allowance does not all fit on the servers today is still added and carries `capacity_notice` (P6b-002); only when the platform refuses plans larger than everything it can hold is it a `422` with error code `CAPACITY_UNAVAILABLE` (`details[0].sites_wanted`, `details[0].sites_possible`). A `domain_transfer` line that would be free under the transfer offer is also a `422` when a guard on the offer refuses it; `error.code` is one of `EMAIL_NOT_VERIFIED`, `NOT_IN_GOOD_STANDING`, `PREMIUM_NAME`, `CHECK_FAILED` or `FREE_TRANSFER_LIMIT`, and `error.refusal.key` (`refusal.freeTransfer.*`) is the sentence to show in the reader's language. Nothing is added to the cart by a refused call.
|
|
28366
28388
|
*/
|
|
28367
28389
|
post: operations["addCartLine"];
|
|
28368
28390
|
delete?: never;
|
|
@@ -42878,7 +42900,7 @@ export interface paths {
|
|
|
42878
42900
|
put?: never;
|
|
42879
42901
|
/**
|
|
42880
42902
|
* Place a domain order for one of your customers, unpaid.
|
|
42881
|
-
* @description Prices every line from our catalogue, re-verifies every availability token and places the order `pending_payment`. A line may be a registration or, with `kind: domain_transfer` and the `auth_code`, a transfer-in of a name held at another registrar — checked and priced exactly as `POST /v1/domains/transfer/preflight` quotes it, and refused with that check's reason when it is not eligible. ⛔ Nothing is charged here and no payment method is touched: the customer pays on the hosted page named by `pay_url`, and their browser is sent back to `return_url` (or `cancel_url`) with only `?order=<human_ref>&status=paid` (or `cancelled`) appended. Both URLs must be `https` on a host allowlisted for your programme, matched exactly — anything else is a `422` and no order is placed. `pay_url` carries a secret that is stored nowhere and shown only in this response; it lives 24 hours. `Idempotency-Key` is **required** — a retry returns the same order with a fresh `pay_url` rather than buying the name twice. Requires `partner.domains`.
|
|
42903
|
+
* @description Prices every line from our catalogue, re-verifies every availability token and places the order `pending_payment`. A line may be a registration or, with `kind: domain_transfer` and the `auth_code`, a transfer-in of a name held at another registrar — checked and priced exactly as `POST /v1/domains/transfer/preflight` quotes it, and refused with that check's reason when it is not eligible. A free transfer-in that a guard on the offer refuses is a `422` whose message is `"<fqdn>: <reason>"` and whose `details` carry `{field: "fqdn", code, message}` with code `PREMIUM_NAME` (a premium-priced name is never transferred free), `CHECK_FAILED` (try again shortly) or `FREE_TRANSFER_LIMIT` (the daily bound on free transfers, per order, per customer and across your programme); `NOT_IN_GOOD_STANDING` is returned only when that check is switched on for partner orders (off by default). No order is placed. ⛔ Nothing is charged here and no payment method is touched: the customer pays on the hosted page named by `pay_url`, and their browser is sent back to `return_url` (or `cancel_url`) with only `?order=<human_ref>&status=paid` (or `cancelled`) appended. Both URLs must be `https` on a host allowlisted for your programme, matched exactly — anything else is a `422` and no order is placed. `pay_url` carries a secret that is stored nowhere and shown only in this response; it lives 24 hours. `Idempotency-Key` is **required** — a retry returns the same order with a fresh `pay_url` rather than buying the name twice. Requires `partner.domains`.
|
|
42882
42904
|
*/
|
|
42883
42905
|
post: operations["createPartnerDomainOrder"];
|
|
42884
42906
|
delete?: 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;
|
|
@@ -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.1879",
|
|
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>",
|