@zinn-digital/sdk 0.1.1966 → 0.1.1969
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 +178 -1
- package/package.json +1 -1
|
@@ -30481,6 +30481,26 @@ export interface paths {
|
|
|
30481
30481
|
patch?: never;
|
|
30482
30482
|
trace?: never;
|
|
30483
30483
|
};
|
|
30484
|
+
"/v1/compute/server-sites": {
|
|
30485
|
+
parameters: {
|
|
30486
|
+
query?: never;
|
|
30487
|
+
header?: never;
|
|
30488
|
+
path?: never;
|
|
30489
|
+
cookie?: never;
|
|
30490
|
+
};
|
|
30491
|
+
/**
|
|
30492
|
+
* Your servers that can host websites, with how many sites each one holds.
|
|
30493
|
+
* @description The deploy screen's "Your servers" group (cloud panel L1, docs/1146 §3.3): every server of the organisation (or, with `org_id`, of one organisation in the caller's scope) that the platform manages as a website host, its site count, and `can_deploy` (false while the server is not running). No live capacity reading here: the server's `listComputeServerSites` answers whether one more site fits. Requires `sites.view`.
|
|
30494
|
+
*/
|
|
30495
|
+
get: operations["listComputeServerSiteChoices"];
|
|
30496
|
+
put?: never;
|
|
30497
|
+
post?: never;
|
|
30498
|
+
delete?: never;
|
|
30499
|
+
options?: never;
|
|
30500
|
+
head?: never;
|
|
30501
|
+
patch?: never;
|
|
30502
|
+
trace?: never;
|
|
30503
|
+
};
|
|
30484
30504
|
"/v1/compute/servers": {
|
|
30485
30505
|
parameters: {
|
|
30486
30506
|
query?: never;
|
|
@@ -31612,6 +31632,33 @@ export interface paths {
|
|
|
31612
31632
|
patch?: never;
|
|
31613
31633
|
trace?: never;
|
|
31614
31634
|
};
|
|
31635
|
+
"/v1/compute/servers/{serverId}/sites": {
|
|
31636
|
+
parameters: {
|
|
31637
|
+
query?: never;
|
|
31638
|
+
header?: never;
|
|
31639
|
+
path: {
|
|
31640
|
+
/** @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. */
|
|
31641
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
31642
|
+
};
|
|
31643
|
+
cookie?: never;
|
|
31644
|
+
};
|
|
31645
|
+
/**
|
|
31646
|
+
* The sites on one of your servers, and whether another one fits.
|
|
31647
|
+
* @description Lists the organisation's sites placed on this server and answers, from a live reading, whether a new site can be deployed onto it. `can_deploy` is false with a machine `refusal` code (`not_managed`, `not_operable`, `disk_full`, `low_memory`, `capacity_unknown`, `not_in_good_standing`) the dashboard turns into words per locale. `capacity` is `null` when the server is not managed by the platform. `applications` and `php_versions` are the choices a deploy accepts. A site's `can_move_back` is true while its move onto this server is inside the seven-day hold; moving it back is `rollbackSiteOwnVps`. Requires `sites.view`; `404` for a server that is not the caller's.
|
|
31648
|
+
*/
|
|
31649
|
+
get: operations["listComputeServerSites"];
|
|
31650
|
+
put?: never;
|
|
31651
|
+
/**
|
|
31652
|
+
* Deploy a new site onto one of your servers.
|
|
31653
|
+
* @description Creates a site pinned to this server after the same live capacity check the list answers. Refusals are `422` with a machine code in `details[0].code` (the list's refusal codes plus `bad_application`, `bad_php_version`, `domain_refused`, `domain_taken`) and, where one input is at fault, `details[0].field`. The deploy is audit-logged as `compute.server.site_deployed`. Requires `sites.create`; `404` for a server that is not the caller's.
|
|
31654
|
+
*/
|
|
31655
|
+
post: operations["deployComputeServerSite"];
|
|
31656
|
+
delete?: never;
|
|
31657
|
+
options?: never;
|
|
31658
|
+
head?: never;
|
|
31659
|
+
patch?: never;
|
|
31660
|
+
trace?: never;
|
|
31661
|
+
};
|
|
31615
31662
|
"/v1/compute/servers/{serverId}/snapshots": {
|
|
31616
31663
|
parameters: {
|
|
31617
31664
|
query?: never;
|
|
@@ -84057,6 +84104,14 @@ export interface components {
|
|
|
84057
84104
|
/** @description The pinned monthly price, which one calendar month of hours never exceeds. */
|
|
84058
84105
|
monthly_cap_minor: number | null;
|
|
84059
84106
|
};
|
|
84107
|
+
/** @description A live reading of the server's room. A `null` number is a reading we could not take; `refusal` is `null` when another site fits, otherwise the refusal code. */
|
|
84108
|
+
ComputeServerCapacity: {
|
|
84109
|
+
disk_total_gb: number | null;
|
|
84110
|
+
disk_used_percent: number | null;
|
|
84111
|
+
ram_free_mb: number | null;
|
|
84112
|
+
ram_total_mb: number | null;
|
|
84113
|
+
refusal: string | null;
|
|
84114
|
+
};
|
|
84060
84115
|
/**
|
|
84061
84116
|
* @description A short-lived out-of-band console onto a machine.
|
|
84062
84117
|
*
|
|
@@ -84318,6 +84373,47 @@ export interface components {
|
|
|
84318
84373
|
ComputeServerSetFirewallRequest: {
|
|
84319
84374
|
rules: components["schemas"]["ComputeFirewallRule"][];
|
|
84320
84375
|
};
|
|
84376
|
+
/** @description One site placed on a customer's own server. */
|
|
84377
|
+
ComputeServerSite: {
|
|
84378
|
+
/** @description Inside the hold of its move onto this server; `rollbackSiteOwnVps` moves it back. */
|
|
84379
|
+
can_move_back: boolean;
|
|
84380
|
+
/** Format: date-time */
|
|
84381
|
+
created_at: string | null;
|
|
84382
|
+
/** Format: uuid */
|
|
84383
|
+
id: string;
|
|
84384
|
+
name: string;
|
|
84385
|
+
php_version: string | null;
|
|
84386
|
+
primary_domain: string;
|
|
84387
|
+
stack_type: string;
|
|
84388
|
+
status: string;
|
|
84389
|
+
};
|
|
84390
|
+
ComputeServerSiteChoices: {
|
|
84391
|
+
data: {
|
|
84392
|
+
can_deploy: boolean;
|
|
84393
|
+
name: string;
|
|
84394
|
+
/** Format: uuid */
|
|
84395
|
+
server_id: string;
|
|
84396
|
+
site_count: number;
|
|
84397
|
+
}[];
|
|
84398
|
+
};
|
|
84399
|
+
ComputeServerSiteDeployRequest: {
|
|
84400
|
+
application: string;
|
|
84401
|
+
php_version?: string;
|
|
84402
|
+
primary_domain: string;
|
|
84403
|
+
};
|
|
84404
|
+
/** @description The sites on one server plus whether a new one can be deployed there. */
|
|
84405
|
+
ComputeServerSites: {
|
|
84406
|
+
applications: string[];
|
|
84407
|
+
can_deploy: boolean;
|
|
84408
|
+
capacity: components["schemas"]["ComputeServerCapacity"] | null;
|
|
84409
|
+
data: components["schemas"]["ComputeServerSite"][];
|
|
84410
|
+
/** @description True when the platform runs this server as a site host. */
|
|
84411
|
+
managed: boolean;
|
|
84412
|
+
php_versions: string[];
|
|
84413
|
+
refusal: string | null;
|
|
84414
|
+
/** Format: uuid */
|
|
84415
|
+
server_id: string;
|
|
84416
|
+
};
|
|
84321
84417
|
/**
|
|
84322
84418
|
* @description One on-demand image of a machine's disk.
|
|
84323
84419
|
*
|
|
@@ -121844,7 +121940,7 @@ export interface components {
|
|
|
121844
121940
|
inventory?: {
|
|
121845
121941
|
/** @description Whether the box's repositories could be READ this run — a fact about the run, not about any component. `false` does NOT mean everything is current: a fully up-to-date box and a box whose repos were unreachable both report no available versions, so the ingest leaves previously-known offers alone rather than blanking them (docs/266, CLAUDE.md 2.44). */
|
|
121846
121942
|
available_known?: boolean;
|
|
121847
|
-
/** @description One entry per component READ. A component the box could not read is OMITTED, never sent with an empty version — so an absent entry is ambiguous (uninstalled, or unreadable) and the ingest never deletes on absence; the row visibly goes stale instead. */
|
|
121943
|
+
/** @description One entry per component READ. At most 10000 for any document (a box far behind lists every pending package per architecture); a `software_inventory` document holds at most 500 (each becomes a row write) and is refused 422 above that. A component the box could not read is OMITTED, never sent with an empty version — so an absent entry is ambiguous (uninstalled, or unreadable) and the ingest never deletes on absence; the row visibly goes stale instead. */
|
|
121848
121944
|
components?: {
|
|
121849
121945
|
available_version?: string;
|
|
121850
121946
|
/** @description The family — os, kernel, k3s, litespeed, alt_php, imunify, kernelcare, image, mariadb. */
|
|
@@ -174371,6 +174467,30 @@ export interface operations {
|
|
|
174371
174467
|
503: components["responses"]["ServiceUnavailable"];
|
|
174372
174468
|
};
|
|
174373
174469
|
};
|
|
174470
|
+
listComputeServerSiteChoices: {
|
|
174471
|
+
parameters: {
|
|
174472
|
+
query?: {
|
|
174473
|
+
org_id?: string;
|
|
174474
|
+
};
|
|
174475
|
+
header?: never;
|
|
174476
|
+
path?: never;
|
|
174477
|
+
cookie?: never;
|
|
174478
|
+
};
|
|
174479
|
+
requestBody?: never;
|
|
174480
|
+
responses: {
|
|
174481
|
+
/** @description The servers a website can be deployed onto. */
|
|
174482
|
+
200: {
|
|
174483
|
+
headers: {
|
|
174484
|
+
[name: string]: unknown;
|
|
174485
|
+
};
|
|
174486
|
+
content: {
|
|
174487
|
+
"application/json": components["schemas"]["ComputeServerSiteChoices"];
|
|
174488
|
+
};
|
|
174489
|
+
};
|
|
174490
|
+
401: components["responses"]["Unauthorized"];
|
|
174491
|
+
403: components["responses"]["Forbidden"];
|
|
174492
|
+
};
|
|
174493
|
+
};
|
|
174374
174494
|
listComputeServers: {
|
|
174375
174495
|
parameters: {
|
|
174376
174496
|
query?: {
|
|
@@ -176184,6 +176304,63 @@ export interface operations {
|
|
|
176184
176304
|
503: components["responses"]["ServiceUnavailable"];
|
|
176185
176305
|
};
|
|
176186
176306
|
};
|
|
176307
|
+
listComputeServerSites: {
|
|
176308
|
+
parameters: {
|
|
176309
|
+
query?: never;
|
|
176310
|
+
header?: never;
|
|
176311
|
+
path: {
|
|
176312
|
+
/** @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. */
|
|
176313
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
176314
|
+
};
|
|
176315
|
+
cookie?: never;
|
|
176316
|
+
};
|
|
176317
|
+
requestBody?: never;
|
|
176318
|
+
responses: {
|
|
176319
|
+
/** @description The server's sites and its live capacity verdict. */
|
|
176320
|
+
200: {
|
|
176321
|
+
headers: {
|
|
176322
|
+
[name: string]: unknown;
|
|
176323
|
+
};
|
|
176324
|
+
content: {
|
|
176325
|
+
"application/json": components["schemas"]["ComputeServerSites"];
|
|
176326
|
+
};
|
|
176327
|
+
};
|
|
176328
|
+
401: components["responses"]["Unauthorized"];
|
|
176329
|
+
403: components["responses"]["Forbidden"];
|
|
176330
|
+
404: components["responses"]["NotFound"];
|
|
176331
|
+
};
|
|
176332
|
+
};
|
|
176333
|
+
deployComputeServerSite: {
|
|
176334
|
+
parameters: {
|
|
176335
|
+
query?: never;
|
|
176336
|
+
header?: never;
|
|
176337
|
+
path: {
|
|
176338
|
+
/** @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. */
|
|
176339
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
176340
|
+
};
|
|
176341
|
+
cookie?: never;
|
|
176342
|
+
};
|
|
176343
|
+
requestBody: {
|
|
176344
|
+
content: {
|
|
176345
|
+
"application/json": components["schemas"]["ComputeServerSiteDeployRequest"];
|
|
176346
|
+
};
|
|
176347
|
+
};
|
|
176348
|
+
responses: {
|
|
176349
|
+
/** @description The site, created and placed on this server. */
|
|
176350
|
+
201: {
|
|
176351
|
+
headers: {
|
|
176352
|
+
[name: string]: unknown;
|
|
176353
|
+
};
|
|
176354
|
+
content: {
|
|
176355
|
+
"application/json": components["schemas"]["ComputeServerSite"];
|
|
176356
|
+
};
|
|
176357
|
+
};
|
|
176358
|
+
401: components["responses"]["Unauthorized"];
|
|
176359
|
+
403: components["responses"]["Forbidden"];
|
|
176360
|
+
404: components["responses"]["NotFound"];
|
|
176361
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
176362
|
+
};
|
|
176363
|
+
};
|
|
176187
176364
|
listComputeServerSnapshots: {
|
|
176188
176365
|
parameters: {
|
|
176189
176366
|
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.1969",
|
|
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>",
|