@zinn-digital/sdk 0.1.2000 → 0.1.2005

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.
@@ -4862,7 +4862,7 @@ export interface paths {
4862
4862
  put?: never;
4863
4863
  /**
4864
4864
  * Grant an org mid-cycle free days or account credit (staff, audit-logged).
4865
- * @description One endpoint for the mid-cycle grants. `kind: "days"` adds `days` free days to the org's live subscription (or `subscription_id`) — refused (422, `refusal.admin.grantDaysWhileOwing`) on a subscription that owes billing periods, because moving the paid-through date would forgive that debt silently (s1014 R40 GAP-9); `kind: "restore_owing"` ("restore now, still owed") brings a subscription that owes periods back NOW: it records ONE debt for exactly the owed span at the captured price, moves the paid-through date to the end of that span, sets it active, cancels the unpaid renewal orders the span covered and restores the services; the next order for the subscription carries the debt and pays it first (`reason` required; engine rail only; audit-logged `billing.subscription.restore_while_owing`); `kind: "credit"` grants `amount_minor` + `currency` account credit (an immutable, positive ledger entry). Requires staff + `billing.entitlement.manage`.
4865
+ * @description One endpoint for the mid-cycle grants. `kind: "days"` adds `days` free days to the org's live subscription (or `subscription_id`) — refused (422, `refusal.admin.grantDaysWhileOwing`) on a subscription that owes billing periods, because moving the paid-through date would forgive that debt silently (s1014 R40 GAP-9); `kind: "restore_owing"` ("restore now, still owed") brings a subscription that owes periods back NOW: it records ONE debt for exactly the owed span at the captured price, moves the paid-through date to the end of that span, sets it active, cancels the unpaid renewal orders the span covered and restores the services; the next order for the subscription carries the debt and pays it first (`reason` required; engine rail only; audit-logged `billing.subscription.restore_while_owing`); `kind: "credit"` grants `amount_minor` + `currency` account credit (an immutable, positive ledger entry). Requires staff + `billing.entitlement.manage`. A `kind: "credit"` grant is replay-safe (CREDITFIX-1121): with an `Idempotency-Key` header the same key never grants twice; without one, an identical grant to the same org by the same staff member within 60 seconds is treated as the same grant (the same grant from a different staff member is a second grant). A duplicate writes no second ledger row, audit entry or e-mail.
4866
4866
  */
4867
4867
  post: operations["grantSubscription"];
4868
4868
  delete?: never;
@@ -31757,6 +31757,29 @@ export interface paths {
31757
31757
  patch?: never;
31758
31758
  trace?: never;
31759
31759
  };
31760
+ "/v1/compute/servers/{serverId}/panel/retry": {
31761
+ parameters: {
31762
+ query?: never;
31763
+ header?: never;
31764
+ path: {
31765
+ /** @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. */
31766
+ serverId: components["parameters"]["ComputeServerId"];
31767
+ };
31768
+ cookie?: never;
31769
+ };
31770
+ get?: never;
31771
+ put?: never;
31772
+ /**
31773
+ * Retry the Zinn panel's setup on a server.
31774
+ * @description Start the Zinn® panel's setup again on a server ordered with the panel whose setup failed (`panel_state` is `failed`). Each retry is a fresh setup run; a second request while one is running is refused, so a double click starts one setup. A server whose setup is running or done, a bare server, or one whose operating system the panel cannot be installed on returns 422 and changes nothing. Costs nothing. Requires `sites.restart`.
31775
+ */
31776
+ post: operations["retryComputeServerPanel"];
31777
+ delete?: never;
31778
+ options?: never;
31779
+ head?: never;
31780
+ patch?: never;
31781
+ trace?: never;
31782
+ };
31760
31783
  "/v1/compute/servers/{serverId}/plan": {
31761
31784
  parameters: {
31762
31785
  query?: never;
@@ -84470,8 +84493,10 @@ export interface components {
84470
84493
  /** @description The tiers we sell on this range. */
84471
84494
  tiers: components["schemas"]["ComputeTier"][];
84472
84495
  };
84473
- /** @description CLOUD-U2 (P3-007): whether "With the Zinn® panel" can be ordered on this range. The machine half — a Linux image and at least `min_ram_mb` of memory — is judged per size with these numbers by the screen and again by the order, which refuses `422`. */
84496
+ /** @description CLOUD-U2 (P3-007): whether "With the Zinn® panel" can be ordered on this range. The machine half — an image in `images` and at least `min_ram_mb` of memory — is judged per size with these numbers by the screen and again by the order, which refuses `422`. */
84474
84497
  ComputeCataloguePanel: {
84498
+ /** @description The operating-system images the panel can be installed on, as normalised keys (`alma-9`); empty when the panel is not offered. An order with the panel on any other image is refused `422` (`refusal.compute.panelImageNotSupported`). */
84499
+ images: string[];
84475
84500
  min_ram_mb: number;
84476
84501
  offered: boolean;
84477
84502
  /** @description The refusal key naming why this range cannot have the panel, or null. */
@@ -99807,10 +99832,23 @@ export interface components {
99807
99832
  * @enum {string}
99808
99833
  */
99809
99834
  OrgType: "reseller" | "customer" | "staff";
99835
+ /** @description Why guest pages are not cached: the site's guest responses set cookies, so the page cache stores nothing and every visitor waits for PHP. Read from one cookieless guest GET of the home page, at most once an hour, and only for a site the origin-load signal already flags (watching or slow) - never a sweep of every site (docs/1110 §4a, §6). */
99836
+ OriginLoadCacheBypass: {
99837
+ /** @enum {string} */
99838
+ cause: "guest_cookies";
99839
+ /** @description Cookie NAMES the guest response set (never values; edge cookies dropped). */
99840
+ cookies: string[];
99841
+ /** Format: date-time */
99842
+ probed_at: string;
99843
+ /** @description Generic kind of plugin behind each name, derived only from the names seen. */
99844
+ sources: ("geolocation" | "currency" | "download_manager" | "session" | "other")[];
99845
+ };
99810
99846
  /** @description One site's origin-load state (s1014 ORIGINGUARD, docs/1110). */
99811
99847
  OriginLoadState: {
99812
99848
  /** Format: date-time */
99813
99849
  alerted_at?: string | null;
99850
+ /** @description Set while the site is flagged (watching or slow) AND its guest pages miss the page cache AND a guest request to its home page was answered with cookies (ORIGINSLOW, docs/1110 §4a). null = no such evidence (not measured, or the pages are cached). */
99851
+ cache_bypass?: components["schemas"]["OriginLoadCacheBypass"] | null;
99814
99852
  /** Format: date-time */
99815
99853
  cleared_at?: string | null;
99816
99854
  edge_hit_ratio?: number | null;
@@ -132158,7 +132196,10 @@ export interface operations {
132158
132196
  grantSubscription: {
132159
132197
  parameters: {
132160
132198
  query?: never;
132161
- header?: never;
132199
+ header?: {
132200
+ /** @description Optional client key for a `kind: "credit"` grant; a repeat with the same key returns without granting again (stored as `admin-credit-grant:<org>:<key>`, first 150 characters). */
132201
+ "Idempotency-Key"?: string;
132202
+ };
132162
132203
  path: {
132163
132204
  /** @description Organization ID (UUIDv7). */
132164
132205
  orgId: components["parameters"]["OrgId"];
@@ -177819,6 +177860,36 @@ export interface operations {
177819
177860
  503: components["responses"]["ServiceUnavailable"];
177820
177861
  };
177821
177862
  };
177863
+ retryComputeServerPanel: {
177864
+ parameters: {
177865
+ query?: never;
177866
+ header?: never;
177867
+ path: {
177868
+ /** @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. */
177869
+ serverId: components["parameters"]["ComputeServerId"];
177870
+ };
177871
+ cookie?: never;
177872
+ };
177873
+ requestBody?: never;
177874
+ responses: {
177875
+ /** @description The machine, with `panel_state` now `enrolling`. */
177876
+ 200: {
177877
+ headers: {
177878
+ "RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
177879
+ [name: string]: unknown;
177880
+ };
177881
+ content: {
177882
+ "application/json": components["schemas"]["ComputeServer"];
177883
+ };
177884
+ };
177885
+ 401: components["responses"]["Unauthorized"];
177886
+ 403: components["responses"]["Forbidden"];
177887
+ 404: components["responses"]["NotFound"];
177888
+ 422: components["responses"]["UnprocessableEntity"];
177889
+ 429: components["responses"]["TooManyRequests"];
177890
+ 503: components["responses"]["ServiceUnavailable"];
177891
+ };
177892
+ };
177822
177893
  getComputeServerPlan: {
177823
177894
  parameters: {
177824
177895
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2000",
3
+ "version": "0.1.2005",
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>",