@blaxel/core 0.3.22 → 0.3.23
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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/client/sdk.gen.js +26 -9
- package/dist/cjs/common/settings.js +3 -3
- package/dist/cjs/common/settings.test.js +3 -3
- package/dist/cjs/image/image.js +32 -0
- package/dist/cjs/image/pagination.test.js +105 -0
- package/dist/cjs/types/client/sdk.gen.d.ts +22 -10
- package/dist/cjs/types/client/types.gen.d.ts +138 -17
- package/dist/cjs/types/common/pagination.d.ts +2 -0
- package/dist/cjs/types/drive/index.d.ts +2 -0
- package/dist/cjs/types/image/image.d.ts +19 -0
- package/dist/cjs/types/image/index.d.ts +1 -0
- package/dist/cjs/types/image/pagination.test.d.ts +1 -0
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +26 -9
- package/dist/cjs-browser/common/settings.js +3 -3
- package/dist/cjs-browser/common/settings.test.js +3 -3
- package/dist/cjs-browser/image/pagination.test.js +105 -0
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +22 -10
- package/dist/cjs-browser/types/client/types.gen.d.ts +138 -17
- package/dist/cjs-browser/types/common/pagination.d.ts +2 -0
- package/dist/cjs-browser/types/drive/index.d.ts +2 -0
- package/dist/cjs-browser/types/image/image.d.ts +19 -0
- package/dist/cjs-browser/types/image/index.d.ts +1 -0
- package/dist/cjs-browser/types/image/pagination.test.d.ts +1 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +22 -6
- package/dist/esm/common/settings.js +3 -3
- package/dist/esm/common/settings.test.js +3 -3
- package/dist/esm/image/image.js +32 -0
- package/dist/esm/image/pagination.test.js +70 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +22 -6
- package/dist/esm-browser/common/settings.js +3 -3
- package/dist/esm-browser/common/settings.test.js +3 -3
- package/dist/esm-browser/image/pagination.test.js +70 -0
- package/package.json +1 -1
|
@@ -1329,6 +1329,18 @@ export type ImageSpecWritable = {
|
|
|
1329
1329
|
*/
|
|
1330
1330
|
tags?: Array<ImageTagWritable>;
|
|
1331
1331
|
};
|
|
1332
|
+
export type ImageSummary = {
|
|
1333
|
+
metadata: ImageMetadata;
|
|
1334
|
+
spec: ImageSummarySpec;
|
|
1335
|
+
};
|
|
1336
|
+
export type ImageSummaryWritable = {
|
|
1337
|
+
metadata: ImageMetadataWritable;
|
|
1338
|
+
spec: ImageSummarySpecWritable;
|
|
1339
|
+
};
|
|
1340
|
+
export type ImageSummarySpec = {
|
|
1341
|
+
readonly size?: number;
|
|
1342
|
+
readonly tagCount?: number;
|
|
1343
|
+
};
|
|
1332
1344
|
export type ImageTag = {
|
|
1333
1345
|
/**
|
|
1334
1346
|
* The date and time when the tag was created.
|
|
@@ -1962,7 +1974,7 @@ export type JobRuntime = {
|
|
|
1962
1974
|
*/
|
|
1963
1975
|
envs?: Array<Env>;
|
|
1964
1976
|
/**
|
|
1965
|
-
* Infrastructure generation
|
|
1977
|
+
* Infrastructure generation. Jobs always run on mk3 (microVMs); any value sent on input is ignored.
|
|
1966
1978
|
*/
|
|
1967
1979
|
generation?: 'mk2' | 'mk3';
|
|
1968
1980
|
/**
|
|
@@ -2451,6 +2463,10 @@ export type PaginationMeta = {
|
|
|
2451
2463
|
* Total number of items in the workspace, ignoring the current page's filters. Lets the UI render "page X of Y" without walking the cursor chain. Computed from the hash-only metadata.workspace GSI count, so search (`q`) does not narrow it.
|
|
2452
2464
|
*/
|
|
2453
2465
|
total?: number;
|
|
2466
|
+
/**
|
|
2467
|
+
* True when `total` is a lower bound rather than a complete count. Counting a very large workspace is bounded so the listing stays fast, and this flag says the real number is higher. Clients must not derive a page count from `total` when this is set — keep paging with `nextCursor` until `hasMore` is false.
|
|
2468
|
+
*/
|
|
2469
|
+
totalIsPartial?: boolean;
|
|
2454
2470
|
};
|
|
2455
2471
|
/**
|
|
2456
2472
|
* Pending cross-account image share awaiting approval from the destination workspace
|
|
@@ -3600,6 +3616,21 @@ export type SandboxArchiveRestoreWritable = {
|
|
|
3600
3616
|
*/
|
|
3601
3617
|
state?: 'downloading' | 'extracting' | 'relaunching' | 'succeeded' | 'failed';
|
|
3602
3618
|
};
|
|
3619
|
+
/**
|
|
3620
|
+
* Optional Hub template settings applied by the console without additional sandbox creation lookups.
|
|
3621
|
+
*/
|
|
3622
|
+
export type SandboxCreationOptions = {
|
|
3623
|
+
/**
|
|
3624
|
+
* Kernel selection arguments copied into runtime.extraArgs. At most 8 entries.
|
|
3625
|
+
*/
|
|
3626
|
+
extraArgs?: {
|
|
3627
|
+
[key: string]: string;
|
|
3628
|
+
};
|
|
3629
|
+
/**
|
|
3630
|
+
* Volume attachments included in the creation request. At most 5 attachments per template.
|
|
3631
|
+
*/
|
|
3632
|
+
volumes?: Array<VolumeAttachment>;
|
|
3633
|
+
};
|
|
3603
3634
|
/**
|
|
3604
3635
|
* Pre-configured sandbox template available in the Sandbox Hub for quick deployment with predefined tools and configurations
|
|
3605
3636
|
*/
|
|
@@ -3614,6 +3645,7 @@ export type SandboxDefinition = {
|
|
|
3614
3645
|
* If the definition is coming soon
|
|
3615
3646
|
*/
|
|
3616
3647
|
coming_soon?: boolean;
|
|
3648
|
+
creationOptions?: SandboxCreationOptions;
|
|
3617
3649
|
/**
|
|
3618
3650
|
* Description of the definition
|
|
3619
3651
|
*/
|
|
@@ -3857,7 +3889,7 @@ export type SandboxRuntime = {
|
|
|
3857
3889
|
*/
|
|
3858
3890
|
expires?: string;
|
|
3859
3891
|
/**
|
|
3860
|
-
* Extra arguments for kernel selection. Supported keys: 'iptables', 'nfs' (mk3.0), 'tun' (mk3.1). Values: 'enabled' or 'disabled'. Determines which kernel variant the workload runs on. Immutable after creation.
|
|
3892
|
+
* Extra arguments for kernel selection. Supported keys: 'iptables', 'nfs' (mk3.0), 'tun' and 'android' (mk3.1). The android variant includes tun and iptables and cannot be combined with nfs. Android requests are rejected if routing selects mk3.0. Values: 'enabled' or 'disabled'. Determines which kernel variant the workload runs on. Immutable after creation.
|
|
3861
3893
|
*/
|
|
3862
3894
|
extraArgs?: {
|
|
3863
3895
|
[key: string]: string;
|
|
@@ -4137,11 +4169,11 @@ export type SandboxSnapshot = {
|
|
|
4137
4169
|
*/
|
|
4138
4170
|
createdBy?: string;
|
|
4139
4171
|
/**
|
|
4140
|
-
* Identifier of the snapshot
|
|
4172
|
+
* Identifier of the snapshot, unique in the workspace. Workspace-level routes address the snapshot by it.
|
|
4141
4173
|
*/
|
|
4142
4174
|
readonly id: string;
|
|
4143
4175
|
/**
|
|
4144
|
-
*
|
|
4176
|
+
* Display name of the snapshot, unique among the snapshots of the sandbox it was captured from. Defaults to the identifier.
|
|
4145
4177
|
*/
|
|
4146
4178
|
name: string;
|
|
4147
4179
|
/**
|
|
@@ -4172,7 +4204,7 @@ export type SandboxSnapshotWritable = {
|
|
|
4172
4204
|
*/
|
|
4173
4205
|
createdBy?: string;
|
|
4174
4206
|
/**
|
|
4175
|
-
*
|
|
4207
|
+
* Display name of the snapshot, unique among the snapshots of the sandbox it was captured from. Defaults to the identifier.
|
|
4176
4208
|
*/
|
|
4177
4209
|
name: string;
|
|
4178
4210
|
/**
|
|
@@ -4215,7 +4247,7 @@ export type SandboxSnapshotListWritable = {
|
|
|
4215
4247
|
*/
|
|
4216
4248
|
export type SandboxSnapshotRequest = {
|
|
4217
4249
|
/**
|
|
4218
|
-
*
|
|
4250
|
+
* Display name of the snapshot, unique among the snapshots of the sandbox it is captured from; the same name may be reused on another sandbox. Defaults to the snapshot identifier when absent.
|
|
4219
4251
|
*/
|
|
4220
4252
|
name?: string;
|
|
4221
4253
|
source?: SandboxSnapshotSource;
|
|
@@ -4225,7 +4257,7 @@ export type SandboxSnapshotRequest = {
|
|
|
4225
4257
|
*/
|
|
4226
4258
|
export type SandboxSnapshotRequestWritable = {
|
|
4227
4259
|
/**
|
|
4228
|
-
*
|
|
4260
|
+
* Display name of the snapshot, unique among the snapshots of the sandbox it is captured from; the same name may be reused on another sandbox. Defaults to the snapshot identifier when absent.
|
|
4229
4261
|
*/
|
|
4230
4262
|
name?: string;
|
|
4231
4263
|
source?: SandboxSnapshotSourceWritable;
|
|
@@ -4978,6 +5010,10 @@ export type WorkspaceUser = {
|
|
|
4978
5010
|
* API version (e.g., 2026-04-16). Defaults to the earliest stable version if omitted. See https://docs.blaxel.ai/api-reference/introduction#api-versioning.
|
|
4979
5011
|
*/
|
|
4980
5012
|
export type BlaxelVersion = string;
|
|
5013
|
+
/**
|
|
5014
|
+
* Filter resources by metadata.externalId. When set, only resources matching this caller-owned external ID are returned.
|
|
5015
|
+
*/
|
|
5016
|
+
export type ExternalIdFilter = string;
|
|
4981
5017
|
/**
|
|
4982
5018
|
* Comma-separated list of statuses to filter on (e.g. `DEPLOYED,FAILED`). Values are case-insensitive; unknown values are rejected with a 400. Selecting every status is equivalent to omitting the parameter. Bound into the cursor fingerprint so a cursor opened with one selection cannot be reused with another. Filtering itself requires the 2026-04-28 Blaxel-Version (the paginated listing); on earlier versions the value is still validated but the listing is unfiltered, except for sandboxes where it is applied on every version.
|
|
4983
5019
|
*/
|
|
@@ -5026,6 +5062,10 @@ export type ListAgentsData = {
|
|
|
5026
5062
|
* Start from a known pagination boundary. `end` is only supported for `createdAt` listings (asc or desc) and returns the tail page directly without walking every cursor from the first page.
|
|
5027
5063
|
*/
|
|
5028
5064
|
anchor?: 'end';
|
|
5065
|
+
/**
|
|
5066
|
+
* Filter resources by metadata.externalId. When set, only resources matching this caller-owned external ID are returned.
|
|
5067
|
+
*/
|
|
5068
|
+
externalId?: string;
|
|
5029
5069
|
/**
|
|
5030
5070
|
* Comma-separated list of statuses to filter on (e.g. `DEPLOYED,FAILED`). Values are case-insensitive; unknown values are rejected with a 400. Selecting every status is equivalent to omitting the parameter. Bound into the cursor fingerprint so a cursor opened with one selection cannot be reused with another. Filtering itself requires the 2026-04-28 Blaxel-Version (the paginated listing); on earlier versions the value is still validated but the listing is unfiltered, except for sandboxes where it is applied on every version.
|
|
5031
5071
|
*/
|
|
@@ -5774,6 +5814,7 @@ export type DeleteDriveResponses = {
|
|
|
5774
5814
|
200: {
|
|
5775
5815
|
message?: string;
|
|
5776
5816
|
name?: string;
|
|
5817
|
+
status?: string;
|
|
5777
5818
|
};
|
|
5778
5819
|
};
|
|
5779
5820
|
export type DeleteDriveResponse = DeleteDriveResponses[keyof DeleteDriveResponses];
|
|
@@ -6057,6 +6098,10 @@ export type ListFunctionsData = {
|
|
|
6057
6098
|
* Start from a known pagination boundary. `end` is only supported for `createdAt` listings (asc or desc) and returns the tail page directly without walking every cursor from the first page.
|
|
6058
6099
|
*/
|
|
6059
6100
|
anchor?: 'end';
|
|
6101
|
+
/**
|
|
6102
|
+
* Filter resources by metadata.externalId. When set, only resources matching this caller-owned external ID are returned.
|
|
6103
|
+
*/
|
|
6104
|
+
externalId?: string;
|
|
6060
6105
|
/**
|
|
6061
6106
|
* Comma-separated list of statuses to filter on (e.g. `DEPLOYED,FAILED`). Values are case-insensitive; unknown values are rejected with a 400. Selecting every status is equivalent to omitting the parameter. Bound into the cursor fingerprint so a cursor opened with one selection cannot be reused with another. Filtering itself requires the 2026-04-28 Blaxel-Version (the paginated listing); on earlier versions the value is still validated but the listing is unfiltered, except for sandboxes where it is applied on every version.
|
|
6062
6107
|
*/
|
|
@@ -6285,14 +6330,25 @@ export type CleanupImagesResponse = CleanupImagesResponses[keyof CleanupImagesRe
|
|
|
6285
6330
|
export type ListImagesData = {
|
|
6286
6331
|
body?: never;
|
|
6287
6332
|
path?: never;
|
|
6288
|
-
query?:
|
|
6333
|
+
query?: {
|
|
6334
|
+
cursor?: string;
|
|
6335
|
+
limit?: number;
|
|
6336
|
+
sort?: string;
|
|
6337
|
+
/**
|
|
6338
|
+
* Case-sensitive name prefix. Selects name order.
|
|
6339
|
+
*/
|
|
6340
|
+
q?: string;
|
|
6341
|
+
};
|
|
6289
6342
|
url: '/images';
|
|
6290
6343
|
};
|
|
6291
6344
|
export type ListImagesResponses = {
|
|
6292
6345
|
/**
|
|
6293
6346
|
* successful operation
|
|
6294
6347
|
*/
|
|
6295
|
-
200:
|
|
6348
|
+
200: {
|
|
6349
|
+
data: Array<ImageSummary>;
|
|
6350
|
+
meta: PaginationMeta;
|
|
6351
|
+
};
|
|
6296
6352
|
};
|
|
6297
6353
|
export type ListImagesResponse = ListImagesResponses[keyof ListImagesResponses];
|
|
6298
6354
|
export type CreateImageData = {
|
|
@@ -6392,14 +6448,19 @@ export type GetImageData = {
|
|
|
6392
6448
|
*/
|
|
6393
6449
|
imageName: string;
|
|
6394
6450
|
};
|
|
6395
|
-
query?:
|
|
6451
|
+
query?: {
|
|
6452
|
+
/**
|
|
6453
|
+
* Owner workspace for an account-shared image.
|
|
6454
|
+
*/
|
|
6455
|
+
sourceWorkspace?: string;
|
|
6456
|
+
};
|
|
6396
6457
|
url: '/images/{resourceType}/{imageName}';
|
|
6397
6458
|
};
|
|
6398
6459
|
export type GetImageResponses = {
|
|
6399
6460
|
/**
|
|
6400
6461
|
* successful operation
|
|
6401
6462
|
*/
|
|
6402
|
-
200:
|
|
6463
|
+
200: ImageSummary;
|
|
6403
6464
|
};
|
|
6404
6465
|
export type GetImageResponse = GetImageResponses[keyof GetImageResponses];
|
|
6405
6466
|
export type ListImageSharesData = {
|
|
@@ -6511,6 +6572,44 @@ export type UnshareImageResponses = {
|
|
|
6511
6572
|
200: Image;
|
|
6512
6573
|
};
|
|
6513
6574
|
export type UnshareImageResponse = UnshareImageResponses[keyof UnshareImageResponses];
|
|
6575
|
+
export type ListImageTagsData = {
|
|
6576
|
+
body?: never;
|
|
6577
|
+
path: {
|
|
6578
|
+
resourceType: string;
|
|
6579
|
+
imageName: string;
|
|
6580
|
+
};
|
|
6581
|
+
query?: {
|
|
6582
|
+
cursor?: string;
|
|
6583
|
+
limit?: number;
|
|
6584
|
+
/**
|
|
6585
|
+
* Order by tag name. Creation-time sorting is not supported.
|
|
6586
|
+
*/
|
|
6587
|
+
sort?: 'name:asc' | 'name:desc';
|
|
6588
|
+
/**
|
|
6589
|
+
* Case-sensitive name prefix. Selects name order.
|
|
6590
|
+
*/
|
|
6591
|
+
q?: string;
|
|
6592
|
+
/**
|
|
6593
|
+
* Exact tag name, mutually exclusive with q.
|
|
6594
|
+
*/
|
|
6595
|
+
name?: string;
|
|
6596
|
+
/**
|
|
6597
|
+
* Owner workspace for an account-shared image.
|
|
6598
|
+
*/
|
|
6599
|
+
sourceWorkspace?: string;
|
|
6600
|
+
};
|
|
6601
|
+
url: '/images/{resourceType}/{imageName}/tags';
|
|
6602
|
+
};
|
|
6603
|
+
export type ListImageTagsResponses = {
|
|
6604
|
+
/**
|
|
6605
|
+
* A page of tags
|
|
6606
|
+
*/
|
|
6607
|
+
200: {
|
|
6608
|
+
data: Array<ImageTag>;
|
|
6609
|
+
meta: PaginationMeta;
|
|
6610
|
+
};
|
|
6611
|
+
};
|
|
6612
|
+
export type ListImageTagsResponse = ListImageTagsResponses[keyof ListImageTagsResponses];
|
|
6514
6613
|
export type DeleteImageTagData = {
|
|
6515
6614
|
body?: never;
|
|
6516
6615
|
path: {
|
|
@@ -6545,6 +6644,10 @@ export type DeleteImageTagResponses = {
|
|
|
6545
6644
|
* successful operation
|
|
6546
6645
|
*/
|
|
6547
6646
|
200: Image;
|
|
6647
|
+
/**
|
|
6648
|
+
* Tag deleted (API version 2026-09-22 and later).
|
|
6649
|
+
*/
|
|
6650
|
+
204: void;
|
|
6548
6651
|
};
|
|
6549
6652
|
export type DeleteImageTagResponse = DeleteImageTagResponses[keyof DeleteImageTagResponses];
|
|
6550
6653
|
export type GetIntegrationData = {
|
|
@@ -6568,7 +6671,12 @@ export type GetIntegrationResponse = GetIntegrationResponses[keyof GetIntegratio
|
|
|
6568
6671
|
export type ListIntegrationConnectionsData = {
|
|
6569
6672
|
body?: never;
|
|
6570
6673
|
path?: never;
|
|
6571
|
-
query?:
|
|
6674
|
+
query?: {
|
|
6675
|
+
/**
|
|
6676
|
+
* Filter resources by metadata.externalId. When set, only resources matching this caller-owned external ID are returned.
|
|
6677
|
+
*/
|
|
6678
|
+
externalId?: string;
|
|
6679
|
+
};
|
|
6572
6680
|
url: '/integrations/connections';
|
|
6573
6681
|
};
|
|
6574
6682
|
export type ListIntegrationConnectionsErrors = {
|
|
@@ -6827,6 +6935,10 @@ export type ListJobsData = {
|
|
|
6827
6935
|
* Start from a known pagination boundary. `end` is only supported for `createdAt` listings (asc or desc) and returns the tail page directly without walking every cursor from the first page.
|
|
6828
6936
|
*/
|
|
6829
6937
|
anchor?: 'end';
|
|
6938
|
+
/**
|
|
6939
|
+
* Filter resources by metadata.externalId. When set, only resources matching this caller-owned external ID are returned.
|
|
6940
|
+
*/
|
|
6941
|
+
externalId?: string;
|
|
6830
6942
|
/**
|
|
6831
6943
|
* Comma-separated list of statuses to filter on (e.g. `DEPLOYED,FAILED`). Values are case-insensitive; unknown values are rejected with a 400. Selecting every status is equivalent to omitting the parameter. Bound into the cursor fingerprint so a cursor opened with one selection cannot be reused with another. Filtering itself requires the 2026-04-28 Blaxel-Version (the paginated listing); on earlier versions the value is still validated but the listing is unfiltered, except for sandboxes where it is applied on every version.
|
|
6832
6944
|
*/
|
|
@@ -7183,6 +7295,10 @@ export type ListModelsData = {
|
|
|
7183
7295
|
* Start from a known pagination boundary. `end` is only supported for `createdAt` listings (asc or desc) and returns the tail page directly without walking every cursor from the first page.
|
|
7184
7296
|
*/
|
|
7185
7297
|
anchor?: 'end';
|
|
7298
|
+
/**
|
|
7299
|
+
* Filter resources by metadata.externalId. When set, only resources matching this caller-owned external ID are returned.
|
|
7300
|
+
*/
|
|
7301
|
+
externalId?: string;
|
|
7186
7302
|
/**
|
|
7187
7303
|
* Comma-separated list of statuses to filter on (e.g. `DEPLOYED,FAILED`). Values are case-insensitive; unknown values are rejected with a 400. Selecting every status is equivalent to omitting the parameter. Bound into the cursor fingerprint so a cursor opened with one selection cannot be reused with another. Filtering itself requires the 2026-04-28 Blaxel-Version (the paginated listing); on earlier versions the value is still validated but the listing is unfiltered, except for sandboxes where it is applied on every version.
|
|
7188
7304
|
*/
|
|
@@ -7492,6 +7608,10 @@ export type ListPoliciesData = {
|
|
|
7492
7608
|
* Start from a known pagination boundary. `end` is only supported for `createdAt` listings (asc or desc) and returns the tail page directly without walking every cursor from the first page.
|
|
7493
7609
|
*/
|
|
7494
7610
|
anchor?: 'end';
|
|
7611
|
+
/**
|
|
7612
|
+
* Filter resources by metadata.externalId. When set, only resources matching this caller-owned external ID are returned.
|
|
7613
|
+
*/
|
|
7614
|
+
externalId?: string;
|
|
7495
7615
|
};
|
|
7496
7616
|
url: '/policies';
|
|
7497
7617
|
};
|
|
@@ -8320,7 +8440,7 @@ export type DeleteSandboxSnapshotData = {
|
|
|
8320
8440
|
*/
|
|
8321
8441
|
sandboxName: string;
|
|
8322
8442
|
/**
|
|
8323
|
-
*
|
|
8443
|
+
* Name of the snapshot among the sandbox's snapshots. A snapshot ID is also accepted and resolves within the whole workspace, so it reaches a snapshot whose source sandbox is another one or was deleted.
|
|
8324
8444
|
*/
|
|
8325
8445
|
snapshotId: string;
|
|
8326
8446
|
};
|
|
@@ -8353,7 +8473,7 @@ export type RestoreSandboxSnapshotData = {
|
|
|
8353
8473
|
*/
|
|
8354
8474
|
sandboxName: string;
|
|
8355
8475
|
/**
|
|
8356
|
-
*
|
|
8476
|
+
* Name of the snapshot among the sandbox's snapshots. A snapshot ID is also accepted and resolves within the whole workspace, so it reaches a snapshot whose source sandbox is another one or was deleted.
|
|
8357
8477
|
*/
|
|
8358
8478
|
snapshotId: string;
|
|
8359
8479
|
};
|
|
@@ -8869,7 +8989,7 @@ export type DeleteSnapshotData = {
|
|
|
8869
8989
|
body?: never;
|
|
8870
8990
|
path: {
|
|
8871
8991
|
/**
|
|
8872
|
-
*
|
|
8992
|
+
* ID of the snapshot
|
|
8873
8993
|
*/
|
|
8874
8994
|
snapshotName: string;
|
|
8875
8995
|
};
|
|
@@ -8898,7 +9018,7 @@ export type GetSnapshotData = {
|
|
|
8898
9018
|
body?: never;
|
|
8899
9019
|
path: {
|
|
8900
9020
|
/**
|
|
8901
|
-
*
|
|
9021
|
+
* ID of the snapshot
|
|
8902
9022
|
*/
|
|
8903
9023
|
snapshotName: string;
|
|
8904
9024
|
};
|
|
@@ -8923,7 +9043,7 @@ export type ForkSnapshotData = {
|
|
|
8923
9043
|
body: SandboxForkRequest;
|
|
8924
9044
|
path: {
|
|
8925
9045
|
/**
|
|
8926
|
-
*
|
|
9046
|
+
* ID of the snapshot to create the resource from
|
|
8927
9047
|
*/
|
|
8928
9048
|
snapshotName: string;
|
|
8929
9049
|
};
|
|
@@ -9847,3 +9967,4 @@ export type ClientOptions = {
|
|
|
9847
9967
|
baseUrl: 'https://api.blaxel.ai/v0' | 'https://run.blaxel.ai' | (string & {});
|
|
9848
9968
|
};
|
|
9849
9969
|
export type DriveStateWritable = DriveState;
|
|
9970
|
+
export type ImageSummarySpecWritable = Record<string, never>;
|
|
@@ -60,10 +60,12 @@ export declare class DriveInstance {
|
|
|
60
60
|
static delete(driveName: string): Promise<{
|
|
61
61
|
message?: string;
|
|
62
62
|
name?: string;
|
|
63
|
+
status?: string;
|
|
63
64
|
}>;
|
|
64
65
|
delete(): Promise<{
|
|
65
66
|
message?: string;
|
|
66
67
|
name?: string;
|
|
68
|
+
status?: string;
|
|
67
69
|
}>;
|
|
68
70
|
static update(driveName: string, updates: DriveCreateConfiguration | Drive): Promise<DriveInstance>;
|
|
69
71
|
update(updates: DriveCreateConfiguration | Drive): Promise<DriveInstance>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ListImagesData, type ListImageTagsData } from "../client/index.js";
|
|
1
2
|
import { Sandbox } from "../client/types.gen.js";
|
|
2
3
|
export declare const SANDBOX_API_IMAGE = "ghcr.io/blaxel-ai/sandbox";
|
|
3
4
|
export declare const SANDBOX_API_PATH = "/usr/local/bin/sandbox-api";
|
|
@@ -63,6 +64,8 @@ export interface UvInstallOptions {
|
|
|
63
64
|
system?: boolean;
|
|
64
65
|
upgrade?: boolean;
|
|
65
66
|
}
|
|
67
|
+
export type ImageListQuery = NonNullable<ListImagesData["query"]>;
|
|
68
|
+
export type ImageTagListQuery = NonNullable<ListImageTagsData["query"]>;
|
|
66
69
|
/**
|
|
67
70
|
* A fluent builder for creating sandbox images programmatically.
|
|
68
71
|
*
|
|
@@ -87,6 +90,22 @@ export interface UvInstallOptions {
|
|
|
87
90
|
* ```
|
|
88
91
|
*/
|
|
89
92
|
export declare class ImageInstance {
|
|
93
|
+
/** List repository summaries without fetching all their tags. */
|
|
94
|
+
static list(query?: ImageListQuery): Promise<import("../common/pagination.js").PaginatedList<import("../client/types.gen.js").ImageSummary, {
|
|
95
|
+
cursor?: string;
|
|
96
|
+
limit?: number;
|
|
97
|
+
sort?: string;
|
|
98
|
+
q?: string;
|
|
99
|
+
}>>;
|
|
100
|
+
/** List tags lazily, including tags owned by an account-shared workspace. */
|
|
101
|
+
static listTags(resourceType: string, imageName: string, query?: ImageTagListQuery): Promise<import("../common/pagination.js").PaginatedList<import("../client/types.gen.js").ImageTag, {
|
|
102
|
+
cursor?: string;
|
|
103
|
+
limit?: number;
|
|
104
|
+
sort?: "name:asc" | "name:desc";
|
|
105
|
+
q?: string;
|
|
106
|
+
name?: string;
|
|
107
|
+
sourceWorkspace?: string;
|
|
108
|
+
}>>;
|
|
90
109
|
private _context;
|
|
91
110
|
constructor(context: ImageBuildContext);
|
|
92
111
|
/**
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
export { ImageInstance, ImageBuildContext, ImageBuildOptions, LocalFile, SANDBOX_API_IMAGE, SANDBOX_API_PATH, PipInstallOptions, AptInstallOptions, ApkAddOptions, NpmInstallOptions, GemInstallOptions, CargoInstallOptions, ComposerInstallOptions, UvInstallOptions, } from "./image.js";
|
|
2
|
+
export type { ImageListQuery, ImageTagListQuery } from "./image.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|