sandcovery 0.3.0 → 0.4.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.
@@ -14,16 +14,34 @@ interface ActivityList {
14
14
  readonly data: readonly ActivityEvent[];
15
15
  readonly next_cursor: string | null;
16
16
  }
17
+ interface Badge {
18
+ readonly earned_at: string | null;
19
+ readonly id: string;
20
+ readonly name: string;
21
+ readonly progress: number;
22
+ readonly target: number;
23
+ readonly unit: string;
24
+ }
17
25
  interface Billing {
18
26
  readonly credit_balance_micro_usd: number;
19
27
  readonly plan: Plan;
20
28
  readonly pro_price: ProPrice | null;
21
29
  }
30
+ interface BrandImage {
31
+ readonly source_url: string;
32
+ readonly tile: boolean;
33
+ readonly url: string;
34
+ }
22
35
  interface CatalogBenchmarkTerms {
23
36
  readonly detail: string | null;
24
37
  readonly source_url: string | null;
25
38
  readonly value: "barred" | "conditional" | "no_bar_found";
26
39
  }
40
+ interface CatalogBrandTerms {
41
+ readonly detail: string | null;
42
+ readonly source_url: string | null;
43
+ readonly value: "barred" | "conditional" | "no_bar_found";
44
+ }
27
45
  interface CatalogFlag {
28
46
  readonly detail: string | null;
29
47
  readonly source_url: string | null;
@@ -53,6 +71,43 @@ interface CatalogText {
53
71
  readonly source_url: string | null;
54
72
  readonly value: string;
55
73
  }
74
+ interface CiInstallation {
75
+ readonly account: string;
76
+ readonly api_key_id: string;
77
+ readonly installation_id: number;
78
+ readonly linked_at: string;
79
+ readonly provider_order: readonly Provider[];
80
+ }
81
+ interface CiInstallationList {
82
+ readonly data: readonly CiInstallation[];
83
+ }
84
+ interface CiJob {
85
+ readonly completed_at: string | null;
86
+ readonly conclusion: CiJobConclusion | null;
87
+ readonly cost_micro_usd: number | null;
88
+ readonly duration_ms: number | null;
89
+ readonly github_hosted_cost_micro_usd: number | null;
90
+ readonly id: string;
91
+ readonly job_name: string;
92
+ readonly provider: Provider | null;
93
+ readonly queued_at: string;
94
+ readonly repository: string;
95
+ readonly runner_error: string | null;
96
+ readonly runner_label: string;
97
+ readonly sandbox_id: string | null;
98
+ readonly started_at: string | null;
99
+ readonly status: CiJobStatus;
100
+ readonly wait_ms: number | null;
101
+ readonly workflow_job_id: number;
102
+ readonly workflow_run_id: number;
103
+ }
104
+ declare const CI_JOB_CONCLUSIONS: readonly ["action_required", "cancelled", "failure", "neutral", "skipped", "success", "timed_out"];
105
+ type CiJobConclusion = (typeof CI_JOB_CONCLUSIONS)[number] | (string & Record<never, never>);
106
+ interface CiJobList {
107
+ readonly data: readonly CiJob[];
108
+ readonly next_cursor: string | null;
109
+ }
110
+ type CiJobStatus = "completed" | "in_progress" | "queued";
56
111
  interface ConcurrencyLimitReachedError {
57
112
  readonly concurrency_cap: number;
58
113
  readonly error: "concurrency_limit_reached";
@@ -92,12 +147,11 @@ interface CreateSandboxRequest {
92
147
  readonly gpu?: Gpu;
93
148
  readonly idle_timeout_seconds?: number;
94
149
  readonly image?: string;
95
- readonly memory_mib?: number;
96
150
  readonly ports?: readonly number[];
97
151
  readonly region?: Region;
98
- readonly size?: SizeName;
99
152
  readonly ttl_seconds?: number;
100
- readonly vcpu?: number;
153
+ readonly slug?: Slug;
154
+ readonly slugs?: readonly Slug[];
101
155
  readonly provider?: ProviderPreferences;
102
156
  readonly snapshot_id?: string;
103
157
  }
@@ -113,6 +167,12 @@ interface CreditCheckout {
113
167
  interface CreditPurchaseRequest {
114
168
  readonly amount_micro_usd: number;
115
169
  }
170
+ interface CreditTerms {
171
+ readonly fee_fixed_micro_usd: number;
172
+ readonly fee_rate_basis_points: number;
173
+ readonly max_micro_usd: number;
174
+ readonly min_micro_usd: number;
175
+ }
116
176
  interface DetachedExec {
117
177
  readonly started_at: string;
118
178
  }
@@ -135,6 +195,7 @@ interface Estimate {
135
195
  readonly hourly_micro_usd: number;
136
196
  readonly provider: Provider;
137
197
  readonly rate_card_version: string;
198
+ readonly slug: Slug;
138
199
  readonly ttl_micro_usd: number;
139
200
  }
140
201
  interface EstimateList {
@@ -147,12 +208,11 @@ interface EstimateRequest {
147
208
  readonly gpu?: Gpu;
148
209
  readonly idle_timeout_seconds?: number;
149
210
  readonly image?: string;
150
- readonly memory_mib?: number;
151
211
  readonly ports?: readonly number[];
152
212
  readonly region?: Region;
153
- readonly size?: SizeName;
154
213
  readonly ttl_seconds?: number;
155
- readonly vcpu?: number;
214
+ readonly slug?: Slug;
215
+ readonly slugs?: readonly Slug[];
156
216
  readonly provider?: ProviderPreferences;
157
217
  }
158
218
  type ExecEvent = {
@@ -235,6 +295,22 @@ type KeyKind_1 = "api" | "management";
235
295
  interface KeyList {
236
296
  readonly data: readonly Key[];
237
297
  }
298
+ interface LiveSandboxes {
299
+ readonly accrued_micro_usd: number;
300
+ readonly api_key_id: string | null;
301
+ readonly gpus: number;
302
+ readonly hourly_micro_usd: number;
303
+ readonly memory_mib: number;
304
+ readonly provider: Provider | null;
305
+ readonly sandbox_count: number;
306
+ readonly status: LiveSandboxStatus;
307
+ readonly vcpus: number;
308
+ }
309
+ type LiveSandboxStatus = "creating" | "destroying" | "paused" | "running";
310
+ interface LiveUsage {
311
+ readonly at: string;
312
+ readonly data: readonly LiveSandboxes[];
313
+ }
238
314
  interface NoProviderAvailableError {
239
315
  readonly attempts: readonly CreateAttempt[];
240
316
  readonly error: "no_provider_available";
@@ -261,6 +337,10 @@ interface PortPreview {
261
337
  readonly port: number;
262
338
  readonly url: string;
263
339
  }
340
+ interface Pricing {
341
+ readonly credits: CreditTerms;
342
+ readonly pro_price: ProPrice | null;
343
+ }
264
344
  type ProInterval = "day" | "month" | "week" | "year";
265
345
  interface ProPrice {
266
346
  readonly interval: ProInterval;
@@ -280,6 +360,7 @@ interface ProviderBoardEntry {
280
360
  };
281
361
  readonly credential_fields: readonly CredentialField[];
282
362
  readonly docs_only_adapter: boolean;
363
+ readonly favicon: ThemedBrandImage | null;
283
364
  readonly features: ProviderFeatures;
284
365
  readonly gpu_prices: readonly {
285
366
  readonly hourly_micro_usd: number;
@@ -312,7 +393,12 @@ interface ProviderCatalog {
312
393
  interface ProviderCatalogEntry {
313
394
  readonly adapter_source_urls: readonly string[];
314
395
  readonly billing: CatalogText | null;
396
+ readonly brand: {
397
+ readonly favicon: ThemedBrandImage | null;
398
+ readonly logo: ThemedBrandImage | null;
399
+ };
315
400
  readonly capabilities: {
401
+ readonly ci_runner: CatalogFlag | null;
316
402
  readonly custom_image: CatalogFlag | null;
317
403
  readonly environment: CatalogFlag | null;
318
404
  readonly files: CatalogFlag | null;
@@ -350,6 +436,7 @@ interface ProviderCatalogEntry {
350
436
  readonly name: string;
351
437
  readonly policy: {
352
438
  readonly benchmark_terms: CatalogBenchmarkTerms;
439
+ readonly brand_terms: CatalogBrandTerms;
353
440
  readonly compliance: SecurityList | null;
354
441
  readonly data_location: SecurityText | null;
355
442
  readonly free_allowance: CatalogText | null;
@@ -385,6 +472,7 @@ interface ProviderCatalogEntry {
385
472
  interface ProviderCredential {
386
473
  readonly created_at: string;
387
474
  readonly hint: string;
475
+ readonly id: string;
388
476
  readonly provider: Provider;
389
477
  readonly updated_at: string;
390
478
  }
@@ -428,7 +516,7 @@ type ProviderStatus = "degraded" | "down" | "operational" | "unknown";
428
516
  declare const REGIONS: readonly ["asia", "eu", "us"];
429
517
  type Region = (typeof REGIONS)[number] | (string & Record<never, never>);
430
518
  interface Sandbox {
431
- readonly api_key_id: string;
519
+ readonly api_key_id: string | null;
432
520
  readonly attempts: readonly CreateAttempt[];
433
521
  readonly cost: SandboxCost;
434
522
  readonly created_at: string;
@@ -446,7 +534,7 @@ interface Sandbox {
446
534
  readonly provider: Provider | null;
447
535
  readonly provider_sandbox_id: string | null;
448
536
  readonly region: Region | null;
449
- readonly size: SizeName | null;
537
+ readonly slug: Slug | null;
450
538
  readonly started_at: string | null;
451
539
  readonly status: SandboxStatus;
452
540
  readonly ttl_seconds: number;
@@ -477,8 +565,8 @@ interface SecurityText {
477
565
  readonly source_url: string;
478
566
  readonly value: string;
479
567
  }
480
- declare const SIZE_NAMES: readonly ["1x2", "1x2:cheapest", "1x2:fastest", "1x2:most-reliable", "2x4", "2x4:cheapest", "2x4:fastest", "2x4:most-reliable", "4x8", "4x8:cheapest", "4x8:fastest", "4x8:most-reliable", "8x16", "8x16:cheapest", "8x16:fastest", "8x16:most-reliable"];
481
- type SizeName = (typeof SIZE_NAMES)[number] | (string & Record<never, never>);
568
+ declare const SLUGS: readonly ["sandcovery/2x4", "sandcovery/2x4:cheapest", "sandcovery/nx16:cheapest", "sandcovery/2xn:fastest", "sandcovery/nxn:most-reliable", "boat/2x4", "e2b/2x0.5"];
569
+ type Slug = (typeof SLUGS)[number] | (string & Record<never, never>);
482
570
  interface Snapshot {
483
571
  readonly created_at: string;
484
572
  readonly id: string;
@@ -499,6 +587,39 @@ interface SpendLimitReachedError {
499
587
  }
500
588
  declare const STANDARD_SIZES: readonly ["1x2", "2x4", "4x8", "8x16"];
501
589
  type StandardSize = (typeof STANDARD_SIZES)[number] | (string & Record<never, never>);
590
+ interface Stats {
591
+ readonly badges: readonly Badge[];
592
+ readonly busiest_day: StatsDay | null;
593
+ readonly days: readonly StatsDay[];
594
+ readonly largest_sandbox: {
595
+ readonly memory_mib: number;
596
+ readonly provider: Provider;
597
+ readonly sandbox_id: string;
598
+ readonly vcpus: number;
599
+ } | null;
600
+ readonly level: number;
601
+ readonly level_vcpu_seconds: number;
602
+ readonly longest_run: {
603
+ readonly provider: Provider;
604
+ readonly sandbox_id: string;
605
+ readonly seconds: number;
606
+ } | null;
607
+ readonly next_level_vcpu_seconds: number;
608
+ readonly sandbox_count: number;
609
+ readonly streak: {
610
+ readonly current_days: number;
611
+ readonly longest_days: number;
612
+ };
613
+ readonly vcpu_seconds: number;
614
+ }
615
+ interface StatsDay {
616
+ readonly date: string;
617
+ readonly sandbox_count: number;
618
+ }
619
+ interface ThemedBrandImage {
620
+ readonly dark: BrandImage;
621
+ readonly light: BrandImage;
622
+ }
502
623
  interface UnauthorizedError {
503
624
  readonly error: "unauthorized";
504
625
  readonly message: string;
@@ -521,12 +642,30 @@ interface Usage {
521
642
  readonly data: readonly UsageDay[];
522
643
  }
523
644
  interface UsageDay {
524
- readonly api_key_id: string;
645
+ readonly api_key_id: string | null;
525
646
  readonly date: string;
526
647
  readonly estimated_micro_usd: number;
648
+ readonly gpu_seconds: number;
649
+ readonly memory_gib_seconds: number;
527
650
  readonly provider: Provider;
528
651
  readonly sandbox_count: number;
529
652
  readonly sandbox_seconds: number;
653
+ readonly vcpu_seconds: number;
654
+ }
655
+ type UsagePeriod = "day" | "month" | "total" | "week";
656
+ interface UsageTotal {
657
+ readonly estimated_micro_usd: number;
658
+ readonly gpu_seconds: number;
659
+ readonly memory_gib_seconds: number;
660
+ readonly period: UsagePeriod;
661
+ readonly sandbox_count: number;
662
+ readonly sandbox_seconds: number;
663
+ readonly since: string | null;
664
+ readonly vcpu_seconds: number;
665
+ }
666
+ interface UsageTotals {
667
+ readonly at: string;
668
+ readonly data: readonly UsageTotal[];
530
669
  }
531
670
  interface VendorIncident {
532
671
  readonly id: string;
@@ -542,4 +681,4 @@ interface VendorIncidentRead {
542
681
  readonly source_url: string;
543
682
  }
544
683
  type ApiError = ConcurrencyLimitReachedError | ConflictError | ForbiddenError | InvalidRequestError | NoProviderAvailableError | NotFoundError | ProviderError | SpendLimitReachedError | UnauthorizedError | UnsupportedError;
545
- export { PROVIDERS as $, Estimate as A, SizeName as At, GPU_TYPES as B, UsageDay as Bt, CreditCheckout as C, Sandbox as Ct, EGRESS_MODES as D, SandboxStatus as Dt, DetachedExecRequest as E, SandboxList as Et, ExecResult as F, StandardSize as Ft, InvalidRequestError as G, GpuType as H, VendorIncidentRead as Ht, FileEntry as I, UnauthorizedError as It, KeyKind_1 as J, Key as K, FileEntryType as L, UnsupportedError as Lt, EstimateRequest as M, SpendLimit as Mt, ExecEvent as N, SpendLimitPeriod as Nt, EgressMode as O, SecurityList as Ot, ExecRequest as P, SpendLimitReachedError as Pt, Offer as Q, FileList as R, UpdateKeyRequest as Rt, CredentialFields as S, STANDARD_SIZES as St, DetachedExec as T, SandboxEndReason as Tt, Health as U, Gpu as V, VendorIncident as Vt, IncidentImpact as W, NoProviderAvailableError as X, KeyList as Y, NotFoundError as Z, CreateFailureReason as _, ProviderStatus as _t, ApiError as a, Provider as at, CreatedKey as b, Region as bt, CatalogFlag as c, ProviderCatalog as ct, CatalogList as d, ProviderCredentialList as dt, PROVIDER_1S as et, CatalogMeasurement as f, ProviderError as ft, CreateAttempt as g, ProviderSort as gt, ConflictError as h, ProviderSecurity as ht, ActivityList as i, ProPrice as it, EstimateList as j, Snapshot as jt, EgressPolicy as k, SecurityText as kt, CatalogGpus as l, ProviderCatalogEntry as lt, ConcurrencyLimitReachedError as m, ProviderPreferences as mt, ActivityAction as n, PortPreview as nt, Billing as o, ProviderBoard as ot, CatalogText as p, ProviderFeatures as pt, KeyKind as q, ActivityEvent as r, ProInterval as rt, CatalogBenchmarkTerms as s, ProviderBoardEntry as st, ACTIVITY_ACTIONS as t, Plan as tt, CatalogLimit as u, ProviderCredential as ut, CreateKeyRequest as v, Provider_1 as vt, CreditPurchaseRequest as w, SandboxCost as wt, CredentialField as x, SIZE_NAMES as xt, CreateSandboxRequest as y, REGIONS as yt, ForbiddenError as z, Usage as zt };
684
+ export { GpuType as $, ThemedBrandImage as $t, CreatedKey as A, ProviderSecurity as At, EgressPolicy as B, SandboxEndReason as Bt, CiJobStatus as C, ProviderCatalog as Ct, CreateFailureReason as D, ProviderError as Dt, CreateAttempt as E, ProviderCredentialList as Et, CreditTerms as F, Region as Ft, ExecRequest as G, Slug as Gt, EstimateList as H, SandboxStatus as Ht, DetachedExec as I, SLUGS as It, FileEntryType as J, SpendLimitPeriod as Jt, ExecResult as K, Snapshot as Kt, DetachedExecRequest as L, STANDARD_SIZES as Lt, CredentialFields as M, ProviderStatus as Mt, CreditCheckout as N, Provider_1 as Nt, CreateKeyRequest as O, ProviderFeatures as Ot, CreditPurchaseRequest as P, REGIONS as Pt, Gpu as Q, StatsDay as Qt, EGRESS_MODES as R, Sandbox as Rt, CiJobList as S, ProviderBoardEntry as St, ConflictError as T, ProviderCredential as Tt, EstimateRequest as U, SecurityList as Ut, Estimate as V, SandboxList as Vt, ExecEvent as W, SecurityText as Wt, ForbiddenError as X, StandardSize as Xt, FileList as Y, SpendLimitReachedError as Yt, GPU_TYPES as Z, Stats as Zt, CatalogText as _, Pricing as _t, ApiError as a, UsagePeriod as an, KeyKind_1 as at, CiJob as b, Provider as bt, BrandImage as c, VendorIncident as cn, LiveSandboxes as ct, CatalogBrandTerms as d, NotFoundError as dt, UnauthorizedError as en, Health as et, CatalogFlag as f, Offer as ft, CatalogMeasurement as g, PortPreview as gt, CatalogList as h, Plan as ht, ActivityList as i, UsageDay as in, KeyKind as it, CredentialField as j, ProviderSort as jt, CreateSandboxRequest as k, ProviderPreferences as kt, CI_JOB_CONCLUSIONS as l, VendorIncidentRead as ln, LiveUsage as lt, CatalogLimit as m, PROVIDER_1S as mt, ActivityAction as n, UpdateKeyRequest as nn, InvalidRequestError as nt, Badge as o, UsageTotal as on, KeyList as ot, CatalogGpus as p, PROVIDERS as pt, FileEntry as q, SpendLimit as qt, ActivityEvent as r, Usage as rn, Key as rt, Billing as s, UsageTotals as sn, LiveSandboxStatus as st, ACTIVITY_ACTIONS as t, UnsupportedError as tn, IncidentImpact as tt, CatalogBenchmarkTerms as u, NoProviderAvailableError as ut, CiInstallation as v, ProInterval as vt, ConcurrencyLimitReachedError as w, ProviderCatalogEntry as wt, CiJobConclusion as x, ProviderBoard as xt, CiInstallationList as y, ProPrice as yt, EgressMode as z, SandboxCost as zt };
package/dist/types.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as PROVIDERS, A as Estimate, At as SizeName, B as GPU_TYPES, Bt as UsageDay, C as CreditCheckout, Ct as Sandbox, D as EGRESS_MODES, Dt as SandboxStatus, E as DetachedExecRequest, Et as SandboxList, F as ExecResult, Ft as StandardSize, G as InvalidRequestError, H as GpuType, Ht as VendorIncidentRead, I as FileEntry, It as UnauthorizedError, J as KeyKind_1, K as Key, L as FileEntryType, Lt as UnsupportedError, M as EstimateRequest, Mt as SpendLimit, N as ExecEvent, Nt as SpendLimitPeriod, O as EgressMode, Ot as SecurityList, P as ExecRequest, Pt as SpendLimitReachedError, Q as Offer, R as FileList, Rt as UpdateKeyRequest, S as CredentialFields, St as STANDARD_SIZES, T as DetachedExec, Tt as SandboxEndReason, U as Health, V as Gpu, Vt as VendorIncident, W as IncidentImpact, X as NoProviderAvailableError, Y as KeyList, Z as NotFoundError, _ as CreateFailureReason, _t as ProviderStatus, a as ApiError, at as Provider, b as CreatedKey, bt as Region, c as CatalogFlag, ct as ProviderCatalog, d as CatalogList, dt as ProviderCredentialList, et as PROVIDER_1S, f as CatalogMeasurement, ft as ProviderError, g as CreateAttempt, gt as ProviderSort, h as ConflictError, ht as ProviderSecurity, i as ActivityList, it as ProPrice, j as EstimateList, jt as Snapshot, k as EgressPolicy, kt as SecurityText, l as CatalogGpus, lt as ProviderCatalogEntry, m as ConcurrencyLimitReachedError, mt as ProviderPreferences, n as ActivityAction, nt as PortPreview, o as Billing, ot as ProviderBoard, p as CatalogText, pt as ProviderFeatures, q as KeyKind, r as ActivityEvent, rt as ProInterval, s as CatalogBenchmarkTerms, st as ProviderBoardEntry, t as ACTIVITY_ACTIONS, tt as Plan, u as CatalogLimit, ut as ProviderCredential, v as CreateKeyRequest, vt as Provider_1, w as CreditPurchaseRequest, wt as SandboxCost, x as CredentialField, xt as SIZE_NAMES, y as CreateSandboxRequest, yt as REGIONS, z as ForbiddenError, zt as Usage } from "./types-DMB8KnA3.mjs";
2
- export { ACTIVITY_ACTIONS, ActivityAction, ActivityEvent, ActivityList, ApiError, Billing, CatalogBenchmarkTerms, CatalogFlag, CatalogGpus, CatalogLimit, CatalogList, CatalogMeasurement, CatalogText, ConcurrencyLimitReachedError, ConflictError, CreateAttempt, CreateFailureReason, CreateKeyRequest, CreateSandboxRequest, CreatedKey, CredentialField, CredentialFields, CreditCheckout, CreditPurchaseRequest, DetachedExec, DetachedExecRequest, EGRESS_MODES, EgressMode, EgressPolicy, Estimate, EstimateList, EstimateRequest, ExecEvent, ExecRequest, ExecResult, FileEntry, FileEntryType, FileList, ForbiddenError, GPU_TYPES, Gpu, GpuType, Health, IncidentImpact, InvalidRequestError, Key, KeyKind, KeyKind_1, KeyList, NoProviderAvailableError, NotFoundError, Offer, PROVIDERS, PROVIDER_1S, Plan, PortPreview, ProInterval, ProPrice, Provider, ProviderBoard, ProviderBoardEntry, ProviderCatalog, ProviderCatalogEntry, ProviderCredential, ProviderCredentialList, ProviderError, ProviderFeatures, ProviderPreferences, ProviderSecurity, ProviderSort, ProviderStatus, Provider_1, REGIONS, Region, SIZE_NAMES, STANDARD_SIZES, Sandbox, SandboxCost, SandboxEndReason, SandboxList, SandboxStatus, SecurityList, SecurityText, SizeName, Snapshot, SpendLimit, SpendLimitPeriod, SpendLimitReachedError, StandardSize, UnauthorizedError, UnsupportedError, UpdateKeyRequest, Usage, UsageDay, VendorIncident, VendorIncidentRead };
1
+ import { $ as GpuType, $t as ThemedBrandImage, A as CreatedKey, At as ProviderSecurity, B as EgressPolicy, Bt as SandboxEndReason, C as CiJobStatus, Ct as ProviderCatalog, D as CreateFailureReason, Dt as ProviderError, E as CreateAttempt, Et as ProviderCredentialList, F as CreditTerms, Ft as Region, G as ExecRequest, Gt as Slug, H as EstimateList, Ht as SandboxStatus, I as DetachedExec, It as SLUGS, J as FileEntryType, Jt as SpendLimitPeriod, K as ExecResult, Kt as Snapshot, L as DetachedExecRequest, Lt as STANDARD_SIZES, M as CredentialFields, Mt as ProviderStatus, N as CreditCheckout, Nt as Provider_1, O as CreateKeyRequest, Ot as ProviderFeatures, P as CreditPurchaseRequest, Pt as REGIONS, Q as Gpu, Qt as StatsDay, R as EGRESS_MODES, Rt as Sandbox, S as CiJobList, St as ProviderBoardEntry, T as ConflictError, Tt as ProviderCredential, U as EstimateRequest, Ut as SecurityList, V as Estimate, Vt as SandboxList, W as ExecEvent, Wt as SecurityText, X as ForbiddenError, Xt as StandardSize, Y as FileList, Yt as SpendLimitReachedError, Z as GPU_TYPES, Zt as Stats, _ as CatalogText, _t as Pricing, a as ApiError, an as UsagePeriod, at as KeyKind_1, b as CiJob, bt as Provider, c as BrandImage, cn as VendorIncident, ct as LiveSandboxes, d as CatalogBrandTerms, dt as NotFoundError, en as UnauthorizedError, et as Health, f as CatalogFlag, ft as Offer, g as CatalogMeasurement, gt as PortPreview, h as CatalogList, ht as Plan, i as ActivityList, in as UsageDay, it as KeyKind, j as CredentialField, jt as ProviderSort, k as CreateSandboxRequest, kt as ProviderPreferences, l as CI_JOB_CONCLUSIONS, ln as VendorIncidentRead, lt as LiveUsage, m as CatalogLimit, mt as PROVIDER_1S, n as ActivityAction, nn as UpdateKeyRequest, nt as InvalidRequestError, o as Badge, on as UsageTotal, ot as KeyList, p as CatalogGpus, pt as PROVIDERS, q as FileEntry, qt as SpendLimit, r as ActivityEvent, rn as Usage, rt as Key, s as Billing, sn as UsageTotals, st as LiveSandboxStatus, t as ACTIVITY_ACTIONS, tn as UnsupportedError, tt as IncidentImpact, u as CatalogBenchmarkTerms, ut as NoProviderAvailableError, v as CiInstallation, vt as ProInterval, w as ConcurrencyLimitReachedError, wt as ProviderCatalogEntry, x as CiJobConclusion, xt as ProviderBoard, y as CiInstallationList, yt as ProPrice, z as EgressMode, zt as SandboxCost } from "./types-DvoIdTvQ.mjs";
2
+ export { ACTIVITY_ACTIONS, ActivityAction, ActivityEvent, ActivityList, ApiError, Badge, Billing, BrandImage, CI_JOB_CONCLUSIONS, CatalogBenchmarkTerms, CatalogBrandTerms, CatalogFlag, CatalogGpus, CatalogLimit, CatalogList, CatalogMeasurement, CatalogText, CiInstallation, CiInstallationList, CiJob, CiJobConclusion, CiJobList, CiJobStatus, ConcurrencyLimitReachedError, ConflictError, CreateAttempt, CreateFailureReason, CreateKeyRequest, CreateSandboxRequest, CreatedKey, CredentialField, CredentialFields, CreditCheckout, CreditPurchaseRequest, CreditTerms, DetachedExec, DetachedExecRequest, EGRESS_MODES, EgressMode, EgressPolicy, Estimate, EstimateList, EstimateRequest, ExecEvent, ExecRequest, ExecResult, FileEntry, FileEntryType, FileList, ForbiddenError, GPU_TYPES, Gpu, GpuType, Health, IncidentImpact, InvalidRequestError, Key, KeyKind, KeyKind_1, KeyList, LiveSandboxStatus, LiveSandboxes, LiveUsage, NoProviderAvailableError, NotFoundError, Offer, PROVIDERS, PROVIDER_1S, Plan, PortPreview, Pricing, ProInterval, ProPrice, Provider, ProviderBoard, ProviderBoardEntry, ProviderCatalog, ProviderCatalogEntry, ProviderCredential, ProviderCredentialList, ProviderError, ProviderFeatures, ProviderPreferences, ProviderSecurity, ProviderSort, ProviderStatus, Provider_1, REGIONS, Region, SLUGS, STANDARD_SIZES, Sandbox, SandboxCost, SandboxEndReason, SandboxList, SandboxStatus, SecurityList, SecurityText, Slug, Snapshot, SpendLimit, SpendLimitPeriod, SpendLimitReachedError, StandardSize, Stats, StatsDay, ThemedBrandImage, UnauthorizedError, UnsupportedError, UpdateKeyRequest, Usage, UsageDay, UsagePeriod, UsageTotal, UsageTotals, VendorIncident, VendorIncidentRead };
package/dist/types.mjs CHANGED
@@ -8,6 +8,15 @@ const ACTIVITY_ACTIONS = [
8
8
  "sandbox.resume",
9
9
  "sandbox.snapshot"
10
10
  ];
11
+ const CI_JOB_CONCLUSIONS = [
12
+ "action_required",
13
+ "cancelled",
14
+ "failure",
15
+ "neutral",
16
+ "skipped",
17
+ "success",
18
+ "timed_out"
19
+ ];
11
20
  const EGRESS_MODES = [
12
21
  "allow_all",
13
22
  "allowlist",
@@ -40,23 +49,14 @@ const REGIONS = [
40
49
  "eu",
41
50
  "us"
42
51
  ];
43
- const SIZE_NAMES = [
44
- "1x2",
45
- "1x2:cheapest",
46
- "1x2:fastest",
47
- "1x2:most-reliable",
48
- "2x4",
49
- "2x4:cheapest",
50
- "2x4:fastest",
51
- "2x4:most-reliable",
52
- "4x8",
53
- "4x8:cheapest",
54
- "4x8:fastest",
55
- "4x8:most-reliable",
56
- "8x16",
57
- "8x16:cheapest",
58
- "8x16:fastest",
59
- "8x16:most-reliable"
52
+ const SLUGS = [
53
+ "sandcovery/2x4",
54
+ "sandcovery/2x4:cheapest",
55
+ "sandcovery/nx16:cheapest",
56
+ "sandcovery/2xn:fastest",
57
+ "sandcovery/nxn:most-reliable",
58
+ "boat/2x4",
59
+ "e2b/2x0.5"
60
60
  ];
61
61
  const STANDARD_SIZES = [
62
62
  "1x2",
@@ -64,4 +64,4 @@ const STANDARD_SIZES = [
64
64
  "4x8",
65
65
  "8x16"
66
66
  ];
67
- export { ACTIVITY_ACTIONS, EGRESS_MODES, GPU_TYPES, PROVIDERS, PROVIDER_1S, REGIONS, SIZE_NAMES, STANDARD_SIZES };
67
+ export { ACTIVITY_ACTIONS, CI_JOB_CONCLUSIONS, EGRESS_MODES, GPU_TYPES, PROVIDERS, PROVIDER_1S, REGIONS, SLUGS, STANDARD_SIZES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandcovery",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "TypeScript client for the Sandcovery API: one API and one key for ephemeral sandboxes across providers.",
5
5
  "keywords": [
6
6
  "daytona",
@@ -42,10 +42,12 @@
42
42
  "@coveries/cli-core": "workspace:*",
43
43
  "@coveries/format": "workspace:*",
44
44
  "@coveries/sandcovery-contract": "workspace:*",
45
+ "@coveries/sandcovery-runner": "workspace:*",
45
46
  "@coveries/tsconfig": "workspace:*",
46
47
  "@types/node": "^26.6.6",
47
48
  "effect": "^4.1.1",
48
49
  "es-toolkit": "^1.53.1",
50
+ "tar": "^7.5.22",
49
51
  "typescript": "^7.0.2",
50
52
  "uuid": "^14.0.3",
51
53
  "vite-plus": "catalog:"