@zinn-digital/sdk 0.1.2112 → 0.1.2114

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.
@@ -32453,6 +32453,31 @@ export interface paths {
32453
32453
  patch?: never;
32454
32454
  trace?: never;
32455
32455
  };
32456
+ "/v1/compute/servers/{serverId}/restore-test": {
32457
+ parameters: {
32458
+ query?: never;
32459
+ header?: never;
32460
+ path: {
32461
+ /** @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. */
32462
+ serverId: components["parameters"]["ComputeServerId"];
32463
+ };
32464
+ cookie?: never;
32465
+ };
32466
+ /**
32467
+ * Read the latest weekly restore test of a server's backups.
32468
+ * @description Once a week the platform restores one of the server's newest site backups into a throwaway scratch directory on the server, checks the files and the database dump are really there, and deletes the scratch copy. Nothing live is touched. This read returns the latest result so a customer can see that their backups restore, not only that they were taken.
32469
+ *
32470
+ * `latest` is `null` until the first test has run (a new server, or one with no site backup yet). `outcome` is `passed`, `failed` or `skipped`; `reason` is a short machine word for a failure or skip (for example `no_backup`, `no_files`, `no_database`) that a client maps to its own sentence. Read from our rows only, never from the provider. A server the caller cannot see is a 404, the same as one that does not exist. Requires `sites.view`.
32471
+ */
32472
+ get: operations["getComputeServerRestoreTest"];
32473
+ put?: never;
32474
+ post?: never;
32475
+ delete?: never;
32476
+ options?: never;
32477
+ head?: never;
32478
+ patch?: never;
32479
+ trace?: never;
32480
+ };
32456
32481
  "/v1/compute/servers/{serverId}/reverse-dns": {
32457
32482
  parameters: {
32458
32483
  query?: never;
@@ -86201,13 +86226,13 @@ export interface components {
86201
86226
  * @enum {string}
86202
86227
  */
86203
86228
  management_mode?: "self_managed" | "zinn_managed" | "zinn_managed_paused" | "zinn_watch" | "zinn_watch_paused";
86204
- /** @description Why the order failed, as an English sentence for staff, support and SDK readers. Blank unless `failed`. A client renders `message_code` instead when it is set. */
86229
+ /** @description Why the order failed, as an English sentence for staff, support and SDK readers. Blank unless `failed`, or an `active` machine whose first-start set-up failed (`first_boot_error`). A client renders `message_code` instead when it is set. */
86205
86230
  message: string;
86206
86231
  /**
86207
- * @description NIGHTFIX1114 FAILEDSRV: the half of `message` a client renders, as a stable code it translates (the platform ships in 58 languages; `message` is English). `build_failed_ticket` (we opened support ticket `message_params.ticket_id`), `build_failed_no_ticket` (the ticket could not be opened), `build_retry_held` (a retried rebuild failed again and we are on it), `build_never_built_not_charged` (DAY-0364: the supplier never built the machine and the customer is not charged for it). Null when `message` is blank or not one of these; the client then shows `message`.
86232
+ * @description NIGHTFIX1114 FAILEDSRV: the half of `message` a client renders, as a stable code it translates (the platform ships in 58 languages; `message` is English). `build_failed_ticket` (we opened support ticket `message_params.ticket_id`), `build_failed_no_ticket` (the ticket could not be opened), `build_retry_held` (a retried rebuild failed again and we are on it), `build_never_built_not_charged` (DAY-0364: the supplier never built the machine and the customer is not charged for it), `first_boot_error` (P3-045: on an `active` machine, its first-start set-up (cloud-init) reported an error; the machine runs and dev was alerted). Null when `message` is blank or not one of these; the client then shows `message`.
86208
86233
  * @enum {string|null}
86209
86234
  */
86210
- message_code?: "build_retry_held" | "build_failed_no_ticket" | "build_failed_ticket" | "build_never_built_not_charged" | null;
86235
+ message_code?: "build_retry_held" | "build_failed_no_ticket" | "build_failed_ticket" | "build_never_built_not_charged" | "first_boot_error" | null;
86211
86236
  /** @description The values `message_code` interpolates; `ticket_id` for `build_failed_ticket`, otherwise empty. */
86212
86237
  message_params?: {
86213
86238
  [key: string]: string;
@@ -86585,6 +86610,24 @@ export interface components {
86585
86610
  /** @description The subscription whose switch `auto_renew` reports, to send the customer to `POST /v1/subscriptions/{subscriptionId}/auto-renew`. `""` when the machine was provisioned outside a paid order (staff, comp, migration): there is then no switch to offer, and a client MUST say so rather than render a dead toggle. */
86586
86611
  subscription_id: string;
86587
86612
  };
86613
+ ComputeServerRestoreTest: {
86614
+ /** @description How often the test runs, in days. */
86615
+ cadence_days: number;
86616
+ latest: null | components["schemas"]["ComputeServerRestoreTestResult"];
86617
+ };
86618
+ ComputeServerRestoreTestResult: {
86619
+ duration_ms: number;
86620
+ /** @description How many site files the scratch restore produced. */
86621
+ files: number;
86622
+ /** Format: date-time */
86623
+ finished_at: string;
86624
+ /** @enum {string} */
86625
+ outcome: "passed" | "failed" | "skipped";
86626
+ /** @description A short machine word for a failure or skip, or `""` when it passed. */
86627
+ reason: string;
86628
+ /** Format: date-time */
86629
+ started_at: string;
86630
+ };
86588
86631
  /** @description One service unit running inside a machine. */
86589
86632
  ComputeServerService: {
86590
86633
  /** @description Whether the provider could load the unit's definition at all. `false` means the unit file is missing, masked or broken - a different fault from "stopped", and one a restart will not fix. */
@@ -180874,6 +180917,34 @@ export interface operations {
180874
180917
  503: components["responses"]["ServiceUnavailable"];
180875
180918
  };
180876
180919
  };
180920
+ getComputeServerRestoreTest: {
180921
+ parameters: {
180922
+ query?: never;
180923
+ header?: never;
180924
+ path: {
180925
+ /** @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. */
180926
+ serverId: components["parameters"]["ComputeServerId"];
180927
+ };
180928
+ cookie?: never;
180929
+ };
180930
+ requestBody?: never;
180931
+ responses: {
180932
+ /** @description The latest restore test, or `null` before the first one. */
180933
+ 200: {
180934
+ headers: {
180935
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
180936
+ [name: string]: unknown;
180937
+ };
180938
+ content: {
180939
+ "application/json": components["schemas"]["ComputeServerRestoreTest"];
180940
+ };
180941
+ };
180942
+ 401: components["responses"]["Unauthorized"];
180943
+ 403: components["responses"]["Forbidden"];
180944
+ 404: components["responses"]["NotFound"];
180945
+ 429: components["responses"]["TooManyRequests"];
180946
+ };
180947
+ };
180877
180948
  getComputeServerReverseDns: {
180878
180949
  parameters: {
180879
180950
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2112",
3
+ "version": "0.1.2114",
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>",