@zinn-digital/sdk 0.1.1356 → 0.1.1357
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 +93 -0
- package/package.json +1 -1
|
@@ -48448,6 +48448,29 @@ export interface paths {
|
|
|
48448
48448
|
patch?: never;
|
|
48449
48449
|
trace?: never;
|
|
48450
48450
|
};
|
|
48451
|
+
"/v1/sites/{siteId}/install-progress": {
|
|
48452
|
+
parameters: {
|
|
48453
|
+
query?: never;
|
|
48454
|
+
header?: never;
|
|
48455
|
+
path: {
|
|
48456
|
+
/** @description Site ID (UUIDv7). */
|
|
48457
|
+
siteId: components["parameters"]["SiteId"];
|
|
48458
|
+
};
|
|
48459
|
+
cookie?: never;
|
|
48460
|
+
};
|
|
48461
|
+
/**
|
|
48462
|
+
* The installing screen's live stage, measured timing and Retry validity.
|
|
48463
|
+
* @description Row 45 (s1014, owner 2026-10-29). `install` is the same answer `retrySiteProvisioning` enforces; `step` is the running workflow's own progress answer, asked only while the site is installing and `null` when it cannot be asked (a Temporal fault degrades the field, never the response). Requires `sites.view`.
|
|
48464
|
+
*/
|
|
48465
|
+
get: operations["getSiteInstallProgress"];
|
|
48466
|
+
put?: never;
|
|
48467
|
+
post?: never;
|
|
48468
|
+
delete?: never;
|
|
48469
|
+
options?: never;
|
|
48470
|
+
head?: never;
|
|
48471
|
+
patch?: never;
|
|
48472
|
+
trace?: never;
|
|
48473
|
+
};
|
|
48451
48474
|
"/v1/sites/{siteId}/mail-smtp": {
|
|
48452
48475
|
parameters: {
|
|
48453
48476
|
query?: never;
|
|
@@ -50060,6 +50083,8 @@ export interface paths {
|
|
|
50060
50083
|
* ⛔ Nothing here calls Temporal (§2.9). The status change and a `site.created` event commit in one transaction and the existing consumer starts the workflow, so a Temporal outage cannot leave the row half-moved.
|
|
50061
50084
|
*
|
|
50062
50085
|
* A site that is `active`, `deleting` or `deleted` is a `422` — a retry re-runs the build, and those are past it. Requires `sites.view` and `hosting.deploy.manage`.
|
|
50086
|
+
*
|
|
50087
|
+
* **Row 45 (s1014).** A `provisioning` site past its measured p90 is STALLED: Retry terminates the old run and starts afresh (row-locked, so a double press starts one workflow; the second answers `refusal: in_flight`). A `failed` site is refused with `422` (`refusal.sites.retryCoolingDown`) for 3 minutes after the failure, and (`refusal.sites.retryNotInGoodStanding`) when the account is not in good standing - exactly when `Site.install.retry.enabled` is `false`.
|
|
50063
50088
|
*/
|
|
50064
50089
|
post: operations["retrySiteProvisioning"];
|
|
50065
50090
|
delete?: never;
|
|
@@ -95153,6 +95178,8 @@ export interface components {
|
|
|
95153
95178
|
*/
|
|
95154
95179
|
failed_step?: string;
|
|
95155
95180
|
id: components["schemas"]["Uuid"];
|
|
95181
|
+
/** @description Row 45 (s1014, owner 2026-10-29): what the installing screen may honestly say, and whether Retry is valid - the same answer `retrySiteProvisioning` enforces. `null` unless the site is `pending`, `provisioning` or `failed`. */
|
|
95182
|
+
install?: components["schemas"]["SiteInstallState"] | null;
|
|
95156
95183
|
/**
|
|
95157
95184
|
* @description Human label for the site; defaults to the primary domain.
|
|
95158
95185
|
* @example Acme Marketing Site
|
|
@@ -97839,6 +97866,40 @@ export interface components {
|
|
|
97839
97866
|
* @enum {string}
|
|
97840
97867
|
*/
|
|
97841
97868
|
SiteImportStatus: "pending" | "indexing" | "fetching" | "building" | "deploying" | "verifying" | "completed" | "failed" | "cancelled";
|
|
97869
|
+
/** @description The installing screen's one read (row 45). */
|
|
97870
|
+
SiteInstallProgress: {
|
|
97871
|
+
install: components["schemas"]["SiteInstallState"];
|
|
97872
|
+
/** Format: uuid */
|
|
97873
|
+
site_id: string;
|
|
97874
|
+
status: string;
|
|
97875
|
+
/** @description The running workflow's own stage key (`begin`, `placement`, `account`, `blueprint`, `cdn`, `dns`, `verify`, `activate`, `rollback`), or `null` when it could not be asked - unknown, never zero (ADR 0023). */
|
|
97876
|
+
step: string | null;
|
|
97877
|
+
steps_done: number | null;
|
|
97878
|
+
steps_total: number | null;
|
|
97879
|
+
};
|
|
97880
|
+
/** @description Row 45 (s1014): the installing screen's honest state. `stalled` means past the measured p90 for this application (never under 5 minutes) with no end; Retry then restarts it. Retry is HIDDEN while running normally and after success; SHOWN but disabled (`enabled: false` with a `reason`) during the 3-minute cool-down after a failure and when the account is not in good standing. */
|
|
97881
|
+
SiteInstallState: {
|
|
97882
|
+
elapsed_seconds: number;
|
|
97883
|
+
/** @description Median of the last 200 finished installs of this application on this location, measured ESTATE-WIDE (durations only, no tenant data), so every org reads the same figure; falls back to the application on any location, then every install. */
|
|
97884
|
+
p50_seconds: number;
|
|
97885
|
+
p90_seconds: number;
|
|
97886
|
+
retry: {
|
|
97887
|
+
enabled: boolean;
|
|
97888
|
+
/** @enum {string|null} */
|
|
97889
|
+
reason: "running" | "done" | "cooldown" | "not_in_good_standing" | "not_retryable" | null;
|
|
97890
|
+
/** Format: date-time */
|
|
97891
|
+
retry_after: string | null;
|
|
97892
|
+
visible: boolean;
|
|
97893
|
+
};
|
|
97894
|
+
/** @description `true` only while the run is still going AND staff were really paged about it (the hung-install page fires once at the later of p90 and 12 minutes). The screen says "our team has been alerted" only when this is `true`; past p90 alone is not a page. */
|
|
97895
|
+
staff_alerted: boolean;
|
|
97896
|
+
/** Format: date-time */
|
|
97897
|
+
started_at: string | null;
|
|
97898
|
+
/** @enum {string} */
|
|
97899
|
+
state: "running" | "stalled" | "failed" | "done" | "other";
|
|
97900
|
+
/** @description How many runs the percentiles were read from; `0` means the fallback. */
|
|
97901
|
+
timing_samples: number;
|
|
97902
|
+
};
|
|
97842
97903
|
SiteIntegrityFinding: {
|
|
97843
97904
|
/** @description Staff only. */
|
|
97844
97905
|
actor?: string;
|
|
@@ -99678,6 +99739,11 @@ export interface components {
|
|
|
99678
99739
|
};
|
|
99679
99740
|
/** @description The outcome of asking for a failed site to be built again. */
|
|
99680
99741
|
SiteProvisioningRetry: {
|
|
99742
|
+
/**
|
|
99743
|
+
* @description Why nothing was restarted, as a machine key: `in_flight` when a build is already running (a second press while one is in flight is never a second workflow). `null` when `restarted` is `true`.
|
|
99744
|
+
* @enum {string|null}
|
|
99745
|
+
*/
|
|
99746
|
+
refusal?: "in_flight" | null;
|
|
99681
99747
|
/**
|
|
99682
99748
|
* @description `true` when this call moved the row and queued a build; `false` when the site was **already** provisioning, which is a success and not a conflict.
|
|
99683
99749
|
*
|
|
@@ -187556,6 +187622,33 @@ export interface operations {
|
|
|
187556
187622
|
404: components["responses"]["NotFound"];
|
|
187557
187623
|
};
|
|
187558
187624
|
};
|
|
187625
|
+
getSiteInstallProgress: {
|
|
187626
|
+
parameters: {
|
|
187627
|
+
query?: never;
|
|
187628
|
+
header?: never;
|
|
187629
|
+
path: {
|
|
187630
|
+
/** @description Site ID (UUIDv7). */
|
|
187631
|
+
siteId: components["parameters"]["SiteId"];
|
|
187632
|
+
};
|
|
187633
|
+
cookie?: never;
|
|
187634
|
+
};
|
|
187635
|
+
requestBody?: never;
|
|
187636
|
+
responses: {
|
|
187637
|
+
/** @description The site's install progress. */
|
|
187638
|
+
200: {
|
|
187639
|
+
headers: {
|
|
187640
|
+
[name: string]: unknown;
|
|
187641
|
+
};
|
|
187642
|
+
content: {
|
|
187643
|
+
"application/json": components["schemas"]["SiteInstallProgress"];
|
|
187644
|
+
};
|
|
187645
|
+
};
|
|
187646
|
+
401: components["responses"]["Unauthorized"];
|
|
187647
|
+
403: components["responses"]["Forbidden"];
|
|
187648
|
+
404: components["responses"]["NotFound"];
|
|
187649
|
+
429: components["responses"]["TooManyRequests"];
|
|
187650
|
+
};
|
|
187651
|
+
};
|
|
187559
187652
|
getSiteMailSmtp: {
|
|
187560
187653
|
parameters: {
|
|
187561
187654
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1357",
|
|
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>",
|