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.
@@ -0,0 +1,1264 @@
1
+ interface AccountLimit {
2
+ readonly detail: string;
3
+ readonly source_url: string;
4
+ }
5
+ declare const ACTIVITY_ACTIONS: readonly ['sandbox.create', 'sandbox.create_attempt', 'sandbox.destroy', 'sandbox.expire', 'sandbox.pause', 'sandbox.resume', 'sandbox.snapshot'];
6
+ type ActivityAction = (typeof ACTIVITY_ACTIONS)[number] | (string & Record<never, never>);
7
+ type ActivityEvent = {
8
+ readonly action: ActivityAction;
9
+ readonly api_key_id: string | null;
10
+ readonly at: string;
11
+ readonly error: string;
12
+ readonly id: string;
13
+ readonly outcome: 'failed';
14
+ readonly provider: Provider | null;
15
+ readonly sandbox_id: string | null;
16
+ } | {
17
+ readonly action: ActivityAction;
18
+ readonly api_key_id: string | null;
19
+ readonly at: string;
20
+ readonly error: null;
21
+ readonly id: string;
22
+ readonly outcome: 'succeeded';
23
+ readonly provider: Provider | null;
24
+ readonly sandbox_id: string | null;
25
+ };
26
+ interface ActivityList {
27
+ readonly data: readonly ActivityEvent[];
28
+ readonly next_cursor: string | null;
29
+ }
30
+ interface Agent {
31
+ readonly created_at: string;
32
+ readonly id: string;
33
+ readonly last_error: string | null;
34
+ readonly preset: string;
35
+ readonly renewed_at: string | null;
36
+ readonly routing: AgentRouting;
37
+ readonly sandbox_expires_at: string | null;
38
+ readonly sandbox_id: string | null;
39
+ readonly status: AgentStatus;
40
+ readonly updated_at: string;
41
+ }
42
+ interface AgentList {
43
+ readonly data: readonly Agent[];
44
+ }
45
+ interface AgentLogs {
46
+ readonly log: string;
47
+ readonly sandbox_id: string;
48
+ }
49
+ interface AgentNativeSetup {
50
+ readonly guide: string;
51
+ readonly terminal: string | null;
52
+ }
53
+ interface AgentPreset {
54
+ readonly icon: string;
55
+ readonly id: string;
56
+ readonly license: string;
57
+ readonly memory_mib: number;
58
+ readonly name: string;
59
+ readonly repository: string;
60
+ readonly setup: AgentNativeSetup;
61
+ readonly subtitle: string;
62
+ readonly summary: string;
63
+ readonly version: string;
64
+ readonly web: AgentWebApp | null;
65
+ }
66
+ interface AgentPresetList {
67
+ readonly data: readonly AgentPreset[];
68
+ }
69
+ interface AgentRouting {
70
+ readonly disk_mib: number | null;
71
+ readonly provider: ProviderPreferences | null;
72
+ readonly region: Region | null;
73
+ readonly slug: Slug | null;
74
+ readonly slugs: readonly Slug[] | null;
75
+ }
76
+ interface AgentSessionRequest {
77
+ readonly cols: number;
78
+ readonly rows: number;
79
+ }
80
+ interface AgentSshRequest {
81
+ readonly public_key: string;
82
+ }
83
+ type AgentStatus = 'failed' | 'renewing' | 'running' | 'setup' | 'starting' | 'stopped';
84
+ interface AgentWebApp {
85
+ readonly path: string;
86
+ readonly port: number;
87
+ readonly setup: boolean;
88
+ }
89
+ interface AgentWebLink {
90
+ readonly url: string;
91
+ }
92
+ interface AutoTopUp {
93
+ readonly amount_micro_usd: number | null;
94
+ readonly enabled: boolean;
95
+ readonly failed_at: string | null;
96
+ readonly failure: string | null;
97
+ readonly threshold_micro_usd: number | null;
98
+ }
99
+ interface AutoTopUpChange {
100
+ readonly auto_top_up: AutoTopUp;
101
+ readonly url: string | null;
102
+ }
103
+ interface AutoTopUpRequest {
104
+ readonly amount_micro_usd: number;
105
+ readonly threshold_micro_usd: number;
106
+ }
107
+ interface Badge {
108
+ readonly earned_at: string | null;
109
+ readonly id: string;
110
+ readonly name: string;
111
+ readonly progress: number;
112
+ readonly target: number;
113
+ readonly unit: string;
114
+ }
115
+ interface BenchmarkResult {
116
+ readonly failure: string | null;
117
+ readonly median: number | null;
118
+ readonly metric: string;
119
+ readonly runs: readonly number[];
120
+ }
121
+ interface Billing {
122
+ readonly auto_top_up: AutoTopUp;
123
+ readonly credit_balance_micro_usd: number;
124
+ readonly credits_on_sale: boolean;
125
+ readonly enterprise_price: ProPrice | null;
126
+ readonly github_enterprise: boolean;
127
+ readonly plan: Plan;
128
+ readonly plan_billers: readonly PlanBiller[];
129
+ readonly pro_price: ProPrice | null;
130
+ }
131
+ interface BillingPortalSession {
132
+ readonly url: string;
133
+ }
134
+ interface BodyTooLargeError {
135
+ readonly error: 'body_too_large';
136
+ readonly message: string;
137
+ }
138
+ interface BrandImage {
139
+ readonly backdrop: boolean;
140
+ readonly dark: ThemeBrandImage;
141
+ readonly light: ThemeBrandImage;
142
+ readonly source_url: string;
143
+ readonly url: string;
144
+ }
145
+ interface CatalogBenchmarkTerms {
146
+ readonly detail: string | null;
147
+ readonly source_url: string | null;
148
+ readonly value: 'barred' | 'conditional' | 'no_bar_found';
149
+ }
150
+ interface CatalogBrandTerms {
151
+ readonly detail: string | null;
152
+ readonly source_url: string | null;
153
+ readonly value: 'barred' | 'conditional' | 'no_bar_found';
154
+ }
155
+ interface CatalogFlag {
156
+ readonly detail: string | null;
157
+ readonly source_url: string | null;
158
+ readonly value: boolean;
159
+ }
160
+ interface CatalogGpus {
161
+ readonly detail: string | null;
162
+ readonly source_url: string | null;
163
+ readonly value: readonly {
164
+ readonly hourly_micro_usd: number | null;
165
+ readonly name: string;
166
+ }[];
167
+ }
168
+ interface CatalogLimit {
169
+ readonly detail: string | null;
170
+ readonly source_url: string | null;
171
+ readonly value: number | null;
172
+ }
173
+ interface CatalogList {
174
+ readonly detail: string | null;
175
+ readonly source_url: string | null;
176
+ readonly value: readonly string[];
177
+ }
178
+ interface CatalogOperatingSystems {
179
+ readonly detail: string | null;
180
+ readonly source_url: string | null;
181
+ readonly value: readonly OperatingSystem[];
182
+ }
183
+ interface CatalogText {
184
+ readonly detail: string | null;
185
+ readonly source_url: string | null;
186
+ readonly value: string;
187
+ }
188
+ interface CiInstallation {
189
+ readonly account: string;
190
+ readonly api_key_id: string;
191
+ readonly installation_id: number;
192
+ readonly linked_at: string;
193
+ }
194
+ interface CiInstallationList {
195
+ readonly data: readonly CiInstallation[];
196
+ }
197
+ type CiJob = {
198
+ readonly completed_at: null;
199
+ readonly conclusion: null;
200
+ readonly cost_micro_usd: number | null;
201
+ readonly duration_ms: null;
202
+ readonly github_hosted_cost_micro_usd: null;
203
+ readonly id: string;
204
+ readonly job_name: string;
205
+ readonly provider: Provider | null;
206
+ readonly queued_at: string;
207
+ readonly repository: string;
208
+ readonly runner_error: string | null;
209
+ readonly runner_failures: readonly CiRunnerFailure[];
210
+ readonly runner_label: string;
211
+ readonly sandbox_id: string | null;
212
+ readonly started_at: null;
213
+ readonly status: 'queued';
214
+ readonly wait_ms: null;
215
+ readonly workflow_job_id: number;
216
+ readonly workflow_run_id: number;
217
+ } | {
218
+ readonly completed_at: null;
219
+ readonly conclusion: null;
220
+ readonly cost_micro_usd: number | null;
221
+ readonly duration_ms: null;
222
+ readonly github_hosted_cost_micro_usd: null;
223
+ readonly id: string;
224
+ readonly job_name: string;
225
+ readonly provider: Provider | null;
226
+ readonly queued_at: string;
227
+ readonly repository: string;
228
+ readonly runner_error: string | null;
229
+ readonly runner_failures: readonly CiRunnerFailure[];
230
+ readonly runner_label: string;
231
+ readonly sandbox_id: string | null;
232
+ readonly started_at: string | null;
233
+ readonly status: 'in_progress';
234
+ readonly wait_ms: number | null;
235
+ readonly workflow_job_id: number;
236
+ readonly workflow_run_id: number;
237
+ } | {
238
+ readonly completed_at: string | null;
239
+ readonly conclusion: CiJobConclusion | null;
240
+ readonly cost_micro_usd: number | null;
241
+ readonly duration_ms: number | null;
242
+ readonly github_hosted_cost_micro_usd: number | null;
243
+ readonly id: string;
244
+ readonly job_name: string;
245
+ readonly provider: Provider | null;
246
+ readonly queued_at: string;
247
+ readonly repository: string;
248
+ readonly runner_error: string | null;
249
+ readonly runner_failures: readonly CiRunnerFailure[];
250
+ readonly runner_label: string;
251
+ readonly sandbox_id: string | null;
252
+ readonly started_at: string | null;
253
+ readonly status: 'completed';
254
+ readonly wait_ms: number | null;
255
+ readonly workflow_job_id: number;
256
+ readonly workflow_run_id: number;
257
+ };
258
+ declare const CI_JOB_CONCLUSIONS: readonly ['action_required', 'cancelled', 'failure', 'neutral', 'skipped', 'success', 'timed_out'];
259
+ type CiJobConclusion = (typeof CI_JOB_CONCLUSIONS)[number] | (string & Record<never, never>);
260
+ interface CiJobList {
261
+ readonly data: readonly CiJob[];
262
+ readonly next_cursor: string | null;
263
+ }
264
+ interface CiRunnerFailure {
265
+ readonly provider: Provider;
266
+ readonly reason: string;
267
+ readonly step: 'create' | 'start';
268
+ }
269
+ interface CliSignIn {
270
+ readonly expires_at: string;
271
+ readonly name: string;
272
+ readonly status: CliSignInStatus;
273
+ readonly user_code: string;
274
+ }
275
+ interface CliSignInStart {
276
+ readonly device_code: string;
277
+ readonly expires_at: string;
278
+ readonly interval_seconds: number;
279
+ readonly user_code: string;
280
+ readonly verification_url: string;
281
+ }
282
+ type CliSignInStatus = 'approved' | 'denied' | 'expired' | 'pending';
283
+ interface CliSignInToken {
284
+ readonly api_key: string | null;
285
+ readonly status: CliSignInStatus;
286
+ }
287
+ interface CollectCliSignInRequest {
288
+ readonly device_code: string;
289
+ }
290
+ interface ConcurrencyLimitReachedError {
291
+ readonly concurrency_cap: number;
292
+ readonly error: 'concurrency_limit_reached';
293
+ readonly message: string;
294
+ }
295
+ interface ConflictError {
296
+ readonly error: 'conflict';
297
+ readonly message: string;
298
+ }
299
+ interface CreateAgentRequest {
300
+ readonly preset: string;
301
+ readonly routing: AgentRouting;
302
+ }
303
+ interface CreateAttempt {
304
+ readonly duration_ms: number;
305
+ readonly failure: {
306
+ readonly message: string;
307
+ readonly reason: CreateFailureReason;
308
+ } | null;
309
+ readonly provider: Provider;
310
+ readonly started_at: string;
311
+ }
312
+ interface CreatedKey {
313
+ readonly key: Key;
314
+ readonly secret: string;
315
+ }
316
+ type CreateFailureReason = 'capacity' | 'quota' | 'rejected' | 'server_error' | 'timeout';
317
+ interface CreateKeyRequest {
318
+ readonly allowed_providers: readonly Provider[] | null;
319
+ readonly expires_at: string | null;
320
+ readonly for_user_id: string | null;
321
+ readonly kind: 'api' | 'management';
322
+ readonly max_concurrent_sandboxes: number | null;
323
+ readonly max_ttl_seconds: number | null;
324
+ readonly name: string;
325
+ readonly spend_limit: SpendLimit | null;
326
+ }
327
+ interface CreateSandboxRequest {
328
+ readonly disk_mib: number | null;
329
+ readonly egress: EgressPolicy | null;
330
+ readonly env: Readonly<Record<string, string>> | null;
331
+ readonly gpu: Gpu | null;
332
+ readonly idle_timeout_seconds: number | null;
333
+ readonly image: string | null;
334
+ readonly os: OperatingSystemPick | null;
335
+ readonly ports: readonly number[] | null;
336
+ readonly region: Region | null;
337
+ readonly ttl_seconds: number | null;
338
+ readonly slug: Slug | null;
339
+ readonly slugs: readonly Slug[] | null;
340
+ readonly api_key_id: string | null;
341
+ readonly provider: ProviderPreferences | null;
342
+ readonly snapshot_id: string | null;
343
+ }
344
+ interface CreateUsageShareRequest {
345
+ readonly figures: readonly UsageShareFigure[];
346
+ readonly period: UsagePeriod;
347
+ }
348
+ interface CredentialChoice {
349
+ readonly label: string;
350
+ readonly value: string;
351
+ }
352
+ interface CredentialChoices {
353
+ readonly data: readonly CredentialChoice[];
354
+ readonly preselected: string | null;
355
+ }
356
+ type CredentialChoicesRequest = Readonly<Record<string, string>>;
357
+ interface CredentialField {
358
+ readonly choices: readonly CredentialChoice[];
359
+ readonly help: string | null;
360
+ readonly label: string;
361
+ readonly listed: boolean;
362
+ readonly name: string;
363
+ readonly preselected: string | null;
364
+ readonly required: boolean;
365
+ readonly secret: boolean;
366
+ }
367
+ type CredentialFields = Readonly<Record<string, string>>;
368
+ interface CredentialRejectedError {
369
+ readonly error: 'credential_rejected';
370
+ readonly field: string | null;
371
+ readonly message: string;
372
+ }
373
+ interface CreditCheckout {
374
+ readonly url: string;
375
+ }
376
+ interface CreditPurchaseRequest {
377
+ readonly amount_micro_usd: number;
378
+ }
379
+ interface CreditTerms {
380
+ readonly fee_fixed_micro_usd: number;
381
+ readonly fee_rate_basis_points: number;
382
+ readonly max_micro_usd: number;
383
+ readonly min_micro_usd: number;
384
+ }
385
+ interface DetachedExec {
386
+ readonly started_at: string;
387
+ }
388
+ interface DetachedExecRequest {
389
+ readonly command: string;
390
+ readonly cwd: string | null;
391
+ readonly env: Readonly<Record<string, string>> | null;
392
+ }
393
+ declare const EGRESS_MODES: readonly ['allow_all', 'allowlist', 'deny_all'];
394
+ type EgressMode = (typeof EGRESS_MODES)[number] | (string & Record<never, never>);
395
+ type EgressPolicy = {
396
+ readonly mode: 'allow_all';
397
+ } | {
398
+ readonly mode: 'deny_all';
399
+ } | {
400
+ readonly destinations: readonly string[];
401
+ readonly mode: 'allowlist';
402
+ };
403
+ interface Estimate {
404
+ readonly hourly_micro_usd: number;
405
+ readonly provider: Provider;
406
+ readonly rate_card_version: string;
407
+ readonly slug: Slug;
408
+ readonly ttl_micro_usd: number;
409
+ }
410
+ interface EstimateList {
411
+ readonly data: readonly Estimate[];
412
+ }
413
+ interface EstimateRequest {
414
+ readonly disk_mib: number | null;
415
+ readonly egress: EgressPolicy | null;
416
+ readonly env: Readonly<Record<string, string>> | null;
417
+ readonly gpu: Gpu | null;
418
+ readonly idle_timeout_seconds: number | null;
419
+ readonly image: string | null;
420
+ readonly os: OperatingSystemPick | null;
421
+ readonly ports: readonly number[] | null;
422
+ readonly region: Region | null;
423
+ readonly ttl_seconds: number | null;
424
+ readonly slug: Slug | null;
425
+ readonly slugs: readonly Slug[] | null;
426
+ readonly api_key_id: string | null;
427
+ readonly provider: ProviderPreferences | null;
428
+ }
429
+ type ExecEvent = {
430
+ readonly data: string;
431
+ readonly type: 'stdout';
432
+ } | {
433
+ readonly data: string;
434
+ readonly type: 'stderr';
435
+ } | {
436
+ readonly duration_ms: number;
437
+ readonly exit_code: number;
438
+ readonly type: 'exit';
439
+ } | {
440
+ readonly message: string;
441
+ readonly provider: Provider;
442
+ readonly type: 'error';
443
+ };
444
+ interface ExecRequest {
445
+ readonly command: string;
446
+ readonly cwd: string | null;
447
+ readonly env: Readonly<Record<string, string>> | null;
448
+ readonly timeout_seconds: number | null;
449
+ }
450
+ interface ExecResult {
451
+ readonly duration_ms: number;
452
+ readonly exit_code: number;
453
+ readonly stderr: string;
454
+ readonly stdout: string;
455
+ }
456
+ interface FileEntry {
457
+ readonly modified_at: string | null;
458
+ readonly name: string;
459
+ readonly path: string;
460
+ readonly size_bytes: number | null;
461
+ readonly type: FileEntryType;
462
+ }
463
+ type FileEntryType = 'directory' | 'file' | 'other' | 'symlink';
464
+ interface FileList {
465
+ readonly entries: readonly FileEntry[];
466
+ readonly path: string;
467
+ }
468
+ interface ForbiddenError {
469
+ readonly error: 'forbidden';
470
+ readonly message: string;
471
+ }
472
+ interface Gpu {
473
+ readonly count: number;
474
+ readonly type: GpuType;
475
+ }
476
+ declare const GPU_TYPES: readonly ['b200', 'b300', 'h100', 'h200', 'mi355x', 'rtx-4090', 'rtx-5090', 'rtx-pro-6000'];
477
+ type GpuType = (typeof GPU_TYPES)[number] | (string & Record<never, never>);
478
+ interface Health {
479
+ readonly ok: true;
480
+ }
481
+ type IncidentImpact = 'none' | 'minor' | 'major' | 'critical' | 'maintenance';
482
+ interface InvalidRequestError {
483
+ readonly error: 'invalid_request';
484
+ readonly message: string;
485
+ }
486
+ type Key = {
487
+ readonly created_at: string;
488
+ readonly expires_at: string | null;
489
+ readonly id: string;
490
+ readonly last_used_at: string | null;
491
+ readonly name: string;
492
+ readonly revoked: boolean;
493
+ readonly allowed_providers: readonly Provider[] | null;
494
+ readonly max_concurrent_sandboxes: number | null;
495
+ readonly max_ttl_seconds: number | null;
496
+ readonly spend_limit: SpendLimit | null;
497
+ readonly kind: 'api';
498
+ readonly spend: {
499
+ readonly resets_at: string | null;
500
+ readonly spent_micro_usd: number;
501
+ };
502
+ } | {
503
+ readonly created_at: string;
504
+ readonly expires_at: string | null;
505
+ readonly id: string;
506
+ readonly last_used_at: string | null;
507
+ readonly name: string;
508
+ readonly revoked: boolean;
509
+ readonly allowed_providers: null;
510
+ readonly max_concurrent_sandboxes: null;
511
+ readonly max_ttl_seconds: null;
512
+ readonly spend: {
513
+ readonly resets_at: null;
514
+ readonly spent_micro_usd: 0;
515
+ };
516
+ readonly spend_limit: null;
517
+ readonly kind: 'management';
518
+ } | {
519
+ readonly created_at: string;
520
+ readonly expires_at: string | null;
521
+ readonly id: string;
522
+ readonly last_used_at: string | null;
523
+ readonly name: string;
524
+ readonly revoked: boolean;
525
+ readonly allowed_providers: null;
526
+ readonly max_concurrent_sandboxes: null;
527
+ readonly max_ttl_seconds: null;
528
+ readonly spend: {
529
+ readonly resets_at: null;
530
+ readonly spent_micro_usd: 0;
531
+ };
532
+ readonly spend_limit: null;
533
+ readonly kind: 'person';
534
+ };
535
+ interface KeyList {
536
+ readonly data: readonly Key[];
537
+ }
538
+ type LiveCheckOutcome = 'passed' | 'failed' | 'not_offered';
539
+ interface LiveCheckResult {
540
+ readonly check: string;
541
+ readonly checked_at: string;
542
+ readonly result: LiveCheckOutcome;
543
+ readonly account_limit: AccountLimit | null;
544
+ }
545
+ interface LiveSandboxes {
546
+ readonly accrued_micro_usd: number;
547
+ readonly api_key_id: string | null;
548
+ readonly gpus: number;
549
+ readonly hourly_micro_usd: number;
550
+ readonly memory_mib: number;
551
+ readonly provider: Provider | null;
552
+ readonly sandbox_count: number;
553
+ readonly status: LiveSandboxStatus;
554
+ readonly vcpus: number;
555
+ }
556
+ type LiveSandboxStatus = 'creating' | 'destroying' | 'paused' | 'running';
557
+ interface LiveUsage {
558
+ readonly at: string;
559
+ readonly data: readonly LiveSandboxes[];
560
+ }
561
+ interface MonthlyCost {
562
+ readonly hourly_micro_usd: number;
563
+ readonly monthly_micro_usd: number;
564
+ readonly provider: Provider;
565
+ readonly rate_card_basis: RateCardBasis;
566
+ readonly rate_card_source_url: string;
567
+ readonly rate_card_version: string;
568
+ readonly slug: Slug;
569
+ }
570
+ interface MonthlyCostList {
571
+ readonly data: readonly MonthlyCost[];
572
+ readonly slug: Slug;
573
+ }
574
+ interface NoProviderAvailableError {
575
+ readonly attempts: readonly CreateAttempt[];
576
+ readonly error: 'no_provider_available';
577
+ readonly message: string;
578
+ }
579
+ interface NotFoundError {
580
+ readonly error: 'not_found';
581
+ readonly message: string;
582
+ }
583
+ interface Offer {
584
+ readonly cap_vcpu_seconds: number;
585
+ readonly keys_counted: number;
586
+ readonly keys_needed: number;
587
+ readonly month_used_up: boolean;
588
+ readonly provider: Provider_1;
589
+ readonly remaining_vcpu_seconds: number;
590
+ readonly used_vcpu_seconds: number;
591
+ readonly vcpu_seconds_per_key: number;
592
+ readonly x_account: string | null;
593
+ readonly x_post_counted: boolean;
594
+ }
595
+ declare const OPERATING_SYSTEMS: readonly ['linux', 'windows', 'macos'];
596
+ type OperatingSystem = (typeof OPERATING_SYSTEMS)[number] | (string & Record<never, never>);
597
+ type OperatingSystemPick = 'linux' | 'windows' | 'macos';
598
+ type PaidPlan = 'pro' | 'enterprise';
599
+ type Plan = 'free' | 'pro' | 'enterprise';
600
+ type PlanBiller = 'github_marketplace' | 'stripe';
601
+ interface PortPreview {
602
+ readonly expires_at: string | null;
603
+ readonly headers: Readonly<Record<string, string>>;
604
+ readonly port: number;
605
+ readonly url: string;
606
+ }
607
+ interface Pricing {
608
+ readonly credits: CreditTerms;
609
+ readonly enterprise_price: ProPrice | null;
610
+ readonly pro_price: ProPrice | null;
611
+ }
612
+ interface ProblemReportRequest {
613
+ readonly message: string;
614
+ readonly path: string | null;
615
+ }
616
+ interface Process {
617
+ readonly command: string;
618
+ readonly created_at: string;
619
+ readonly exit_code: number | null;
620
+ readonly exited_at: string | null;
621
+ readonly id: string;
622
+ readonly sandbox_id: string;
623
+ readonly signal: string | null;
624
+ readonly status: ProcessStatus;
625
+ readonly terminal: ProcessTerminal | null;
626
+ }
627
+ interface ProcessRequest {
628
+ readonly command: string;
629
+ readonly cwd: string | null;
630
+ readonly env: Readonly<Record<string, string>> | null;
631
+ readonly terminal: ProcessTerminal | null;
632
+ }
633
+ type ProcessStatus = 'exited' | 'lost' | 'running';
634
+ interface ProcessTerminal {
635
+ readonly cols: number;
636
+ readonly rows: number;
637
+ readonly stderr: boolean;
638
+ readonly stdin: boolean;
639
+ readonly stdout: boolean;
640
+ }
641
+ type ProInterval = 'day' | 'month' | 'week' | 'year';
642
+ interface ProPrice {
643
+ readonly interval: ProInterval;
644
+ readonly micro_usd: number;
645
+ }
646
+ declare const PROVIDERS: readonly ['daytona', 'depot', 'e2b', 'upstash'];
647
+ type Provider = (typeof PROVIDERS)[number] | (string & Record<never, never>);
648
+ declare const PROVIDER_1S: readonly ['daytona', 'depot', 'e2b', 'upstash'];
649
+ type Provider_1 = (typeof PROVIDER_1S)[number] | (string & Record<never, never>);
650
+ interface ProviderBenchmarkRun {
651
+ readonly arch: string | null;
652
+ readonly cost_micro_usd: number | null;
653
+ readonly direct_io: boolean | null;
654
+ readonly failure: string | null;
655
+ readonly file_system: string | null;
656
+ readonly memory_mib: number | null;
657
+ readonly ran_at: string;
658
+ readonly results: readonly BenchmarkResult[];
659
+ readonly size: string;
660
+ readonly vcpu: number | null;
661
+ }
662
+ interface ProviderBoard {
663
+ readonly data: readonly ProviderBoardEntry[];
664
+ }
665
+ interface ProviderBoardEntry {
666
+ readonly benchmarks: ProviderBenchmarkRun | null;
667
+ readonly create_latency_ms: {
668
+ readonly p50: number | null;
669
+ readonly p95: number | null;
670
+ };
671
+ readonly console_url: string | null;
672
+ readonly credential_fields: readonly CredentialField[];
673
+ readonly docs_only_adapter: boolean;
674
+ readonly favicon: BrandImage | null;
675
+ readonly features: ProviderFeatures;
676
+ readonly gpu_prices: readonly {
677
+ readonly hourly_micro_usd: number;
678
+ readonly type: GpuType;
679
+ }[];
680
+ readonly home_url: string;
681
+ readonly incidents: VendorIncidentRead | null;
682
+ readonly live_checks: readonly LiveCheckResult[];
683
+ readonly name: string;
684
+ readonly prices: readonly {
685
+ readonly hourly_micro_usd: number;
686
+ readonly size: StandardSize;
687
+ }[];
688
+ readonly provider: Provider;
689
+ readonly rate_card_basis: RateCardBasis;
690
+ readonly rate_card_detail: string | null;
691
+ readonly rate_card_source_url: string;
692
+ readonly rate_card_version: string;
693
+ readonly security: ProviderSecurity;
694
+ readonly setup_url: string | null;
695
+ readonly sizes: readonly StandardSize[];
696
+ readonly status: ProviderStatus;
697
+ readonly status_url: string | null;
698
+ readonly updated_at: string;
699
+ readonly uptime: {
700
+ readonly last_15_minutes: number | null;
701
+ readonly last_24_hours: number | null;
702
+ readonly last_7_days: number | null;
703
+ };
704
+ }
705
+ interface ProviderCatalog {
706
+ readonly data: readonly ProviderCatalogEntry[];
707
+ }
708
+ type ProviderCatalogEntry = {
709
+ readonly adapter_source_urls: readonly string[];
710
+ readonly benchmarks: ProviderBenchmarkRun | null;
711
+ readonly billing: CatalogText | null;
712
+ readonly brand: ProviderCatalogEntryBrand;
713
+ readonly capabilities: ProviderCatalogEntryCapabilities;
714
+ readonly create_latency_ms: ProviderCatalogEntryCreateLatencyMs;
715
+ readonly credential_fields: readonly CredentialField[];
716
+ readonly docs_only_adapter: boolean;
717
+ readonly egress_modes: CatalogList | null;
718
+ readonly gpus: CatalogGpus | null;
719
+ readonly incidents: VendorIncidentRead | null;
720
+ readonly limits: ProviderCatalogEntryLimits;
721
+ readonly links: ProviderCatalogEntryLinks;
722
+ readonly live_checks: readonly LiveCheckResult[];
723
+ readonly measured_at: string | null;
724
+ readonly measurement: 'measured';
725
+ readonly name: string;
726
+ readonly operating_systems: ProviderCatalogEntryOperatingSystems;
727
+ readonly policy: ProviderCatalogEntryPolicy;
728
+ readonly prices: readonly ProviderCatalogEntryPricesItem[];
729
+ readonly provider: Provider;
730
+ readonly rates: ProviderCatalogEntryRates | null;
731
+ readonly regions: CatalogList | null;
732
+ readonly routed: boolean;
733
+ readonly sizes: CatalogText | null;
734
+ readonly status: ProviderStatus;
735
+ readonly uptime: ProviderCatalogEntryUptime;
736
+ } | {
737
+ readonly adapter_source_urls: readonly string[];
738
+ readonly benchmarks: ProviderBenchmarkRun | null;
739
+ readonly billing: CatalogText | null;
740
+ readonly brand: ProviderCatalogEntryBrand;
741
+ readonly capabilities: ProviderCatalogEntryCapabilities;
742
+ readonly create_latency_ms: {
743
+ readonly p50: null;
744
+ readonly p95: null;
745
+ };
746
+ readonly credential_fields: readonly CredentialField[];
747
+ readonly docs_only_adapter: boolean;
748
+ readonly egress_modes: CatalogList | null;
749
+ readonly gpus: CatalogGpus | null;
750
+ readonly incidents: VendorIncidentRead | null;
751
+ readonly limits: ProviderCatalogEntryLimits;
752
+ readonly links: ProviderCatalogEntryLinks;
753
+ readonly live_checks: readonly LiveCheckResult[];
754
+ readonly measured_at: null;
755
+ readonly measurement: 'not_measured';
756
+ readonly name: string;
757
+ readonly operating_systems: ProviderCatalogEntryOperatingSystems;
758
+ readonly policy: ProviderCatalogEntryPolicy;
759
+ readonly prices: readonly ProviderCatalogEntryPricesItem[];
760
+ readonly provider: Provider;
761
+ readonly rates: ProviderCatalogEntryRates | null;
762
+ readonly regions: CatalogList | null;
763
+ readonly routed: boolean;
764
+ readonly sizes: CatalogText | null;
765
+ readonly status: ProviderStatus;
766
+ readonly uptime: ProviderCatalogEntryUptime;
767
+ };
768
+ interface ProviderCatalogEntryBrand {
769
+ readonly favicon: BrandImage | null;
770
+ readonly logo: BrandImage | null;
771
+ }
772
+ interface ProviderCatalogEntryCapabilities {
773
+ readonly ci_runner: CatalogFlag | null;
774
+ readonly custom_image: CatalogFlag | null;
775
+ readonly environment: CatalogFlag | null;
776
+ readonly files: CatalogFlag | null;
777
+ readonly idle_timeout: CatalogFlag | null;
778
+ readonly pause: CatalogFlag | null;
779
+ readonly ports: CatalogFlag | null;
780
+ readonly snapshot: CatalogFlag | null;
781
+ readonly streamed_exec: CatalogFlag | null;
782
+ }
783
+ interface ProviderCatalogEntryCreateLatencyMs {
784
+ readonly p50: number | null;
785
+ readonly p95: number | null;
786
+ }
787
+ interface ProviderCatalogEntryLimits {
788
+ readonly max_disk_mib: CatalogLimit | null;
789
+ readonly max_memory_mib: CatalogLimit | null;
790
+ readonly max_ttl_seconds: CatalogLimit | null;
791
+ readonly max_vcpu: CatalogLimit | null;
792
+ }
793
+ interface ProviderCatalogEntryLinks {
794
+ readonly docs_url: string;
795
+ readonly home_url: string;
796
+ readonly pricing_url: string;
797
+ readonly security_url: string | null;
798
+ readonly status_url: string | null;
799
+ readonly terms_url: string;
800
+ }
801
+ interface ProviderCatalogEntryOperatingSystems {
802
+ readonly ci_runner: CatalogOperatingSystems | null;
803
+ readonly sandbox: CatalogOperatingSystems | null;
804
+ }
805
+ interface ProviderCatalogEntryPolicy {
806
+ readonly benchmark_terms: CatalogBenchmarkTerms;
807
+ readonly brand_terms: CatalogBrandTerms;
808
+ readonly compliance: SecurityList | null;
809
+ readonly data_location: SecurityText | null;
810
+ readonly free_allowance: CatalogText | null;
811
+ readonly isolation: SecurityText | null;
812
+ readonly payment_required: CatalogFlag | null;
813
+ readonly plan_required: CatalogFlag | null;
814
+ readonly read_at: string;
815
+ readonly sla: CatalogText | null;
816
+ }
817
+ interface ProviderCatalogEntryPricesItem {
818
+ readonly hourly_micro_usd: number | null;
819
+ readonly offered: boolean | null;
820
+ readonly size: StandardSize;
821
+ }
822
+ interface ProviderCatalogEntryRates {
823
+ readonly as_of: string;
824
+ readonly basis: RateCardBasis;
825
+ readonly detail: string | null;
826
+ readonly memory_gib_hour_micro_usd: number;
827
+ readonly source_url: string;
828
+ readonly vcpu_hour_micro_usd: number;
829
+ }
830
+ interface ProviderCatalogEntryUptime {
831
+ readonly last_15_minutes: number | null;
832
+ readonly last_24_hours: number | null;
833
+ readonly last_7_days: number | null;
834
+ }
835
+ interface ProviderCredential {
836
+ readonly created_at: string;
837
+ readonly hint: string;
838
+ readonly id: string;
839
+ readonly paused: boolean;
840
+ readonly provider: Provider;
841
+ readonly updated_at: string;
842
+ }
843
+ interface ProviderCredentialList {
844
+ readonly data: readonly ProviderCredential[];
845
+ }
846
+ interface ProviderError {
847
+ readonly error: 'provider_error';
848
+ readonly message: string;
849
+ readonly provider: Provider;
850
+ }
851
+ interface ProviderFeatures {
852
+ readonly custom_image: boolean;
853
+ readonly detached_exec: boolean;
854
+ readonly egress_modes: readonly EgressMode[];
855
+ readonly gpu_types: readonly GpuType[];
856
+ readonly idle_timeout: boolean;
857
+ readonly max_disk_mib: number | null;
858
+ readonly max_memory_mib: number;
859
+ readonly max_ttl_seconds: number;
860
+ readonly max_vcpu: number;
861
+ readonly operating_system: OperatingSystem;
862
+ readonly pause: boolean;
863
+ readonly ports: boolean;
864
+ readonly regions: readonly Region[];
865
+ readonly snapshot: boolean;
866
+ readonly streamed_exec: boolean;
867
+ }
868
+ interface ProviderPreferences {
869
+ readonly allow_fallbacks: boolean | null;
870
+ readonly ignore: readonly Provider[] | null;
871
+ readonly only: readonly Provider[] | null;
872
+ readonly order: readonly Provider[] | null;
873
+ readonly sort: ProviderSort | null;
874
+ }
875
+ interface ProviderSecurity {
876
+ readonly compliance: SecurityList | null;
877
+ readonly data_location: SecurityText | null;
878
+ readonly isolation: SecurityText | null;
879
+ }
880
+ type ProviderSort = 'price' | 'latency' | 'uptime';
881
+ type ProviderStatus = 'degraded' | 'down' | 'operational' | 'unknown';
882
+ type RateCardBasis = 'usage' | 'monthly_plan';
883
+ interface RateLimitedError {
884
+ readonly error: 'rate_limited';
885
+ readonly message: string;
886
+ }
887
+ declare const REGIONS: readonly ['asia', 'eu', 'us'];
888
+ type Region = (typeof REGIONS)[number] | (string & Record<never, never>);
889
+ interface RetryLaterError {
890
+ readonly error: 'retry_later';
891
+ readonly message: string;
892
+ readonly retry_at: string;
893
+ }
894
+ type Sandbox = {
895
+ readonly api_key_id: string | null;
896
+ readonly attempts: readonly CreateAttempt[];
897
+ readonly cost: SandboxCost;
898
+ readonly created_at: string;
899
+ readonly disk_mib: number | null;
900
+ readonly egress: EgressPolicy;
901
+ readonly end_reason: null;
902
+ readonly ended_at: null;
903
+ readonly expires_at: string;
904
+ readonly gpu: Gpu | null;
905
+ readonly id: string;
906
+ readonly idle_timeout_seconds: number | null;
907
+ readonly image: string | null;
908
+ readonly memory_mib: number;
909
+ readonly ports: readonly number[];
910
+ readonly provider: null;
911
+ readonly provider_sandbox_id: null;
912
+ readonly region: Region | null;
913
+ readonly slug: null;
914
+ readonly started_at: null;
915
+ readonly status: 'creating';
916
+ readonly ttl_seconds: number;
917
+ readonly vcpu: number;
918
+ } | {
919
+ readonly api_key_id: string | null;
920
+ readonly attempts: readonly CreateAttempt[];
921
+ readonly cost: SandboxCost;
922
+ readonly created_at: string;
923
+ readonly disk_mib: number | null;
924
+ readonly egress: EgressPolicy;
925
+ readonly end_reason: null;
926
+ readonly ended_at: null;
927
+ readonly expires_at: string;
928
+ readonly gpu: Gpu | null;
929
+ readonly id: string;
930
+ readonly idle_timeout_seconds: number | null;
931
+ readonly image: string | null;
932
+ readonly memory_mib: number;
933
+ readonly ports: readonly number[];
934
+ readonly provider: Provider;
935
+ readonly provider_sandbox_id: string;
936
+ readonly region: Region | null;
937
+ readonly slug: Slug;
938
+ readonly started_at: string;
939
+ readonly status: 'running';
940
+ readonly ttl_seconds: number;
941
+ readonly vcpu: number;
942
+ } | {
943
+ readonly api_key_id: string | null;
944
+ readonly attempts: readonly CreateAttempt[];
945
+ readonly cost: SandboxCost;
946
+ readonly created_at: string;
947
+ readonly disk_mib: number | null;
948
+ readonly egress: EgressPolicy;
949
+ readonly end_reason: null;
950
+ readonly ended_at: null;
951
+ readonly expires_at: string;
952
+ readonly gpu: Gpu | null;
953
+ readonly id: string;
954
+ readonly idle_timeout_seconds: number | null;
955
+ readonly image: string | null;
956
+ readonly memory_mib: number;
957
+ readonly ports: readonly number[];
958
+ readonly provider: Provider;
959
+ readonly provider_sandbox_id: string;
960
+ readonly region: Region | null;
961
+ readonly slug: Slug;
962
+ readonly started_at: string;
963
+ readonly status: 'paused';
964
+ readonly ttl_seconds: number;
965
+ readonly vcpu: number;
966
+ } | {
967
+ readonly api_key_id: string | null;
968
+ readonly attempts: readonly CreateAttempt[];
969
+ readonly cost: SandboxCost;
970
+ readonly created_at: string;
971
+ readonly disk_mib: number | null;
972
+ readonly egress: EgressPolicy;
973
+ readonly end_reason: null;
974
+ readonly ended_at: null;
975
+ readonly expires_at: string;
976
+ readonly gpu: Gpu | null;
977
+ readonly id: string;
978
+ readonly idle_timeout_seconds: number | null;
979
+ readonly image: string | null;
980
+ readonly memory_mib: number;
981
+ readonly ports: readonly number[];
982
+ readonly provider: Provider;
983
+ readonly provider_sandbox_id: string;
984
+ readonly region: Region | null;
985
+ readonly slug: Slug;
986
+ readonly started_at: string;
987
+ readonly status: 'destroying';
988
+ readonly ttl_seconds: number;
989
+ readonly vcpu: number;
990
+ } | {
991
+ readonly api_key_id: string | null;
992
+ readonly attempts: readonly CreateAttempt[];
993
+ readonly cost: SandboxCost;
994
+ readonly created_at: string;
995
+ readonly disk_mib: number | null;
996
+ readonly egress: EgressPolicy;
997
+ readonly end_reason: 'destroyed' | 'expired' | 'gone';
998
+ readonly ended_at: string;
999
+ readonly expires_at: string;
1000
+ readonly gpu: Gpu | null;
1001
+ readonly id: string;
1002
+ readonly idle_timeout_seconds: number | null;
1003
+ readonly image: string | null;
1004
+ readonly memory_mib: number;
1005
+ readonly ports: readonly number[];
1006
+ readonly provider: Provider | null;
1007
+ readonly provider_sandbox_id: string | null;
1008
+ readonly region: Region | null;
1009
+ readonly slug: Slug | null;
1010
+ readonly started_at: string | null;
1011
+ readonly status: 'destroyed';
1012
+ readonly ttl_seconds: number;
1013
+ readonly vcpu: number;
1014
+ } | {
1015
+ readonly api_key_id: string | null;
1016
+ readonly attempts: readonly CreateAttempt[];
1017
+ readonly cost: SandboxCost;
1018
+ readonly created_at: string;
1019
+ readonly disk_mib: number | null;
1020
+ readonly egress: EgressPolicy;
1021
+ readonly end_reason: 'create_failed';
1022
+ readonly ended_at: string;
1023
+ readonly expires_at: string;
1024
+ readonly gpu: Gpu | null;
1025
+ readonly id: string;
1026
+ readonly idle_timeout_seconds: number | null;
1027
+ readonly image: string | null;
1028
+ readonly memory_mib: number;
1029
+ readonly ports: readonly number[];
1030
+ readonly provider: Provider | null;
1031
+ readonly provider_sandbox_id: string | null;
1032
+ readonly region: Region | null;
1033
+ readonly slug: Slug | null;
1034
+ readonly started_at: string | null;
1035
+ readonly status: 'failed';
1036
+ readonly ttl_seconds: number;
1037
+ readonly vcpu: number;
1038
+ };
1039
+ interface SandboxCost {
1040
+ readonly estimated_micro_usd: number;
1041
+ readonly hourly_micro_usd: number;
1042
+ readonly rate_card_version: string;
1043
+ }
1044
+ interface SandboxList {
1045
+ readonly data: readonly Sandbox[];
1046
+ readonly next_cursor: string | null;
1047
+ }
1048
+ type SandboxStatus = 'creating' | 'destroyed' | 'destroying' | 'failed' | 'paused' | 'running';
1049
+ interface SecurityList {
1050
+ readonly detail: string | null;
1051
+ readonly read_at: string;
1052
+ readonly source_changed_at: string | null;
1053
+ readonly source_url: string;
1054
+ readonly value: readonly string[];
1055
+ }
1056
+ interface SecurityText {
1057
+ readonly detail: string | null;
1058
+ readonly read_at: string;
1059
+ readonly source_changed_at: string | null;
1060
+ readonly source_url: string;
1061
+ readonly value: string;
1062
+ }
1063
+ interface SharedStats {
1064
+ readonly badges: readonly Badge[];
1065
+ readonly busiest_day: StatsDay | null;
1066
+ readonly days: readonly StatsDay[];
1067
+ readonly largest_sandbox: {
1068
+ readonly memory_mib: number;
1069
+ readonly provider: Provider;
1070
+ readonly vcpus: number;
1071
+ } | null;
1072
+ readonly level: number;
1073
+ readonly level_vcpu_seconds: number;
1074
+ readonly longest_run: {
1075
+ readonly provider: Provider;
1076
+ readonly seconds: number;
1077
+ } | null;
1078
+ readonly next_level_vcpu_seconds: number;
1079
+ readonly sandbox_count: number;
1080
+ readonly streak: {
1081
+ readonly current_days: number;
1082
+ readonly longest_days: number;
1083
+ };
1084
+ readonly vcpu_seconds: number;
1085
+ }
1086
+ interface SharedUsage {
1087
+ readonly at: string;
1088
+ readonly figures: readonly SharedUsageFigure[];
1089
+ readonly period: UsagePeriod;
1090
+ readonly shared_by: string;
1091
+ readonly since: string | null;
1092
+ }
1093
+ interface SharedUsageFigure {
1094
+ readonly figure: UsageShareFigure;
1095
+ readonly value: number;
1096
+ }
1097
+ declare const SLUGS: readonly ['sandcovery/2x4', 'sandcovery/2x4:cheapest', 'sandcovery/nx16:cheapest', 'sandcovery/2xn:fastest', 'sandcovery/nxn:most-reliable', 'boat/2x4', 'e2b/2x0.5'];
1098
+ type Slug = (typeof SLUGS)[number] | (string & Record<never, never>);
1099
+ interface Snapshot {
1100
+ readonly created_at: string;
1101
+ readonly id: string;
1102
+ readonly provider: Provider;
1103
+ readonly sandbox_id: string;
1104
+ }
1105
+ interface SnapshotList {
1106
+ readonly data: readonly Snapshot[];
1107
+ }
1108
+ interface SpendLimit {
1109
+ readonly limit_micro_usd: number;
1110
+ readonly period: SpendLimitPeriod;
1111
+ }
1112
+ type SpendLimitPeriod = 'day' | 'month' | 'total' | 'week';
1113
+ interface SpendLimitReachedError {
1114
+ readonly error: 'spend_limit_reached';
1115
+ readonly limit_micro_usd: number;
1116
+ readonly message: string;
1117
+ readonly resets_at: string | null;
1118
+ readonly spent_micro_usd: number;
1119
+ }
1120
+ declare const STANDARD_SIZES: readonly ['1x2', '2x4', '4x8', '8x16'];
1121
+ type StandardSize = (typeof STANDARD_SIZES)[number] | (string & Record<never, never>);
1122
+ interface StartCliSignInRequest {
1123
+ readonly name: string;
1124
+ }
1125
+ interface Stats {
1126
+ readonly badges: readonly Badge[];
1127
+ readonly busiest_day: StatsDay | null;
1128
+ readonly days: readonly StatsDay[];
1129
+ readonly largest_sandbox: {
1130
+ readonly memory_mib: number;
1131
+ readonly provider: Provider;
1132
+ readonly vcpus: number;
1133
+ readonly sandbox_id: string;
1134
+ } | null;
1135
+ readonly level: number;
1136
+ readonly level_vcpu_seconds: number;
1137
+ readonly longest_run: {
1138
+ readonly provider: Provider;
1139
+ readonly seconds: number;
1140
+ readonly sandbox_id: string;
1141
+ } | null;
1142
+ readonly next_level_vcpu_seconds: number;
1143
+ readonly sandbox_count: number;
1144
+ readonly streak: {
1145
+ readonly current_days: number;
1146
+ readonly longest_days: number;
1147
+ };
1148
+ readonly vcpu_seconds: number;
1149
+ }
1150
+ interface StatsDay {
1151
+ readonly date: string;
1152
+ readonly sandbox_count: number;
1153
+ }
1154
+ interface StatsShare {
1155
+ readonly token: string;
1156
+ readonly url: string;
1157
+ }
1158
+ interface SubscriptionCheckout {
1159
+ readonly url: string;
1160
+ }
1161
+ interface SubscriptionCheckoutRequest {
1162
+ readonly plan: PaidPlan;
1163
+ }
1164
+ interface ThemeBrandImage {
1165
+ readonly source_url: string;
1166
+ readonly tile: boolean;
1167
+ readonly url: string;
1168
+ }
1169
+ interface UnauthorizedError {
1170
+ readonly error: 'unauthorized';
1171
+ readonly message: string;
1172
+ }
1173
+ interface UnsupportedError {
1174
+ readonly error: 'unsupported';
1175
+ readonly message: string;
1176
+ readonly options: readonly string[];
1177
+ readonly provider: Provider | null;
1178
+ }
1179
+ interface UpdateKeyRequest {
1180
+ readonly allowed_providers?: readonly Provider[] | null;
1181
+ readonly expires_at?: string | null;
1182
+ readonly max_concurrent_sandboxes?: number | null;
1183
+ readonly max_ttl_seconds?: number | null;
1184
+ readonly spend_limit?: SpendLimit | null;
1185
+ }
1186
+ interface UsableKey {
1187
+ readonly allowed_providers: readonly Provider[] | null;
1188
+ readonly max_concurrent_sandboxes: number | null;
1189
+ readonly max_ttl_seconds: number | null;
1190
+ readonly spend_limit: SpendLimit | null;
1191
+ readonly expires_at: string | null;
1192
+ readonly id: string;
1193
+ readonly name: string;
1194
+ }
1195
+ interface UsableKeyList {
1196
+ readonly create_without_key: boolean;
1197
+ readonly data: readonly UsableKey[];
1198
+ }
1199
+ interface Usage {
1200
+ readonly data: readonly UsageDay[];
1201
+ readonly sandbox_count: number;
1202
+ }
1203
+ interface UsageDay {
1204
+ readonly api_key_id: string | null;
1205
+ readonly date: string;
1206
+ readonly estimated_micro_usd: number;
1207
+ readonly gpu_seconds: number;
1208
+ readonly memory_gib_seconds: number;
1209
+ readonly provider: Provider;
1210
+ readonly sandbox_count: number;
1211
+ readonly sandbox_seconds: number;
1212
+ readonly vcpu_seconds: number;
1213
+ }
1214
+ type UsagePeriod = 'day' | 'month' | 'total' | 'week';
1215
+ interface UsageShare {
1216
+ readonly id: string;
1217
+ readonly image_url: string;
1218
+ readonly token: string;
1219
+ readonly url: string;
1220
+ readonly usage: SharedUsage;
1221
+ }
1222
+ type UsageShareFigure = 'sandbox_count' | 'sandbox_seconds' | 'vcpu_seconds' | 'memory_gib_seconds' | 'gpu_seconds' | 'estimated_micro_usd';
1223
+ interface UsageShareList {
1224
+ readonly data: readonly UsageShare[];
1225
+ }
1226
+ interface UsageTotal {
1227
+ readonly estimated_micro_usd: number;
1228
+ readonly gpu_seconds: number;
1229
+ readonly memory_gib_seconds: number;
1230
+ readonly period: UsagePeriod;
1231
+ readonly sandbox_count: number;
1232
+ readonly sandbox_seconds: number;
1233
+ readonly since: string | null;
1234
+ readonly vcpu_seconds: number;
1235
+ }
1236
+ interface UsageTotals {
1237
+ readonly at: string;
1238
+ readonly data: readonly UsageTotal[];
1239
+ }
1240
+ interface VendorIncident {
1241
+ readonly id: string;
1242
+ readonly impact: IncidentImpact;
1243
+ readonly resolved_at: string | null;
1244
+ readonly started_at: string;
1245
+ readonly title: string;
1246
+ readonly url: string;
1247
+ }
1248
+ interface VendorIncidentRead {
1249
+ readonly data: readonly VendorIncident[];
1250
+ readonly read_at: string;
1251
+ readonly source_url: string;
1252
+ }
1253
+ interface XAccount {
1254
+ readonly id: string;
1255
+ readonly username: string;
1256
+ }
1257
+ interface XAccountLink {
1258
+ readonly url: string;
1259
+ }
1260
+ interface XAccountStatus {
1261
+ readonly linked: XAccount | null;
1262
+ }
1263
+ type ApiError = BodyTooLargeError | ConcurrencyLimitReachedError | ConflictError | CredentialRejectedError | ForbiddenError | InvalidRequestError | NoProviderAvailableError | NotFoundError | ProviderError | RateLimitedError | RetryLaterError | SpendLimitReachedError | UnauthorizedError | UnsupportedError;
1264
+ export { CreateKeyRequest as $, SpendLimitPeriod as $n, PortPreview as $t, CatalogBrandTerms as A, ProviderSort as An, Health as At, CiJobConclusion as B, Sandbox as Bn, MonthlyCost as Bt, BenchmarkResult as C, ProviderCatalogEntryUptime as Cn, VendorIncidentRead as Cr, FileEntry as Ct, BrandImage as D, ProviderFeatures as Dn, GPU_TYPES as Dt, BodyTooLargeError as E, ProviderError as En, XAccountStatus as Er, ForbiddenError as Et, CatalogOperatingSystems as F, RateLimitedError as Fn, LiveCheckOutcome as Ft, CliSignInStatus as G, SecurityText as Gn, Offer as Gt, CiRunnerFailure as H, SandboxList as Hn, NoProviderAvailableError as Ht, CatalogText as I, Region as In, LiveCheckResult as It, ConcurrencyLimitReachedError as J, SharedUsageFigure as Jn, PROVIDERS as Jt, CliSignInToken as K, SharedStats as Kn, OperatingSystem as Kt, CiInstallation as L, RetryLaterError as Ln, LiveSandboxStatus as Lt, CatalogGpus as M, Provider_1 as Mn, InvalidRequestError as Mt, CatalogLimit as N, REGIONS as Nn, Key as Nt, CI_JOB_CONCLUSIONS as O, ProviderPreferences as On, Gpu as Ot, CatalogList as P, RateCardBasis as Pn, KeyList as Pt, CreateFailureReason as Q, SpendLimit as Qn, PlanBiller as Qt, CiInstallationList as R, SLUGS as Rn, LiveSandboxes as Rt, Badge as S, ProviderCatalogEntryRates as Sn, VendorIncident as Sr, ExecResult as St, BillingPortalSession as T, ProviderCredentialList as Tn, XAccountLink as Tr, FileList as Tt, CliSignIn as U, SandboxStatus as Un, NotFoundError as Ut, CiJobList as V, SandboxCost as Vn, MonthlyCostList as Vt, CliSignInStart as W, SecurityList as Wn, OPERATING_SYSTEMS as Wt, CreateAgentRequest as X, Snapshot as Xn, PaidPlan as Xt, ConflictError as Y, Slug as Yn, PROVIDER_1S as Yt, CreateAttempt as Z, SnapshotList as Zn, Plan as Zt, AgentWebLink as _, ProviderCatalogEntryLimits as _n, UsageShare as _r, Estimate as _t, ActivityList as a, ProcessRequest as an, StatsShare as ar, CredentialChoicesRequest as at, AutoTopUpChange as b, ProviderCatalogEntryPolicy as bn, UsageTotal as br, ExecEvent as bt, AgentLogs as c, Provider as cn, ThemeBrandImage as cr, CredentialRejectedError as ct, AgentPresetList as d, ProviderBoardEntry as dn, UpdateKeyRequest as dr, CreditTerms as dt, Pricing as en, SpendLimitReachedError as er, CreateSandboxRequest as et, AgentRouting as f, ProviderCatalog as fn, UsableKey as fr, DetachedExec as ft, AgentWebApp as g, ProviderCatalogEntryCreateLatencyMs as gn, UsagePeriod as gr, EgressPolicy as gt, AgentStatus as h, ProviderCatalogEntryCapabilities as hn, UsageDay as hr, EgressMode as ht, ActivityEvent as i, Process as in, StatsDay as ir, CredentialChoices as it, CatalogFlag as j, ProviderStatus as jn, IncidentImpact as jt, CatalogBenchmarkTerms as k, ProviderSecurity as kn, GpuType as kt, AgentNativeSetup as l, ProviderBenchmarkRun as ln, UnauthorizedError as lr, CreditCheckout as lt, AgentSshRequest as m, ProviderCatalogEntryBrand as mn, Usage as mr, EGRESS_MODES as mt, AccountLimit as n, ProPrice as nn, StartCliSignInRequest as nr, CreatedKey as nt, Agent as o, ProcessStatus as on, SubscriptionCheckout as or, CredentialField as ot, AgentSessionRequest as p, ProviderCatalogEntry as pn, UsableKeyList as pr, DetachedExecRequest as pt, CollectCliSignInRequest as q, SharedUsage as qn, OperatingSystemPick as qt, ActivityAction as r, ProblemReportRequest as rn, Stats as rr, CredentialChoice as rt, AgentList as s, ProcessTerminal as sn, SubscriptionCheckoutRequest as sr, CredentialFields as st, ACTIVITY_ACTIONS as t, ProInterval as tn, StandardSize as tr, CreateUsageShareRequest as tt, AgentPreset as u, ProviderBoard as un, UnsupportedError as ur, CreditPurchaseRequest as ut, ApiError as v, ProviderCatalogEntryLinks as vn, UsageShareFigure as vr, EstimateList as vt, Billing as w, ProviderCredential as wn, XAccount as wr, FileEntryType as wt, AutoTopUpRequest as x, ProviderCatalogEntryPricesItem as xn, UsageTotals as xr, ExecRequest as xt, AutoTopUp as y, ProviderCatalogEntryOperatingSystems as yn, UsageShareList as yr, EstimateRequest as yt, CiJob as z, STANDARD_SIZES as zn, LiveUsage as zt };