@zinn-digital/sdk 0.1.1732 → 0.1.1735
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 +515 -4
- package/package.json +1 -1
|
@@ -3836,6 +3836,49 @@ export interface paths {
|
|
|
3836
3836
|
patch?: never;
|
|
3837
3837
|
trace?: never;
|
|
3838
3838
|
};
|
|
3839
|
+
"/v1/admin/compute/managed-care": {
|
|
3840
|
+
parameters: {
|
|
3841
|
+
query?: never;
|
|
3842
|
+
header?: never;
|
|
3843
|
+
path?: never;
|
|
3844
|
+
cookie?: never;
|
|
3845
|
+
};
|
|
3846
|
+
/**
|
|
3847
|
+
* The managed-care roster — who must be patched, and why.
|
|
3848
|
+
* @description SERVERCARE-r2 (docs/1321). Every machine holding the care add-on (`slot=care`), with its mode (`zinn_managed` or `zinn_managed_paused`), watch state and the last report. `summary` counts the whole estate (not the page): the watch states plus `cared` and `paused`. `?state=` filters by watch state; anything else is `422 refusal.compute.unknownCareWatchState`. Requires staff `customer.view`.
|
|
3849
|
+
*/
|
|
3850
|
+
get: operations["listAdminManagedCare"];
|
|
3851
|
+
put?: never;
|
|
3852
|
+
post?: never;
|
|
3853
|
+
delete?: never;
|
|
3854
|
+
options?: never;
|
|
3855
|
+
head?: never;
|
|
3856
|
+
patch?: never;
|
|
3857
|
+
trace?: never;
|
|
3858
|
+
};
|
|
3859
|
+
"/v1/admin/compute/managed-care/{serverId}/patch-runs": {
|
|
3860
|
+
parameters: {
|
|
3861
|
+
query?: never;
|
|
3862
|
+
header?: never;
|
|
3863
|
+
path: {
|
|
3864
|
+
/** @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. */
|
|
3865
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
3866
|
+
};
|
|
3867
|
+
cookie?: never;
|
|
3868
|
+
};
|
|
3869
|
+
/**
|
|
3870
|
+
* What was patched on one cared machine, and when.
|
|
3871
|
+
* @description SERVERCARE-r2 (docs/1321). Newest first. Requires staff `customer.view`.
|
|
3872
|
+
*/
|
|
3873
|
+
get: operations["listAdminManagedCarePatchRuns"];
|
|
3874
|
+
put?: never;
|
|
3875
|
+
post?: never;
|
|
3876
|
+
delete?: never;
|
|
3877
|
+
options?: never;
|
|
3878
|
+
head?: never;
|
|
3879
|
+
patch?: never;
|
|
3880
|
+
trace?: never;
|
|
3881
|
+
};
|
|
3839
3882
|
"/v1/admin/compute/overage-ladders": {
|
|
3840
3883
|
parameters: {
|
|
3841
3884
|
query?: never;
|
|
@@ -29383,6 +29426,26 @@ export interface paths {
|
|
|
29383
29426
|
patch?: never;
|
|
29384
29427
|
trace?: never;
|
|
29385
29428
|
};
|
|
29429
|
+
"/v1/compute/care/report": {
|
|
29430
|
+
parameters: {
|
|
29431
|
+
query?: never;
|
|
29432
|
+
header?: never;
|
|
29433
|
+
path?: never;
|
|
29434
|
+
cookie?: never;
|
|
29435
|
+
};
|
|
29436
|
+
get?: never;
|
|
29437
|
+
put?: never;
|
|
29438
|
+
/**
|
|
29439
|
+
* A cared machine's own patch report (machine-to-engine).
|
|
29440
|
+
* @description SERVERCARE-r2 (docs/1321). Called by the care agent's timer on the customer's machine, never by a person. The `Authorization: Bearer <token>` header carries the per-machine token minted at connect (stored as a digest only); there is no session. `401` for an unknown token, `410 CARE_ENDED` once care is removed (the agent uninstalls itself). Throttled `care-report` 60/min.
|
|
29441
|
+
*/
|
|
29442
|
+
post: operations["reportManagedCare"];
|
|
29443
|
+
delete?: never;
|
|
29444
|
+
options?: never;
|
|
29445
|
+
head?: never;
|
|
29446
|
+
patch?: never;
|
|
29447
|
+
trace?: never;
|
|
29448
|
+
};
|
|
29386
29449
|
"/v1/compute/catalogue": {
|
|
29387
29450
|
parameters: {
|
|
29388
29451
|
query?: never;
|
|
@@ -30250,6 +30313,60 @@ export interface paths {
|
|
|
30250
30313
|
patch?: never;
|
|
30251
30314
|
trace?: never;
|
|
30252
30315
|
};
|
|
30316
|
+
"/v1/compute/servers/{serverId}/managed-care": {
|
|
30317
|
+
parameters: {
|
|
30318
|
+
query?: never;
|
|
30319
|
+
header?: never;
|
|
30320
|
+
path: {
|
|
30321
|
+
/** @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. */
|
|
30322
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
30323
|
+
};
|
|
30324
|
+
cookie?: never;
|
|
30325
|
+
};
|
|
30326
|
+
/**
|
|
30327
|
+
* Who looks after this machine — self-managed or Zinn® Managed — and the care add-on's live price.
|
|
30328
|
+
* @description SERVERCARE-r1 (owner 2026-11-11). `management_mode` is `self_managed` (no care add-on: server work is the customer's, and a request for it is answered with this add-on), `zinn_managed` (we patch, monitor and are on call), or `zinn_managed_paused` (the add-on is held but the account is not in good standing, §2.46 — care pauses and resumes by itself on payment). `offer` is the LIVE `managed` catalogue row in `currency`. Requires `sites.view`.
|
|
30329
|
+
*/
|
|
30330
|
+
get: operations["getComputeServerManagedCare"];
|
|
30331
|
+
put?: never;
|
|
30332
|
+
/**
|
|
30333
|
+
* Add managed care to this machine.
|
|
30334
|
+
* @description Moves the machine's recurring price up by the live `managed` row from the next period and the rest of the current one is charged pro rata; audit-logged `compute.managed_care.add`. Care is its own lane (`slot=care`), so it coexists with a software add-on (CloudLinux, Plesk, …). Requires `sites.view` and `billing.payment.manage`. `422` when the machine already has care or is not on a range we can look after.
|
|
30335
|
+
*/
|
|
30336
|
+
post: operations["addComputeServerManagedCare"];
|
|
30337
|
+
/**
|
|
30338
|
+
* Remove managed care — the machine becomes self-managed.
|
|
30339
|
+
* @description The recurring price falls by the care amount from the next period; the paid period is honoured. Audit-logged `compute.managed_care.remove`. Requires `sites.view` and `billing.payment.manage`.
|
|
30340
|
+
*/
|
|
30341
|
+
delete: operations["removeComputeServerManagedCare"];
|
|
30342
|
+
options?: never;
|
|
30343
|
+
head?: never;
|
|
30344
|
+
patch?: never;
|
|
30345
|
+
trace?: never;
|
|
30346
|
+
};
|
|
30347
|
+
"/v1/compute/servers/{serverId}/managed-care/connect": {
|
|
30348
|
+
parameters: {
|
|
30349
|
+
query?: never;
|
|
30350
|
+
header?: never;
|
|
30351
|
+
path: {
|
|
30352
|
+
/** @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. */
|
|
30353
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
30354
|
+
};
|
|
30355
|
+
cookie?: never;
|
|
30356
|
+
};
|
|
30357
|
+
get?: never;
|
|
30358
|
+
put?: never;
|
|
30359
|
+
/**
|
|
30360
|
+
* Connect a Zinn® Managed machine so we can patch and watch it.
|
|
30361
|
+
* @description SERVERCARE-r2 (docs/1321). Borrows one-time root access, installs the care report agent (a systemd timer that posts `POST /v1/compute/care/report` with a per-machine token) and enables unattended security updates. Runs as a Temporal workflow; answers `202` with the connection as it stands. Audit-logged `compute.managed_care.connect` with NO body (the body is a root credential). Requires `sites.view` and `billing.payment.manage`. `422 refusal.compute.careNotOnThisServer` when the machine is self-managed, `422 refusal.compute.carePausedSettleAccount` when care is paused for an unpaid account, `503` when the workflow service is unreachable.
|
|
30362
|
+
*/
|
|
30363
|
+
post: operations["connectComputeServerManagedCare"];
|
|
30364
|
+
delete?: never;
|
|
30365
|
+
options?: never;
|
|
30366
|
+
head?: never;
|
|
30367
|
+
patch?: never;
|
|
30368
|
+
trace?: never;
|
|
30369
|
+
};
|
|
30253
30370
|
"/v1/compute/servers/{serverId}/metrics": {
|
|
30254
30371
|
parameters: {
|
|
30255
30372
|
query?: never;
|
|
@@ -61915,6 +62032,11 @@ export interface components {
|
|
|
61915
62032
|
} | null;
|
|
61916
62033
|
deploy_target: string;
|
|
61917
62034
|
id: components["schemas"]["Uuid"];
|
|
62035
|
+
/**
|
|
62036
|
+
* @description SERVERCARE-r1: who looks after this machine (`engine.compute.care`). `zinn_managed_paused` = care add-on held while the account is not in good standing (§2.46).
|
|
62037
|
+
* @enum {string}
|
|
62038
|
+
*/
|
|
62039
|
+
management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
61918
62040
|
name: string;
|
|
61919
62041
|
org_id: components["schemas"]["Uuid"];
|
|
61920
62042
|
plan_code: string;
|
|
@@ -63360,6 +63482,29 @@ export interface components {
|
|
|
63360
63482
|
/** @description Total space used across every mailbox on this domain, in MB, as of the last quota reconcile. `0` when nothing has been measured yet. */
|
|
63361
63483
|
used_mb: number;
|
|
63362
63484
|
};
|
|
63485
|
+
AdminManagedCareRow: {
|
|
63486
|
+
/** @enum {string} */
|
|
63487
|
+
connection_state: "not_connected" | "connecting" | "connected" | "failed" | "removed";
|
|
63488
|
+
kernel: string;
|
|
63489
|
+
/** Format: date-time */
|
|
63490
|
+
last_patched_at: string | null;
|
|
63491
|
+
/** Format: date-time */
|
|
63492
|
+
last_report_at: string | null;
|
|
63493
|
+
/** @enum {string} */
|
|
63494
|
+
management_mode: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
63495
|
+
name: string;
|
|
63496
|
+
/** Format: uuid */
|
|
63497
|
+
org_id: string;
|
|
63498
|
+
os_name: string;
|
|
63499
|
+
pending_security: number;
|
|
63500
|
+
pending_updates: number;
|
|
63501
|
+
reason: string;
|
|
63502
|
+
reboot_required: boolean;
|
|
63503
|
+
/** Format: uuid */
|
|
63504
|
+
server_id: string;
|
|
63505
|
+
/** @enum {string} */
|
|
63506
|
+
watch_state: "not_connected" | "stale" | "security_pending" | "reboot_required" | "ok";
|
|
63507
|
+
};
|
|
63363
63508
|
AdminMoneyAmount: {
|
|
63364
63509
|
/** Format: int64 */
|
|
63365
63510
|
amount_minor: number;
|
|
@@ -81023,6 +81168,8 @@ export interface components {
|
|
|
81023
81168
|
* ⛔ Required — `422` at add-to-cart — on any range that publishes images, and meaningless on one that does not. ⛔⛔ Check the image's `architecture` against the chosen size's: ARM and x86 images are separate entries with the **same name**, and a mismatch is refused *after* the customer has paid.
|
|
81024
81169
|
*/
|
|
81025
81170
|
image?: string;
|
|
81171
|
+
/** @description SERVERCARE-r1: order the machine Zinn® Managed (patching, monitoring, on-call) from day one (absent means self-managed). Priced from the live `managed` add-on row and added to the machine's line; refused at add-to-cart when the range or currency cannot take it. Coexists with `add_on`. Refused on a website's own server (`own_vps_site_id`) with `refusal.ownVps.managedCareNotOnMove`, at add-to-cart and again at checkout: that server is already run by us. */
|
|
81172
|
+
managed_care?: boolean;
|
|
81026
81173
|
/** @description What the customer calls the machine. Theirs, shown back verbatim, and never sent to the vendor — on the managed platform a machine's name is the platform's own row id. */
|
|
81027
81174
|
name: string;
|
|
81028
81175
|
/** @description The stack to tune for (PHP, WordPress, Magento, …). */
|
|
@@ -81276,6 +81423,11 @@ export interface components {
|
|
|
81276
81423
|
image: string;
|
|
81277
81424
|
/** @description The account to sign in as (W43-49, `docs/689`). `admin` — key-only, passwordless `sudo`, root login refused — on a Zinn® Cloud machine built under the access model; `root` on one built before it. */
|
|
81278
81425
|
login_user: string;
|
|
81426
|
+
/**
|
|
81427
|
+
* @description SERVERCARE-r1: who looks after this machine (`engine.compute.care`). `zinn_managed_paused` = care add-on held while the account is not in good standing (§2.46).
|
|
81428
|
+
* @enum {string}
|
|
81429
|
+
*/
|
|
81430
|
+
management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
81279
81431
|
/** @description Why the order failed, in a sentence the customer reads. Blank unless `failed`. */
|
|
81280
81432
|
message: string;
|
|
81281
81433
|
/** @description What the customer called it. ⛔ At the provider a machine's name is its row id; confusing the two is a cross-tenant defect, so this is the customer's string and nothing else. */
|
|
@@ -85439,7 +85591,39 @@ export interface components {
|
|
|
85439
85591
|
/** Format: uuid */
|
|
85440
85592
|
id: string;
|
|
85441
85593
|
/** @enum {string} */
|
|
85442
|
-
kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
|
|
85594
|
+
kind: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go" | "managed";
|
|
85595
|
+
/** @description `kind: managed` only (docs/1052 §3.2e): the sending domain at our provider, the DNS records to publish, and its warm-up ramp. `held` = the EU route is waiting for approval; the domain is saved and nothing is sent until it opens. Null for every other kind. */
|
|
85596
|
+
managed: {
|
|
85597
|
+
/** @enum {string} */
|
|
85598
|
+
data_location: "eu" | "global";
|
|
85599
|
+
domain: string;
|
|
85600
|
+
held: boolean;
|
|
85601
|
+
/** @description `auto` (billing country) or `customer` (chosen). */
|
|
85602
|
+
location_source: string;
|
|
85603
|
+
/** @enum {string} */
|
|
85604
|
+
provider: "telnyx" | "ses";
|
|
85605
|
+
ramp: {
|
|
85606
|
+
/** @description Null once the ramp has no ceiling. */
|
|
85607
|
+
cap_today: number | null;
|
|
85608
|
+
day: number;
|
|
85609
|
+
room_today: number | null;
|
|
85610
|
+
sent_today: number;
|
|
85611
|
+
};
|
|
85612
|
+
records: {
|
|
85613
|
+
name: string;
|
|
85614
|
+
/** @description ownership, spf, dkim, dmarc, return_path, or the provider's own label. */
|
|
85615
|
+
purpose: string;
|
|
85616
|
+
required: boolean;
|
|
85617
|
+
/** @enum {string} */
|
|
85618
|
+
type: "TXT" | "CNAME" | "MX";
|
|
85619
|
+
value: string;
|
|
85620
|
+
}[];
|
|
85621
|
+
reputation_band: string;
|
|
85622
|
+
/** @enum {string} */
|
|
85623
|
+
status: "pending" | "verified" | "failed" | "degraded" | "suspended";
|
|
85624
|
+
/** Format: date-time */
|
|
85625
|
+
verified_at: string | null;
|
|
85626
|
+
} | null;
|
|
85443
85627
|
name: string;
|
|
85444
85628
|
port: number;
|
|
85445
85629
|
/** @description The catalogue slug; empty for a connection made before the catalogue. */
|
|
@@ -85465,16 +85649,21 @@ export interface components {
|
|
|
85465
85649
|
/** Format: date-time */
|
|
85466
85650
|
verified_at: string | null;
|
|
85467
85651
|
};
|
|
85468
|
-
/** @description Send `provider` (a `sender-providers` slug) and the fields its catalogue row lists in `fields`; the row decides `kind`, and a mailbox provider's SMTP host, port and TLS come from the row. Without `provider`, `kind` is `pool` (name and from address only) or `smtp` (`host`, `username` and `password` required). A missing or malformed field for the chosen provider is refused by name (`refusal.campaigns.providerField`). Every secret (`password`, `api_key`, `api_secret`, `access_key_id`, `secret_access_key`) goes to the secret store and is never returned; `region`, `domain` and `message_stream` are kept as the connection's `settings`. */
|
|
85652
|
+
/** @description Send `provider` (a `sender-providers` slug) and the fields its catalogue row lists in `fields`; the row decides `kind`, and a mailbox provider's SMTP host, port and TLS come from the row. Without `provider`, `kind` is `pool` (name and from address only) or `smtp` (`host`, `username` and `password` required). A missing or malformed field for the chosen provider is refused by name (`refusal.campaigns.providerField`). Every secret (`password`, `api_key`, `api_secret`, `access_key_id`, `secret_access_key`) goes to the secret store and is never returned; `region`, `domain` and `message_stream` are kept as the connection's `settings`. `kind: managed` (Zinn® managed delivery, docs/1052 §3.2e) needs only `name` and `from_address`: the From domain is created at our sending provider and its records are returned on the sender's `managed` object; `data_location` picks EU (held until the EU route opens) or Global, and defaults to the billing country's. Refused with `refusal.campaigns.managedNotOpen` when the line is not open to the organisation and `refusal.campaigns.managedDataLocation` for any other location. */
|
|
85469
85653
|
EmailMarketingSenderCreate: {
|
|
85470
85654
|
access_key_id?: string;
|
|
85471
85655
|
api_key?: string;
|
|
85472
85656
|
api_secret?: string;
|
|
85657
|
+
/**
|
|
85658
|
+
* @description Managed senders only.
|
|
85659
|
+
* @enum {string}
|
|
85660
|
+
*/
|
|
85661
|
+
data_location?: "eu" | "global";
|
|
85473
85662
|
domain?: string;
|
|
85474
85663
|
from_address: string;
|
|
85475
85664
|
host?: string;
|
|
85476
85665
|
/** @enum {string} */
|
|
85477
|
-
kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go";
|
|
85666
|
+
kind?: "pool" | "smtp" | "ses" | "resend" | "mailgun" | "sendgrid" | "postmark" | "sparkpost" | "brevo" | "mailjet" | "elasticemail" | "smtp2go" | "managed";
|
|
85478
85667
|
message_stream?: string;
|
|
85479
85668
|
name: string;
|
|
85480
85669
|
password?: string;
|
|
@@ -85498,8 +85687,10 @@ export interface components {
|
|
|
85498
85687
|
current: string[];
|
|
85499
85688
|
/** @description The fully qualified record name. */
|
|
85500
85689
|
name: string;
|
|
85690
|
+
/** @description MX records only. */
|
|
85691
|
+
priority?: number;
|
|
85501
85692
|
/** @enum {string} */
|
|
85502
|
-
type: "TXT";
|
|
85693
|
+
type: "TXT" | "CNAME" | "MX";
|
|
85503
85694
|
value: string;
|
|
85504
85695
|
};
|
|
85505
85696
|
EmailMarketingSenderDnsPlan: {
|
|
@@ -85539,6 +85730,21 @@ export interface components {
|
|
|
85539
85730
|
};
|
|
85540
85731
|
EmailMarketingSenderList: {
|
|
85541
85732
|
data: components["schemas"]["EmailMarketingSender"][];
|
|
85733
|
+
/**
|
|
85734
|
+
* @description The location the billing country picks; null when managed delivery is not offered.
|
|
85735
|
+
* @enum {string|null}
|
|
85736
|
+
*/
|
|
85737
|
+
managed_default_location?: "eu" | "global" | null;
|
|
85738
|
+
/** @description Each data location the connect form offers, its provider, and whether its route is held (waiting for approval). */
|
|
85739
|
+
managed_locations?: {
|
|
85740
|
+
held: boolean;
|
|
85741
|
+
/** @enum {string} */
|
|
85742
|
+
location: "eu" | "global";
|
|
85743
|
+
/** @enum {string} */
|
|
85744
|
+
provider: "telnyx" | "ses";
|
|
85745
|
+
}[];
|
|
85746
|
+
/** @description Whether `kind: managed` (Zinn® managed delivery) may be connected now. */
|
|
85747
|
+
managed_offered?: boolean;
|
|
85542
85748
|
/** @description Whether `kind: pool` (Zinn® sending) may be connected. `false` for a white-labelled organisation (a reseller and its clients), which sends through its own server only, because a pool message names our relay in its headers. */
|
|
85543
85749
|
pool_offered?: boolean;
|
|
85544
85750
|
};
|
|
@@ -90568,6 +90774,46 @@ export interface components {
|
|
|
90568
90774
|
* @enum {string}
|
|
90569
90775
|
*/
|
|
90570
90776
|
MalwareStatus: "clean" | "infected" | "scanning";
|
|
90777
|
+
/** @description SERVERCARE-r2 — is the machine connected, what is pending, what was patched when. Never carries installer output or the token. */
|
|
90778
|
+
ManagedCareConnection: {
|
|
90779
|
+
/** Format: date-time */
|
|
90780
|
+
connected_at?: string | null;
|
|
90781
|
+
kernel?: string;
|
|
90782
|
+
/** Format: date-time */
|
|
90783
|
+
last_patched_at?: string | null;
|
|
90784
|
+
/** Format: date-time */
|
|
90785
|
+
last_report_at?: string | null;
|
|
90786
|
+
os_name?: string;
|
|
90787
|
+
patch_runs: components["schemas"]["ManagedCarePatchRun"][];
|
|
90788
|
+
pending_security?: number;
|
|
90789
|
+
pending_updates?: number;
|
|
90790
|
+
/** @description A refusal-style code when `state` is `failed`. */
|
|
90791
|
+
reason?: string;
|
|
90792
|
+
reboot_required?: boolean;
|
|
90793
|
+
/** @enum {string} */
|
|
90794
|
+
state: "not_connected" | "connecting" | "connected" | "failed" | "removed";
|
|
90795
|
+
};
|
|
90796
|
+
ManagedCarePatchRun: {
|
|
90797
|
+
package_count: number;
|
|
90798
|
+
/** @description The packages that run changed */
|
|
90799
|
+
packages: string;
|
|
90800
|
+
/** Format: date-time */
|
|
90801
|
+
patched_at: string;
|
|
90802
|
+
};
|
|
90803
|
+
/** @description SERVERCARE-r1 — a machine's care lane, its mode and the add-on as offered. */
|
|
90804
|
+
ManagedCareState: {
|
|
90805
|
+
care: components["schemas"]["ComputeAddOnAssignment"] | null;
|
|
90806
|
+
connection: components["schemas"]["ManagedCareConnection"];
|
|
90807
|
+
/** @enum {string} */
|
|
90808
|
+
management_mode: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
90809
|
+
offer: {
|
|
90810
|
+
code: string;
|
|
90811
|
+
currency: string;
|
|
90812
|
+
orderable: boolean;
|
|
90813
|
+
/** @description Live price in minor units; null when not sold in this currency. */
|
|
90814
|
+
price_minor: number | null;
|
|
90815
|
+
};
|
|
90816
|
+
};
|
|
90571
90817
|
/** @description One standalone managed database. ⛔ Carries no password — the credential is fetched from `POST /v1/databases/{databaseId}/credentials` and is never a field here. */
|
|
90572
90818
|
ManagedDatabase: {
|
|
90573
90819
|
billing?: components["schemas"]["ManagedDatabaseBilling"];
|
|
@@ -125107,6 +125353,77 @@ export interface operations {
|
|
|
125107
125353
|
429: components["responses"]["TooManyRequests"];
|
|
125108
125354
|
};
|
|
125109
125355
|
};
|
|
125356
|
+
listAdminManagedCare: {
|
|
125357
|
+
parameters: {
|
|
125358
|
+
query?: {
|
|
125359
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
125360
|
+
cursor?: components["parameters"]["Cursor"];
|
|
125361
|
+
/** @description Maximum items to return (page size). */
|
|
125362
|
+
limit?: components["parameters"]["Limit"];
|
|
125363
|
+
state?: "not_connected" | "stale" | "security_pending" | "reboot_required" | "ok";
|
|
125364
|
+
};
|
|
125365
|
+
header?: never;
|
|
125366
|
+
path?: never;
|
|
125367
|
+
cookie?: never;
|
|
125368
|
+
};
|
|
125369
|
+
requestBody?: never;
|
|
125370
|
+
responses: {
|
|
125371
|
+
/** @description One page of the roster and the estate summary. */
|
|
125372
|
+
200: {
|
|
125373
|
+
headers: {
|
|
125374
|
+
[name: string]: unknown;
|
|
125375
|
+
};
|
|
125376
|
+
content: {
|
|
125377
|
+
"application/json": {
|
|
125378
|
+
data: components["schemas"]["AdminManagedCareRow"][];
|
|
125379
|
+
page: components["schemas"]["PageMeta"];
|
|
125380
|
+
/** @description Counts of not_connected, stale, security_pending, reboot_required, ok, cared and paused. */
|
|
125381
|
+
summary: {
|
|
125382
|
+
[key: string]: number;
|
|
125383
|
+
};
|
|
125384
|
+
};
|
|
125385
|
+
};
|
|
125386
|
+
};
|
|
125387
|
+
401: components["responses"]["Unauthorized"];
|
|
125388
|
+
403: components["responses"]["Forbidden"];
|
|
125389
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
125390
|
+
429: components["responses"]["TooManyRequests"];
|
|
125391
|
+
};
|
|
125392
|
+
};
|
|
125393
|
+
listAdminManagedCarePatchRuns: {
|
|
125394
|
+
parameters: {
|
|
125395
|
+
query?: {
|
|
125396
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
125397
|
+
cursor?: components["parameters"]["Cursor"];
|
|
125398
|
+
/** @description Maximum items to return (page size). */
|
|
125399
|
+
limit?: components["parameters"]["Limit"];
|
|
125400
|
+
};
|
|
125401
|
+
header?: never;
|
|
125402
|
+
path: {
|
|
125403
|
+
/** @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. */
|
|
125404
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
125405
|
+
};
|
|
125406
|
+
cookie?: never;
|
|
125407
|
+
};
|
|
125408
|
+
requestBody?: never;
|
|
125409
|
+
responses: {
|
|
125410
|
+
/** @description One page of patch runs. */
|
|
125411
|
+
200: {
|
|
125412
|
+
headers: {
|
|
125413
|
+
[name: string]: unknown;
|
|
125414
|
+
};
|
|
125415
|
+
content: {
|
|
125416
|
+
"application/json": {
|
|
125417
|
+
data: components["schemas"]["ManagedCarePatchRun"][];
|
|
125418
|
+
page: components["schemas"]["PageMeta"];
|
|
125419
|
+
};
|
|
125420
|
+
};
|
|
125421
|
+
};
|
|
125422
|
+
401: components["responses"]["Unauthorized"];
|
|
125423
|
+
403: components["responses"]["Forbidden"];
|
|
125424
|
+
429: components["responses"]["TooManyRequests"];
|
|
125425
|
+
};
|
|
125426
|
+
};
|
|
125110
125427
|
listOverageLadders: {
|
|
125111
125428
|
parameters: {
|
|
125112
125429
|
query?: never;
|
|
@@ -125241,6 +125558,8 @@ export interface operations {
|
|
|
125241
125558
|
deploy_target?: string;
|
|
125242
125559
|
/** @description Maximum items to return (page size). */
|
|
125243
125560
|
limit?: components["parameters"]["Limit"];
|
|
125561
|
+
/** @description SERVERCARE-r1 — the care roster: `zinn_managed` and `zinn_managed_paused` both return machines holding the care add-on (the row's `management_mode` says which), and `self_managed` the rest. Anything else is `422 refusal.compute.unknownManagementMode`. */
|
|
125562
|
+
management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
125244
125563
|
/** @description Narrow to one customer — the usual path in from an abuse report. */
|
|
125245
125564
|
org_id?: components["schemas"]["Uuid"];
|
|
125246
125565
|
/** @description Only suspended machines, only unsuspended, or all. */
|
|
@@ -168372,6 +168691,56 @@ export interface operations {
|
|
|
168372
168691
|
429: components["responses"]["TooManyRequests"];
|
|
168373
168692
|
};
|
|
168374
168693
|
};
|
|
168694
|
+
reportManagedCare: {
|
|
168695
|
+
parameters: {
|
|
168696
|
+
query?: never;
|
|
168697
|
+
header?: never;
|
|
168698
|
+
path?: never;
|
|
168699
|
+
cookie?: never;
|
|
168700
|
+
};
|
|
168701
|
+
requestBody: {
|
|
168702
|
+
content: {
|
|
168703
|
+
"application/json": {
|
|
168704
|
+
kernel?: string;
|
|
168705
|
+
/** @description Unix seconds of the last unattended-upgrade run. */
|
|
168706
|
+
last_patched_at?: number;
|
|
168707
|
+
os?: string;
|
|
168708
|
+
/** @description The packages that run changed, newline-separated. */
|
|
168709
|
+
packages?: string;
|
|
168710
|
+
pending_security?: number;
|
|
168711
|
+
pending_updates?: number;
|
|
168712
|
+
reboot_required?: boolean;
|
|
168713
|
+
};
|
|
168714
|
+
};
|
|
168715
|
+
};
|
|
168716
|
+
responses: {
|
|
168717
|
+
/** @description Recorded; when to report next. */
|
|
168718
|
+
200: {
|
|
168719
|
+
headers: {
|
|
168720
|
+
[name: string]: unknown;
|
|
168721
|
+
};
|
|
168722
|
+
content: {
|
|
168723
|
+
"application/json": {
|
|
168724
|
+
data: {
|
|
168725
|
+
next_report_seconds: number;
|
|
168726
|
+
};
|
|
168727
|
+
};
|
|
168728
|
+
};
|
|
168729
|
+
};
|
|
168730
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
168731
|
+
401: components["responses"]["Unauthorized"];
|
|
168732
|
+
/** @description Care has ended on this machine; the agent removes itself. */
|
|
168733
|
+
410: {
|
|
168734
|
+
headers: {
|
|
168735
|
+
[name: string]: unknown;
|
|
168736
|
+
};
|
|
168737
|
+
content: {
|
|
168738
|
+
"application/json": components["schemas"]["Error"];
|
|
168739
|
+
};
|
|
168740
|
+
};
|
|
168741
|
+
429: components["responses"]["TooManyRequests"];
|
|
168742
|
+
};
|
|
168743
|
+
};
|
|
168375
168744
|
getComputeCatalogue: {
|
|
168376
168745
|
parameters: {
|
|
168377
168746
|
query?: {
|
|
@@ -169856,6 +170225,148 @@ export interface operations {
|
|
|
169856
170225
|
503: components["responses"]["ServiceUnavailable"];
|
|
169857
170226
|
};
|
|
169858
170227
|
};
|
|
170228
|
+
getComputeServerManagedCare: {
|
|
170229
|
+
parameters: {
|
|
170230
|
+
query?: {
|
|
170231
|
+
/** @description ISO currency to price the offer in. Defaults to USD. */
|
|
170232
|
+
currency?: string;
|
|
170233
|
+
};
|
|
170234
|
+
header?: never;
|
|
170235
|
+
path: {
|
|
170236
|
+
/** @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. */
|
|
170237
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170238
|
+
};
|
|
170239
|
+
cookie?: never;
|
|
170240
|
+
};
|
|
170241
|
+
requestBody?: never;
|
|
170242
|
+
responses: {
|
|
170243
|
+
/** @description The machine's care state. */
|
|
170244
|
+
200: {
|
|
170245
|
+
headers: {
|
|
170246
|
+
[name: string]: unknown;
|
|
170247
|
+
};
|
|
170248
|
+
content: {
|
|
170249
|
+
"application/json": {
|
|
170250
|
+
data: components["schemas"]["ManagedCareState"];
|
|
170251
|
+
};
|
|
170252
|
+
};
|
|
170253
|
+
};
|
|
170254
|
+
401: components["responses"]["Unauthorized"];
|
|
170255
|
+
403: components["responses"]["Forbidden"];
|
|
170256
|
+
404: components["responses"]["NotFound"];
|
|
170257
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170258
|
+
429: components["responses"]["TooManyRequests"];
|
|
170259
|
+
};
|
|
170260
|
+
};
|
|
170261
|
+
addComputeServerManagedCare: {
|
|
170262
|
+
parameters: {
|
|
170263
|
+
query?: never;
|
|
170264
|
+
header?: never;
|
|
170265
|
+
path: {
|
|
170266
|
+
/** @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. */
|
|
170267
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170268
|
+
};
|
|
170269
|
+
cookie?: never;
|
|
170270
|
+
};
|
|
170271
|
+
requestBody?: {
|
|
170272
|
+
content: {
|
|
170273
|
+
"application/json": {
|
|
170274
|
+
currency?: string;
|
|
170275
|
+
};
|
|
170276
|
+
};
|
|
170277
|
+
};
|
|
170278
|
+
responses: {
|
|
170279
|
+
/** @description Care added; the new state. */
|
|
170280
|
+
201: {
|
|
170281
|
+
headers: {
|
|
170282
|
+
[name: string]: unknown;
|
|
170283
|
+
};
|
|
170284
|
+
content: {
|
|
170285
|
+
"application/json": {
|
|
170286
|
+
data: components["schemas"]["ManagedCareState"];
|
|
170287
|
+
};
|
|
170288
|
+
};
|
|
170289
|
+
};
|
|
170290
|
+
401: components["responses"]["Unauthorized"];
|
|
170291
|
+
403: components["responses"]["Forbidden"];
|
|
170292
|
+
404: components["responses"]["NotFound"];
|
|
170293
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170294
|
+
429: components["responses"]["TooManyRequests"];
|
|
170295
|
+
};
|
|
170296
|
+
};
|
|
170297
|
+
removeComputeServerManagedCare: {
|
|
170298
|
+
parameters: {
|
|
170299
|
+
query?: never;
|
|
170300
|
+
header?: never;
|
|
170301
|
+
path: {
|
|
170302
|
+
/** @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. */
|
|
170303
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170304
|
+
};
|
|
170305
|
+
cookie?: never;
|
|
170306
|
+
};
|
|
170307
|
+
requestBody?: never;
|
|
170308
|
+
responses: {
|
|
170309
|
+
/** @description Care removed; the new state. */
|
|
170310
|
+
200: {
|
|
170311
|
+
headers: {
|
|
170312
|
+
[name: string]: unknown;
|
|
170313
|
+
};
|
|
170314
|
+
content: {
|
|
170315
|
+
"application/json": {
|
|
170316
|
+
data: components["schemas"]["ManagedCareState"];
|
|
170317
|
+
};
|
|
170318
|
+
};
|
|
170319
|
+
};
|
|
170320
|
+
401: components["responses"]["Unauthorized"];
|
|
170321
|
+
403: components["responses"]["Forbidden"];
|
|
170322
|
+
404: components["responses"]["NotFound"];
|
|
170323
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170324
|
+
429: components["responses"]["TooManyRequests"];
|
|
170325
|
+
};
|
|
170326
|
+
};
|
|
170327
|
+
connectComputeServerManagedCare: {
|
|
170328
|
+
parameters: {
|
|
170329
|
+
query?: never;
|
|
170330
|
+
header?: never;
|
|
170331
|
+
path: {
|
|
170332
|
+
/** @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. */
|
|
170333
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170334
|
+
};
|
|
170335
|
+
cookie?: never;
|
|
170336
|
+
};
|
|
170337
|
+
requestBody: {
|
|
170338
|
+
content: {
|
|
170339
|
+
"application/json": {
|
|
170340
|
+
/** @description ⛔⛔ Write-only. Never echoed, never logged, never audited; stored in Vault and destroyed when the connect run ends. Supply `private_key` **or** `password`. */
|
|
170341
|
+
access: {
|
|
170342
|
+
password?: string;
|
|
170343
|
+
private_key?: string;
|
|
170344
|
+
private_key_passphrase?: string;
|
|
170345
|
+
username?: string;
|
|
170346
|
+
};
|
|
170347
|
+
};
|
|
170348
|
+
};
|
|
170349
|
+
};
|
|
170350
|
+
responses: {
|
|
170351
|
+
/** @description The connect run started; the connection as it stands. */
|
|
170352
|
+
202: {
|
|
170353
|
+
headers: {
|
|
170354
|
+
[name: string]: unknown;
|
|
170355
|
+
};
|
|
170356
|
+
content: {
|
|
170357
|
+
"application/json": {
|
|
170358
|
+
data: components["schemas"]["ManagedCareConnection"];
|
|
170359
|
+
};
|
|
170360
|
+
};
|
|
170361
|
+
};
|
|
170362
|
+
401: components["responses"]["Unauthorized"];
|
|
170363
|
+
403: components["responses"]["Forbidden"];
|
|
170364
|
+
404: components["responses"]["NotFound"];
|
|
170365
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170366
|
+
429: components["responses"]["TooManyRequests"];
|
|
170367
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
170368
|
+
};
|
|
170369
|
+
};
|
|
169859
170370
|
getComputeServerMetricsHistory: {
|
|
169860
170371
|
parameters: {
|
|
169861
170372
|
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.1735",
|
|
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>",
|