@zinn-digital/sdk 0.1.2113 → 0.1.2115

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;
@@ -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. */
@@ -95848,6 +95891,8 @@ export interface components {
95848
95891
  /** Format: uuid */
95849
95892
  id: string;
95850
95893
  provider: components["schemas"]["MailProvider"];
95894
+ /** @description The status a customer is shown; see `MailService.shown_status` (P4-066). */
95895
+ shown_status?: string;
95851
95896
  status: components["schemas"]["MailServiceStatus"];
95852
95897
  };
95853
95898
  MailForwarder: {
@@ -96232,6 +96277,16 @@ export interface components {
96232
96277
  /** @description The domain the mailboxes are on. */
96233
96278
  fqdn: string;
96234
96279
  id: components["schemas"]["Uuid"];
96280
+ /**
96281
+ * Format: date-time
96282
+ * @description When `inbound_state` was last measured; `null` = never.
96283
+ */
96284
+ inbound_checked_at?: string | null;
96285
+ /**
96286
+ * @description Whether mail for this domain ARRIVES here, by the domain's own public DNS, checked hourly and on every read of `GET /v1/mail/services/{mailServiceId}/dns-records` (P4-066). `status` is the provisioning state; show an `active` service as working only when this is `verified` (MX, SPF and DKIM all answer with our values). `not_arriving`: the MX is missing or points elsewhere, so no mail reaches the mailboxes; `incomplete`: mail arrives but SPF or DKIM is missing; `unknown`: the domain's nameservers could not be asked (never shown as broken); `unchecked`: not asked yet.
96287
+ * @enum {string}
96288
+ */
96289
+ inbound_state?: "verified" | "not_arriving" | "incomplete" | "unknown" | "unchecked";
96235
96290
  /**
96236
96291
  * @description **This domain uses us for mail and nothing else** — an active mail service on a hostname no website of ours serves.
96237
96292
  *
@@ -96257,6 +96312,8 @@ export interface components {
96257
96312
  provider: components["schemas"]["MailProvider"];
96258
96313
  /** @description The `custom` provider's declared values, served back so the domain screen can show and edit what was declared. `null` on every other provider, whose values are documented and derived rather than stored. */
96259
96314
  provider_config?: components["schemas"]["MailProviderConfig"] | null;
96315
+ /** @description The ONLY status a customer surface renders (P4-066). A non-active service carries its `status` unchanged; an `active` one is `active` only when `inbound_state` is `verified`, else `not_receiving` (MX missing or elsewhere), `records_incomplete` (MX here, SPF/DKIM missing) or `checking` (not yet readable). */
96316
+ shown_status?: string;
96260
96317
  /** @description The site currently serving this domain, or `null` when no site does. **Derived from the hostname, never stored**: mail attaches to a domain and a domain outlives the site on it, so a stored site id would go stale the day a domain moved between sites — and nothing would notice, because mail would keep working. `null` is a normal state (a BYO hostname, or mail kept after its site was deleted), not an error. */
96261
96318
  site?: components["schemas"]["MailServiceSite"] | null;
96262
96319
  status: components["schemas"]["MailServiceStatus"];
@@ -180874,6 +180931,34 @@ export interface operations {
180874
180931
  503: components["responses"]["ServiceUnavailable"];
180875
180932
  };
180876
180933
  };
180934
+ getComputeServerRestoreTest: {
180935
+ parameters: {
180936
+ query?: never;
180937
+ header?: never;
180938
+ path: {
180939
+ /** @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. */
180940
+ serverId: components["parameters"]["ComputeServerId"];
180941
+ };
180942
+ cookie?: never;
180943
+ };
180944
+ requestBody?: never;
180945
+ responses: {
180946
+ /** @description The latest restore test, or `null` before the first one. */
180947
+ 200: {
180948
+ headers: {
180949
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
180950
+ [name: string]: unknown;
180951
+ };
180952
+ content: {
180953
+ "application/json": components["schemas"]["ComputeServerRestoreTest"];
180954
+ };
180955
+ };
180956
+ 401: components["responses"]["Unauthorized"];
180957
+ 403: components["responses"]["Forbidden"];
180958
+ 404: components["responses"]["NotFound"];
180959
+ 429: components["responses"]["TooManyRequests"];
180960
+ };
180961
+ };
180877
180962
  getComputeServerReverseDns: {
180878
180963
  parameters: {
180879
180964
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2113",
3
+ "version": "0.1.2115",
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>",