@burdenoff/sdk-libs 2026.529.1 → 2026.626.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.
@@ -0,0 +1,242 @@
1
+ 'use strict';var o=`
2
+ fragment SandboxFields on Sandbox {
3
+ id name description template mode status
4
+ crdName podName namespace runtimeClass
5
+ containers {
6
+ name image
7
+ ports { containerPort name protocol }
8
+ env { name value }
9
+ command args
10
+ resources { requestsCpu requestsMemory limitsCpu limitsMemory }
11
+ }
12
+ containerStatuses { name ready port restartCount }
13
+ resources { cpuRequest cpuLimit memoryRequest memoryLimit }
14
+ storage { mode sizeGi mountPath retainOnDelete }
15
+ network { exposeService internalUrl containerUrls serviceName }
16
+ ttlSeconds expiresAt metadata errorMessage
17
+ workspaceId context createdBy createdAt updatedAt stoppedAt
18
+ }
19
+ `,x=`
20
+ fragment SandboxTemplateConfigFields on SandboxTemplateConfig {
21
+ id name description template isDefault
22
+ containers {
23
+ name image
24
+ ports { containerPort name protocol }
25
+ env { name value }
26
+ command args
27
+ resources { requestsCpu requestsMemory limitsCpu limitsMemory }
28
+ }
29
+ resources { cpuRequest cpuLimit memoryRequest memoryLimit }
30
+ storage { mode sizeGi mountPath retainOnDelete }
31
+ ttlSeconds config metadata allowedImages
32
+ workspaceId context createdBy createdAt updatedAt
33
+ }
34
+ `,p=`
35
+ id defaultTtlSeconds maxTtlSeconds allowedTemplates
36
+ maxConcurrentPerUser maxConcurrentPerWorkspace
37
+ defaultCpuRequest defaultCpuLimit defaultMemoryRequest defaultMemoryLimit
38
+ workspaceId updatedAt
39
+ `,s=`
40
+ fragment SandboxTagAssignmentFields on SandboxTagAssignment {
41
+ id entityId entityType tagId source assignedAt assignedBy
42
+ validFrom validTo metadata tag { id }
43
+ }
44
+ `,S=`
45
+ id workspaceId format status requestedBy rowCount
46
+ downloadUrl errorMessage expiresAt createdAt updatedAt
47
+ `,b=`
48
+ ${o}
49
+ query ListSandboxes(
50
+ $filter: SandboxFilterInput
51
+ $pagination: SandboxPaginationInput
52
+ $context: ContextInput!
53
+ ) {
54
+ listSandboxes(filter: $filter, pagination: $pagination, context: $context) {
55
+ items { ...SandboxFields }
56
+ total
57
+ hasMore
58
+ }
59
+ }
60
+ `,u=`
61
+ ${o}
62
+ query GetSandbox($id: ID!, $context: ContextInput!) {
63
+ getSandbox(id: $id, context: $context) { ...SandboxFields }
64
+ }
65
+ `,c=`
66
+ query GetSandboxLogs(
67
+ $id: ID!
68
+ $containerName: String!
69
+ $tailLines: Int
70
+ $context: ContextInput!
71
+ ) {
72
+ getSandboxLogs(
73
+ id: $id
74
+ containerName: $containerName
75
+ tailLines: $tailLines
76
+ context: $context
77
+ )
78
+ }
79
+ `,l=`
80
+ query GetSandboxStats($context: ContextInput!) {
81
+ getSandboxStats(context: $context) {
82
+ activeSandboxes totalCreated totalDeleted runningNow provisioningNow
83
+ stoppedNow expiredCount failedCount totalCpuUsed totalMemoryUsed
84
+ }
85
+ }
86
+ `,T=`
87
+ query GetSandboxConfig($context: ContextInput!) {
88
+ getSandboxConfig(context: $context) { ${p} }
89
+ }
90
+ `,g=`
91
+ ${x}
92
+ query ListSandboxTemplates(
93
+ $template: SandboxTemplate
94
+ $pagination: SandboxPaginationInput
95
+ $context: ContextInput!
96
+ ) {
97
+ listSandboxTemplates(template: $template, pagination: $pagination, context: $context) {
98
+ items { ...SandboxTemplateConfigFields }
99
+ total
100
+ hasMore
101
+ }
102
+ }
103
+ `,m=`
104
+ ${x}
105
+ query GetSandboxTemplate($id: ID!, $context: ContextInput!) {
106
+ getSandboxTemplate(id: $id, context: $context) { ...SandboxTemplateConfigFields }
107
+ }
108
+ `,A=`
109
+ ${o}
110
+ mutation CreateSandbox($input: CreateSandboxInput!) {
111
+ createSandbox(input: $input) { ...SandboxFields }
112
+ }
113
+ `,I=`
114
+ mutation DeleteSandbox($id: ID!, $context: ContextInput!) {
115
+ deleteSandbox(id: $id, context: $context)
116
+ }
117
+ `,E=`
118
+ ${o}
119
+ mutation StopSandbox($id: ID!, $context: ContextInput!) {
120
+ stopSandbox(id: $id, context: $context) { ...SandboxFields }
121
+ }
122
+ `,C=`
123
+ ${o}
124
+ mutation StartSandbox($id: ID!, $context: ContextInput!) {
125
+ startSandbox(id: $id, context: $context) { ...SandboxFields }
126
+ }
127
+ `,$=`
128
+ ${o}
129
+ mutation ExtendSandboxTTL($id: ID!, $additionalSeconds: Int!, $context: ContextInput!) {
130
+ extendSandboxTTL(id: $id, additionalSeconds: $additionalSeconds, context: $context) {
131
+ ...SandboxFields
132
+ }
133
+ }
134
+ `,y=`
135
+ ${x}
136
+ mutation CreateSandboxTemplate($input: CreateSandboxTemplateInput!) {
137
+ createSandboxTemplate(input: $input) { ...SandboxTemplateConfigFields }
138
+ }
139
+ `,_=`
140
+ ${x}
141
+ mutation UpdateSandboxTemplate($input: UpdateSandboxTemplateInput!) {
142
+ updateSandboxTemplate(input: $input) { ...SandboxTemplateConfigFields }
143
+ }
144
+ `,N=`
145
+ mutation DeleteSandboxTemplate($id: ID!, $context: ContextInput!) {
146
+ deleteSandboxTemplate(id: $id, context: $context)
147
+ }
148
+ `,D=`
149
+ mutation UpdateSandboxConfig($input: UpdateSandboxConfigInput!) {
150
+ updateSandboxConfig(input: $input) { ${p} }
151
+ }
152
+ `,B=`
153
+ query AvailableSandboxTags($query: String, $limit: Int) {
154
+ availableSandboxTags(query: $query, limit: $limit) {
155
+ id key label color
156
+ }
157
+ }
158
+ `,O=`
159
+ ${s}
160
+ query GetSandboxTags($input: GetSandboxTagsInput!) {
161
+ getSandboxTags(input: $input) { ...SandboxTagAssignmentFields }
162
+ }
163
+ `,f=`
164
+ mutation CreateSandboxTag($input: CreateSandboxTagInput!) {
165
+ createSandboxTag(input: $input) { id key label color }
166
+ }
167
+ `,P=`
168
+ ${s}
169
+ mutation TagSandbox($input: TagSandboxInput!) {
170
+ tagSandbox(input: $input) { ...SandboxTagAssignmentFields }
171
+ }
172
+ `,L=`
173
+ mutation UntagSandbox($input: UntagSandboxInput!) {
174
+ untagSandbox(input: $input)
175
+ }
176
+ `,X=`
177
+ ${s}
178
+ mutation ReplaceSandboxTags($input: ReplaceSandboxTagsInput!) {
179
+ replaceSandboxTags(input: $input) { ...SandboxTagAssignmentFields }
180
+ }
181
+ `,q=`
182
+ ${o}
183
+ query ListAllSandboxes(
184
+ $context: ContextInput!
185
+ $filter: SandboxFilterInput
186
+ $pagination: SandboxPaginationInput
187
+ ) {
188
+ listAllSandboxes(context: $context, filter: $filter, pagination: $pagination) {
189
+ items { ...SandboxFields }
190
+ total
191
+ hasMore
192
+ }
193
+ }
194
+ `,R=`
195
+ query ListSandboxNodes($context: ContextInput!) {
196
+ listSandboxNodes(context: $context) {
197
+ name status allocatableCpu allocatableMemory sandboxPodCount labels
198
+ }
199
+ }
200
+ `,G=`
201
+ ${o}
202
+ query GetActiveSandboxes($context: ContextInput!) {
203
+ getActiveSandboxes(context: $context) { ...SandboxFields }
204
+ }
205
+ `,w=`
206
+ query GetRecentSandboxActivity($context: ContextInput!, $limit: Int) {
207
+ getRecentSandboxActivity(context: $context, limit: $limit) {
208
+ items { id action actorId status sandboxName sandboxId createdAt }
209
+ total
210
+ }
211
+ }
212
+ `,v=`
213
+ mutation ExportSandboxes($input: ExportSandboxesInput!) {
214
+ exportSandboxes(input: $input) { ${S} }
215
+ }
216
+ `,F=`
217
+ query GetSandboxExportJob($workspaceId: ID!, $jobId: ID!, $context: ContextInput!) {
218
+ getSandboxExportJob(workspaceId: $workspaceId, jobId: $jobId, context: $context) {
219
+ ${S}
220
+ }
221
+ }
222
+ `,M=`
223
+ query ListSandboxExportJobs(
224
+ $workspaceId: ID!
225
+ $context: ContextInput!
226
+ $pagination: SandboxPaginationInput
227
+ ) {
228
+ listSandboxExportJobs(workspaceId: $workspaceId, context: $context, pagination: $pagination) {
229
+ ${S}
230
+ }
231
+ }
232
+ `,U=`
233
+ query GetSandboxArtifactBytes($input: SandboxArtifactBytesInput!) {
234
+ getSandboxArtifactBytes(input: $input) {
235
+ filename mimeType size contentBase64
236
+ }
237
+ }
238
+ `,J=`
239
+ mutation ProxySandboxRequest($input: ProxySandboxRequestInput!) {
240
+ proxySandboxRequest(input: $input) { status body }
241
+ }
242
+ `;function k(i){let{workspace:a}=i.gql;return {async list(t,e,n){return (await a.request(b,{filter:t,pagination:e,context:n})).listSandboxes},async get(t,e){return (await a.request(u,{id:t,context:e})).getSandbox},async create(t){return (await a.request(A,{input:t})).createSandbox},async delete(t,e){return (await a.request(I,{id:t,context:e})).deleteSandbox},async start(t,e){return (await a.request(C,{id:t,context:e})).startSandbox},async stop(t,e){return (await a.request(E,{id:t,context:e})).stopSandbox},async extendTTL(t,e,n){return (await a.request($,{id:t,additionalSeconds:e,context:n})).extendSandboxTTL},async getLogs(t,e,n,d){return (await a.request(c,{id:t,containerName:e,tailLines:d,context:n})).getSandboxLogs},async getStats(t){return (await a.request(l,{context:t})).getSandboxStats},async getConfig(t){return (await a.request(T,{context:t})).getSandboxConfig},async updateConfig(t){return (await a.request(D,{input:t})).updateSandboxConfig},async listTemplates(t,e,n){return (await a.request(g,{template:e,pagination:n,context:t})).listSandboxTemplates},async getTemplate(t,e){return (await a.request(m,{id:t,context:e})).getSandboxTemplate},async createTemplate(t){return (await a.request(y,{input:t})).createSandboxTemplate},async updateTemplate(t){return (await a.request(_,{input:t})).updateSandboxTemplate},async deleteTemplate(t,e){return (await a.request(N,{id:t,context:e})).deleteSandboxTemplate},async availableTags(t,e){return (await a.request(B,{query:t,limit:e})).availableSandboxTags},async getTags(t){return (await a.request(O,{input:t})).getSandboxTags},async createTag(t){return (await a.request(f,{input:t})).createSandboxTag},async tag(t){return (await a.request(P,{input:t})).tagSandbox},async untag(t){return (await a.request(L,{input:t})).untagSandbox},async replaceTags(t){return (await a.request(X,{input:t})).replaceSandboxTags},async listAll(t,e,n){return (await a.request(q,{context:t,filter:e,pagination:n})).listAllSandboxes},async listNodes(t){return (await a.request(R,{context:t})).listSandboxNodes},async getActive(t){return (await a.request(G,{context:t})).getActiveSandboxes},async getRecentActivity(t,e){return (await a.request(w,{context:t,limit:e})).getRecentSandboxActivity},async exportSandboxes(t){return (await a.request(v,{input:t})).exportSandboxes},async getExportJob(t,e,n){return (await a.request(F,{workspaceId:t,jobId:e,context:n})).getSandboxExportJob},async listExportJobs(t,e,n){return (await a.request(M,{workspaceId:t,context:e,pagination:n})).listSandboxExportJobs},async getArtifactBytes(t){return (await a.request(U,{input:t})).getSandboxArtifactBytes},async proxyRequest(t){return (await a.request(J,{input:t})).proxySandboxRequest}}}var j={id:"sandbox",version:"1.0.0",displayName:"Sandbox",dependsOn:["auth","workspaces"],attach(i){return k(i)}},K=j;module.exports=K;
@@ -0,0 +1,403 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type SandboxTemplate = 'AI_BUILDER' | 'WORKFLOW_MULTI_NODE' | 'MISC_SHELL' | 'CUSTOM' | 'VIBECONTROLS';
5
+ type SandboxStatus = 'PENDING' | 'PROVISIONING' | 'RUNNING' | 'STOPPING' | 'STOPPED' | 'EXPIRED' | 'FAILED';
6
+ type SandboxMode = 'DEPLOYMENT' | 'JOB';
7
+ type StorageMode = 'NONE' | 'EPHEMERAL' | 'PERSISTENT';
8
+ interface ContainerPort {
9
+ containerPort: number;
10
+ name?: string | null;
11
+ protocol?: string | null;
12
+ }
13
+ interface EnvVar {
14
+ name: string;
15
+ value: string;
16
+ }
17
+ interface ContainerResources {
18
+ requestsCpu?: string | null;
19
+ requestsMemory?: string | null;
20
+ limitsCpu?: string | null;
21
+ limitsMemory?: string | null;
22
+ }
23
+ interface ContainerSpec {
24
+ name: string;
25
+ image: string;
26
+ ports?: ContainerPort[];
27
+ env?: EnvVar[];
28
+ command?: string[];
29
+ args?: string[];
30
+ resources?: ContainerResources;
31
+ }
32
+ interface ContainerStatus {
33
+ name: string;
34
+ ready: boolean;
35
+ port?: number | null;
36
+ restartCount?: number | null;
37
+ }
38
+ interface SandboxStorage {
39
+ mode: StorageMode;
40
+ sizeGi?: number | null;
41
+ mountPath?: string | null;
42
+ retainOnDelete: boolean;
43
+ }
44
+ interface SandboxResources {
45
+ cpuRequest: string;
46
+ cpuLimit: string;
47
+ memoryRequest: string;
48
+ memoryLimit: string;
49
+ }
50
+ interface SandboxNetwork {
51
+ exposeService: boolean;
52
+ internalUrl?: string | null;
53
+ containerUrls?: Json;
54
+ serviceName?: string | null;
55
+ }
56
+ interface Sandbox {
57
+ id: string;
58
+ name: string;
59
+ description?: string | null;
60
+ template: SandboxTemplate;
61
+ mode: SandboxMode;
62
+ status: SandboxStatus;
63
+ crdName?: string | null;
64
+ podName?: string | null;
65
+ namespace: string;
66
+ runtimeClass: string;
67
+ containers: ContainerSpec[];
68
+ containerStatuses?: ContainerStatus[];
69
+ resources: SandboxResources;
70
+ storage: SandboxStorage;
71
+ network: SandboxNetwork;
72
+ ttlSeconds: number;
73
+ expiresAt: string;
74
+ metadata?: Json;
75
+ errorMessage?: string | null;
76
+ workspaceId: string;
77
+ context?: Json;
78
+ createdBy: string;
79
+ createdAt: string;
80
+ updatedAt: string;
81
+ stoppedAt?: string | null;
82
+ }
83
+ interface SandboxList {
84
+ items: Sandbox[];
85
+ total: number;
86
+ hasMore: boolean;
87
+ }
88
+ interface SandboxFilterInput {
89
+ template?: SandboxTemplate;
90
+ status?: SandboxStatus;
91
+ workspaceId?: string;
92
+ }
93
+ interface SandboxPaginationInput {
94
+ limit?: number;
95
+ offset?: number;
96
+ page?: number;
97
+ }
98
+ interface SandboxStats {
99
+ activeSandboxes: number;
100
+ totalCreated: number;
101
+ totalDeleted: number;
102
+ runningNow: number;
103
+ provisioningNow: number;
104
+ stoppedNow: number;
105
+ expiredCount: number;
106
+ failedCount: number;
107
+ totalCpuUsed: string;
108
+ totalMemoryUsed: string;
109
+ }
110
+ interface SandboxConfig {
111
+ id: string;
112
+ defaultTtlSeconds: number;
113
+ maxTtlSeconds: number;
114
+ allowedTemplates: SandboxTemplate[];
115
+ maxConcurrentPerUser: number;
116
+ maxConcurrentPerWorkspace: number;
117
+ defaultCpuRequest: string;
118
+ defaultCpuLimit: string;
119
+ defaultMemoryRequest: string;
120
+ defaultMemoryLimit: string;
121
+ workspaceId: string;
122
+ updatedAt: string;
123
+ }
124
+ interface SandboxTemplateConfig {
125
+ id: string;
126
+ name: string;
127
+ description?: string | null;
128
+ template: SandboxTemplate;
129
+ isDefault: boolean;
130
+ containers: ContainerSpec[];
131
+ resources: SandboxResources;
132
+ storage: SandboxStorage;
133
+ ttlSeconds: number;
134
+ config?: Json;
135
+ metadata?: Json;
136
+ allowedImages?: string[];
137
+ workspaceId: string;
138
+ context?: Json;
139
+ createdBy: string;
140
+ createdAt: string;
141
+ updatedAt: string;
142
+ }
143
+ interface SandboxTemplateConfigList {
144
+ items: SandboxTemplateConfig[];
145
+ total: number;
146
+ hasMore: boolean;
147
+ }
148
+ interface ContainerPortInput {
149
+ containerPort: number;
150
+ name?: string;
151
+ protocol?: string;
152
+ }
153
+ interface EnvVarInput {
154
+ name: string;
155
+ value: string;
156
+ }
157
+ interface ContainerResourcesInput {
158
+ requestsCpu?: string;
159
+ requestsMemory?: string;
160
+ limitsCpu?: string;
161
+ limitsMemory?: string;
162
+ }
163
+ interface ContainerSpecInput {
164
+ name: string;
165
+ image: string;
166
+ ports?: ContainerPortInput[];
167
+ env?: EnvVarInput[];
168
+ command?: string[];
169
+ args?: string[];
170
+ resources?: ContainerResourcesInput;
171
+ }
172
+ interface SandboxStorageInput {
173
+ mode?: StorageMode;
174
+ sizeGi?: number;
175
+ mountPath?: string;
176
+ retainOnDelete?: boolean;
177
+ }
178
+ interface SandboxResourcesInput {
179
+ cpuRequest?: string;
180
+ cpuLimit?: string;
181
+ memoryRequest?: string;
182
+ memoryLimit?: string;
183
+ }
184
+ interface CreateSandboxInput {
185
+ name: string;
186
+ description?: string;
187
+ template: SandboxTemplate;
188
+ mode?: SandboxMode;
189
+ containers: ContainerSpecInput[];
190
+ resources?: SandboxResourcesInput;
191
+ storage?: SandboxStorageInput;
192
+ ttlSeconds?: number;
193
+ metadata?: Json;
194
+ context: {
195
+ workspaceId: string;
196
+ };
197
+ templateId?: string;
198
+ }
199
+ interface CreateSandboxTemplateInput {
200
+ name: string;
201
+ description?: string;
202
+ template: SandboxTemplate;
203
+ isDefault?: boolean;
204
+ containers?: ContainerSpecInput[];
205
+ resources?: SandboxResourcesInput;
206
+ storage?: SandboxStorageInput;
207
+ ttlSeconds?: number;
208
+ config?: Json;
209
+ metadata?: Json;
210
+ allowedImages?: string[];
211
+ context: {
212
+ workspaceId: string;
213
+ };
214
+ }
215
+ interface UpdateSandboxTemplateInput {
216
+ id: string;
217
+ name?: string;
218
+ description?: string;
219
+ isDefault?: boolean;
220
+ containers?: ContainerSpecInput[];
221
+ resources?: SandboxResourcesInput;
222
+ storage?: SandboxStorageInput;
223
+ ttlSeconds?: number;
224
+ config?: Json;
225
+ metadata?: Json;
226
+ allowedImages?: string[];
227
+ context: {
228
+ workspaceId: string;
229
+ };
230
+ }
231
+ interface UpdateSandboxConfigInput {
232
+ defaultTtlSeconds?: number;
233
+ maxTtlSeconds?: number;
234
+ allowedTemplates?: SandboxTemplate[];
235
+ maxConcurrentPerUser?: number;
236
+ maxConcurrentPerWorkspace?: number;
237
+ defaultCpuRequest?: string;
238
+ defaultCpuLimit?: string;
239
+ defaultMemoryRequest?: string;
240
+ defaultMemoryLimit?: string;
241
+ context: {
242
+ workspaceId: string;
243
+ };
244
+ }
245
+ interface SandboxAvailableTag {
246
+ id: string;
247
+ key: string;
248
+ label: string;
249
+ color?: string | null;
250
+ }
251
+ interface SandboxTagAssignment {
252
+ id: string;
253
+ entityId: string;
254
+ entityType: string;
255
+ tagId: string;
256
+ source: string;
257
+ assignedAt?: string | null;
258
+ assignedBy?: string | null;
259
+ validFrom?: string | null;
260
+ validTo?: string | null;
261
+ metadata?: Json;
262
+ tag?: {
263
+ id: string;
264
+ } | null;
265
+ }
266
+ interface CreateSandboxTagInput {
267
+ label: string;
268
+ color?: string;
269
+ }
270
+ interface GetSandboxTagsInput {
271
+ sandboxId: string;
272
+ }
273
+ interface TagSandboxInput {
274
+ sandboxId: string;
275
+ tagId: string;
276
+ source?: string;
277
+ validFrom?: string;
278
+ validTo?: string;
279
+ metadata?: Json;
280
+ }
281
+ interface UntagSandboxInput {
282
+ sandboxId: string;
283
+ tagId: string;
284
+ }
285
+ interface ReplaceSandboxTagsInput {
286
+ sandboxId: string;
287
+ tagIds: string[];
288
+ }
289
+ interface SandboxNodeInfo {
290
+ name: string;
291
+ status: string;
292
+ allocatableCpu: string;
293
+ allocatableMemory: string;
294
+ sandboxPodCount: number;
295
+ labels?: Json;
296
+ }
297
+ interface SandboxActivity {
298
+ id: string;
299
+ action: string;
300
+ actorId: string;
301
+ status: string;
302
+ sandboxName: string;
303
+ sandboxId?: string | null;
304
+ createdAt: string;
305
+ }
306
+ interface SandboxActivityList {
307
+ items: SandboxActivity[];
308
+ total: number;
309
+ }
310
+ type SandboxExportFormat = 'CSV' | 'JSON';
311
+ type SandboxExportJobStatus = 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
312
+ interface SandboxExportJob {
313
+ id: string;
314
+ workspaceId: string;
315
+ format: SandboxExportFormat;
316
+ status: SandboxExportJobStatus;
317
+ requestedBy: string;
318
+ rowCount?: number | null;
319
+ downloadUrl?: string | null;
320
+ errorMessage?: string | null;
321
+ expiresAt?: string | null;
322
+ createdAt: string;
323
+ updatedAt: string;
324
+ }
325
+ interface ExportSandboxesInput {
326
+ workspaceId: string;
327
+ format: SandboxExportFormat;
328
+ filter?: SandboxFilterInput;
329
+ includeUsageEvents?: boolean;
330
+ context: {
331
+ workspaceId: string;
332
+ };
333
+ }
334
+ interface SandboxArtifactBytes {
335
+ filename: string;
336
+ mimeType: string;
337
+ size: number;
338
+ contentBase64: string;
339
+ }
340
+ interface SandboxArtifactBytesInput {
341
+ sandboxId: string;
342
+ sessionId: string;
343
+ path: string;
344
+ onBehalfOfUserId?: string;
345
+ context?: {
346
+ workspaceId: string;
347
+ };
348
+ }
349
+ interface ProxySandboxRequestInput {
350
+ sandboxId: string;
351
+ method: string;
352
+ path: string;
353
+ body?: Json;
354
+ containerName?: string;
355
+ context: {
356
+ workspaceId: string;
357
+ };
358
+ }
359
+ interface ProxySandboxResponse {
360
+ status: number;
361
+ body?: Json;
362
+ }
363
+
364
+ interface SandboxContext {
365
+ workspaceId: string;
366
+ }
367
+ interface SandboxApi {
368
+ list(filter: SandboxFilterInput | undefined, pagination: SandboxPaginationInput | undefined, context: SandboxContext): Promise<SandboxList>;
369
+ get(id: string, context: SandboxContext): Promise<Sandbox | null>;
370
+ create(input: CreateSandboxInput): Promise<Sandbox>;
371
+ delete(id: string, context: SandboxContext): Promise<boolean>;
372
+ start(id: string, context: SandboxContext): Promise<Sandbox>;
373
+ stop(id: string, context: SandboxContext): Promise<Sandbox>;
374
+ extendTTL(id: string, additionalSeconds: number, context: SandboxContext): Promise<Sandbox>;
375
+ getLogs(id: string, containerName: string, context: SandboxContext, tailLines?: number): Promise<string>;
376
+ getStats(context: SandboxContext): Promise<SandboxStats>;
377
+ getConfig(context: SandboxContext): Promise<SandboxConfig>;
378
+ updateConfig(input: UpdateSandboxConfigInput): Promise<SandboxConfig>;
379
+ listTemplates(context: SandboxContext, template?: SandboxTemplate, pagination?: SandboxPaginationInput): Promise<SandboxTemplateConfigList>;
380
+ getTemplate(id: string, context: SandboxContext): Promise<SandboxTemplateConfig | null>;
381
+ createTemplate(input: CreateSandboxTemplateInput): Promise<SandboxTemplateConfig>;
382
+ updateTemplate(input: UpdateSandboxTemplateInput): Promise<SandboxTemplateConfig>;
383
+ deleteTemplate(id: string, context: SandboxContext): Promise<boolean>;
384
+ availableTags(query?: string, limit?: number): Promise<SandboxAvailableTag[]>;
385
+ getTags(input: GetSandboxTagsInput): Promise<SandboxTagAssignment[]>;
386
+ createTag(input: CreateSandboxTagInput): Promise<SandboxAvailableTag>;
387
+ tag(input: TagSandboxInput): Promise<SandboxTagAssignment>;
388
+ untag(input: UntagSandboxInput): Promise<boolean>;
389
+ replaceTags(input: ReplaceSandboxTagsInput): Promise<SandboxTagAssignment[]>;
390
+ listAll(context: SandboxContext, filter?: SandboxFilterInput, pagination?: SandboxPaginationInput): Promise<SandboxList>;
391
+ listNodes(context: SandboxContext): Promise<SandboxNodeInfo[]>;
392
+ getActive(context: SandboxContext): Promise<Sandbox[]>;
393
+ getRecentActivity(context: SandboxContext, limit?: number): Promise<SandboxActivityList>;
394
+ exportSandboxes(input: ExportSandboxesInput): Promise<SandboxExportJob>;
395
+ getExportJob(workspaceId: string, jobId: string, context: SandboxContext): Promise<SandboxExportJob>;
396
+ listExportJobs(workspaceId: string, context: SandboxContext, pagination?: SandboxPaginationInput): Promise<SandboxExportJob[]>;
397
+ getArtifactBytes(input: SandboxArtifactBytesInput): Promise<SandboxArtifactBytes>;
398
+ proxyRequest(input: ProxySandboxRequestInput): Promise<ProxySandboxResponse>;
399
+ }
400
+
401
+ declare const sandboxModule: SdkModule<SandboxApi>;
402
+
403
+ export { type ContainerPort, type ContainerPortInput, type ContainerResources, type ContainerResourcesInput, type ContainerSpec, type ContainerSpecInput, type ContainerStatus, type CreateSandboxInput, type CreateSandboxTagInput, type CreateSandboxTemplateInput, type EnvVar, type EnvVarInput, type ExportSandboxesInput, type GetSandboxTagsInput, type ProxySandboxRequestInput, type ProxySandboxResponse, type ReplaceSandboxTagsInput, type Sandbox, type SandboxActivity, type SandboxActivityList, type SandboxApi, type SandboxArtifactBytes, type SandboxArtifactBytesInput, type SandboxAvailableTag, type SandboxConfig, type SandboxContext, type SandboxExportFormat, type SandboxExportJob, type SandboxExportJobStatus, type SandboxFilterInput, type SandboxList, type SandboxMode, type SandboxNetwork, type SandboxNodeInfo, type SandboxPaginationInput, type SandboxResources, type SandboxResourcesInput, type SandboxStats, type SandboxStatus, type SandboxStorage, type SandboxStorageInput, type SandboxTagAssignment, type SandboxTemplate, type SandboxTemplateConfig, type SandboxTemplateConfigList, type StorageMode, type TagSandboxInput, type UntagSandboxInput, type UpdateSandboxConfigInput, type UpdateSandboxTemplateInput, sandboxModule as default };