@zinn-digital/sdk 0.1.1472 → 0.1.1473
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 +72 -0
- package/package.json +1 -1
|
@@ -28620,6 +28620,26 @@ export interface paths {
|
|
|
28620
28620
|
patch?: never;
|
|
28621
28621
|
trace?: never;
|
|
28622
28622
|
};
|
|
28623
|
+
"/v1/compute/offers": {
|
|
28624
|
+
parameters: {
|
|
28625
|
+
query?: never;
|
|
28626
|
+
header?: never;
|
|
28627
|
+
path?: never;
|
|
28628
|
+
cookie?: never;
|
|
28629
|
+
};
|
|
28630
|
+
/**
|
|
28631
|
+
* List the dedicated server-auction machines on sale now, at our price.
|
|
28632
|
+
* @description One-of-a-kind dedicated machines, each priced at quote time from its live measured cost (monthly, USD) beside its one-off setup fee. An offer can be sold to someone else at any second: the list is live, and a basket line holds the quoted figure for `lock_seconds` while the offer stands at the same cost, is re-priced when it changes, and refuses with the sold-out sentence when it is gone. Add one to the basket as a `compute_server` line with `plan_code` `metal_offer`, the offer's `spec` and `zone`. An organisation whose range has no account behind it gets an empty list. Requires `sites.view`.
|
|
28633
|
+
*/
|
|
28634
|
+
get: operations["listComputeOffers"];
|
|
28635
|
+
put?: never;
|
|
28636
|
+
post?: never;
|
|
28637
|
+
delete?: never;
|
|
28638
|
+
options?: never;
|
|
28639
|
+
head?: never;
|
|
28640
|
+
patch?: never;
|
|
28641
|
+
trace?: never;
|
|
28642
|
+
};
|
|
28623
28643
|
"/v1/compute/regions": {
|
|
28624
28644
|
parameters: {
|
|
28625
28645
|
query?: never;
|
|
@@ -76961,6 +76981,30 @@ export interface components {
|
|
|
76961
76981
|
ip: string;
|
|
76962
76982
|
network_id: components["schemas"]["Uuid"];
|
|
76963
76983
|
};
|
|
76984
|
+
ComputeOffer: {
|
|
76985
|
+
city: string;
|
|
76986
|
+
currency: string;
|
|
76987
|
+
disk_gb: number | null;
|
|
76988
|
+
/** @description The machine's own hardware lines. */
|
|
76989
|
+
label: string;
|
|
76990
|
+
/** @description Our monthly price, integer minor units of `currency`. */
|
|
76991
|
+
monthly_minor: number;
|
|
76992
|
+
/** @description The plan to order it under. */
|
|
76993
|
+
plan_code: string;
|
|
76994
|
+
/** @description The platform id to send as the order's `provider`. */
|
|
76995
|
+
provider: string;
|
|
76996
|
+
ram_gb: number | null;
|
|
76997
|
+
/** @description The one-off setup fee, passed on at cost, minor units. */
|
|
76998
|
+
setup_minor: number;
|
|
76999
|
+
/** @description The offer's machine token. */
|
|
77000
|
+
spec: string;
|
|
77001
|
+
zone: string;
|
|
77002
|
+
};
|
|
77003
|
+
ComputeOfferList: {
|
|
77004
|
+
data: components["schemas"]["ComputeOffer"][];
|
|
77005
|
+
/** @description How long a basket holds an offer's quoted figure. */
|
|
77006
|
+
lock_seconds: number;
|
|
77007
|
+
};
|
|
76964
77008
|
/** @description What to do to the machine. */
|
|
76965
77009
|
ComputePowerRequest: {
|
|
76966
77010
|
/**
|
|
@@ -160868,6 +160912,34 @@ export interface operations {
|
|
|
160868
160912
|
503: components["responses"]["ServiceUnavailable"];
|
|
160869
160913
|
};
|
|
160870
160914
|
};
|
|
160915
|
+
listComputeOffers: {
|
|
160916
|
+
parameters: {
|
|
160917
|
+
query?: {
|
|
160918
|
+
/** @description The organisation to list for. Required only when the caller belongs to more than one; omitted, it is their own. */
|
|
160919
|
+
org_id?: components["schemas"]["Uuid"];
|
|
160920
|
+
};
|
|
160921
|
+
header?: never;
|
|
160922
|
+
path?: never;
|
|
160923
|
+
cookie?: never;
|
|
160924
|
+
};
|
|
160925
|
+
requestBody?: never;
|
|
160926
|
+
responses: {
|
|
160927
|
+
/** @description The offers on sale now, cheapest first, and the quote lock window. */
|
|
160928
|
+
200: {
|
|
160929
|
+
headers: {
|
|
160930
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
160931
|
+
[name: string]: unknown;
|
|
160932
|
+
};
|
|
160933
|
+
content: {
|
|
160934
|
+
"application/json": components["schemas"]["ComputeOfferList"];
|
|
160935
|
+
};
|
|
160936
|
+
};
|
|
160937
|
+
401: components["responses"]["Unauthorized"];
|
|
160938
|
+
403: components["responses"]["Forbidden"];
|
|
160939
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
160940
|
+
429: components["responses"]["TooManyRequests"];
|
|
160941
|
+
};
|
|
160942
|
+
};
|
|
160871
160943
|
listComputeRegions: {
|
|
160872
160944
|
parameters: {
|
|
160873
160945
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1473",
|
|
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>",
|