@fabrika/provider-zerops 0.9.0-dev.13 → 0.9.0-dev.15

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.
@@ -1,4 +1,4 @@
1
- import { type InstallationEmail } from '@fabrika/installation-init';
1
+ import { type InstallationAuthentication, type InstallationEmail } from '@fabrika/installation-init';
2
2
  import type { PlatformTier } from './topology/topology';
3
3
  /**
4
4
  * Where the installation's project comes from.
@@ -38,6 +38,8 @@ export interface PlatformInstallInput {
38
38
  readonly tier: PlatformTier;
39
39
  /** The installation's mail transport, written on `iam` and `control`; `none` when the operator named no provider. */
40
40
  readonly email: InstallationEmail;
41
+ /** How people sign in, written on `iam`; password only when the operator named no method. */
42
+ readonly authentication: InstallationAuthentication;
41
43
  /** `--yes`: answer every confirmation yes, for a bring-up with nobody at the keyboard. */
42
44
  readonly unattended: boolean;
43
45
  }
@@ -1521,7 +1521,7 @@ export declare const importSchema: z.ZodObject<{
1521
1521
  os?: string | undefined;
1522
1522
  nginxConfig?: string | undefined;
1523
1523
  objectStorageSize?: number | undefined;
1524
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1524
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1525
1525
  objectStorageRawPolicy?: string | undefined;
1526
1526
  buildFromGit?: string | undefined;
1527
1527
  startWithoutCode?: boolean | undefined;
@@ -1564,7 +1564,7 @@ export declare const importSchema: z.ZodObject<{
1564
1564
  os?: string | undefined;
1565
1565
  nginxConfig?: string | undefined;
1566
1566
  objectStorageSize?: number | undefined;
1567
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1567
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1568
1568
  objectStorageRawPolicy?: string | undefined;
1569
1569
  buildFromGit?: string | undefined;
1570
1570
  startWithoutCode?: boolean | undefined;
@@ -1690,7 +1690,7 @@ export declare const importSchema: z.ZodObject<{
1690
1690
  os?: string | undefined;
1691
1691
  nginxConfig?: string | undefined;
1692
1692
  objectStorageSize?: number | undefined;
1693
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1693
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1694
1694
  objectStorageRawPolicy?: string | undefined;
1695
1695
  buildFromGit?: string | undefined;
1696
1696
  startWithoutCode?: boolean | undefined;
@@ -1733,7 +1733,7 @@ export declare const importSchema: z.ZodObject<{
1733
1733
  os?: string | undefined;
1734
1734
  nginxConfig?: string | undefined;
1735
1735
  objectStorageSize?: number | undefined;
1736
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1736
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1737
1737
  objectStorageRawPolicy?: string | undefined;
1738
1738
  buildFromGit?: string | undefined;
1739
1739
  startWithoutCode?: boolean | undefined;
@@ -1776,7 +1776,7 @@ export declare const importSchema: z.ZodObject<{
1776
1776
  os?: string | undefined;
1777
1777
  nginxConfig?: string | undefined;
1778
1778
  objectStorageSize?: number | undefined;
1779
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1779
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1780
1780
  objectStorageRawPolicy?: string | undefined;
1781
1781
  buildFromGit?: string | undefined;
1782
1782
  startWithoutCode?: boolean | undefined;
@@ -1819,7 +1819,7 @@ export declare const importSchema: z.ZodObject<{
1819
1819
  os?: string | undefined;
1820
1820
  nginxConfig?: string | undefined;
1821
1821
  objectStorageSize?: number | undefined;
1822
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1822
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1823
1823
  objectStorageRawPolicy?: string | undefined;
1824
1824
  buildFromGit?: string | undefined;
1825
1825
  startWithoutCode?: boolean | undefined;
@@ -1924,7 +1924,7 @@ export declare const importSchema: z.ZodObject<{
1924
1924
  os?: string | undefined;
1925
1925
  nginxConfig?: string | undefined;
1926
1926
  objectStorageSize?: number | undefined;
1927
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1927
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1928
1928
  objectStorageRawPolicy?: string | undefined;
1929
1929
  buildFromGit?: string | undefined;
1930
1930
  startWithoutCode?: boolean | undefined;
@@ -1956,7 +1956,7 @@ export declare const importSchema: z.ZodObject<{
1956
1956
  os?: string | undefined;
1957
1957
  nginxConfig?: string | undefined;
1958
1958
  objectStorageSize?: number | undefined;
1959
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1959
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
1960
1960
  objectStorageRawPolicy?: string | undefined;
1961
1961
  buildFromGit?: string | undefined;
1962
1962
  startWithoutCode?: boolean | undefined;
@@ -2001,7 +2001,7 @@ export declare const importSchema: z.ZodObject<{
2001
2001
  os?: string | undefined;
2002
2002
  nginxConfig?: string | undefined;
2003
2003
  objectStorageSize?: number | undefined;
2004
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2004
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2005
2005
  objectStorageRawPolicy?: string | undefined;
2006
2006
  buildFromGit?: string | undefined;
2007
2007
  startWithoutCode?: boolean | undefined;
@@ -2044,7 +2044,7 @@ export declare const importSchema: z.ZodObject<{
2044
2044
  os?: string | undefined;
2045
2045
  nginxConfig?: string | undefined;
2046
2046
  objectStorageSize?: number | undefined;
2047
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2047
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2048
2048
  objectStorageRawPolicy?: string | undefined;
2049
2049
  buildFromGit?: string | undefined;
2050
2050
  startWithoutCode?: boolean | undefined;
@@ -2087,7 +2087,7 @@ export declare const importSchema: z.ZodObject<{
2087
2087
  os?: string | undefined;
2088
2088
  nginxConfig?: string | undefined;
2089
2089
  objectStorageSize?: number | undefined;
2090
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2090
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2091
2091
  objectStorageRawPolicy?: string | undefined;
2092
2092
  buildFromGit?: string | undefined;
2093
2093
  startWithoutCode?: boolean | undefined;
@@ -2132,7 +2132,7 @@ export declare const importSchema: z.ZodObject<{
2132
2132
  os?: string | undefined;
2133
2133
  nginxConfig?: string | undefined;
2134
2134
  objectStorageSize?: number | undefined;
2135
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2135
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2136
2136
  objectStorageRawPolicy?: string | undefined;
2137
2137
  buildFromGit?: string | undefined;
2138
2138
  startWithoutCode?: boolean | undefined;
@@ -2175,7 +2175,7 @@ export declare const importSchema: z.ZodObject<{
2175
2175
  os?: string | undefined;
2176
2176
  nginxConfig?: string | undefined;
2177
2177
  objectStorageSize?: number | undefined;
2178
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2178
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2179
2179
  objectStorageRawPolicy?: string | undefined;
2180
2180
  buildFromGit?: string | undefined;
2181
2181
  startWithoutCode?: boolean | undefined;
@@ -2218,7 +2218,7 @@ export declare const importSchema: z.ZodObject<{
2218
2218
  os?: string | undefined;
2219
2219
  nginxConfig?: string | undefined;
2220
2220
  objectStorageSize?: number | undefined;
2221
- objectStoragePolicy?: "custom" | "private" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2221
+ objectStoragePolicy?: "private" | "custom" | "public-read" | "public-objects-read" | "public-write" | "public-read-write" | undefined;
2222
2222
  objectStorageRawPolicy?: string | undefined;
2223
2223
  buildFromGit?: string | undefined;
2224
2224
  startWithoutCode?: boolean | undefined;
@@ -236,7 +236,6 @@ export declare const namespaceUpdatePayloadSchema: z.ZodObject<{
236
236
  };
237
237
  }>]>>;
238
238
  }, "strict", z.ZodTypeAny, {
239
- corePackage?: "LIGHT" | "SERIOUS" | undefined;
240
239
  postgres?: {
241
240
  type: "postgresql:ha@18";
242
241
  profile?: "oltp-staging" | "oltp-production" | "oltp-enterprise" | "olap-production" | "writeheavy-production" | undefined;
@@ -244,6 +243,7 @@ export declare const namespaceUpdatePayloadSchema: z.ZodObject<{
244
243
  type: "postgresql:single@18";
245
244
  profile?: "oltp-staging" | "oltp-production" | "olap-production" | "writeheavy-production" | "oltp-hobby" | undefined;
246
245
  } | undefined;
246
+ corePackage?: "LIGHT" | "SERIOUS" | undefined;
247
247
  projectId?: string | undefined;
248
248
  projectName?: string | undefined;
249
249
  proxySource?: "current" | {
@@ -290,7 +290,6 @@ export declare const namespaceUpdatePayloadSchema: z.ZodObject<{
290
290
  } | undefined;
291
291
  ready?: boolean | undefined;
292
292
  }, {
293
- corePackage?: "LIGHT" | "SERIOUS" | undefined;
294
293
  postgres?: {
295
294
  type: "postgresql:ha@18";
296
295
  profile?: "oltp-staging" | "oltp-production" | "oltp-enterprise" | "olap-production" | "writeheavy-production" | undefined;
@@ -298,6 +297,7 @@ export declare const namespaceUpdatePayloadSchema: z.ZodObject<{
298
297
  type: "postgresql:single@18";
299
298
  profile?: "oltp-staging" | "oltp-production" | "olap-production" | "writeheavy-production" | "oltp-hobby" | undefined;
300
299
  } | undefined;
300
+ corePackage?: "LIGHT" | "SERIOUS" | undefined;
301
301
  projectId?: string | undefined;
302
302
  projectName?: string | undefined;
303
303
  proxySource?: "current" | {
@@ -1,5 +1,5 @@
1
1
  import { type FabrikaManifest } from './manifest';
2
- export type ZeropsStepKind = 'apply-import' | 'verify-exposure' | 'write-service-env' | 'raise-start-memory' | 'size-database' | 'reserve-version' | 'upload-source' | 'trigger-build' | 'await-version';
2
+ export type ZeropsStepKind = 'apply-import' | 'verify-exposure' | 'backup-database' | 'write-service-env' | 'raise-start-memory' | 'size-database' | 'reserve-version' | 'upload-source' | 'trigger-build' | 'await-version';
3
3
  export interface ZeropsStep {
4
4
  readonly id: string;
5
5
  readonly kind: ZeropsStepKind;
@@ -7,5 +7,11 @@ export interface ZeropsStep {
7
7
  }
8
8
  /** Resolve the one declared service that receives this repository's code. */
9
9
  export declare const resolveDeployHostname: (manifest: FabrikaManifest) => string;
10
- /** Build the provider-owned deploy order without touching the platform. */
11
- export declare const buildZeropsPlan: (manifest: FabrikaManifest) => readonly ZeropsStep[];
10
+ /**
11
+ * Build the provider-owned deploy order without touching the platform. `backup` adds the backup of the application's
12
+ * database, which a deploy takes when its migrations may change stored data: before anything but the verified import changes, and
13
+ * before a version is reserved, so a backup that does not finish leaves nothing to clean up.
14
+ */
15
+ export declare const buildZeropsPlan: (manifest: FabrikaManifest, options?: {
16
+ readonly backup?: boolean;
17
+ }) => readonly ZeropsStep[];
@@ -1,7 +1,7 @@
1
1
  import { type OperationsSourceMapUploadState } from '@fabrika/operations-contract/releases';
2
2
  import { type DeployStepResult, type ProviderApprovedAccess, type ProviderDeployInput, type ProviderManagedEnvironment, type ProviderRunEvents } from '@fabrika/provider-contract';
3
- import { type ZeropsService } from './api';
4
- import { type ZeropsCollaboratorFactory, type ZeropsCollaborators } from './collaborators';
3
+ import { type ZeropsApi, type ZeropsBackupFile, type ZeropsService } from './api';
4
+ import { type Sleeper, type ZeropsClock, type ZeropsCollaboratorFactory, type ZeropsCollaborators } from './collaborators';
5
5
  import { type FabrikaImportDocument, type FabrikaManifest } from './manifest';
6
6
  import type { ZeropsRuntimeTarget } from './types';
7
7
  export declare const CANCELLED = "deploy cancelled";
@@ -18,6 +18,11 @@ export interface ZeropsDeployRun {
18
18
  readonly access?: ProviderApprovedAccess;
19
19
  /** The run-scoped source-map destination Control minted; the build uploads to it. */
20
20
  readonly artifactUpload?: ProviderDeployInput['artifactUpload'];
21
+ /** Control's `backupBeforeMigrations`, with the run whose tag the backup carries. Absent: no backup. */
22
+ readonly backupBeforeMigrations?: {
23
+ readonly migrations: readonly string[];
24
+ readonly runId: string;
25
+ };
21
26
  readonly dryRun: boolean;
22
27
  readonly signal: AbortSignal;
23
28
  readonly events: ProviderRunEvents;
@@ -32,6 +37,21 @@ export interface ZeropsDeployResult {
32
37
  }
33
38
  /** A run stops waiting for its version this long after it started. Zerops' own pipeline limit is 1 hour. */
34
39
  export declare const ZEROPS_VERSION_DEADLINE_MS: number;
40
+ /**
41
+ * `backup-database` waits at most this long of elapsed time for the backup to be stored, request times included, and
42
+ * never past the run's own deadline. The build that follows has the rest of `ZEROPS_VERSION_DEADLINE_MS`.
43
+ */
44
+ export declare const ZEROPS_BACKUP_WAIT_MS: number;
45
+ /** The backup request answers within the platform's 10 s window, past which it reports the backup `async`. */
46
+ export declare const ZEROPS_BACKUP_REQUEST_TIMEOUT_MS = 60000;
47
+ export declare const ZEROPS_BACKUP_LIST_TIMEOUT_MS = 30000;
48
+ /**
49
+ * The tag of the backup a run takes before its migrations may change stored data. A user tag is at most 24 characters of
50
+ * `[A-Za-z0-9:_-]`, so it carries the first 20 of the run id's own: a UUIDv7's, which start with its timestamp.
51
+ * The tag is not protected: default retention removes a manual backup only past 50 files or 5 GiB, while protected ones
52
+ * would pile up toward the project's backup storage, past which no backup is stored at all.
53
+ */
54
+ export declare const zeropsBackupTag: (runId: string) => string;
35
55
  /**
36
56
  * Resolve the manifest's declared variables INTO THE DOCUMENT — never into the rendered YAML, where a
37
57
  * value carrying a quote or a newline would be read as structure and could add a service or turn
@@ -50,6 +70,27 @@ export interface MinRamRaise {
50
70
  * read WHOLE with only that field changed: the platform resets every field a request leaves out.
51
71
  */
52
72
  export declare const raiseMinRam: (env: MinRamRaise, service: ZeropsService, hostname: string, minRam: number, need: string) => Promise<number>;
73
+ /**
74
+ * Requests a backup of a managed service under `tag` and answers the stored file. `async: false` answers a finished
75
+ * backup (verified live), so one list read confirms it; `async: true` runs on in the background, and the list is read
76
+ * until it shows the tag. The wait is elapsed time on `clock`, at most `ZEROPS_BACKUP_WAIT_MS` and never past
77
+ * `budgetEndMs`, and each request has its own timeout inside it. A refusal, no answer, a finished backup the list does
78
+ * not show, or a tag not seen before the deadline throws: a tag a late answer shows is still too late.
79
+ */
80
+ export declare const storeTaggedBackup: (input: {
81
+ api: Pick<ZeropsApi, "createBackup" | "listBackups">;
82
+ sleep: Sleeper;
83
+ clock: ZeropsClock;
84
+ /** The instant the deploy's own deadline falls; the wait never runs past it. */
85
+ budgetEndMs: number;
86
+ signal: AbortSignal;
87
+ /** Crossed before each list, so a cancel or a lost lease stops the wait. */
88
+ boundary: () => Promise<void>;
89
+ log: (line: string) => void;
90
+ serviceId: string;
91
+ hostname: string;
92
+ tag: string;
93
+ }) => Promise<ZeropsBackupFile>;
53
94
  /**
54
95
  * Build a Zerops deployer over a specific collaborator FACTORY. Production passes the real one; tests pass
55
96
  * `() => fakes`, which is the whole testability property — one seam, all of this driver's effects.
@@ -7,14 +7,14 @@ export declare const zboxOperationSchema: z.ZodObject<{
7
7
  error: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  kind: string;
10
- status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
11
10
  id: string;
11
+ status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
12
12
  error: string | null;
13
13
  sandboxId: string | null;
14
14
  }, {
15
15
  kind: string;
16
- status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
17
16
  id: string;
17
+ status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
18
18
  error?: string | null | undefined;
19
19
  sandboxId?: string | null | undefined;
20
20
  }>;
@@ -40,8 +40,8 @@ export declare const zboxSandboxSchema: z.ZodObject<{
40
40
  policyGeneration: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  name: string | null;
43
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
44
43
  id: string;
44
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
45
45
  hosts: {
46
46
  access: string;
47
47
  url: string;
@@ -50,8 +50,8 @@ export declare const zboxSandboxSchema: z.ZodObject<{
50
50
  baseDigest: string;
51
51
  policyGeneration: number;
52
52
  }, {
53
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
54
53
  id: string;
54
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
55
55
  hosts: {
56
56
  access: string;
57
57
  url: string;
@@ -84,8 +84,8 @@ export declare const zboxSandboxListSchema: z.ZodObject<{
84
84
  policyGeneration: z.ZodNumber;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  name: string | null;
87
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
88
87
  id: string;
88
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
89
89
  hosts: {
90
90
  access: string;
91
91
  url: string;
@@ -94,8 +94,8 @@ export declare const zboxSandboxListSchema: z.ZodObject<{
94
94
  baseDigest: string;
95
95
  policyGeneration: number;
96
96
  }, {
97
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
98
97
  id: string;
98
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
99
99
  hosts: {
100
100
  access: string;
101
101
  url: string;
@@ -108,8 +108,8 @@ export declare const zboxSandboxListSchema: z.ZodObject<{
108
108
  }, "strip", z.ZodTypeAny, {
109
109
  items: {
110
110
  name: string | null;
111
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
112
111
  id: string;
112
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
113
113
  hosts: {
114
114
  access: string;
115
115
  url: string;
@@ -120,8 +120,8 @@ export declare const zboxSandboxListSchema: z.ZodObject<{
120
120
  }[];
121
121
  }, {
122
122
  items: {
123
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
124
123
  id: string;
124
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
125
125
  hosts: {
126
126
  access: string;
127
127
  url: string;
@@ -141,14 +141,14 @@ export declare const zboxSpawnSchema: z.ZodObject<{
141
141
  error: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null, string | null | undefined>;
142
142
  }, "strip", z.ZodTypeAny, {
143
143
  kind: string;
144
- status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
145
144
  id: string;
145
+ status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
146
146
  error: string | null;
147
147
  sandboxId: string | null;
148
148
  }, {
149
149
  kind: string;
150
- status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
151
150
  id: string;
151
+ status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
152
152
  error?: string | null | undefined;
153
153
  sandboxId?: string | null | undefined;
154
154
  }>;
@@ -173,8 +173,8 @@ export declare const zboxSpawnSchema: z.ZodObject<{
173
173
  policyGeneration: z.ZodNumber;
174
174
  }, "strip", z.ZodTypeAny, {
175
175
  name: string | null;
176
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
177
176
  id: string;
177
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
178
178
  hosts: {
179
179
  access: string;
180
180
  url: string;
@@ -183,8 +183,8 @@ export declare const zboxSpawnSchema: z.ZodObject<{
183
183
  baseDigest: string;
184
184
  policyGeneration: number;
185
185
  }, {
186
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
187
186
  id: string;
187
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
188
188
  hosts: {
189
189
  access: string;
190
190
  url: string;
@@ -197,15 +197,15 @@ export declare const zboxSpawnSchema: z.ZodObject<{
197
197
  }, "strip", z.ZodTypeAny, {
198
198
  operation: {
199
199
  kind: string;
200
- status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
201
200
  id: string;
201
+ status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
202
202
  error: string | null;
203
203
  sandboxId: string | null;
204
204
  };
205
205
  sandboxes: {
206
206
  name: string | null;
207
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
208
207
  id: string;
208
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
209
209
  hosts: {
210
210
  access: string;
211
211
  url: string;
@@ -217,14 +217,14 @@ export declare const zboxSpawnSchema: z.ZodObject<{
217
217
  }, {
218
218
  operation: {
219
219
  kind: string;
220
- status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
221
220
  id: string;
221
+ status: "FINISHED" | "FAILED" | "PENDING" | "RUNNING";
222
222
  error?: string | null | undefined;
223
223
  sandboxId?: string | null | undefined;
224
224
  };
225
225
  sandboxes: {
226
- status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
227
226
  id: string;
227
+ status: "FAILED" | "CREATING" | "RUNNING" | "PARKING" | "PARKED" | "WAKING" | "FORKING" | "RESTORING" | "TERMINATED" | "ARCHIVED";
228
228
  hosts: {
229
229
  access: string;
230
230
  url: string;
@@ -321,13 +321,13 @@ export declare const zboxSessionSchema: z.ZodObject<{
321
321
  exitCode: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
322
322
  hasOutput: z.ZodBoolean;
323
323
  }, "strip", z.ZodTypeAny, {
324
- status: "FAILED" | "OPEN" | "CLOSED";
325
324
  id: string;
325
+ status: "FAILED" | "OPEN" | "CLOSED";
326
326
  exitCode: number | null;
327
327
  hasOutput: boolean;
328
328
  }, {
329
- status: "FAILED" | "OPEN" | "CLOSED";
330
329
  id: string;
330
+ status: "FAILED" | "OPEN" | "CLOSED";
331
331
  hasOutput: boolean;
332
332
  exitCode?: number | null | undefined;
333
333
  }>;