@zinn-digital/sdk 0.1.1731 → 0.1.1734
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 +458 -1
- 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;
|
|
@@ -68077,7 +68222,7 @@ export interface components {
|
|
|
68077
68222
|
/** @enum {string|null} */
|
|
68078
68223
|
source: "auto" | "person" | "launch" | null;
|
|
68079
68224
|
};
|
|
68080
|
-
/** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. za-326 r3: a change queued (or approved and waiting) while the network says its ad set is learning carries `learning` (`rule`: an `AdsAuditRun` `learning_held` code, `network`: the network's name; ZA326-FU: `bid_strategy` is the 14-day za-183 freeze, which in an `approve` class queues the change and a person's approval sends it). While it waits it also carries `learning_unread` (re-checks in a row that could not read the learning state) and `learning_since`; all three go when the wait ends (sent, refused, failed, withdrawn) or when the change is queued again and nothing holds it. A withdrawn change carries `withdrawn` (`by`, `at`). A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. za-213 (site-to-ad sync for a site hosted with us, `proposed_by: site-sync`): `auto_action: site_sync` is an ad text edit writing a hosted page's new price (`url`, `old_price_minor`, `new_price_minor`, `currency`, integer minor units); `auto_action: site_sync_pause` pauses the ads of a page whose offer ended (`url`). */
|
|
68225
|
+
/** @description One change to an ad account. `summary` holds figures (service, operations, resources, values), never sentences. za-326 r3: a change queued (or approved and waiting) while the network says its ad set is learning carries `learning` (`rule`: an `AdsAuditRun` `learning_held` code, `network`: the network's name; ZA326-FU: `bid_strategy` is the 14-day za-183 freeze, which in an `approve` class queues the change and a person's approval sends it). While it waits it also carries `learning_unread` (re-checks in a row that could not read the learning state) and `learning_since`; all three go when the wait ends (sent, refused, failed, withdrawn) or when the change is queued again and nothing holds it. A withdrawn change carries `withdrawn` (`by`, `at`). STALESUGG: a waiting change (or a proposal) whose campaign was removed, deleted or has ended, or whose ad group was removed, on any network, is withdrawn by Zinn® Ads itself — `rejected`, `decided_by` `zinn-ads`, `withdrawn` (`by` `zinn-ads`, `at`, `reason` `campaignEnded` · `adGroupRemoved`, and the `campaign` or `ad_group` id); it is never sent and never blocks the same item elsewhere. A waiting change whose campaign could not be read carries `stale` (`code` `targetUnread`, `at`) until it reads. A Microsoft website exclusion re-added by the hourly repair (PG2FIX) carries `reason: reapplied_after_concurrent_edit`. An automatic raise (AUTO3) carries `auto_action` (`cap_raise` za-141 · `budget_raise` za-144), `campaign`, `campaign_id`, `from_micros`, `to_micros`, `cpa_micros`, `account_cpa_micros` and `lost_rank` or `lost_budget`, plus za-157's quality gate figures `quality_signal`, `quality_rate` and `quality_account_rate`. A conflicting negative keyword (za-182, `auto_action: negative_conflict`) carries `decision` (`pause_keywords` · `narrow_negative` · `remove_negative` · `move_to_campaigns`, with `keep_campaigns` `id`/`name`), `reasons` (`negative_newer` · `owner_kept` · `shared_list` · `waste_negative` · `keyword_converts` · `keyword_newer` · `keyword_wins` · `list_reaches_sibling`), `negative` (`text`, `match`, `level` campaign · ad_group · list · account, `where`, `resource`), `blocked` (up to 20 keywords: `text`, `match`, `campaign`, `ad_group`, `resource`) and `blocked_count`. A write that would ADD a negative blocking an enabled keyword is refused before it is sent or queued, whoever asked. A new keyword the audit adds (za-81, `auto_action: new_keyword`) carries `keyword`, `campaign`, `campaign_id`, `ad_group`, `clicks`, `conversions`, `est_daily_micros` and `currency`; when approved it is checked for collisions once more as it is sent, and refused (`error` starting `collides:`) when it would take searches from another ad group. A conversion-goal change (za-78, `auto_action: primary_goal`) carries `goal_action` (the conversion action's name), `goal_category`, `goal_primary` (the new flag), `goal_rule` (`outcome_secondary` · `soft_primary`) and `goal_recorded` (its 30-day count); it is approve-first always, and refused (`error` `goalStarves`, figures in `goal_check`: `recording_now`, `recording_after`) when it would leave no primary conversion action that records — whoever approved it; `error` `goalUnreadable` (no `goal_check`) when the account's conversion actions could not be read to check it. za-70: every change on a customer's account that adds a negative keyword or a keyword is replayed by the collision simulator first, and the replay is kept in `collision`: `checked_at`, `unread` (the account could not be read — a collision, never "clean"), `changes` (each `kind` negative · keyword, `text`, `match`, `ad_group`), `collisions` (each `kind` keyword · converted · main · growing · competes · takes, `text`, `campaign`, `ad_group`) with `collisions_total`, `hits` (up to 10 searches of the last 30 days with a click or a conversion it would block or compete for: `term`, `campaign`, `ad_group`, `clicks`, `conversions_milli`) with `hits_total`, `clicks` and `conversions_milli` (totals). A colliding change is never sent by itself: with the connection's `collision_mode` `approve` it waits in the queue, and a person's approval sends it only when a fresh replay finds no collision they were not shown; otherwise, and with `refuse`, it is refused (`error` `collides`). When the account could not be read for the replay (`collision.unread`) an approval, or `refuse`, refuses it `collisionUnread` — nothing established, asked again once the account reads. za-213 (site-to-ad sync for a site hosted with us, `proposed_by: site-sync`): `auto_action: site_sync` is an ad text edit writing a hosted page's new price (`url`, `old_price_minor`, `new_price_minor`, `currency`, integer minor units); `auto_action: site_sync_pause` pauses the ads of a page whose offer ended (`url`). */
|
|
68081
68226
|
AdsChange: {
|
|
68082
68227
|
action_class: string;
|
|
68083
68228
|
/** Format: date-time */
|
|
@@ -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. */
|
|
@@ -90568,6 +90720,46 @@ export interface components {
|
|
|
90568
90720
|
* @enum {string}
|
|
90569
90721
|
*/
|
|
90570
90722
|
MalwareStatus: "clean" | "infected" | "scanning";
|
|
90723
|
+
/** @description SERVERCARE-r2 — is the machine connected, what is pending, what was patched when. Never carries installer output or the token. */
|
|
90724
|
+
ManagedCareConnection: {
|
|
90725
|
+
/** Format: date-time */
|
|
90726
|
+
connected_at?: string | null;
|
|
90727
|
+
kernel?: string;
|
|
90728
|
+
/** Format: date-time */
|
|
90729
|
+
last_patched_at?: string | null;
|
|
90730
|
+
/** Format: date-time */
|
|
90731
|
+
last_report_at?: string | null;
|
|
90732
|
+
os_name?: string;
|
|
90733
|
+
patch_runs: components["schemas"]["ManagedCarePatchRun"][];
|
|
90734
|
+
pending_security?: number;
|
|
90735
|
+
pending_updates?: number;
|
|
90736
|
+
/** @description A refusal-style code when `state` is `failed`. */
|
|
90737
|
+
reason?: string;
|
|
90738
|
+
reboot_required?: boolean;
|
|
90739
|
+
/** @enum {string} */
|
|
90740
|
+
state: "not_connected" | "connecting" | "connected" | "failed" | "removed";
|
|
90741
|
+
};
|
|
90742
|
+
ManagedCarePatchRun: {
|
|
90743
|
+
package_count: number;
|
|
90744
|
+
/** @description The packages that run changed */
|
|
90745
|
+
packages: string;
|
|
90746
|
+
/** Format: date-time */
|
|
90747
|
+
patched_at: string;
|
|
90748
|
+
};
|
|
90749
|
+
/** @description SERVERCARE-r1 — a machine's care lane, its mode and the add-on as offered. */
|
|
90750
|
+
ManagedCareState: {
|
|
90751
|
+
care: components["schemas"]["ComputeAddOnAssignment"] | null;
|
|
90752
|
+
connection: components["schemas"]["ManagedCareConnection"];
|
|
90753
|
+
/** @enum {string} */
|
|
90754
|
+
management_mode: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
90755
|
+
offer: {
|
|
90756
|
+
code: string;
|
|
90757
|
+
currency: string;
|
|
90758
|
+
orderable: boolean;
|
|
90759
|
+
/** @description Live price in minor units; null when not sold in this currency. */
|
|
90760
|
+
price_minor: number | null;
|
|
90761
|
+
};
|
|
90762
|
+
};
|
|
90571
90763
|
/** @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
90764
|
ManagedDatabase: {
|
|
90573
90765
|
billing?: components["schemas"]["ManagedDatabaseBilling"];
|
|
@@ -125107,6 +125299,77 @@ export interface operations {
|
|
|
125107
125299
|
429: components["responses"]["TooManyRequests"];
|
|
125108
125300
|
};
|
|
125109
125301
|
};
|
|
125302
|
+
listAdminManagedCare: {
|
|
125303
|
+
parameters: {
|
|
125304
|
+
query?: {
|
|
125305
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
125306
|
+
cursor?: components["parameters"]["Cursor"];
|
|
125307
|
+
/** @description Maximum items to return (page size). */
|
|
125308
|
+
limit?: components["parameters"]["Limit"];
|
|
125309
|
+
state?: "not_connected" | "stale" | "security_pending" | "reboot_required" | "ok";
|
|
125310
|
+
};
|
|
125311
|
+
header?: never;
|
|
125312
|
+
path?: never;
|
|
125313
|
+
cookie?: never;
|
|
125314
|
+
};
|
|
125315
|
+
requestBody?: never;
|
|
125316
|
+
responses: {
|
|
125317
|
+
/** @description One page of the roster and the estate summary. */
|
|
125318
|
+
200: {
|
|
125319
|
+
headers: {
|
|
125320
|
+
[name: string]: unknown;
|
|
125321
|
+
};
|
|
125322
|
+
content: {
|
|
125323
|
+
"application/json": {
|
|
125324
|
+
data: components["schemas"]["AdminManagedCareRow"][];
|
|
125325
|
+
page: components["schemas"]["PageMeta"];
|
|
125326
|
+
/** @description Counts of not_connected, stale, security_pending, reboot_required, ok, cared and paused. */
|
|
125327
|
+
summary: {
|
|
125328
|
+
[key: string]: number;
|
|
125329
|
+
};
|
|
125330
|
+
};
|
|
125331
|
+
};
|
|
125332
|
+
};
|
|
125333
|
+
401: components["responses"]["Unauthorized"];
|
|
125334
|
+
403: components["responses"]["Forbidden"];
|
|
125335
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
125336
|
+
429: components["responses"]["TooManyRequests"];
|
|
125337
|
+
};
|
|
125338
|
+
};
|
|
125339
|
+
listAdminManagedCarePatchRuns: {
|
|
125340
|
+
parameters: {
|
|
125341
|
+
query?: {
|
|
125342
|
+
/** @description Opaque cursor from a previous page's `page.next_cursor`. */
|
|
125343
|
+
cursor?: components["parameters"]["Cursor"];
|
|
125344
|
+
/** @description Maximum items to return (page size). */
|
|
125345
|
+
limit?: components["parameters"]["Limit"];
|
|
125346
|
+
};
|
|
125347
|
+
header?: never;
|
|
125348
|
+
path: {
|
|
125349
|
+
/** @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. */
|
|
125350
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
125351
|
+
};
|
|
125352
|
+
cookie?: never;
|
|
125353
|
+
};
|
|
125354
|
+
requestBody?: never;
|
|
125355
|
+
responses: {
|
|
125356
|
+
/** @description One page of patch runs. */
|
|
125357
|
+
200: {
|
|
125358
|
+
headers: {
|
|
125359
|
+
[name: string]: unknown;
|
|
125360
|
+
};
|
|
125361
|
+
content: {
|
|
125362
|
+
"application/json": {
|
|
125363
|
+
data: components["schemas"]["ManagedCarePatchRun"][];
|
|
125364
|
+
page: components["schemas"]["PageMeta"];
|
|
125365
|
+
};
|
|
125366
|
+
};
|
|
125367
|
+
};
|
|
125368
|
+
401: components["responses"]["Unauthorized"];
|
|
125369
|
+
403: components["responses"]["Forbidden"];
|
|
125370
|
+
429: components["responses"]["TooManyRequests"];
|
|
125371
|
+
};
|
|
125372
|
+
};
|
|
125110
125373
|
listOverageLadders: {
|
|
125111
125374
|
parameters: {
|
|
125112
125375
|
query?: never;
|
|
@@ -125241,6 +125504,8 @@ export interface operations {
|
|
|
125241
125504
|
deploy_target?: string;
|
|
125242
125505
|
/** @description Maximum items to return (page size). */
|
|
125243
125506
|
limit?: components["parameters"]["Limit"];
|
|
125507
|
+
/** @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`. */
|
|
125508
|
+
management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused";
|
|
125244
125509
|
/** @description Narrow to one customer — the usual path in from an abuse report. */
|
|
125245
125510
|
org_id?: components["schemas"]["Uuid"];
|
|
125246
125511
|
/** @description Only suspended machines, only unsuspended, or all. */
|
|
@@ -168372,6 +168637,56 @@ export interface operations {
|
|
|
168372
168637
|
429: components["responses"]["TooManyRequests"];
|
|
168373
168638
|
};
|
|
168374
168639
|
};
|
|
168640
|
+
reportManagedCare: {
|
|
168641
|
+
parameters: {
|
|
168642
|
+
query?: never;
|
|
168643
|
+
header?: never;
|
|
168644
|
+
path?: never;
|
|
168645
|
+
cookie?: never;
|
|
168646
|
+
};
|
|
168647
|
+
requestBody: {
|
|
168648
|
+
content: {
|
|
168649
|
+
"application/json": {
|
|
168650
|
+
kernel?: string;
|
|
168651
|
+
/** @description Unix seconds of the last unattended-upgrade run. */
|
|
168652
|
+
last_patched_at?: number;
|
|
168653
|
+
os?: string;
|
|
168654
|
+
/** @description The packages that run changed, newline-separated. */
|
|
168655
|
+
packages?: string;
|
|
168656
|
+
pending_security?: number;
|
|
168657
|
+
pending_updates?: number;
|
|
168658
|
+
reboot_required?: boolean;
|
|
168659
|
+
};
|
|
168660
|
+
};
|
|
168661
|
+
};
|
|
168662
|
+
responses: {
|
|
168663
|
+
/** @description Recorded; when to report next. */
|
|
168664
|
+
200: {
|
|
168665
|
+
headers: {
|
|
168666
|
+
[name: string]: unknown;
|
|
168667
|
+
};
|
|
168668
|
+
content: {
|
|
168669
|
+
"application/json": {
|
|
168670
|
+
data: {
|
|
168671
|
+
next_report_seconds: number;
|
|
168672
|
+
};
|
|
168673
|
+
};
|
|
168674
|
+
};
|
|
168675
|
+
};
|
|
168676
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
168677
|
+
401: components["responses"]["Unauthorized"];
|
|
168678
|
+
/** @description Care has ended on this machine; the agent removes itself. */
|
|
168679
|
+
410: {
|
|
168680
|
+
headers: {
|
|
168681
|
+
[name: string]: unknown;
|
|
168682
|
+
};
|
|
168683
|
+
content: {
|
|
168684
|
+
"application/json": components["schemas"]["Error"];
|
|
168685
|
+
};
|
|
168686
|
+
};
|
|
168687
|
+
429: components["responses"]["TooManyRequests"];
|
|
168688
|
+
};
|
|
168689
|
+
};
|
|
168375
168690
|
getComputeCatalogue: {
|
|
168376
168691
|
parameters: {
|
|
168377
168692
|
query?: {
|
|
@@ -169856,6 +170171,148 @@ export interface operations {
|
|
|
169856
170171
|
503: components["responses"]["ServiceUnavailable"];
|
|
169857
170172
|
};
|
|
169858
170173
|
};
|
|
170174
|
+
getComputeServerManagedCare: {
|
|
170175
|
+
parameters: {
|
|
170176
|
+
query?: {
|
|
170177
|
+
/** @description ISO currency to price the offer in. Defaults to USD. */
|
|
170178
|
+
currency?: string;
|
|
170179
|
+
};
|
|
170180
|
+
header?: never;
|
|
170181
|
+
path: {
|
|
170182
|
+
/** @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. */
|
|
170183
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170184
|
+
};
|
|
170185
|
+
cookie?: never;
|
|
170186
|
+
};
|
|
170187
|
+
requestBody?: never;
|
|
170188
|
+
responses: {
|
|
170189
|
+
/** @description The machine's care state. */
|
|
170190
|
+
200: {
|
|
170191
|
+
headers: {
|
|
170192
|
+
[name: string]: unknown;
|
|
170193
|
+
};
|
|
170194
|
+
content: {
|
|
170195
|
+
"application/json": {
|
|
170196
|
+
data: components["schemas"]["ManagedCareState"];
|
|
170197
|
+
};
|
|
170198
|
+
};
|
|
170199
|
+
};
|
|
170200
|
+
401: components["responses"]["Unauthorized"];
|
|
170201
|
+
403: components["responses"]["Forbidden"];
|
|
170202
|
+
404: components["responses"]["NotFound"];
|
|
170203
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170204
|
+
429: components["responses"]["TooManyRequests"];
|
|
170205
|
+
};
|
|
170206
|
+
};
|
|
170207
|
+
addComputeServerManagedCare: {
|
|
170208
|
+
parameters: {
|
|
170209
|
+
query?: never;
|
|
170210
|
+
header?: never;
|
|
170211
|
+
path: {
|
|
170212
|
+
/** @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. */
|
|
170213
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170214
|
+
};
|
|
170215
|
+
cookie?: never;
|
|
170216
|
+
};
|
|
170217
|
+
requestBody?: {
|
|
170218
|
+
content: {
|
|
170219
|
+
"application/json": {
|
|
170220
|
+
currency?: string;
|
|
170221
|
+
};
|
|
170222
|
+
};
|
|
170223
|
+
};
|
|
170224
|
+
responses: {
|
|
170225
|
+
/** @description Care added; the new state. */
|
|
170226
|
+
201: {
|
|
170227
|
+
headers: {
|
|
170228
|
+
[name: string]: unknown;
|
|
170229
|
+
};
|
|
170230
|
+
content: {
|
|
170231
|
+
"application/json": {
|
|
170232
|
+
data: components["schemas"]["ManagedCareState"];
|
|
170233
|
+
};
|
|
170234
|
+
};
|
|
170235
|
+
};
|
|
170236
|
+
401: components["responses"]["Unauthorized"];
|
|
170237
|
+
403: components["responses"]["Forbidden"];
|
|
170238
|
+
404: components["responses"]["NotFound"];
|
|
170239
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170240
|
+
429: components["responses"]["TooManyRequests"];
|
|
170241
|
+
};
|
|
170242
|
+
};
|
|
170243
|
+
removeComputeServerManagedCare: {
|
|
170244
|
+
parameters: {
|
|
170245
|
+
query?: never;
|
|
170246
|
+
header?: never;
|
|
170247
|
+
path: {
|
|
170248
|
+
/** @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. */
|
|
170249
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170250
|
+
};
|
|
170251
|
+
cookie?: never;
|
|
170252
|
+
};
|
|
170253
|
+
requestBody?: never;
|
|
170254
|
+
responses: {
|
|
170255
|
+
/** @description Care removed; the new state. */
|
|
170256
|
+
200: {
|
|
170257
|
+
headers: {
|
|
170258
|
+
[name: string]: unknown;
|
|
170259
|
+
};
|
|
170260
|
+
content: {
|
|
170261
|
+
"application/json": {
|
|
170262
|
+
data: components["schemas"]["ManagedCareState"];
|
|
170263
|
+
};
|
|
170264
|
+
};
|
|
170265
|
+
};
|
|
170266
|
+
401: components["responses"]["Unauthorized"];
|
|
170267
|
+
403: components["responses"]["Forbidden"];
|
|
170268
|
+
404: components["responses"]["NotFound"];
|
|
170269
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170270
|
+
429: components["responses"]["TooManyRequests"];
|
|
170271
|
+
};
|
|
170272
|
+
};
|
|
170273
|
+
connectComputeServerManagedCare: {
|
|
170274
|
+
parameters: {
|
|
170275
|
+
query?: never;
|
|
170276
|
+
header?: never;
|
|
170277
|
+
path: {
|
|
170278
|
+
/** @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. */
|
|
170279
|
+
serverId: components["parameters"]["ComputeServerId"];
|
|
170280
|
+
};
|
|
170281
|
+
cookie?: never;
|
|
170282
|
+
};
|
|
170283
|
+
requestBody: {
|
|
170284
|
+
content: {
|
|
170285
|
+
"application/json": {
|
|
170286
|
+
/** @description ⛔⛔ Write-only. Never echoed, never logged, never audited; stored in Vault and destroyed when the connect run ends. Supply `private_key` **or** `password`. */
|
|
170287
|
+
access: {
|
|
170288
|
+
password?: string;
|
|
170289
|
+
private_key?: string;
|
|
170290
|
+
private_key_passphrase?: string;
|
|
170291
|
+
username?: string;
|
|
170292
|
+
};
|
|
170293
|
+
};
|
|
170294
|
+
};
|
|
170295
|
+
};
|
|
170296
|
+
responses: {
|
|
170297
|
+
/** @description The connect run started; the connection as it stands. */
|
|
170298
|
+
202: {
|
|
170299
|
+
headers: {
|
|
170300
|
+
[name: string]: unknown;
|
|
170301
|
+
};
|
|
170302
|
+
content: {
|
|
170303
|
+
"application/json": {
|
|
170304
|
+
data: components["schemas"]["ManagedCareConnection"];
|
|
170305
|
+
};
|
|
170306
|
+
};
|
|
170307
|
+
};
|
|
170308
|
+
401: components["responses"]["Unauthorized"];
|
|
170309
|
+
403: components["responses"]["Forbidden"];
|
|
170310
|
+
404: components["responses"]["NotFound"];
|
|
170311
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
170312
|
+
429: components["responses"]["TooManyRequests"];
|
|
170313
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
170314
|
+
};
|
|
170315
|
+
};
|
|
169859
170316
|
getComputeServerMetricsHistory: {
|
|
169860
170317
|
parameters: {
|
|
169861
170318
|
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.1734",
|
|
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>",
|