@agentuity/sandbox 3.0.12 → 3.1.1
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/AGENTS.md +3 -3
- package/dist/api-reference.d.ts +1221 -0
- package/dist/api-reference.d.ts.map +1 -0
- package/dist/api-reference.js +1046 -0
- package/dist/api-reference.js.map +1 -0
- package/dist/base64.d.ts +2 -0
- package/dist/base64.d.ts.map +1 -0
- package/dist/base64.js +14 -0
- package/dist/base64.js.map +1 -0
- package/dist/client.d.ts +431 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +632 -0
- package/dist/client.js.map +1 -0
- package/dist/create.d.ts +203 -0
- package/dist/create.d.ts.map +1 -0
- package/dist/create.js +235 -0
- package/dist/create.js.map +1 -0
- package/dist/destroy.d.ts +23 -0
- package/dist/destroy.d.ts.map +1 -0
- package/dist/destroy.js +30 -0
- package/dist/destroy.js.map +1 -0
- package/dist/disk-checkpoint.d.ts +108 -0
- package/dist/disk-checkpoint.d.ts.map +1 -0
- package/dist/disk-checkpoint.js +124 -0
- package/dist/disk-checkpoint.js.map +1 -0
- package/dist/events.d.ts +56 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +54 -0
- package/dist/events.js.map +1 -0
- package/dist/execute.d.ts +99 -0
- package/dist/execute.d.ts.map +1 -0
- package/dist/execute.js +138 -0
- package/dist/execute.js.map +1 -0
- package/dist/execution.d.ts +150 -0
- package/dist/execution.d.ts.map +1 -0
- package/dist/execution.js +120 -0
- package/dist/execution.js.map +1 -0
- package/dist/files.d.ts +283 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +471 -0
- package/dist/files.js.map +1 -0
- package/dist/get.d.ts +288 -0
- package/dist/get.d.ts.map +1 -0
- package/dist/get.js +256 -0
- package/dist/get.js.map +1 -0
- package/dist/getStatus.d.ts +23 -0
- package/dist/getStatus.d.ts.map +1 -0
- package/dist/getStatus.js +53 -0
- package/dist/getStatus.js.map +1 -0
- package/dist/index.d.ts +42 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/job.d.ts +227 -0
- package/dist/job.d.ts.map +1 -0
- package/dist/job.js +109 -0
- package/dist/job.js.map +1 -0
- package/dist/list.d.ts +330 -0
- package/dist/list.d.ts.map +1 -0
- package/dist/list.js +209 -0
- package/dist/list.js.map +1 -0
- package/dist/pause.d.ts +39 -0
- package/dist/pause.d.ts.map +1 -0
- package/dist/pause.js +48 -0
- package/dist/pause.js.map +1 -0
- package/dist/resolve.d.ts +75 -0
- package/dist/resolve.d.ts.map +1 -0
- package/dist/resolve.js +76 -0
- package/dist/resolve.js.map +1 -0
- package/dist/resume.d.ts +23 -0
- package/dist/resume.d.ts.map +1 -0
- package/dist/resume.js +30 -0
- package/dist/resume.js.map +1 -0
- package/dist/run.d.ts +73 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/run.js +568 -0
- package/dist/run.js.map +1 -0
- package/dist/runtime.d.ts +94 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +82 -0
- package/dist/runtime.js.map +1 -0
- package/dist/snapshot-build.d.ts +48 -0
- package/dist/snapshot-build.d.ts.map +1 -0
- package/dist/snapshot-build.js +72 -0
- package/dist/snapshot-build.js.map +1 -0
- package/dist/snapshot.d.ts +596 -0
- package/dist/snapshot.d.ts.map +1 -0
- package/dist/snapshot.js +612 -0
- package/dist/snapshot.js.map +1 -0
- package/dist/types.d.ts +1010 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +853 -0
- package/dist/types.js.map +1 -0
- package/dist/util.d.ts +296 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +234 -0
- package/dist/util.js.map +1 -0
- package/package.json +7 -2
- package/src/api-reference.ts +1094 -0
- package/src/base64.ts +14 -0
- package/src/client.ts +998 -0
- package/src/create.ts +273 -0
- package/src/destroy.ts +43 -0
- package/src/disk-checkpoint.ts +184 -0
- package/src/events.ts +72 -0
- package/src/execute.ts +167 -0
- package/src/execution.ts +152 -0
- package/src/files.ts +637 -0
- package/src/get.ts +291 -0
- package/src/getStatus.ts +72 -0
- package/src/index.ts +252 -18
- package/src/job.ts +161 -0
- package/src/list.ts +239 -0
- package/src/pause.ts +75 -0
- package/src/resolve.ts +96 -0
- package/src/resume.ts +41 -0
- package/src/run.ts +783 -0
- package/src/runtime.ts +106 -0
- package/src/snapshot-build.ts +94 -0
- package/src/snapshot.ts +791 -0
- package/src/types.ts +1033 -0
- package/src/util.ts +280 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,1010 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { SandboxPauseResult } from './pause.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Resource limits for a sandbox using Kubernetes-style units
|
|
5
|
+
*/
|
|
6
|
+
export declare const SandboxResourcesSchema: z.ZodObject<{
|
|
7
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
8
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
9
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type SandboxResources = z.infer<typeof SandboxResourcesSchema>;
|
|
12
|
+
/** Sandbox status */
|
|
13
|
+
export declare const SandboxStatusSchema: z.ZodEnum<{
|
|
14
|
+
creating: "creating";
|
|
15
|
+
deleted: "deleted";
|
|
16
|
+
failed: "failed";
|
|
17
|
+
idle: "idle";
|
|
18
|
+
paused: "paused";
|
|
19
|
+
running: "running";
|
|
20
|
+
stopping: "stopping";
|
|
21
|
+
suspended: "suspended";
|
|
22
|
+
terminated: "terminated";
|
|
23
|
+
}>;
|
|
24
|
+
export type SandboxStatus = z.infer<typeof SandboxStatusSchema>;
|
|
25
|
+
export declare const SandboxSortFieldSchema: z.ZodEnum<{
|
|
26
|
+
created: "created";
|
|
27
|
+
execution_count: "execution_count";
|
|
28
|
+
mode: "mode";
|
|
29
|
+
name: "name";
|
|
30
|
+
status: "status";
|
|
31
|
+
updated: "updated";
|
|
32
|
+
}>;
|
|
33
|
+
export type SandboxSortField = z.infer<typeof SandboxSortFieldSchema>;
|
|
34
|
+
export declare const SnapshotSortFieldSchema: z.ZodEnum<{
|
|
35
|
+
created: "created";
|
|
36
|
+
files: "files";
|
|
37
|
+
name: "name";
|
|
38
|
+
size: "size";
|
|
39
|
+
}>;
|
|
40
|
+
export type SnapshotSortField = z.infer<typeof SnapshotSortFieldSchema>;
|
|
41
|
+
export declare const RuntimeSortFieldSchema: z.ZodEnum<{
|
|
42
|
+
created: "created";
|
|
43
|
+
name: "name";
|
|
44
|
+
}>;
|
|
45
|
+
export type RuntimeSortField = z.infer<typeof RuntimeSortFieldSchema>;
|
|
46
|
+
/** Runtime information for a sandbox */
|
|
47
|
+
export declare const SandboxRuntimeRequirementsSchema: z.ZodObject<{
|
|
48
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
49
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
50
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
51
|
+
networkEnabled: z.ZodBoolean;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type SandboxRuntimeRequirements = z.infer<typeof SandboxRuntimeRequirementsSchema>;
|
|
54
|
+
export declare const SandboxRuntimeSchema: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
description: z.ZodOptional<z.ZodString>;
|
|
58
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
59
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
60
|
+
url: z.ZodOptional<z.ZodString>;
|
|
61
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
64
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
65
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
66
|
+
networkEnabled: z.ZodBoolean;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type SandboxRuntime = z.infer<typeof SandboxRuntimeSchema>;
|
|
71
|
+
/** Runtime information included in sandbox responses */
|
|
72
|
+
export declare const SandboxRuntimeInfoSchema: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
76
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
77
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type SandboxRuntimeInfo = z.infer<typeof SandboxRuntimeInfoSchema>;
|
|
80
|
+
/** Snapshot user information (for private snapshots) */
|
|
81
|
+
export declare const SandboxSnapshotUserInfoSchema: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
84
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type SandboxSnapshotUserInfo = z.infer<typeof SandboxSnapshotUserInfoSchema>;
|
|
87
|
+
/** Snapshot org information (for public snapshots) */
|
|
88
|
+
export declare const SandboxSnapshotOrgInfoSchema: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type SandboxSnapshotOrgInfo = z.infer<typeof SandboxSnapshotOrgInfoSchema>;
|
|
94
|
+
/** Public snapshot information - includes org info */
|
|
95
|
+
export declare const SandboxSnapshotInfoPublicSchema: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
99
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
100
|
+
public: z.ZodLiteral<true>;
|
|
101
|
+
org: z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type SandboxSnapshotInfoPublic = z.infer<typeof SandboxSnapshotInfoPublicSchema>;
|
|
108
|
+
/** Private snapshot information - includes user info */
|
|
109
|
+
export declare const SandboxSnapshotInfoPrivateSchema: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
name: z.ZodOptional<z.ZodString>;
|
|
112
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
113
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
114
|
+
public: z.ZodLiteral<false>;
|
|
115
|
+
user: z.ZodObject<{
|
|
116
|
+
id: z.ZodString;
|
|
117
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
118
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export type SandboxSnapshotInfoPrivate = z.infer<typeof SandboxSnapshotInfoPrivateSchema>;
|
|
122
|
+
/** Snapshot information included in sandbox responses (discriminated union) */
|
|
123
|
+
export declare const SandboxSnapshotInfoSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
124
|
+
id: z.ZodString;
|
|
125
|
+
name: z.ZodOptional<z.ZodString>;
|
|
126
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
127
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
128
|
+
public: z.ZodLiteral<true>;
|
|
129
|
+
org: z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
name: z.ZodOptional<z.ZodString>;
|
|
137
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
138
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
139
|
+
public: z.ZodLiteral<false>;
|
|
140
|
+
user: z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
143
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
}, z.core.$strip>], "public">;
|
|
146
|
+
export type SandboxSnapshotInfo = z.infer<typeof SandboxSnapshotInfoSchema>;
|
|
147
|
+
/** Execution status */
|
|
148
|
+
export declare const ExecutionStatusSchema: z.ZodEnum<{
|
|
149
|
+
cancelled: "cancelled";
|
|
150
|
+
completed: "completed";
|
|
151
|
+
failed: "failed";
|
|
152
|
+
queued: "queued";
|
|
153
|
+
running: "running";
|
|
154
|
+
timeout: "timeout";
|
|
155
|
+
}>;
|
|
156
|
+
export type ExecutionStatus = z.infer<typeof ExecutionStatusSchema>;
|
|
157
|
+
export declare const JobStatusSchema: z.ZodEnum<{
|
|
158
|
+
cancelled: "cancelled";
|
|
159
|
+
completed: "completed";
|
|
160
|
+
failed: "failed";
|
|
161
|
+
pending: "pending";
|
|
162
|
+
running: "running";
|
|
163
|
+
}>;
|
|
164
|
+
export type JobStatus = z.infer<typeof JobStatusSchema>;
|
|
165
|
+
export declare const JobSchema: z.ZodObject<{
|
|
166
|
+
jobId: z.ZodString;
|
|
167
|
+
sandboxId: z.ZodString;
|
|
168
|
+
command: z.ZodArray<z.ZodString>;
|
|
169
|
+
status: z.ZodEnum<{
|
|
170
|
+
cancelled: "cancelled";
|
|
171
|
+
completed: "completed";
|
|
172
|
+
failed: "failed";
|
|
173
|
+
pending: "pending";
|
|
174
|
+
running: "running";
|
|
175
|
+
}>;
|
|
176
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
177
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
stderrStreamUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
export type Job = z.infer<typeof JobSchema>;
|
|
184
|
+
export declare const CreateJobOptionsSchema: z.ZodObject<{
|
|
185
|
+
command: z.ZodArray<z.ZodString>;
|
|
186
|
+
streams: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
188
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
}, z.core.$strip>;
|
|
191
|
+
export type CreateJobOptions = z.infer<typeof CreateJobOptionsSchema>;
|
|
192
|
+
/** Read-only stream interface for consuming streams without write access */
|
|
193
|
+
export declare const StreamReaderSchema: z.ZodObject<{
|
|
194
|
+
id: z.ZodString;
|
|
195
|
+
url: z.ZodString;
|
|
196
|
+
readonly: z.ZodLiteral<true>;
|
|
197
|
+
getReader: z.ZodCustom<() => ReadableStream<Uint8Array>, () => ReadableStream<Uint8Array>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export type StreamReader = z.infer<typeof StreamReaderSchema>;
|
|
200
|
+
/** Stream configuration for sandbox output */
|
|
201
|
+
export declare const SandboxStreamConfigSchema: z.ZodObject<{
|
|
202
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
203
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
204
|
+
stdin: z.ZodOptional<z.ZodString>;
|
|
205
|
+
timestamps: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export type SandboxStreamConfig = z.infer<typeof SandboxStreamConfigSchema>;
|
|
208
|
+
/** Represents a file to write to the sandbox */
|
|
209
|
+
export declare const FileToWriteSchema: z.ZodObject<{
|
|
210
|
+
path: z.ZodString;
|
|
211
|
+
content: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export type FileToWrite = z.infer<typeof FileToWriteSchema>;
|
|
214
|
+
/** Command to execute in a sandbox */
|
|
215
|
+
export declare const SandboxCommandSchema: z.ZodObject<{
|
|
216
|
+
exec: z.ZodArray<z.ZodString>;
|
|
217
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
+
path: z.ZodString;
|
|
219
|
+
content: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
220
|
+
}, z.core.$strip>>>;
|
|
221
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
222
|
+
interactive: "interactive";
|
|
223
|
+
oneshot: "oneshot";
|
|
224
|
+
}>>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
export type SandboxCommand = z.infer<typeof SandboxCommandSchema>;
|
|
227
|
+
/** Network configuration for sandbox */
|
|
228
|
+
export declare const SandboxNetworkConfigSchema: z.ZodObject<{
|
|
229
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
230
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
export type SandboxNetworkConfig = z.infer<typeof SandboxNetworkConfigSchema>;
|
|
233
|
+
/** Timeout configuration for sandbox */
|
|
234
|
+
export declare const SandboxTimeoutConfigSchema: z.ZodObject<{
|
|
235
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
236
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
237
|
+
paused: z.ZodOptional<z.ZodString>;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
export type SandboxTimeoutConfig = z.infer<typeof SandboxTimeoutConfigSchema>;
|
|
240
|
+
/** Options for creating a sandbox. */
|
|
241
|
+
export declare const SandboxCreateOptionsSchema: z.ZodObject<{
|
|
242
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
243
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
244
|
+
runtimeId: z.ZodOptional<z.ZodString>;
|
|
245
|
+
name: z.ZodOptional<z.ZodString>;
|
|
246
|
+
description: z.ZodOptional<z.ZodString>;
|
|
247
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
248
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
249
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
250
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
251
|
+
}, z.core.$strip>>;
|
|
252
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
253
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
}, z.core.$strip>>;
|
|
257
|
+
stream: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
259
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
260
|
+
stdin: z.ZodOptional<z.ZodString>;
|
|
261
|
+
timestamps: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
265
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
266
|
+
paused: z.ZodOptional<z.ZodString>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
exec: z.ZodArray<z.ZodString>;
|
|
270
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
271
|
+
path: z.ZodString;
|
|
272
|
+
content: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
274
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
275
|
+
interactive: "interactive";
|
|
276
|
+
oneshot: "oneshot";
|
|
277
|
+
}>>;
|
|
278
|
+
}, z.core.$strip>>;
|
|
279
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
280
|
+
path: z.ZodString;
|
|
281
|
+
content: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
282
|
+
}, z.core.$strip>>>;
|
|
283
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
284
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
285
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
287
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
export type SandboxCreateOptions = z.infer<typeof SandboxCreateOptionsSchema>;
|
|
290
|
+
/** A sandbox instance with methods for interaction */
|
|
291
|
+
export declare const SandboxSchema: z.ZodObject<{
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
status: z.ZodEnum<{
|
|
294
|
+
creating: "creating";
|
|
295
|
+
deleted: "deleted";
|
|
296
|
+
failed: "failed";
|
|
297
|
+
idle: "idle";
|
|
298
|
+
paused: "paused";
|
|
299
|
+
running: "running";
|
|
300
|
+
stopping: "stopping";
|
|
301
|
+
suspended: "suspended";
|
|
302
|
+
terminated: "terminated";
|
|
303
|
+
}>;
|
|
304
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
id: z.ZodString;
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
description: z.ZodOptional<z.ZodString>;
|
|
308
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
309
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
310
|
+
url: z.ZodOptional<z.ZodString>;
|
|
311
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
312
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
314
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
315
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
316
|
+
networkEnabled: z.ZodBoolean;
|
|
317
|
+
}, z.core.$strip>>;
|
|
318
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, z.core.$strip>>;
|
|
320
|
+
name: z.ZodOptional<z.ZodString>;
|
|
321
|
+
description: z.ZodOptional<z.ZodString>;
|
|
322
|
+
stdout: z.ZodObject<{
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
url: z.ZodString;
|
|
325
|
+
readonly: z.ZodLiteral<true>;
|
|
326
|
+
getReader: z.ZodCustom<() => ReadableStream<Uint8Array>, () => ReadableStream<Uint8Array>>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
stderr: z.ZodObject<{
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
url: z.ZodString;
|
|
331
|
+
readonly: z.ZodLiteral<true>;
|
|
332
|
+
getReader: z.ZodCustom<() => ReadableStream<Uint8Array>, () => ReadableStream<Uint8Array>>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
interleaved: z.ZodBoolean;
|
|
335
|
+
auditStreamId: z.ZodOptional<z.ZodString>;
|
|
336
|
+
execute: z.ZodCustom<(options: ExecuteOptions) => Promise<Execution>, (options: ExecuteOptions) => Promise<Execution>>;
|
|
337
|
+
writeFiles: z.ZodCustom<(files: FileToWrite[]) => Promise<void>, (files: FileToWrite[]) => Promise<void>>;
|
|
338
|
+
readFile: z.ZodCustom<(path: string) => Promise<ReadableStream<Uint8Array>>, (path: string) => Promise<ReadableStream<Uint8Array>>>;
|
|
339
|
+
listFiles: z.ZodCustom<(path?: string) => Promise<SandboxFileInfo[]>, (path?: string) => Promise<SandboxFileInfo[]>>;
|
|
340
|
+
mkDir: z.ZodCustom<(path: string, recursive?: boolean) => Promise<void>, (path: string, recursive?: boolean) => Promise<void>>;
|
|
341
|
+
rmFile: z.ZodCustom<(path: string) => Promise<{
|
|
342
|
+
found: boolean;
|
|
343
|
+
}>, (path: string) => Promise<{
|
|
344
|
+
found: boolean;
|
|
345
|
+
}>>;
|
|
346
|
+
rmDir: z.ZodCustom<(path: string, recursive?: boolean) => Promise<{
|
|
347
|
+
found: boolean;
|
|
348
|
+
}>, (path: string, recursive?: boolean) => Promise<{
|
|
349
|
+
found: boolean;
|
|
350
|
+
}>>;
|
|
351
|
+
setEnv: z.ZodCustom<(env: Record<string, string | null>) => Promise<Record<string, string>>, (env: Record<string, string | null>) => Promise<Record<string, string>>>;
|
|
352
|
+
pause: z.ZodCustom<() => Promise<SandboxPauseResult>, () => Promise<SandboxPauseResult>>;
|
|
353
|
+
resume: z.ZodCustom<() => Promise<void>, () => Promise<void>>;
|
|
354
|
+
destroy: z.ZodCustom<() => Promise<void>, () => Promise<void>>;
|
|
355
|
+
createJob: z.ZodCustom<(options: CreateJobOptions) => Promise<Job>, (options: CreateJobOptions) => Promise<Job>>;
|
|
356
|
+
getJob: z.ZodCustom<(jobId: string) => Promise<Job>, (jobId: string) => Promise<Job>>;
|
|
357
|
+
listJobs: z.ZodCustom<(limit?: number) => Promise<{
|
|
358
|
+
jobs: Job[];
|
|
359
|
+
}>, (limit?: number) => Promise<{
|
|
360
|
+
jobs: Job[];
|
|
361
|
+
}>>;
|
|
362
|
+
stopJob: z.ZodCustom<(jobId: string, force?: boolean) => Promise<Job>, (jobId: string, force?: boolean) => Promise<Job>>;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
export type Sandbox = z.infer<typeof SandboxSchema>;
|
|
365
|
+
/**
|
|
366
|
+
* File information returned by sandbox file operations.
|
|
367
|
+
* NOTE: This interface is structurally identical to FileInfo in ./files.ts.
|
|
368
|
+
* It is duplicated here to avoid circular type imports. Keep these in sync.
|
|
369
|
+
*/
|
|
370
|
+
export interface SandboxFileInfo {
|
|
371
|
+
/** File path relative to the listed directory */
|
|
372
|
+
path: string;
|
|
373
|
+
/** File size in bytes */
|
|
374
|
+
size: number;
|
|
375
|
+
/** Whether the entry is a directory */
|
|
376
|
+
isDir: boolean;
|
|
377
|
+
/** Whether the entry is a symbolic link */
|
|
378
|
+
isSymlink?: boolean;
|
|
379
|
+
/** Target path of the symbolic link */
|
|
380
|
+
linkTarget?: string;
|
|
381
|
+
/** Unix permissions as octal string (e.g., "0644") */
|
|
382
|
+
mode: string;
|
|
383
|
+
/** Modification time in RFC3339 format */
|
|
384
|
+
modTime: string;
|
|
385
|
+
}
|
|
386
|
+
/** Information about a user who created the sandbox */
|
|
387
|
+
export declare const SandboxUserInfoSchema: z.ZodObject<{
|
|
388
|
+
id: z.ZodString;
|
|
389
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
390
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
391
|
+
}, z.core.$strip>;
|
|
392
|
+
export type SandboxUserInfo = z.infer<typeof SandboxUserInfoSchema>;
|
|
393
|
+
/** Information about an agent associated with the sandbox */
|
|
394
|
+
export declare const SandboxAgentInfoSchema: z.ZodObject<{
|
|
395
|
+
id: z.ZodString;
|
|
396
|
+
name: z.ZodString;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
export type SandboxAgentInfo = z.infer<typeof SandboxAgentInfoSchema>;
|
|
399
|
+
/** Information about a project associated with the sandbox */
|
|
400
|
+
export declare const SandboxProjectInfoSchema: z.ZodObject<{
|
|
401
|
+
id: z.ZodString;
|
|
402
|
+
name: z.ZodString;
|
|
403
|
+
}, z.core.$strip>;
|
|
404
|
+
export type SandboxProjectInfo = z.infer<typeof SandboxProjectInfoSchema>;
|
|
405
|
+
/** Information about an organization associated with the sandbox */
|
|
406
|
+
export declare const SandboxOrgInfoSchema: z.ZodObject<{
|
|
407
|
+
id: z.ZodString;
|
|
408
|
+
name: z.ZodString;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
export type SandboxOrgInfo = z.infer<typeof SandboxOrgInfoSchema>;
|
|
411
|
+
/** Information about a sandbox */
|
|
412
|
+
export declare const SandboxInfoSchema: z.ZodObject<{
|
|
413
|
+
sandboxId: z.ZodString;
|
|
414
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
415
|
+
name: z.ZodOptional<z.ZodString>;
|
|
416
|
+
description: z.ZodOptional<z.ZodString>;
|
|
417
|
+
status: z.ZodEnum<{
|
|
418
|
+
creating: "creating";
|
|
419
|
+
deleted: "deleted";
|
|
420
|
+
failed: "failed";
|
|
421
|
+
idle: "idle";
|
|
422
|
+
paused: "paused";
|
|
423
|
+
running: "running";
|
|
424
|
+
stopping: "stopping";
|
|
425
|
+
suspended: "suspended";
|
|
426
|
+
terminated: "terminated";
|
|
427
|
+
}>;
|
|
428
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
429
|
+
createdAt: z.ZodString;
|
|
430
|
+
region: z.ZodOptional<z.ZodString>;
|
|
431
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
id: z.ZodString;
|
|
433
|
+
name: z.ZodString;
|
|
434
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
435
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
436
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
snapshot: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
439
|
+
id: z.ZodString;
|
|
440
|
+
name: z.ZodOptional<z.ZodString>;
|
|
441
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
442
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
443
|
+
public: z.ZodLiteral<true>;
|
|
444
|
+
org: z.ZodObject<{
|
|
445
|
+
id: z.ZodString;
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
450
|
+
id: z.ZodString;
|
|
451
|
+
name: z.ZodOptional<z.ZodString>;
|
|
452
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
453
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
454
|
+
public: z.ZodLiteral<false>;
|
|
455
|
+
user: z.ZodObject<{
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
458
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
459
|
+
}, z.core.$strip>;
|
|
460
|
+
}, z.core.$strip>], "public">>;
|
|
461
|
+
executions: z.ZodNumber;
|
|
462
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
463
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
464
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
465
|
+
auditStreamId: z.ZodOptional<z.ZodString>;
|
|
466
|
+
auditStreamUrl: z.ZodOptional<z.ZodString>;
|
|
467
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
468
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
469
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
470
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
471
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
472
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
473
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
cpuTimeMs: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
memoryByteSec: z.ZodOptional<z.ZodNumber>;
|
|
477
|
+
networkEgressBytes: z.ZodOptional<z.ZodNumber>;
|
|
478
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
479
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
480
|
+
url: z.ZodOptional<z.ZodString>;
|
|
481
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
484
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
485
|
+
}, z.core.$strip>>;
|
|
486
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
id: z.ZodString;
|
|
488
|
+
name: z.ZodString;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
id: z.ZodString;
|
|
492
|
+
name: z.ZodString;
|
|
493
|
+
}, z.core.$strip>>;
|
|
494
|
+
org: z.ZodObject<{
|
|
495
|
+
id: z.ZodString;
|
|
496
|
+
name: z.ZodString;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
499
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
500
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
501
|
+
paused: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strip>>;
|
|
503
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
exec: z.ZodArray<z.ZodString>;
|
|
505
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
506
|
+
interactive: "interactive";
|
|
507
|
+
oneshot: "oneshot";
|
|
508
|
+
}>>;
|
|
509
|
+
}, z.core.$strip>>;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
export type SandboxInfo = z.infer<typeof SandboxInfoSchema>;
|
|
512
|
+
/** Parameters for listing sandboxes */
|
|
513
|
+
export declare const ListSandboxesParamsSchema: z.ZodObject<{
|
|
514
|
+
name: z.ZodOptional<z.ZodString>;
|
|
515
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
516
|
+
interactive: "interactive";
|
|
517
|
+
oneshot: "oneshot";
|
|
518
|
+
}>>;
|
|
519
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
520
|
+
snapshotId: z.ZodOptional<z.ZodString>;
|
|
521
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
522
|
+
creating: "creating";
|
|
523
|
+
deleted: "deleted";
|
|
524
|
+
failed: "failed";
|
|
525
|
+
idle: "idle";
|
|
526
|
+
paused: "paused";
|
|
527
|
+
running: "running";
|
|
528
|
+
stopping: "stopping";
|
|
529
|
+
suspended: "suspended";
|
|
530
|
+
terminated: "terminated";
|
|
531
|
+
}>>;
|
|
532
|
+
live: z.ZodOptional<z.ZodBoolean>;
|
|
533
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
535
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
536
|
+
created: "created";
|
|
537
|
+
execution_count: "execution_count";
|
|
538
|
+
mode: "mode";
|
|
539
|
+
name: "name";
|
|
540
|
+
status: "status";
|
|
541
|
+
updated: "updated";
|
|
542
|
+
}>>;
|
|
543
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
asc: "asc";
|
|
545
|
+
desc: "desc";
|
|
546
|
+
}>>;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
export type ListSandboxesParams = z.infer<typeof ListSandboxesParamsSchema>;
|
|
549
|
+
/** Response from listing sandboxes */
|
|
550
|
+
export declare const ListSandboxesResponseSchema: z.ZodObject<{
|
|
551
|
+
sandboxes: z.ZodArray<z.ZodObject<{
|
|
552
|
+
sandboxId: z.ZodString;
|
|
553
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
554
|
+
name: z.ZodOptional<z.ZodString>;
|
|
555
|
+
description: z.ZodOptional<z.ZodString>;
|
|
556
|
+
status: z.ZodEnum<{
|
|
557
|
+
creating: "creating";
|
|
558
|
+
deleted: "deleted";
|
|
559
|
+
failed: "failed";
|
|
560
|
+
idle: "idle";
|
|
561
|
+
paused: "paused";
|
|
562
|
+
running: "running";
|
|
563
|
+
stopping: "stopping";
|
|
564
|
+
suspended: "suspended";
|
|
565
|
+
terminated: "terminated";
|
|
566
|
+
}>;
|
|
567
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
568
|
+
createdAt: z.ZodString;
|
|
569
|
+
region: z.ZodOptional<z.ZodString>;
|
|
570
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
571
|
+
id: z.ZodString;
|
|
572
|
+
name: z.ZodString;
|
|
573
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
574
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
575
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
576
|
+
}, z.core.$strip>>;
|
|
577
|
+
snapshot: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
578
|
+
id: z.ZodString;
|
|
579
|
+
name: z.ZodOptional<z.ZodString>;
|
|
580
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
581
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
582
|
+
public: z.ZodLiteral<true>;
|
|
583
|
+
org: z.ZodObject<{
|
|
584
|
+
id: z.ZodString;
|
|
585
|
+
name: z.ZodString;
|
|
586
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
587
|
+
}, z.core.$strip>;
|
|
588
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
589
|
+
id: z.ZodString;
|
|
590
|
+
name: z.ZodOptional<z.ZodString>;
|
|
591
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
592
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
593
|
+
public: z.ZodLiteral<false>;
|
|
594
|
+
user: z.ZodObject<{
|
|
595
|
+
id: z.ZodString;
|
|
596
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
597
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
}, z.core.$strip>], "public">>;
|
|
600
|
+
executions: z.ZodNumber;
|
|
601
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
602
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
603
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
604
|
+
auditStreamId: z.ZodOptional<z.ZodString>;
|
|
605
|
+
auditStreamUrl: z.ZodOptional<z.ZodString>;
|
|
606
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
607
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
608
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
609
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
610
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
611
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
612
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, z.core.$strip>>;
|
|
614
|
+
cpuTimeMs: z.ZodOptional<z.ZodNumber>;
|
|
615
|
+
memoryByteSec: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
networkEgressBytes: z.ZodOptional<z.ZodNumber>;
|
|
617
|
+
networkEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
618
|
+
networkPort: z.ZodOptional<z.ZodNumber>;
|
|
619
|
+
url: z.ZodOptional<z.ZodString>;
|
|
620
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
621
|
+
id: z.ZodString;
|
|
622
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
623
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
624
|
+
}, z.core.$strip>>;
|
|
625
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
id: z.ZodString;
|
|
627
|
+
name: z.ZodString;
|
|
628
|
+
}, z.core.$strip>>;
|
|
629
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
630
|
+
id: z.ZodString;
|
|
631
|
+
name: z.ZodString;
|
|
632
|
+
}, z.core.$strip>>;
|
|
633
|
+
org: z.ZodObject<{
|
|
634
|
+
id: z.ZodString;
|
|
635
|
+
name: z.ZodString;
|
|
636
|
+
}, z.core.$strip>;
|
|
637
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
638
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
639
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
640
|
+
paused: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, z.core.$strip>>;
|
|
642
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
exec: z.ZodArray<z.ZodString>;
|
|
644
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
645
|
+
interactive: "interactive";
|
|
646
|
+
oneshot: "oneshot";
|
|
647
|
+
}>>;
|
|
648
|
+
}, z.core.$strip>>;
|
|
649
|
+
}, z.core.$strip>>;
|
|
650
|
+
total: z.ZodNumber;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
export type ListSandboxesResponse = z.infer<typeof ListSandboxesResponseSchema>;
|
|
653
|
+
/** Parameters for listing sandbox runtimes */
|
|
654
|
+
export declare const ListRuntimesParamsSchema: z.ZodObject<{
|
|
655
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
656
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
657
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
658
|
+
created: "created";
|
|
659
|
+
name: "name";
|
|
660
|
+
}>>;
|
|
661
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
662
|
+
asc: "asc";
|
|
663
|
+
desc: "desc";
|
|
664
|
+
}>>;
|
|
665
|
+
}, z.core.$strip>;
|
|
666
|
+
export type ListRuntimesParams = z.infer<typeof ListRuntimesParamsSchema>;
|
|
667
|
+
/** Response from listing sandbox runtimes */
|
|
668
|
+
export declare const ListRuntimesResponseSchema: z.ZodObject<{
|
|
669
|
+
runtimes: z.ZodArray<z.ZodObject<{
|
|
670
|
+
id: z.ZodString;
|
|
671
|
+
name: z.ZodString;
|
|
672
|
+
description: z.ZodOptional<z.ZodString>;
|
|
673
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
674
|
+
brandColor: z.ZodOptional<z.ZodString>;
|
|
675
|
+
url: z.ZodOptional<z.ZodString>;
|
|
676
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
677
|
+
requirements: z.ZodOptional<z.ZodObject<{
|
|
678
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
679
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
680
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
681
|
+
networkEnabled: z.ZodBoolean;
|
|
682
|
+
}, z.core.$strip>>;
|
|
683
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
684
|
+
}, z.core.$strip>>;
|
|
685
|
+
total: z.ZodNumber;
|
|
686
|
+
}, z.core.$strip>;
|
|
687
|
+
export type ListRuntimesResponse = z.infer<typeof ListRuntimesResponseSchema>;
|
|
688
|
+
/** Options for executing a command in a sandbox */
|
|
689
|
+
export declare const ExecuteOptionsSchema: z.ZodObject<{
|
|
690
|
+
command: z.ZodArray<z.ZodString>;
|
|
691
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
692
|
+
path: z.ZodString;
|
|
693
|
+
content: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
694
|
+
}, z.core.$strip>>>;
|
|
695
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
696
|
+
stream: z.ZodOptional<z.ZodObject<{
|
|
697
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
698
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
699
|
+
timestamps: z.ZodOptional<z.ZodBoolean>;
|
|
700
|
+
}, z.core.$strip>>;
|
|
701
|
+
signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>;
|
|
702
|
+
}, z.core.$strip>;
|
|
703
|
+
export type ExecuteOptions = z.infer<typeof ExecuteOptionsSchema>;
|
|
704
|
+
/** An execution instance */
|
|
705
|
+
export declare const ExecutionSchema: z.ZodObject<{
|
|
706
|
+
executionId: z.ZodString;
|
|
707
|
+
status: z.ZodEnum<{
|
|
708
|
+
cancelled: "cancelled";
|
|
709
|
+
completed: "completed";
|
|
710
|
+
failed: "failed";
|
|
711
|
+
queued: "queued";
|
|
712
|
+
running: "running";
|
|
713
|
+
timeout: "timeout";
|
|
714
|
+
}>;
|
|
715
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
716
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
717
|
+
stdoutStreamUrl: z.ZodOptional<z.ZodString>;
|
|
718
|
+
stderrStreamUrl: z.ZodOptional<z.ZodString>;
|
|
719
|
+
outputTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
720
|
+
autoResumed: z.ZodOptional<z.ZodBoolean>;
|
|
721
|
+
}, z.core.$strip>;
|
|
722
|
+
export type Execution = z.infer<typeof ExecutionSchema>;
|
|
723
|
+
/** Information about a file in a snapshot */
|
|
724
|
+
export declare const SnapshotFileInfoSchema: z.ZodObject<{
|
|
725
|
+
path: z.ZodString;
|
|
726
|
+
size: z.ZodNumber;
|
|
727
|
+
sha256: z.ZodString;
|
|
728
|
+
contentType: z.ZodString;
|
|
729
|
+
mode: z.ZodNumber;
|
|
730
|
+
}, z.core.$strip>;
|
|
731
|
+
export type SnapshotFileInfo = z.infer<typeof SnapshotFileInfoSchema>;
|
|
732
|
+
/** Organization information for snapshots */
|
|
733
|
+
export declare const SnapshotOrgInfoSchema: z.ZodObject<{
|
|
734
|
+
id: z.ZodString;
|
|
735
|
+
name: z.ZodString;
|
|
736
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
737
|
+
}, z.core.$strip>;
|
|
738
|
+
export type SnapshotOrgInfo = z.infer<typeof SnapshotOrgInfoSchema>;
|
|
739
|
+
/** User information for snapshots */
|
|
740
|
+
export declare const SnapshotUserInfoSchema: z.ZodObject<{
|
|
741
|
+
id: z.ZodString;
|
|
742
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
744
|
+
}, z.core.$strip>;
|
|
745
|
+
export type SnapshotUserInfo = z.infer<typeof SnapshotUserInfoSchema>;
|
|
746
|
+
/** Detailed information about a snapshot */
|
|
747
|
+
export declare const SnapshotInfoSchema: z.ZodObject<{
|
|
748
|
+
snapshotId: z.ZodString;
|
|
749
|
+
runtimeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
750
|
+
name: z.ZodString;
|
|
751
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
752
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
753
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
754
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
755
|
+
sizeBytes: z.ZodNumber;
|
|
756
|
+
fileCount: z.ZodNumber;
|
|
757
|
+
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
758
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
759
|
+
orgName: z.ZodOptional<z.ZodString>;
|
|
760
|
+
orgSlug: z.ZodOptional<z.ZodString>;
|
|
761
|
+
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
762
|
+
id: z.ZodString;
|
|
763
|
+
name: z.ZodString;
|
|
764
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
765
|
+
}, z.core.$strip>>>;
|
|
766
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
767
|
+
id: z.ZodString;
|
|
768
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
769
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
770
|
+
}, z.core.$strip>>>;
|
|
771
|
+
createdAt: z.ZodString;
|
|
772
|
+
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
773
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
774
|
+
path: z.ZodString;
|
|
775
|
+
size: z.ZodNumber;
|
|
776
|
+
sha256: z.ZodString;
|
|
777
|
+
contentType: z.ZodString;
|
|
778
|
+
mode: z.ZodNumber;
|
|
779
|
+
}, z.core.$strip>>>>;
|
|
780
|
+
userMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
781
|
+
}, z.core.$strip>;
|
|
782
|
+
export type SnapshotInfo = z.infer<typeof SnapshotInfoSchema>;
|
|
783
|
+
/** Options for creating a snapshot */
|
|
784
|
+
export declare const SnapshotCreateOptionsSchema: z.ZodObject<{
|
|
785
|
+
name: z.ZodOptional<z.ZodString>;
|
|
786
|
+
description: z.ZodOptional<z.ZodString>;
|
|
787
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
788
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
789
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
790
|
+
}, z.core.$strip>;
|
|
791
|
+
export type SnapshotCreateOptions = z.infer<typeof SnapshotCreateOptionsSchema>;
|
|
792
|
+
/** Parameters for listing snapshots */
|
|
793
|
+
export declare const SnapshotListParamsSchema: z.ZodObject<{
|
|
794
|
+
sandboxId: z.ZodOptional<z.ZodString>;
|
|
795
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
796
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
797
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
798
|
+
created: "created";
|
|
799
|
+
files: "files";
|
|
800
|
+
name: "name";
|
|
801
|
+
size: "size";
|
|
802
|
+
}>>;
|
|
803
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
804
|
+
asc: "asc";
|
|
805
|
+
desc: "desc";
|
|
806
|
+
}>>;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
export type SnapshotListParams = z.infer<typeof SnapshotListParamsSchema>;
|
|
809
|
+
/** Response from listing snapshots */
|
|
810
|
+
export declare const SnapshotListResponseSchema: z.ZodObject<{
|
|
811
|
+
snapshots: z.ZodArray<z.ZodObject<{
|
|
812
|
+
snapshotId: z.ZodString;
|
|
813
|
+
runtimeId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
814
|
+
name: z.ZodString;
|
|
815
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
816
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
817
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
818
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
819
|
+
sizeBytes: z.ZodNumber;
|
|
820
|
+
fileCount: z.ZodNumber;
|
|
821
|
+
parentSnapshotId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
822
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
823
|
+
orgName: z.ZodOptional<z.ZodString>;
|
|
824
|
+
orgSlug: z.ZodOptional<z.ZodString>;
|
|
825
|
+
org: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
826
|
+
id: z.ZodString;
|
|
827
|
+
name: z.ZodString;
|
|
828
|
+
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
829
|
+
}, z.core.$strip>>>;
|
|
830
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
831
|
+
id: z.ZodString;
|
|
832
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
833
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
834
|
+
}, z.core.$strip>>>;
|
|
835
|
+
createdAt: z.ZodString;
|
|
836
|
+
downloadUrl: z.ZodOptional<z.ZodString>;
|
|
837
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
838
|
+
path: z.ZodString;
|
|
839
|
+
size: z.ZodNumber;
|
|
840
|
+
sha256: z.ZodString;
|
|
841
|
+
contentType: z.ZodString;
|
|
842
|
+
mode: z.ZodNumber;
|
|
843
|
+
}, z.core.$strip>>>>;
|
|
844
|
+
userMetadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
845
|
+
}, z.core.$strip>>;
|
|
846
|
+
total: z.ZodNumber;
|
|
847
|
+
}, z.core.$strip>;
|
|
848
|
+
export type SnapshotListResponse = z.infer<typeof SnapshotListResponseSchema>;
|
|
849
|
+
/**
|
|
850
|
+
* Service for managing sandbox snapshots
|
|
851
|
+
*/
|
|
852
|
+
export interface SnapshotService {
|
|
853
|
+
create(sandboxId: string, options?: SnapshotCreateOptions): Promise<SnapshotInfo>;
|
|
854
|
+
get(snapshotId: string): Promise<SnapshotInfo>;
|
|
855
|
+
list(params?: SnapshotListParams): Promise<SnapshotListResponse>;
|
|
856
|
+
delete(snapshotId: string): Promise<void>;
|
|
857
|
+
tag(snapshotId: string, tag: string | null): Promise<SnapshotInfo>;
|
|
858
|
+
}
|
|
859
|
+
/** Options for one-shot sandbox execution */
|
|
860
|
+
export declare const SandboxRunOptionsSchema: z.ZodObject<{
|
|
861
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
862
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
863
|
+
runtimeId: z.ZodOptional<z.ZodString>;
|
|
864
|
+
name: z.ZodOptional<z.ZodString>;
|
|
865
|
+
description: z.ZodOptional<z.ZodString>;
|
|
866
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
867
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
868
|
+
cpu: z.ZodOptional<z.ZodString>;
|
|
869
|
+
disk: z.ZodOptional<z.ZodString>;
|
|
870
|
+
}, z.core.$strip>>;
|
|
871
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
872
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
873
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
874
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
875
|
+
}, z.core.$strip>>;
|
|
876
|
+
stream: z.ZodOptional<z.ZodObject<{
|
|
877
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
878
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
879
|
+
stdin: z.ZodOptional<z.ZodString>;
|
|
880
|
+
timestamps: z.ZodOptional<z.ZodBoolean>;
|
|
881
|
+
}, z.core.$strip>>;
|
|
882
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
883
|
+
idle: z.ZodOptional<z.ZodString>;
|
|
884
|
+
execution: z.ZodOptional<z.ZodString>;
|
|
885
|
+
paused: z.ZodOptional<z.ZodString>;
|
|
886
|
+
}, z.core.$strip>>;
|
|
887
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
888
|
+
path: z.ZodString;
|
|
889
|
+
content: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
890
|
+
}, z.core.$strip>>>;
|
|
891
|
+
snapshot: z.ZodOptional<z.ZodString>;
|
|
892
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
893
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
894
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
895
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
896
|
+
command: z.ZodObject<{
|
|
897
|
+
exec: z.ZodArray<z.ZodString>;
|
|
898
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
899
|
+
path: z.ZodString;
|
|
900
|
+
content: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
901
|
+
}, z.core.$strip>>>;
|
|
902
|
+
}, z.core.$strip>;
|
|
903
|
+
}, z.core.$strip>;
|
|
904
|
+
export type SandboxRunOptions = z.infer<typeof SandboxRunOptionsSchema>;
|
|
905
|
+
/** Result from one-shot sandbox execution */
|
|
906
|
+
export declare const SandboxRunResultSchema: z.ZodObject<{
|
|
907
|
+
sandboxId: z.ZodString;
|
|
908
|
+
exitCode: z.ZodNumber;
|
|
909
|
+
durationMs: z.ZodNumber;
|
|
910
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
911
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
912
|
+
}, z.core.$strip>;
|
|
913
|
+
export type SandboxRunResult = z.infer<typeof SandboxRunResultSchema>;
|
|
914
|
+
/**
|
|
915
|
+
* Sandbox service for creating and managing isolated execution environments
|
|
916
|
+
*/
|
|
917
|
+
export interface SandboxService {
|
|
918
|
+
run(options: SandboxRunOptions): Promise<SandboxRunResult>;
|
|
919
|
+
create(options?: SandboxCreateOptions): Promise<Sandbox>;
|
|
920
|
+
/** Get a full Sandbox instance for an existing sandbox by ID. */
|
|
921
|
+
connect(sandboxId: string): Promise<Sandbox>;
|
|
922
|
+
get(sandboxId: string): Promise<SandboxInfo>;
|
|
923
|
+
list(params?: ListSandboxesParams): Promise<ListSandboxesResponse>;
|
|
924
|
+
destroy(sandboxId: string): Promise<void>;
|
|
925
|
+
/** Pause a running sandbox, creating a checkpoint of its current state. */
|
|
926
|
+
pause(sandboxId: string): Promise<SandboxPauseResult>;
|
|
927
|
+
/** Resume a paused or evacuated sandbox from its checkpoint. */
|
|
928
|
+
resume(sandboxId: string): Promise<void>;
|
|
929
|
+
snapshot: SnapshotService;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Request body for updating sandbox environment variables.
|
|
933
|
+
*/
|
|
934
|
+
export declare const SandboxEnvUpdateRequestSchema: z.ZodObject<{
|
|
935
|
+
env: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
936
|
+
}, z.core.$strip>;
|
|
937
|
+
export type SandboxEnvUpdateRequest = z.infer<typeof SandboxEnvUpdateRequestSchema>;
|
|
938
|
+
/**
|
|
939
|
+
* Response data for updating sandbox environment variables.
|
|
940
|
+
*/
|
|
941
|
+
export declare const SandboxEnvUpdateResponseSchema: z.ZodObject<{
|
|
942
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
943
|
+
}, z.core.$strip>;
|
|
944
|
+
export type SandboxEnvUpdateResponse = z.infer<typeof SandboxEnvUpdateResponseSchema>;
|
|
945
|
+
/**
|
|
946
|
+
* Response data for sandbox status check (mirrors private SandboxStatusDataSchema in getStatus.ts).
|
|
947
|
+
*/
|
|
948
|
+
export declare const SandboxStatusResponseDataSchema: z.ZodObject<{
|
|
949
|
+
sandboxId: z.ZodString;
|
|
950
|
+
status: z.ZodString;
|
|
951
|
+
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
952
|
+
}, z.core.$strip>;
|
|
953
|
+
export type SandboxStatusResponseData = z.infer<typeof SandboxStatusResponseDataSchema>;
|
|
954
|
+
/**
|
|
955
|
+
* Request body for initializing a snapshot build (mirrors private _SnapshotBuildInitParamsSchema in snapshot.ts).
|
|
956
|
+
*/
|
|
957
|
+
export declare const SnapshotBuildInitRequestSchema: z.ZodObject<{
|
|
958
|
+
runtime: z.ZodString;
|
|
959
|
+
name: z.ZodOptional<z.ZodString>;
|
|
960
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
961
|
+
description: z.ZodOptional<z.ZodString>;
|
|
962
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
963
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
964
|
+
encrypt: z.ZodOptional<z.ZodBoolean>;
|
|
965
|
+
public: z.ZodOptional<z.ZodBoolean>;
|
|
966
|
+
}, z.core.$strip>;
|
|
967
|
+
export type SnapshotBuildInitRequest = z.infer<typeof SnapshotBuildInitRequestSchema>;
|
|
968
|
+
/**
|
|
969
|
+
* Request body for finalizing a snapshot build (mirrors private _SnapshotBuildFinalizeParamsSchema in snapshot.ts).
|
|
970
|
+
*/
|
|
971
|
+
export declare const SnapshotBuildFinalizeRequestSchema: z.ZodObject<{
|
|
972
|
+
sizeBytes: z.ZodNumber;
|
|
973
|
+
fileCount: z.ZodNumber;
|
|
974
|
+
files: z.ZodArray<z.ZodObject<{
|
|
975
|
+
path: z.ZodString;
|
|
976
|
+
size: z.ZodNumber;
|
|
977
|
+
sha256: z.ZodString;
|
|
978
|
+
contentType: z.ZodString;
|
|
979
|
+
mode: z.ZodNumber;
|
|
980
|
+
}, z.core.$strip>>;
|
|
981
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
982
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
983
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
984
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
985
|
+
}, z.core.$strip>;
|
|
986
|
+
export type SnapshotBuildFinalizeRequest = z.infer<typeof SnapshotBuildFinalizeRequestSchema>;
|
|
987
|
+
/**
|
|
988
|
+
* Request body for updating a snapshot tag.
|
|
989
|
+
*/
|
|
990
|
+
export declare const SnapshotTagUpdateRequestSchema: z.ZodObject<{
|
|
991
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
992
|
+
}, z.core.$strip>;
|
|
993
|
+
export type SnapshotTagUpdateRequest = z.infer<typeof SnapshotTagUpdateRequestSchema>;
|
|
994
|
+
/** Structured error for sandbox operations */
|
|
995
|
+
export declare const SandboxError: {
|
|
996
|
+
new (args?: ({
|
|
997
|
+
sandboxId?: string;
|
|
998
|
+
executionId?: string;
|
|
999
|
+
} & {
|
|
1000
|
+
message?: string;
|
|
1001
|
+
cause?: unknown;
|
|
1002
|
+
}) | undefined): import("@agentuity/adapter").RichError & {
|
|
1003
|
+
readonly _tag: "SandboxError";
|
|
1004
|
+
} & Readonly<{
|
|
1005
|
+
sandboxId?: string;
|
|
1006
|
+
executionId?: string;
|
|
1007
|
+
}>;
|
|
1008
|
+
readonly defaultMessage?: string;
|
|
1009
|
+
};
|
|
1010
|
+
//# sourceMappingURL=types.d.ts.map
|