@burdenoff/sdk-libs 2026.529.1 → 2026.627.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,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 };