@blaxel/core 0.2.79 → 0.2.80-preview.134

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.
Files changed (37) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/client/sdk.gen.js +79 -3
  3. package/dist/cjs/common/settings.js +2 -2
  4. package/dist/cjs/sandbox/client/sdk.gen.js +56 -1
  5. package/dist/cjs/sandbox/drive/drive.js +22 -51
  6. package/dist/cjs/sandbox/index.js +5 -1
  7. package/dist/cjs/types/client/sdk.gen.d.ts +26 -1
  8. package/dist/cjs/types/client/types.gen.d.ts +225 -6
  9. package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +16 -1
  10. package/dist/cjs/types/sandbox/client/types.gen.d.ts +104 -0
  11. package/dist/cjs/types/sandbox/drive/drive.d.ts +2 -25
  12. package/dist/cjs/types/sandbox/index.d.ts +3 -0
  13. package/dist/cjs-browser/.tsbuildinfo +1 -1
  14. package/dist/cjs-browser/client/sdk.gen.js +79 -3
  15. package/dist/cjs-browser/common/settings.js +2 -2
  16. package/dist/cjs-browser/sandbox/client/sdk.gen.js +56 -1
  17. package/dist/cjs-browser/sandbox/drive/drive.js +22 -51
  18. package/dist/cjs-browser/sandbox/index.js +5 -1
  19. package/dist/cjs-browser/types/client/sdk.gen.d.ts +26 -1
  20. package/dist/cjs-browser/types/client/types.gen.d.ts +225 -6
  21. package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +16 -1
  22. package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +104 -0
  23. package/dist/cjs-browser/types/sandbox/drive/drive.d.ts +2 -25
  24. package/dist/cjs-browser/types/sandbox/index.d.ts +3 -0
  25. package/dist/esm/.tsbuildinfo +1 -1
  26. package/dist/esm/client/sdk.gen.js +72 -0
  27. package/dist/esm/common/settings.js +2 -2
  28. package/dist/esm/sandbox/client/sdk.gen.js +52 -0
  29. package/dist/esm/sandbox/drive/drive.js +22 -51
  30. package/dist/esm/sandbox/index.js +3 -0
  31. package/dist/esm-browser/.tsbuildinfo +1 -1
  32. package/dist/esm-browser/client/sdk.gen.js +72 -0
  33. package/dist/esm-browser/common/settings.js +2 -2
  34. package/dist/esm-browser/sandbox/client/sdk.gen.js +52 -0
  35. package/dist/esm-browser/sandbox/drive/drive.js +22 -51
  36. package/dist/esm-browser/sandbox/index.js +3 -0
  37. package/package.json +1 -1
@@ -866,6 +866,15 @@ export type FunctionSpecWritable = {
866
866
  runtime?: FunctionRuntime;
867
867
  triggers?: TriggersWritable;
868
868
  };
869
+ /**
870
+ * Configuration for running GitHub Actions workflow jobs on Blaxel infrastructure. When repositories are configured, the job acts as a self-hosted GitHub Actions runner. Workflow jobs use runs-on with the Blaxel job name to target a specific runner.
871
+ */
872
+ export type GithubRunnerConfig = {
873
+ /**
874
+ * Repositories in owner/repo format that this runner is associated with. The runner will pick up workflow jobs from any of these repositories. If non-empty, the runner is considered enabled.
875
+ */
876
+ repositories?: Array<string>;
877
+ };
869
878
  /**
870
879
  * Mapping between an IdP group and a workspace role for directory sync
871
880
  */
@@ -896,6 +905,7 @@ export type ImageMetadata = {
896
905
  * The display name of the image (registry/workspace/repository).
897
906
  */
898
907
  displayName?: string;
908
+ events?: CoreEvents;
899
909
  /**
900
910
  * The date and time when the image was last deployed (most recent across all tags).
901
911
  */
@@ -908,6 +918,11 @@ export type ImageMetadata = {
908
918
  * The resource type of the image.
909
919
  */
910
920
  resourceType?: string;
921
+ /**
922
+ * If this image is shared from another workspace, this field contains the name of the source workspace. Empty for non-shared images.
923
+ */
924
+ readonly sourceWorkspace?: string;
925
+ status?: Status;
911
926
  /**
912
927
  * The date and time when the image was last updated.
913
928
  */
@@ -922,6 +937,7 @@ export type ImageMetadataWritable = {
922
937
  * The display name of the image (registry/workspace/repository).
923
938
  */
924
939
  displayName?: string;
940
+ events?: CoreEventsWritable;
925
941
  /**
926
942
  * The name of the image (repository name).
927
943
  */
@@ -930,6 +946,7 @@ export type ImageMetadataWritable = {
930
946
  * The resource type of the image.
931
947
  */
932
948
  resourceType?: string;
949
+ status?: Status;
933
950
  };
934
951
  export type ImageSpec = {
935
952
  /**
@@ -1527,10 +1544,6 @@ export type JobRuntime = {
1527
1544
  * Container image built by Blaxel when deploying with 'bl deploy'. This field is auto-populated during deployment.
1528
1545
  */
1529
1546
  image?: string;
1530
- /**
1531
- * Maximum number of tasks that can run simultaneously within a single execution
1532
- */
1533
- maxConcurrentTasks?: number;
1534
1547
  /**
1535
1548
  * Number of automatic retry attempts for failed tasks before marking as failed
1536
1549
  */
@@ -1553,6 +1566,7 @@ export type JobSpec = {
1553
1566
  * When false, the job is disabled and new executions cannot be triggered
1554
1567
  */
1555
1568
  enabled?: boolean;
1569
+ githubRunner?: GithubRunnerConfig;
1556
1570
  policies?: PoliciesList;
1557
1571
  /**
1558
1572
  * Region where the job should be created (e.g. us-was-1, eu-lon-1)
@@ -1561,6 +1575,7 @@ export type JobSpec = {
1561
1575
  revision?: RevisionConfiguration;
1562
1576
  runtime?: JobRuntime;
1563
1577
  triggers?: Triggers;
1578
+ volumes?: JobVolumes;
1564
1579
  };
1565
1580
  /**
1566
1581
  * Configuration for a batch job including execution parameters, parallelism settings, and deployment region
@@ -1570,6 +1585,7 @@ export type JobSpecWritable = {
1570
1585
  * When false, the job is disabled and new executions cannot be triggered
1571
1586
  */
1572
1587
  enabled?: boolean;
1588
+ githubRunner?: GithubRunnerConfig;
1573
1589
  policies?: PoliciesList;
1574
1590
  /**
1575
1591
  * Region where the job should be created (e.g. us-was-1, eu-lon-1)
@@ -1578,7 +1594,34 @@ export type JobSpecWritable = {
1578
1594
  revision?: RevisionConfiguration;
1579
1595
  runtime?: JobRuntime;
1580
1596
  triggers?: TriggersWritable;
1597
+ volumes?: JobVolumes;
1581
1598
  };
1599
+ /**
1600
+ * Ephemeral volume for a job. Temporary disk-backed storage that is created when the job starts and destroyed when it completes.
1601
+ */
1602
+ export type JobVolume = {
1603
+ /**
1604
+ * Absolute filesystem path where the volume will be mounted inside the container
1605
+ */
1606
+ mountPath: string;
1607
+ /**
1608
+ * Identifier for the volume, used to reference it internally
1609
+ */
1610
+ name: string;
1611
+ /**
1612
+ * If true, the volume is mounted read-only
1613
+ */
1614
+ readOnly?: boolean;
1615
+ /**
1616
+ * Storage capacity in megabytes
1617
+ */
1618
+ sizeMb: number;
1619
+ /**
1620
+ * Type of volume. Currently only "ephemeral" is supported.
1621
+ */
1622
+ type: 'ephemeral';
1623
+ };
1624
+ export type JobVolumes = Array<JobVolume>;
1582
1625
  /**
1583
1626
  * Location availability for policies
1584
1627
  */
@@ -1955,6 +1998,7 @@ export type PendingInvitationAcceptWritable = {
1955
1998
  * Pending invitation in workspace
1956
1999
  */
1957
2000
  export type PendingInvitationRender = {
2001
+ account?: PendingInvitationRenderAccount;
1958
2002
  /**
1959
2003
  * User email
1960
2004
  */
@@ -1972,9 +2016,26 @@ export type PendingInvitationRender = {
1972
2016
  * ACL role
1973
2017
  */
1974
2018
  role?: string;
2019
+ /**
2020
+ * Invitation type: "workspace" or "account_admin"
2021
+ */
2022
+ type?: string;
1975
2023
  workspace?: PendingInvitationRenderWorkspace;
1976
2024
  workspaceDetails?: PendingInvitationWorkspaceDetails;
1977
2025
  };
2026
+ /**
2027
+ * Account info in pending invitation render (for account_admin type)
2028
+ */
2029
+ export type PendingInvitationRenderAccount = {
2030
+ /**
2031
+ * Account display name or owner email
2032
+ */
2033
+ displayName?: string;
2034
+ /**
2035
+ * Account ID
2036
+ */
2037
+ id?: string;
2038
+ };
1978
2039
  /**
1979
2040
  * Invited by
1980
2041
  */
@@ -2690,6 +2751,10 @@ export type Sandbox = {
2690
2751
  readonly lastUsedAt?: string;
2691
2752
  metadata: Metadata;
2692
2753
  spec: SandboxSpec;
2754
+ /**
2755
+ * Current state of the sandbox (read-only, managed by the system)
2756
+ */
2757
+ state?: 'RUNNING' | 'STANDBY';
2693
2758
  status?: Status;
2694
2759
  };
2695
2760
  /**
@@ -2699,6 +2764,10 @@ export type SandboxWritable = {
2699
2764
  events?: CoreEventsWritable;
2700
2765
  metadata: MetadataWritable;
2701
2766
  spec: SandboxSpec;
2767
+ /**
2768
+ * Current state of the sandbox (read-only, managed by the system)
2769
+ */
2770
+ state?: 'RUNNING' | 'STANDBY';
2702
2771
  status?: Status;
2703
2772
  };
2704
2773
  /**
@@ -2874,7 +2943,7 @@ export type SandboxSpec = {
2874
2943
  /**
2875
2944
  * Deployment status of a resource deployed on Blaxel
2876
2945
  */
2877
- export type Status = 'DELETING' | 'TERMINATED' | 'FAILED' | 'DEACTIVATED' | 'DEACTIVATING' | 'UPLOADING' | 'BUILDING' | 'DEPLOYING' | 'DEPLOYED';
2946
+ export type Status = 'DELETING' | 'TERMINATED' | 'FAILED' | 'DEACTIVATED' | 'DEACTIVATING' | 'UPLOADING' | 'BUILDING' | 'DEPLOYING' | 'DEPLOYED' | 'BUILT';
2878
2947
  /**
2879
2948
  * Blaxel template
2880
2949
  */
@@ -3137,7 +3206,7 @@ export type VolumeWritable = {
3137
3206
  state?: VolumeStateWritable;
3138
3207
  };
3139
3208
  /**
3140
- * Configuration for attaching a volume to a sandbox at a specific filesystem path
3209
+ * Configuration for attaching a persistent volume to a sandbox at a specific filesystem path
3141
3210
  */
3142
3211
  export type VolumeAttachment = {
3143
3212
  /**
@@ -4274,6 +4343,59 @@ export type ListImagesResponses = {
4274
4343
  200: Array<Image>;
4275
4344
  };
4276
4345
  export type ListImagesResponse = ListImagesResponses[keyof ListImagesResponses];
4346
+ export type CreateImageData = {
4347
+ body: {
4348
+ /**
4349
+ * Runtime generation (e.g., mk3). Defaults to mk3 if not specified.
4350
+ */
4351
+ generation?: string;
4352
+ /**
4353
+ * A pre-built Docker image reference (e.g., docker.io/myorg/myimage:latest). When provided, the build step is skipped and the image is used directly as the source for the resource runtime.
4354
+ */
4355
+ image?: string;
4356
+ /**
4357
+ * Name of the image to build
4358
+ */
4359
+ name: string;
4360
+ /**
4361
+ * Resource type (agent, function, sandbox, job)
4362
+ */
4363
+ resourceType: string;
4364
+ };
4365
+ path?: never;
4366
+ query?: never;
4367
+ url: '/images';
4368
+ };
4369
+ export type CreateImageErrors = {
4370
+ /**
4371
+ * invalid request
4372
+ */
4373
+ 400: unknown;
4374
+ };
4375
+ export type CreateImageResponses = {
4376
+ /**
4377
+ * successful operation
4378
+ */
4379
+ 200: {
4380
+ /**
4381
+ * The registered image reference (only present when image was provided in request)
4382
+ */
4383
+ image?: string;
4384
+ /**
4385
+ * Status message
4386
+ */
4387
+ message?: string;
4388
+ /**
4389
+ * Name of the image
4390
+ */
4391
+ name?: string;
4392
+ /**
4393
+ * Resource type
4394
+ */
4395
+ resourceType?: string;
4396
+ };
4397
+ };
4398
+ export type CreateImageResponse = CreateImageResponses[keyof CreateImageResponses];
4277
4399
  export type DeleteImageData = {
4278
4400
  body?: never;
4279
4401
  path: {
@@ -4328,6 +4450,103 @@ export type GetImageResponses = {
4328
4450
  200: Image;
4329
4451
  };
4330
4452
  export type GetImageResponse = GetImageResponses[keyof GetImageResponses];
4453
+ export type ListImageSharesData = {
4454
+ body?: never;
4455
+ path: {
4456
+ /**
4457
+ * Resource type (agents, functions, sandboxes, jobs)
4458
+ */
4459
+ resourceType: string;
4460
+ /**
4461
+ * Name of the container image repository
4462
+ */
4463
+ imageName: string;
4464
+ };
4465
+ query?: never;
4466
+ url: '/images/{resourceType}/{imageName}/share';
4467
+ };
4468
+ export type ListImageSharesErrors = {
4469
+ /**
4470
+ * image not found
4471
+ */
4472
+ 404: unknown;
4473
+ };
4474
+ export type ListImageSharesResponses = {
4475
+ /**
4476
+ * successful operation
4477
+ */
4478
+ 200: Array<string>;
4479
+ };
4480
+ export type ListImageSharesResponse = ListImageSharesResponses[keyof ListImageSharesResponses];
4481
+ export type ShareImageData = {
4482
+ body: {
4483
+ /**
4484
+ * Name of the workspace to share the image with
4485
+ */
4486
+ targetWorkspace: string;
4487
+ };
4488
+ path: {
4489
+ /**
4490
+ * Resource type (agents, functions, sandboxes, jobs)
4491
+ */
4492
+ resourceType: string;
4493
+ /**
4494
+ * Name of the container image repository
4495
+ */
4496
+ imageName: string;
4497
+ };
4498
+ query?: never;
4499
+ url: '/images/{resourceType}/{imageName}/share';
4500
+ };
4501
+ export type ShareImageErrors = {
4502
+ /**
4503
+ * invalid request
4504
+ */
4505
+ 400: unknown;
4506
+ /**
4507
+ * image not found
4508
+ */
4509
+ 404: unknown;
4510
+ };
4511
+ export type ShareImageResponses = {
4512
+ /**
4513
+ * successful operation
4514
+ */
4515
+ 200: Image;
4516
+ };
4517
+ export type ShareImageResponse = ShareImageResponses[keyof ShareImageResponses];
4518
+ export type UnshareImageData = {
4519
+ body?: never;
4520
+ path: {
4521
+ /**
4522
+ * Resource type (agents, functions, sandboxes, jobs)
4523
+ */
4524
+ resourceType: string;
4525
+ /**
4526
+ * Name of the container image repository
4527
+ */
4528
+ imageName: string;
4529
+ /**
4530
+ * Name of the target workspace to revoke sharing from
4531
+ */
4532
+ targetWorkspace: string;
4533
+ };
4534
+ query?: never;
4535
+ url: '/images/{resourceType}/{imageName}/share/{targetWorkspace}';
4536
+ };
4537
+ export type UnshareImageErrors = {
4538
+ /**
4539
+ * image or share not found
4540
+ */
4541
+ 404: unknown;
4542
+ };
4543
+ export type UnshareImageResponses = {
4544
+ /**
4545
+ * successful operation
4546
+ */
4547
+ 200: Image;
4548
+ };
4549
+ export type UnshareImageResponse = UnshareImageResponses[keyof UnshareImageResponses];
4331
4550
  export type DeleteImageTagData = {
4332
4551
  body?: never;
4333
4552
  path: {
@@ -1,5 +1,5 @@
1
1
  import { type Options as ClientOptions, type TDataShape, type Client } from '@hey-api/client-fetch';
2
- import type { PutCodegenFastapplyByPathData, GetCodegenRerankingByPathData, GetFilesystemContentSearchByPathData, GetFilesystemFindByPathData, GetFilesystemMultipartData, DeleteFilesystemMultipartByUploadIdAbortData, PostFilesystemMultipartByUploadIdCompleteData, PutFilesystemMultipartByUploadIdPartData, GetFilesystemMultipartByUploadIdPartsData, PostFilesystemMultipartInitiateByPathData, GetFilesystemSearchByPathData, DeleteFilesystemByPathData, GetFilesystemByPathData, PutFilesystemByPathData, DeleteFilesystemTreeByPathData, GetFilesystemTreeByPathData, PutFilesystemTreeByPathData, GetHealthData, DeleteNetworkProcessByPidMonitorData, PostNetworkProcessByPidMonitorData, GetNetworkProcessByPidPortsData, DeleteNetworkTunnelData, PutNetworkTunnelConfigData, GetProcessData, PostProcessData, DeleteProcessByIdentifierData, GetProcessByIdentifierData, DeleteProcessByIdentifierKillData, GetProcessByIdentifierLogsData, GetProcessByIdentifierLogsStreamData, PostUpgradeData, GetWatchFilesystemByPathData } from './types.gen';
2
+ import type { PutCodegenFastapplyByPathData, GetCodegenRerankingByPathData, GetDrivesMountData, PostDrivesMountData, DeleteDrivesMountByMountPathData, GetFilesystemContentSearchByPathData, GetFilesystemFindByPathData, GetFilesystemMultipartData, DeleteFilesystemMultipartByUploadIdAbortData, PostFilesystemMultipartByUploadIdCompleteData, PutFilesystemMultipartByUploadIdPartData, GetFilesystemMultipartByUploadIdPartsData, PostFilesystemMultipartInitiateByPathData, GetFilesystemSearchByPathData, DeleteFilesystemByPathData, GetFilesystemByPathData, PutFilesystemByPathData, DeleteFilesystemTreeByPathData, GetFilesystemTreeByPathData, PutFilesystemTreeByPathData, GetHealthData, DeleteNetworkProcessByPidMonitorData, PostNetworkProcessByPidMonitorData, GetNetworkProcessByPidPortsData, DeleteNetworkTunnelData, PutNetworkTunnelConfigData, GetProcessData, PostProcessData, DeleteProcessByIdentifierData, GetProcessByIdentifierData, DeleteProcessByIdentifierKillData, GetProcessByIdentifierLogsData, GetProcessByIdentifierLogsStreamData, PostUpgradeData, GetWatchFilesystemByPathData } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -54,6 +54,21 @@ export declare const putCodegenFastapplyByPath: <ThrowOnError extends boolean =
54
54
  * The response will be a list of file paths and contents ordered from most relevant to least relevant.
55
55
  */
56
56
  export declare const getCodegenRerankingByPath: <ThrowOnError extends boolean = false>(options: Options<GetCodegenRerankingByPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").RerankingResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
57
+ /**
58
+ * List currently mounted drives
59
+ * Returns a list of all currently mounted drives managed by blfs
60
+ */
61
+ export declare const getDrivesMount: <ThrowOnError extends boolean = false>(options?: Options<GetDrivesMountData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").DriveListResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
62
+ /**
63
+ * Attach a drive to a local path
64
+ * Mounts an agent drive using the blfs binary to a local path, optionally mounting a subpath within the drive
65
+ */
66
+ export declare const postDrivesMount: <ThrowOnError extends boolean = false>(options: Options<PostDrivesMountData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").DriveMountResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
67
+ /**
68
+ * Detach a drive from a local path
69
+ * Unmounts a previously mounted drive from the specified local path
70
+ */
71
+ export declare const deleteDrivesMountByMountPath: <ThrowOnError extends boolean = false>(options: Options<DeleteDrivesMountByMountPathData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").DriveUnmountResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
57
72
  /**
58
73
  * Search for text content in files
59
74
  * Searches for text content inside files using ripgrep. Returns matching lines with context.
@@ -31,6 +31,34 @@ export type Directory = {
31
31
  */
32
32
  subdirectories: Array<Subdirectory>;
33
33
  };
34
+ export type DriveListResponse = {
35
+ mounts?: Array<DriveMountInfo>;
36
+ };
37
+ export type DriveMountInfo = {
38
+ driveName?: string;
39
+ drivePath?: string;
40
+ mountPath?: string;
41
+ };
42
+ export type DriveMountRequest = {
43
+ driveName: string;
44
+ /**
45
+ * Optional, defaults to "/"
46
+ */
47
+ drivePath?: string;
48
+ mountPath: string;
49
+ };
50
+ export type DriveMountResponse = {
51
+ driveName?: string;
52
+ drivePath?: string;
53
+ message?: string;
54
+ mountPath?: string;
55
+ success?: boolean;
56
+ };
57
+ export type DriveUnmountResponse = {
58
+ message?: string;
59
+ mountPath?: string;
60
+ success?: boolean;
61
+ };
34
62
  export type ErrorResponse = {
35
63
  error: string;
36
64
  };
@@ -347,6 +375,82 @@ export type GetCodegenRerankingByPathResponses = {
347
375
  200: RerankingResponse;
348
376
  };
349
377
  export type GetCodegenRerankingByPathResponse = GetCodegenRerankingByPathResponses[keyof GetCodegenRerankingByPathResponses];
378
+ export type GetDrivesMountData = {
379
+ body?: never;
380
+ path?: never;
381
+ query?: never;
382
+ url: '/drives/mount';
383
+ };
384
+ export type GetDrivesMountErrors = {
385
+ /**
386
+ * Internal Server Error
387
+ */
388
+ 500: ErrorResponse;
389
+ };
390
+ export type GetDrivesMountError = GetDrivesMountErrors[keyof GetDrivesMountErrors];
391
+ export type GetDrivesMountResponses = {
392
+ /**
393
+ * OK
394
+ */
395
+ 200: DriveListResponse;
396
+ };
397
+ export type GetDrivesMountResponse = GetDrivesMountResponses[keyof GetDrivesMountResponses];
398
+ export type PostDrivesMountData = {
399
+ /**
400
+ * Drive attachment parameters
401
+ */
402
+ body: DriveMountRequest;
403
+ path?: never;
404
+ query?: never;
405
+ url: '/drives/mount';
406
+ };
407
+ export type PostDrivesMountErrors = {
408
+ /**
409
+ * Bad Request
410
+ */
411
+ 400: ErrorResponse;
412
+ /**
413
+ * Internal Server Error
414
+ */
415
+ 500: ErrorResponse;
416
+ };
417
+ export type PostDrivesMountError = PostDrivesMountErrors[keyof PostDrivesMountErrors];
418
+ export type PostDrivesMountResponses = {
419
+ /**
420
+ * OK
421
+ */
422
+ 200: DriveMountResponse;
423
+ };
424
+ export type PostDrivesMountResponse = PostDrivesMountResponses[keyof PostDrivesMountResponses];
425
+ export type DeleteDrivesMountByMountPathData = {
426
+ body?: never;
427
+ path: {
428
+ /**
429
+ * Mount path to detach (must start with /, e.g. /mnt/test)
430
+ */
431
+ mountPath: string;
432
+ };
433
+ query?: never;
434
+ url: '/drives/mount/{mountPath}';
435
+ };
436
+ export type DeleteDrivesMountByMountPathErrors = {
437
+ /**
438
+ * Bad Request
439
+ */
440
+ 400: ErrorResponse;
441
+ /**
442
+ * Internal Server Error
443
+ */
444
+ 500: ErrorResponse;
445
+ };
446
+ export type DeleteDrivesMountByMountPathError = DeleteDrivesMountByMountPathErrors[keyof DeleteDrivesMountByMountPathErrors];
447
+ export type DeleteDrivesMountByMountPathResponses = {
448
+ /**
449
+ * OK
450
+ */
451
+ 200: DriveUnmountResponse;
452
+ };
453
+ export type DeleteDrivesMountByMountPathResponse = DeleteDrivesMountByMountPathResponses[keyof DeleteDrivesMountByMountPathResponses];
350
454
  export type GetFilesystemContentSearchByPathData = {
351
455
  body?: never;
352
456
  path: {
@@ -1,30 +1,7 @@
1
1
  import { Sandbox } from "../../client/types.gen.js";
2
2
  import { SandboxAction } from "../action.js";
3
- export interface DriveMountRequest {
4
- driveName: string;
5
- mountPath: string;
6
- drivePath?: string;
7
- }
8
- export interface DriveMountResponse {
9
- success: boolean;
10
- message: string;
11
- driveName: string;
12
- mountPath: string;
13
- drivePath: string;
14
- }
15
- export interface DriveMountInfo {
16
- driveName: string;
17
- mountPath: string;
18
- drivePath: string;
19
- }
20
- export interface DriveListResponse {
21
- mounts: DriveMountInfo[];
22
- }
23
- export interface DriveUnmountResponse {
24
- success: boolean;
25
- message: string;
26
- mountPath: string;
27
- }
3
+ import { type DriveMountRequest, type DriveMountResponse, type DriveMountInfo, type DriveListResponse, type DriveUnmountResponse } from "../client/index.js";
4
+ export type { DriveMountRequest, DriveMountResponse, DriveMountInfo, DriveListResponse, DriveUnmountResponse };
28
5
  export declare class SandboxDrive extends SandboxAction {
29
6
  constructor(sandbox: Sandbox);
30
7
  /**
@@ -1,6 +1,9 @@
1
1
  export { deleteFilesystemByPath, deleteNetworkProcessByPidMonitor, deleteProcessByIdentifier, deleteProcessByIdentifierKill, Directory, ErrorResponse, File, FileRequest, FileWithContent, getFilesystemByPath, getNetworkProcessByPidPorts, putCodegenFastapplyByPath, ApplyEditResponse, ApplyEditRequest, getCodegenRerankingByPath, RerankingResponse, getProcess, getProcessByIdentifier, getProcessByIdentifierLogs, getProcessByIdentifierLogsStream, PortMonitorRequest, postNetworkProcessByPidMonitor, postProcess, ProcessRequest, ProcessResponse, putFilesystemByPath, SuccessResponse } from "./client/index.js";
2
2
  export * from "./filesystem/index.js";
3
3
  export * from "./codegen/index.js";
4
+ export { SandboxDrive, type DriveMountRequest, type DriveMountResponse, type DriveMountInfo, type DriveUnmountResponse } from "./drive/index.js";
5
+ export * from "./preview.js";
6
+ export * from "./session.js";
4
7
  export * from "./sandbox.js";
5
8
  export * from "./system.js";
6
9
  export * from "./types.js";