sandcovery 0.6.2 → 0.9.0

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,793 +0,0 @@
1
- declare const ACTIVITY_ACTIONS: readonly ["sandbox.create", "sandbox.create_attempt", "sandbox.destroy", "sandbox.expire", "sandbox.pause", "sandbox.resume", "sandbox.snapshot"];
2
- type ActivityAction = (typeof ACTIVITY_ACTIONS)[number] | (string & Record<never, never>);
3
- interface ActivityEvent {
4
- readonly action: ActivityAction;
5
- readonly api_key_id: string | null;
6
- readonly at: string;
7
- readonly error: string | null;
8
- readonly id: string;
9
- readonly outcome: "failed" | "succeeded";
10
- readonly provider: Provider | null;
11
- readonly sandbox_id: string | null;
12
- }
13
- interface ActivityList {
14
- readonly data: readonly ActivityEvent[];
15
- readonly next_cursor: string | null;
16
- }
17
- interface AutoTopUp {
18
- readonly amount_micro_usd: number | null;
19
- readonly enabled: boolean;
20
- readonly failed_at: string | null;
21
- readonly failure: string | null;
22
- readonly threshold_micro_usd: number | null;
23
- }
24
- interface AutoTopUpChange {
25
- readonly auto_top_up: AutoTopUp;
26
- readonly url: string | null;
27
- }
28
- interface AutoTopUpRequest {
29
- readonly amount_micro_usd: number;
30
- readonly threshold_micro_usd: number;
31
- }
32
- interface Badge {
33
- readonly earned_at: string | null;
34
- readonly id: string;
35
- readonly name: string;
36
- readonly progress: number;
37
- readonly target: number;
38
- readonly unit: string;
39
- }
40
- interface Billing {
41
- readonly auto_top_up: AutoTopUp;
42
- readonly credit_balance_micro_usd: number;
43
- readonly credits_on_sale: boolean;
44
- readonly enterprise_price: ProPrice | null;
45
- readonly github_enterprise: boolean;
46
- readonly plan: Plan;
47
- readonly plan_billers: readonly PlanBiller[];
48
- readonly pro_price: ProPrice | null;
49
- }
50
- interface BrandImage {
51
- readonly source_url: string;
52
- readonly tile: boolean;
53
- readonly url: string;
54
- }
55
- interface CatalogBenchmarkTerms {
56
- readonly detail: string | null;
57
- readonly source_url: string | null;
58
- readonly value: "barred" | "conditional" | "no_bar_found";
59
- }
60
- interface CatalogBrandTerms {
61
- readonly detail: string | null;
62
- readonly source_url: string | null;
63
- readonly value: "barred" | "conditional" | "no_bar_found";
64
- }
65
- interface CatalogFlag {
66
- readonly detail: string | null;
67
- readonly source_url: string | null;
68
- readonly value: boolean;
69
- }
70
- interface CatalogGpus {
71
- readonly detail: string | null;
72
- readonly source_url: string | null;
73
- readonly value: readonly {
74
- readonly hourly_micro_usd: number | null;
75
- readonly name: string;
76
- }[];
77
- }
78
- interface CatalogLimit {
79
- readonly detail: string | null;
80
- readonly source_url: string | null;
81
- readonly value: number | null;
82
- }
83
- interface CatalogList {
84
- readonly detail: string | null;
85
- readonly source_url: string | null;
86
- readonly value: readonly string[];
87
- }
88
- type CatalogMeasurement = "measured" | "not_measured";
89
- interface CatalogText {
90
- readonly detail: string | null;
91
- readonly source_url: string | null;
92
- readonly value: string;
93
- }
94
- interface CiInstallation {
95
- readonly account: string;
96
- readonly api_key_id: string;
97
- readonly installation_id: number;
98
- readonly linked_at: string;
99
- readonly provider_order: readonly Provider[];
100
- }
101
- interface CiInstallationList {
102
- readonly data: readonly CiInstallation[];
103
- }
104
- interface CiJob {
105
- readonly completed_at: string | null;
106
- readonly conclusion: CiJobConclusion | null;
107
- readonly cost_micro_usd: number | null;
108
- readonly duration_ms: number | null;
109
- readonly github_hosted_cost_micro_usd: number | null;
110
- readonly id: string;
111
- readonly job_name: string;
112
- readonly provider: Provider | null;
113
- readonly queued_at: string;
114
- readonly repository: string;
115
- readonly runner_error: string | null;
116
- readonly runner_label: string;
117
- readonly sandbox_id: string | null;
118
- readonly started_at: string | null;
119
- readonly status: CiJobStatus;
120
- readonly wait_ms: number | null;
121
- readonly workflow_job_id: number;
122
- readonly workflow_run_id: number;
123
- }
124
- declare const CI_JOB_CONCLUSIONS: readonly ["action_required", "cancelled", "failure", "neutral", "skipped", "success", "timed_out"];
125
- type CiJobConclusion = (typeof CI_JOB_CONCLUSIONS)[number] | (string & Record<never, never>);
126
- interface CiJobList {
127
- readonly data: readonly CiJob[];
128
- readonly next_cursor: string | null;
129
- }
130
- type CiJobStatus = "completed" | "in_progress" | "queued";
131
- interface ConcurrencyLimitReachedError {
132
- readonly concurrency_cap: number;
133
- readonly error: "concurrency_limit_reached";
134
- readonly message: string;
135
- }
136
- interface ConflictError {
137
- readonly error: "conflict";
138
- readonly message: string;
139
- }
140
- interface CreateAttempt {
141
- readonly duration_ms: number;
142
- readonly failure: {
143
- readonly message: string;
144
- readonly reason: CreateFailureReason;
145
- } | null;
146
- readonly provider: Provider;
147
- readonly started_at: string;
148
- }
149
- interface CreatedKey {
150
- readonly key: Key;
151
- readonly secret: string;
152
- }
153
- type CreateFailureReason = "capacity" | "quota" | "rejected" | "server_error" | "timeout";
154
- interface CreateKeyRequest {
155
- readonly allowed_providers?: readonly Provider[] | null;
156
- readonly expires_at?: string | null;
157
- readonly kind?: KeyKind_1;
158
- readonly max_concurrent_sandboxes?: number | null;
159
- readonly max_ttl_seconds?: number | null;
160
- readonly name: string;
161
- readonly spend_limit?: SpendLimit | null;
162
- }
163
- interface CreateSandboxRequest {
164
- readonly disk_mib?: number;
165
- readonly egress?: EgressPolicy;
166
- readonly env?: Readonly<Record<string, string>>;
167
- readonly gpu?: Gpu;
168
- readonly idle_timeout_seconds?: number;
169
- readonly image?: string;
170
- readonly ports?: readonly number[];
171
- readonly region?: Region;
172
- readonly ttl_seconds?: number;
173
- readonly slug?: Slug;
174
- readonly slugs?: readonly Slug[];
175
- readonly provider?: ProviderPreferences;
176
- readonly snapshot_id?: string;
177
- }
178
- interface CreateUsageShareRequest {
179
- readonly figures: readonly UsageShareFigure[];
180
- readonly period: UsagePeriod;
181
- }
182
- interface CredentialField {
183
- readonly label: string;
184
- readonly name: string;
185
- readonly secret: boolean;
186
- }
187
- type CredentialFields = Readonly<Record<string, string>>;
188
- interface CreditCheckout {
189
- readonly url: string;
190
- }
191
- interface CreditPurchaseRequest {
192
- readonly amount_micro_usd: number;
193
- }
194
- interface CreditTerms {
195
- readonly fee_fixed_micro_usd: number;
196
- readonly fee_rate_basis_points: number;
197
- readonly max_micro_usd: number;
198
- readonly min_micro_usd: number;
199
- }
200
- interface DetachedExec {
201
- readonly started_at: string;
202
- }
203
- interface DetachedExecRequest {
204
- readonly command: string;
205
- readonly cwd?: string;
206
- readonly env?: Readonly<Record<string, string>>;
207
- }
208
- declare const EGRESS_MODES: readonly ["allow_all", "allowlist", "deny_all"];
209
- type EgressMode = (typeof EGRESS_MODES)[number] | (string & Record<never, never>);
210
- type EgressPolicy = {
211
- readonly mode: "allow_all";
212
- } | {
213
- readonly mode: "deny_all";
214
- } | {
215
- readonly destinations: readonly string[];
216
- readonly mode: "allowlist";
217
- };
218
- interface Estimate {
219
- readonly hourly_micro_usd: number;
220
- readonly provider: Provider;
221
- readonly rate_card_version: string;
222
- readonly slug: Slug;
223
- readonly ttl_micro_usd: number;
224
- }
225
- interface EstimateList {
226
- readonly data: readonly Estimate[];
227
- }
228
- interface EstimateRequest {
229
- readonly disk_mib?: number;
230
- readonly egress?: EgressPolicy;
231
- readonly env?: Readonly<Record<string, string>>;
232
- readonly gpu?: Gpu;
233
- readonly idle_timeout_seconds?: number;
234
- readonly image?: string;
235
- readonly ports?: readonly number[];
236
- readonly region?: Region;
237
- readonly ttl_seconds?: number;
238
- readonly slug?: Slug;
239
- readonly slugs?: readonly Slug[];
240
- readonly provider?: ProviderPreferences;
241
- }
242
- type ExecEvent = {
243
- readonly data: string;
244
- readonly type: "stdout";
245
- } | {
246
- readonly data: string;
247
- readonly type: "stderr";
248
- } | {
249
- readonly duration_ms: number;
250
- readonly exit_code: number;
251
- readonly type: "exit";
252
- } | {
253
- readonly message: string;
254
- readonly provider: Provider;
255
- readonly type: "error";
256
- };
257
- interface ExecRequest {
258
- readonly command: string;
259
- readonly cwd?: string;
260
- readonly env?: Readonly<Record<string, string>>;
261
- readonly timeout_seconds?: number;
262
- }
263
- interface ExecResult {
264
- readonly duration_ms: number;
265
- readonly exit_code: number;
266
- readonly stderr: string;
267
- readonly stdout: string;
268
- }
269
- interface FileEntry {
270
- readonly modified_at: string | null;
271
- readonly name: string;
272
- readonly path: string;
273
- readonly size_bytes: number | null;
274
- readonly type: FileEntryType;
275
- }
276
- type FileEntryType = "directory" | "file" | "other" | "symlink";
277
- interface FileList {
278
- readonly entries: readonly FileEntry[];
279
- readonly path: string;
280
- }
281
- interface ForbiddenError {
282
- readonly error: "forbidden";
283
- readonly message: string;
284
- }
285
- interface Gpu {
286
- readonly count: number;
287
- readonly type: GpuType;
288
- }
289
- declare const GPU_TYPES: readonly ["b200", "b300", "h100", "h200", "mi355x", "rtx-4090", "rtx-5090", "rtx-pro-6000"];
290
- type GpuType = (typeof GPU_TYPES)[number] | (string & Record<never, never>);
291
- interface Health {
292
- readonly ok: true;
293
- }
294
- type IncidentImpact = "none" | "minor" | "major" | "critical" | "maintenance";
295
- interface InvalidRequestError {
296
- readonly error: "invalid_request";
297
- readonly message: string;
298
- }
299
- interface Key {
300
- readonly allowed_providers: readonly Provider[] | null;
301
- readonly max_concurrent_sandboxes: number | null;
302
- readonly max_ttl_seconds: number | null;
303
- readonly spend_limit: SpendLimit | null;
304
- readonly created_at: string;
305
- readonly expires_at: string | null;
306
- readonly id: string;
307
- readonly kind: KeyKind;
308
- readonly last_used_at: string | null;
309
- readonly name: string;
310
- readonly revoked_at: string | null;
311
- readonly spend: {
312
- readonly resets_at: string | null;
313
- readonly spent_micro_usd: number;
314
- };
315
- readonly start: string;
316
- }
317
- type KeyKind = "api" | "management";
318
- type KeyKind_1 = "api" | "management";
319
- interface KeyList {
320
- readonly data: readonly Key[];
321
- }
322
- interface LiveSandboxes {
323
- readonly accrued_micro_usd: number;
324
- readonly api_key_id: string | null;
325
- readonly gpus: number;
326
- readonly hourly_micro_usd: number;
327
- readonly memory_mib: number;
328
- readonly provider: Provider | null;
329
- readonly sandbox_count: number;
330
- readonly status: LiveSandboxStatus;
331
- readonly vcpus: number;
332
- }
333
- type LiveSandboxStatus = "creating" | "destroying" | "paused" | "running";
334
- interface LiveUsage {
335
- readonly at: string;
336
- readonly data: readonly LiveSandboxes[];
337
- }
338
- interface MonthlyCost {
339
- readonly hourly_micro_usd: number;
340
- readonly monthly_micro_usd: number;
341
- readonly provider: Provider;
342
- readonly rate_card_source_url: string;
343
- readonly rate_card_version: string;
344
- readonly slug: Slug;
345
- }
346
- interface MonthlyCostList {
347
- readonly data: readonly MonthlyCost[];
348
- readonly slug: Slug;
349
- }
350
- interface NoProviderAvailableError {
351
- readonly attempts: readonly CreateAttempt[];
352
- readonly error: "no_provider_available";
353
- readonly message: string;
354
- }
355
- interface NotFoundError {
356
- readonly error: "not_found";
357
- readonly message: string;
358
- }
359
- interface Offer {
360
- readonly cap_vcpu_seconds: number;
361
- readonly keys_counted: number;
362
- readonly keys_needed: number;
363
- readonly month_used_up: boolean;
364
- readonly provider: Provider_1;
365
- readonly remaining_vcpu_seconds: number;
366
- readonly used_vcpu_seconds: number;
367
- readonly vcpu_seconds_per_key: number;
368
- readonly x_post_counted: boolean;
369
- }
370
- type Plan = "free" | "pro" | "enterprise";
371
- type PlanBiller = "github_marketplace" | "stripe";
372
- interface PortPreview {
373
- readonly expires_at: string | null;
374
- readonly headers: Readonly<Record<string, string>>;
375
- readonly port: number;
376
- readonly url: string;
377
- }
378
- interface Pricing {
379
- readonly credits: CreditTerms;
380
- readonly enterprise_price: ProPrice | null;
381
- readonly pro_price: ProPrice | null;
382
- }
383
- interface ProblemReportRequest {
384
- readonly message: string;
385
- readonly path?: string;
386
- }
387
- interface Process {
388
- readonly command: string;
389
- readonly created_at: string;
390
- readonly exit_code: number | null;
391
- readonly exited_at: string | null;
392
- readonly id: string;
393
- readonly sandbox_id: string;
394
- readonly signal: string | null;
395
- readonly status: ProcessStatus;
396
- readonly terminal: ProcessTerminal | null;
397
- }
398
- interface ProcessRequest {
399
- readonly command: string;
400
- readonly cwd?: string;
401
- readonly env?: Readonly<Record<string, string>>;
402
- readonly terminal?: ProcessTerminal;
403
- }
404
- type ProcessStatus = "exited" | "lost" | "running";
405
- interface ProcessTerminal {
406
- readonly cols: number;
407
- readonly rows: number;
408
- readonly stderr: boolean;
409
- readonly stdin: boolean;
410
- readonly stdout: boolean;
411
- }
412
- type ProInterval = "day" | "month" | "week" | "year";
413
- interface ProPrice {
414
- readonly interval: ProInterval;
415
- readonly micro_usd: number;
416
- }
417
- declare const PROVIDERS: readonly ["daytona", "depot", "e2b", "upstash"];
418
- type Provider = (typeof PROVIDERS)[number] | (string & Record<never, never>);
419
- declare const PROVIDER_1S: readonly ["daytona", "depot", "e2b", "upstash"];
420
- type Provider_1 = (typeof PROVIDER_1S)[number] | (string & Record<never, never>);
421
- interface ProviderBoard {
422
- readonly data: readonly ProviderBoardEntry[];
423
- }
424
- interface ProviderBoardEntry {
425
- readonly create_latency_ms: {
426
- readonly p50: number | null;
427
- readonly p95: number | null;
428
- };
429
- readonly credential_fields: readonly CredentialField[];
430
- readonly docs_only_adapter: boolean;
431
- readonly favicon: ThemedBrandImage | null;
432
- readonly features: ProviderFeatures;
433
- readonly gpu_prices: readonly {
434
- readonly hourly_micro_usd: number;
435
- readonly type: GpuType;
436
- }[];
437
- readonly home_url: string;
438
- readonly incidents: VendorIncidentRead | null;
439
- readonly name: string;
440
- readonly prices: readonly {
441
- readonly hourly_micro_usd: number;
442
- readonly size: StandardSize;
443
- }[];
444
- readonly provider: Provider;
445
- readonly rate_card_source_url: string;
446
- readonly rate_card_version: string;
447
- readonly security: ProviderSecurity;
448
- readonly status: ProviderStatus;
449
- readonly status_url: string | null;
450
- readonly updated_at: string;
451
- readonly uptime: {
452
- readonly last_15_minutes: number | null;
453
- readonly last_24_hours: number | null;
454
- readonly last_7_days: number | null;
455
- };
456
- }
457
- interface ProviderCatalog {
458
- readonly data: readonly ProviderCatalogEntry[];
459
- }
460
- interface ProviderCatalogEntry {
461
- readonly adapter_source_urls: readonly string[];
462
- readonly billing: CatalogText | null;
463
- readonly brand: {
464
- readonly favicon: ThemedBrandImage | null;
465
- readonly logo: ThemedBrandImage | null;
466
- };
467
- readonly capabilities: {
468
- readonly ci_runner: CatalogFlag | null;
469
- readonly custom_image: CatalogFlag | null;
470
- readonly environment: CatalogFlag | null;
471
- readonly files: CatalogFlag | null;
472
- readonly idle_timeout: CatalogFlag | null;
473
- readonly pause: CatalogFlag | null;
474
- readonly ports: CatalogFlag | null;
475
- readonly snapshot: CatalogFlag | null;
476
- readonly streamed_exec: CatalogFlag | null;
477
- };
478
- readonly create_latency_ms: {
479
- readonly p50: number | null;
480
- readonly p95: number | null;
481
- };
482
- readonly credential_fields: readonly CredentialField[];
483
- readonly docs_only_adapter: boolean;
484
- readonly egress_modes: CatalogList | null;
485
- readonly gpus: CatalogGpus | null;
486
- readonly incidents: VendorIncidentRead | null;
487
- readonly limits: {
488
- readonly max_disk_mib: CatalogLimit | null;
489
- readonly max_memory_mib: CatalogLimit | null;
490
- readonly max_ttl_seconds: CatalogLimit | null;
491
- readonly max_vcpu: CatalogLimit | null;
492
- };
493
- readonly links: {
494
- readonly docs_url: string;
495
- readonly home_url: string;
496
- readonly pricing_url: string;
497
- readonly security_url: string | null;
498
- readonly status_url: string | null;
499
- readonly terms_url: string;
500
- };
501
- readonly measured_at: string | null;
502
- readonly measurement: CatalogMeasurement;
503
- readonly name: string;
504
- readonly policy: {
505
- readonly benchmark_terms: CatalogBenchmarkTerms;
506
- readonly brand_terms: CatalogBrandTerms;
507
- readonly compliance: SecurityList | null;
508
- readonly data_location: SecurityText | null;
509
- readonly free_allowance: CatalogText | null;
510
- readonly isolation: SecurityText | null;
511
- readonly payment_required: CatalogFlag | null;
512
- readonly plan_required: CatalogFlag | null;
513
- readonly read_at: string;
514
- readonly sla: CatalogText | null;
515
- };
516
- readonly prices: readonly {
517
- readonly hourly_micro_usd: number | null;
518
- readonly offered: boolean | null;
519
- readonly size: StandardSize;
520
- }[];
521
- readonly provider: Provider;
522
- readonly rates: {
523
- readonly as_of: string;
524
- readonly detail: string | null;
525
- readonly memory_gib_hour_micro_usd: number;
526
- readonly source_url: string;
527
- readonly vcpu_hour_micro_usd: number;
528
- } | null;
529
- readonly regions: CatalogList | null;
530
- readonly routed: boolean;
531
- readonly sizes: CatalogText | null;
532
- readonly status: ProviderStatus;
533
- readonly uptime: {
534
- readonly last_15_minutes: number | null;
535
- readonly last_24_hours: number | null;
536
- readonly last_7_days: number | null;
537
- };
538
- }
539
- interface ProviderCredential {
540
- readonly created_at: string;
541
- readonly hint: string;
542
- readonly id: string;
543
- readonly paused: boolean;
544
- readonly provider: Provider;
545
- readonly updated_at: string;
546
- }
547
- interface ProviderCredentialList {
548
- readonly data: readonly ProviderCredential[];
549
- }
550
- interface ProviderError {
551
- readonly error: "provider_error";
552
- readonly message: string;
553
- readonly provider: Provider;
554
- }
555
- interface ProviderFeatures {
556
- readonly custom_image: boolean;
557
- readonly egress_modes: readonly EgressMode[];
558
- readonly gpu_types: readonly GpuType[];
559
- readonly idle_timeout: boolean;
560
- readonly max_disk_mib: number | null;
561
- readonly max_memory_mib: number;
562
- readonly max_ttl_seconds: number;
563
- readonly max_vcpu: number;
564
- readonly pause: boolean;
565
- readonly ports: boolean;
566
- readonly regions: readonly Region[];
567
- readonly snapshot: boolean;
568
- readonly streamed_exec: boolean;
569
- }
570
- interface ProviderPreferences {
571
- readonly allow_fallbacks?: boolean;
572
- readonly ignore?: readonly Provider[];
573
- readonly only?: readonly Provider[];
574
- readonly order?: readonly Provider[];
575
- readonly sort?: ProviderSort;
576
- }
577
- interface ProviderSecurity {
578
- readonly compliance: SecurityList | null;
579
- readonly data_location: SecurityText | null;
580
- readonly isolation: SecurityText | null;
581
- }
582
- type ProviderSort = "latency" | "price" | "uptime";
583
- type ProviderStatus = "degraded" | "down" | "operational" | "unknown";
584
- interface RateLimitedError {
585
- readonly error: "rate_limited";
586
- readonly message: string;
587
- }
588
- declare const REGIONS: readonly ["asia", "eu", "us"];
589
- type Region = (typeof REGIONS)[number] | (string & Record<never, never>);
590
- interface Sandbox {
591
- readonly api_key_id: string | null;
592
- readonly attempts: readonly CreateAttempt[];
593
- readonly cost: SandboxCost;
594
- readonly created_at: string;
595
- readonly disk_mib: number | null;
596
- readonly egress: EgressPolicy;
597
- readonly end_reason: SandboxEndReason | null;
598
- readonly ended_at: string | null;
599
- readonly expires_at: string;
600
- readonly gpu: Gpu | null;
601
- readonly id: string;
602
- readonly idle_timeout_seconds: number | null;
603
- readonly image: string | null;
604
- readonly memory_mib: number;
605
- readonly ports: readonly number[];
606
- readonly provider: Provider | null;
607
- readonly provider_sandbox_id: string | null;
608
- readonly region: Region | null;
609
- readonly slug: Slug | null;
610
- readonly started_at: string | null;
611
- readonly status: SandboxStatus;
612
- readonly ttl_seconds: number;
613
- readonly vcpu: number;
614
- }
615
- interface SandboxCost {
616
- readonly estimated_micro_usd: number;
617
- readonly hourly_micro_usd: number;
618
- readonly rate_card_version: string;
619
- }
620
- type SandboxEndReason = "create_failed" | "destroyed" | "expired" | "gone";
621
- interface SandboxList {
622
- readonly data: readonly Sandbox[];
623
- readonly next_cursor: string | null;
624
- }
625
- type SandboxStatus = "creating" | "destroyed" | "destroying" | "failed" | "paused" | "running";
626
- interface SecurityList {
627
- readonly detail: string | null;
628
- readonly read_at: string;
629
- readonly source_changed_at: string | null;
630
- readonly source_url: string;
631
- readonly value: readonly string[];
632
- }
633
- interface SecurityText {
634
- readonly detail: string | null;
635
- readonly read_at: string;
636
- readonly source_changed_at: string | null;
637
- readonly source_url: string;
638
- readonly value: string;
639
- }
640
- interface SharedUsage {
641
- readonly at: string;
642
- readonly figures: readonly SharedUsageFigure[];
643
- readonly period: UsagePeriod;
644
- readonly shared_by: string;
645
- readonly since: string | null;
646
- }
647
- interface SharedUsageFigure {
648
- readonly figure: UsageShareFigure;
649
- readonly value: number;
650
- }
651
- declare const SLUGS: readonly ["sandcovery/2x4", "sandcovery/2x4:cheapest", "sandcovery/nx16:cheapest", "sandcovery/2xn:fastest", "sandcovery/nxn:most-reliable", "boat/2x4", "e2b/2x0.5"];
652
- type Slug = (typeof SLUGS)[number] | (string & Record<never, never>);
653
- interface Snapshot {
654
- readonly created_at: string;
655
- readonly id: string;
656
- readonly provider: Provider;
657
- readonly sandbox_id: string;
658
- }
659
- interface SpendLimit {
660
- readonly limit_micro_usd: number;
661
- readonly period: SpendLimitPeriod;
662
- }
663
- type SpendLimitPeriod = "day" | "month" | "total" | "week";
664
- interface SpendLimitReachedError {
665
- readonly error: "spend_limit_reached";
666
- readonly limit_micro_usd: number;
667
- readonly message: string;
668
- readonly resets_at: string | null;
669
- readonly spent_micro_usd: number;
670
- }
671
- declare const STANDARD_SIZES: readonly ["1x2", "2x4", "4x8", "8x16"];
672
- type StandardSize = (typeof STANDARD_SIZES)[number] | (string & Record<never, never>);
673
- interface Stats {
674
- readonly badges: readonly Badge[];
675
- readonly busiest_day: StatsDay | null;
676
- readonly days: readonly StatsDay[];
677
- readonly largest_sandbox: {
678
- readonly memory_mib: number;
679
- readonly provider: Provider;
680
- readonly sandbox_id: string;
681
- readonly vcpus: number;
682
- } | null;
683
- readonly level: number;
684
- readonly level_vcpu_seconds: number;
685
- readonly longest_run: {
686
- readonly provider: Provider;
687
- readonly sandbox_id: string;
688
- readonly seconds: number;
689
- } | null;
690
- readonly next_level_vcpu_seconds: number;
691
- readonly sandbox_count: number;
692
- readonly streak: {
693
- readonly current_days: number;
694
- readonly longest_days: number;
695
- };
696
- readonly vcpu_seconds: number;
697
- }
698
- interface StatsDay {
699
- readonly date: string;
700
- readonly sandbox_count: number;
701
- }
702
- interface ThemedBrandImage {
703
- readonly dark: BrandImage;
704
- readonly light: BrandImage;
705
- }
706
- interface UnauthorizedError {
707
- readonly error: "unauthorized";
708
- readonly message: string;
709
- }
710
- interface UnsupportedError {
711
- readonly error: "unsupported";
712
- readonly message: string;
713
- readonly options: readonly string[];
714
- readonly provider: Provider | null;
715
- }
716
- interface UpdateKeyRequest {
717
- readonly allowed_providers?: readonly Provider[] | null;
718
- readonly expires_at?: string | null;
719
- readonly max_concurrent_sandboxes?: number | null;
720
- readonly max_ttl_seconds?: number | null;
721
- readonly name?: string;
722
- readonly spend_limit?: SpendLimit | null;
723
- }
724
- interface Usage {
725
- readonly data: readonly UsageDay[];
726
- }
727
- interface UsageDay {
728
- readonly api_key_id: string | null;
729
- readonly date: string;
730
- readonly estimated_micro_usd: number;
731
- readonly gpu_seconds: number;
732
- readonly memory_gib_seconds: number;
733
- readonly provider: Provider;
734
- readonly sandbox_count: number;
735
- readonly sandbox_seconds: number;
736
- readonly vcpu_seconds: number;
737
- }
738
- type UsagePeriod = "day" | "month" | "total" | "week";
739
- interface UsageShare {
740
- readonly id: string;
741
- readonly image_url: string;
742
- readonly token: string;
743
- readonly url: string;
744
- readonly usage: SharedUsage;
745
- }
746
- type UsageShareFigure = "sandbox_count" | "sandbox_seconds" | "vcpu_seconds" | "memory_gib_seconds" | "gpu_seconds" | "estimated_micro_usd";
747
- interface UsageShareList {
748
- readonly data: readonly UsageShare[];
749
- }
750
- interface UsageTotal {
751
- readonly estimated_micro_usd: number;
752
- readonly gpu_seconds: number;
753
- readonly memory_gib_seconds: number;
754
- readonly period: UsagePeriod;
755
- readonly sandbox_count: number;
756
- readonly sandbox_seconds: number;
757
- readonly since: string | null;
758
- readonly vcpu_seconds: number;
759
- }
760
- interface UsageTotals {
761
- readonly at: string;
762
- readonly data: readonly UsageTotal[];
763
- }
764
- interface VendorIncident {
765
- readonly id: string;
766
- readonly impact: IncidentImpact;
767
- readonly resolved_at: string | null;
768
- readonly started_at: string;
769
- readonly title: string;
770
- readonly url: string;
771
- }
772
- interface VendorIncidentRead {
773
- readonly data: readonly VendorIncident[];
774
- readonly read_at: string;
775
- readonly source_url: string;
776
- }
777
- interface XAccount {
778
- readonly id: string;
779
- readonly linked_at: string;
780
- readonly username: string;
781
- }
782
- interface XAccountLink {
783
- readonly url: string;
784
- }
785
- interface XAccountStatus {
786
- readonly linked: XAccount | null;
787
- readonly linking_open: boolean;
788
- }
789
- interface XPostRequest {
790
- readonly url: string;
791
- }
792
- type ApiError = ConcurrencyLimitReachedError | ConflictError | ForbiddenError | InvalidRequestError | NoProviderAvailableError | NotFoundError | ProviderError | RateLimitedError | SpendLimitReachedError | UnauthorizedError | UnsupportedError;
793
- export { FileList as $, SandboxEndReason as $t, CreateFailureReason as A, XAccountStatus as An, ProcessStatus as At, DetachedExec as B, ProviderFeatures as Bt, CiJob as C, UsageShareList as Cn, PortPreview as Ct, ConcurrencyLimitReachedError as D, VendorIncidentRead as Dn, ProblemReportRequest as Dt, CiJobStatus as E, VendorIncident as En, ProPrice as Et, CredentialField as F, ProviderCatalog as Ft, Estimate as G, Provider_1 as Gt, EGRESS_MODES as H, ProviderSecurity as Ht, CredentialFields as I, ProviderCatalogEntry as It, ExecEvent as J, Region as Jt, EstimateList as K, REGIONS as Kt, CreditCheckout as L, ProviderCredential as Lt, CreateSandboxRequest as M, Provider as Mt, CreateUsageShareRequest as N, ProviderBoard as Nt, ConflictError as O, XAccount as On, Process as Ot, CreatedKey as P, ProviderBoardEntry as Pt, FileEntryType as Q, SandboxCost as Qt, CreditPurchaseRequest as R, ProviderCredentialList as Rt, CiInstallationList as S, UsageShareFigure as Sn, PlanBiller as St, CiJobList as T, UsageTotals as Tn, ProInterval as Tt, EgressMode as U, ProviderSort as Ut, DetachedExecRequest as V, ProviderPreferences as Vt, EgressPolicy as W, ProviderStatus as Wt, ExecResult as X, STANDARD_SIZES as Xt, ExecRequest as Y, SLUGS as Yt, FileEntry as Z, Sandbox as Zt, CatalogLimit as _, UpdateKeyRequest as _n, NotFoundError as _t, ApiError as a, SharedUsageFigure as an, IncidentImpact as at, CatalogText as b, UsagePeriod as bn, PROVIDER_1S as bt, AutoTopUpRequest as c, SpendLimit as cn, KeyKind as ct, BrandImage as d, StandardSize as dn, LiveSandboxStatus as dt, SandboxList as en, ForbiddenError as et, CI_JOB_CONCLUSIONS as f, Stats as fn, LiveSandboxes as ft, CatalogGpus as g, UnsupportedError as gn, NoProviderAvailableError as gt, CatalogFlag as h, UnauthorizedError as hn, MonthlyCostList as ht, ActivityList as i, SharedUsage as in, Health as it, CreateKeyRequest as j, XPostRequest as jn, ProcessTerminal as jt, CreateAttempt as k, XAccountLink as kn, ProcessRequest as kt, Badge as l, SpendLimitPeriod as ln, KeyKind_1 as lt, CatalogBrandTerms as m, ThemedBrandImage as mn, MonthlyCost as mt, ActivityAction as n, SecurityList as nn, Gpu as nt, AutoTopUp as o, Slug as on, InvalidRequestError as ot, CatalogBenchmarkTerms as p, StatsDay as pn, LiveUsage as pt, EstimateRequest as q, RateLimitedError as qt, ActivityEvent as r, SecurityText as rn, GpuType as rt, AutoTopUpChange as s, Snapshot as sn, Key as st, ACTIVITY_ACTIONS as t, SandboxStatus as tn, GPU_TYPES as tt, Billing as u, SpendLimitReachedError as un, KeyList as ut, CatalogList as v, Usage as vn, Offer as vt, CiJobConclusion as w, UsageTotal as wn, Pricing as wt, CiInstallation as x, UsageShare as xn, Plan as xt, CatalogMeasurement as y, UsageDay as yn, PROVIDERS as yt, CreditTerms as z, ProviderError as zt };