@blaxel/core 0.2.85-preview.159 → 0.2.86-dev.162

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 (72) hide show
  1. package/README.md +37 -2
  2. package/dist/cjs/.tsbuildinfo +1 -1
  3. package/dist/cjs/client/sdk.gen.js +63 -12
  4. package/dist/cjs/common/h2fetch.js +102 -22
  5. package/dist/cjs/common/pagination.js +87 -0
  6. package/dist/cjs/common/pagination.test.js +62 -0
  7. package/dist/cjs/common/settings.js +29 -3
  8. package/dist/cjs/common/settings.test.js +3 -3
  9. package/dist/cjs/drive/index.js +39 -3
  10. package/dist/cjs/index.js +1 -0
  11. package/dist/cjs/jobs/jobs.js +42 -9
  12. package/dist/cjs/sandbox/filesystem/filesystem.js +89 -1
  13. package/dist/cjs/sandbox/sandbox.js +41 -4
  14. package/dist/cjs/types/client/sdk.gen.d.ts +34 -19
  15. package/dist/cjs/types/client/types.gen.d.ts +614 -21
  16. package/dist/cjs/types/common/pagination.d.ts +35 -0
  17. package/dist/cjs/types/common/pagination.test.d.ts +1 -0
  18. package/dist/cjs/types/common/settings.d.ts +12 -0
  19. package/dist/cjs/types/drive/index.d.ts +34 -4
  20. package/dist/cjs/types/index.d.ts +1 -0
  21. package/dist/cjs/types/jobs/jobs.d.ts +33 -3
  22. package/dist/cjs/types/sandbox/sandbox.d.ts +35 -2
  23. package/dist/cjs/types/volume/index.d.ts +36 -4
  24. package/dist/cjs/volume/index.js +41 -3
  25. package/dist/cjs-browser/.tsbuildinfo +1 -1
  26. package/dist/cjs-browser/client/sdk.gen.js +63 -12
  27. package/dist/cjs-browser/common/pagination.js +87 -0
  28. package/dist/cjs-browser/common/pagination.test.js +62 -0
  29. package/dist/cjs-browser/common/settings.js +29 -3
  30. package/dist/cjs-browser/common/settings.test.js +3 -3
  31. package/dist/cjs-browser/drive/index.js +39 -3
  32. package/dist/cjs-browser/index.js +1 -0
  33. package/dist/cjs-browser/jobs/jobs.js +42 -9
  34. package/dist/cjs-browser/sandbox/filesystem/filesystem.js +89 -1
  35. package/dist/cjs-browser/sandbox/sandbox.js +41 -4
  36. package/dist/cjs-browser/types/client/sdk.gen.d.ts +34 -19
  37. package/dist/cjs-browser/types/client/types.gen.d.ts +614 -21
  38. package/dist/cjs-browser/types/common/pagination.d.ts +35 -0
  39. package/dist/cjs-browser/types/common/pagination.test.d.ts +1 -0
  40. package/dist/cjs-browser/types/common/settings.d.ts +12 -0
  41. package/dist/cjs-browser/types/drive/index.d.ts +34 -4
  42. package/dist/cjs-browser/types/index.d.ts +1 -0
  43. package/dist/cjs-browser/types/jobs/jobs.d.ts +33 -3
  44. package/dist/cjs-browser/types/sandbox/sandbox.d.ts +35 -2
  45. package/dist/cjs-browser/types/volume/index.d.ts +36 -4
  46. package/dist/cjs-browser/volume/index.js +41 -3
  47. package/dist/esm/.tsbuildinfo +1 -1
  48. package/dist/esm/client/sdk.gen.js +57 -9
  49. package/dist/esm/common/h2fetch.js +102 -22
  50. package/dist/esm/common/pagination.js +83 -0
  51. package/dist/esm/common/pagination.test.js +60 -0
  52. package/dist/esm/common/settings.js +29 -3
  53. package/dist/esm/common/settings.test.js +3 -3
  54. package/dist/esm/drive/index.js +39 -3
  55. package/dist/esm/index.js +1 -0
  56. package/dist/esm/jobs/jobs.js +42 -9
  57. package/dist/esm/sandbox/filesystem/filesystem.js +89 -1
  58. package/dist/esm/sandbox/sandbox.js +41 -4
  59. package/dist/esm/volume/index.js +41 -3
  60. package/dist/esm-browser/.tsbuildinfo +1 -1
  61. package/dist/esm-browser/client/sdk.gen.js +57 -9
  62. package/dist/esm-browser/common/pagination.js +83 -0
  63. package/dist/esm-browser/common/pagination.test.js +60 -0
  64. package/dist/esm-browser/common/settings.js +29 -3
  65. package/dist/esm-browser/common/settings.test.js +3 -3
  66. package/dist/esm-browser/drive/index.js +39 -3
  67. package/dist/esm-browser/index.js +1 -0
  68. package/dist/esm-browser/jobs/jobs.js +42 -9
  69. package/dist/esm-browser/sandbox/filesystem/filesystem.js +89 -1
  70. package/dist/esm-browser/sandbox/sandbox.js +41 -4
  71. package/dist/esm-browser/volume/index.js +41 -3
  72. package/package.json +1 -1
@@ -16,6 +16,26 @@ export type AgentWritable = {
16
16
  spec: AgentSpecWritable;
17
17
  status?: Status;
18
18
  };
19
+ /**
20
+ * Cursor-paginated list of agents. Returned starting with API version 2026-04-28; older API versions return a bare array of agents instead.
21
+ */
22
+ export type AgentList = {
23
+ /**
24
+ * Page of agents.
25
+ */
26
+ data?: Array<Agent>;
27
+ meta?: PaginationMeta;
28
+ };
29
+ /**
30
+ * Cursor-paginated list of agents. Returned starting with API version 2026-04-28; older API versions return a bare array of agents instead.
31
+ */
32
+ export type AgentListWritable = {
33
+ /**
34
+ * Page of agents.
35
+ */
36
+ data?: Array<AgentWritable>;
37
+ meta?: PaginationMeta;
38
+ };
19
39
  /**
20
40
  * Runtime configuration defining how the AI agent is deployed and scaled globally
21
41
  */
@@ -149,6 +169,10 @@ export type Configuration = {
149
169
  * Countries
150
170
  */
151
171
  countries?: Array<Country>;
172
+ /**
173
+ * Auto-detected closest region based on viewer geolocation (from CloudFront headers). Empty when geo headers are not available.
174
+ */
175
+ detectedRegion?: string;
152
176
  /**
153
177
  * Private locations managed with blaxel operator
154
178
  */
@@ -446,6 +470,26 @@ export type DriveWritable = {
446
470
  spec: DriveSpecWritable;
447
471
  state?: DriveStateWritable;
448
472
  };
473
+ /**
474
+ * Cursor-paginated list of drives. Returned starting with API version 2026-04-28; older API versions return a bare array.
475
+ */
476
+ export type DriveList = {
477
+ /**
478
+ * Page of drives.
479
+ */
480
+ data?: Array<Drive>;
481
+ meta?: PaginationMeta;
482
+ };
483
+ /**
484
+ * Cursor-paginated list of drives. Returned starting with API version 2026-04-28; older API versions return a bare array.
485
+ */
486
+ export type DriveListWritable = {
487
+ /**
488
+ * Page of drives.
489
+ */
490
+ data?: Array<DriveWritable>;
491
+ meta?: PaginationMeta;
492
+ };
449
493
  /**
450
494
  * Immutable drive configuration set at creation time
451
495
  */
@@ -563,6 +607,10 @@ export type EgressGatewaySpec = {
563
607
  */
564
608
  region: string;
565
609
  };
610
+ /**
611
+ * Sandboxes currently bound to each egress gateway. Returned by GET /egressgateways/usage so the egress-IPs UI can render attachment counts without fetching the sandboxes listing full. Keys are gateway names; values are sandbox names.
612
+ */
613
+ export type EgressGatewayUsage = unknown;
566
614
  /**
567
615
  * An individual IP address allocated from an egress gateway for dedicated outbound traffic
568
616
  */
@@ -789,6 +837,26 @@ export type FunctionWritable = {
789
837
  spec: FunctionSpecWritable;
790
838
  status?: Status;
791
839
  };
840
+ /**
841
+ * Cursor-paginated list of MCP server functions. Returned starting with API version 2026-04-28; older API versions return a bare array.
842
+ */
843
+ export type FunctionList = {
844
+ /**
845
+ * Page of functions.
846
+ */
847
+ data?: Array<_Function>;
848
+ meta?: PaginationMeta;
849
+ };
850
+ /**
851
+ * Cursor-paginated list of MCP server functions. Returned starting with API version 2026-04-28; older API versions return a bare array.
852
+ */
853
+ export type FunctionListWritable = {
854
+ /**
855
+ * Page of functions.
856
+ */
857
+ data?: Array<FunctionWritable>;
858
+ meta?: PaginationMeta;
859
+ };
792
860
  /**
793
861
  * Runtime configuration defining how the MCP server function is deployed and scaled
794
862
  */
@@ -1236,6 +1304,26 @@ export type JobExecutionWritable = {
1236
1304
  */
1237
1305
  tasks?: Array<JobExecutionTaskWritable>;
1238
1306
  };
1307
+ /**
1308
+ * Cursor-paginated list of job executions. Returned starting with API version 2026-04-28; older API versions keep the legacy offset-based contract and return a bare array.
1309
+ */
1310
+ export type JobExecutionList = {
1311
+ /**
1312
+ * Page of job executions.
1313
+ */
1314
+ data?: Array<JobExecution>;
1315
+ meta?: PaginationMeta;
1316
+ };
1317
+ /**
1318
+ * Cursor-paginated list of job executions. Returned starting with API version 2026-04-28; older API versions keep the legacy offset-based contract and return a bare array.
1319
+ */
1320
+ export type JobExecutionListWritable = {
1321
+ /**
1322
+ * Page of job executions.
1323
+ */
1324
+ data?: Array<JobExecutionWritable>;
1325
+ meta?: PaginationMeta;
1326
+ };
1239
1327
  /**
1240
1328
  * Job execution metadata
1241
1329
  */
@@ -1495,6 +1583,26 @@ export type JobExecutionTaskCondition = {
1495
1583
  */
1496
1584
  type?: string;
1497
1585
  };
1586
+ /**
1587
+ * Cursor-paginated list of an execution's tasks. Tasks are derived from event history; pagination slices the in-memory list and the cursor is a base64-JSON offset bound to (workspace, job, execution).
1588
+ */
1589
+ export type JobExecutionTaskList = {
1590
+ /**
1591
+ * Page of execution tasks.
1592
+ */
1593
+ data?: Array<JobExecutionTask>;
1594
+ meta?: PaginationMeta;
1595
+ };
1596
+ /**
1597
+ * Cursor-paginated list of an execution's tasks. Tasks are derived from event history; pagination slices the in-memory list and the cursor is a base64-JSON offset bound to (workspace, job, execution).
1598
+ */
1599
+ export type JobExecutionTaskListWritable = {
1600
+ /**
1601
+ * Page of execution tasks.
1602
+ */
1603
+ data?: Array<JobExecutionTaskWritable>;
1604
+ meta?: PaginationMeta;
1605
+ };
1498
1606
  /**
1499
1607
  * Job execution task metadata
1500
1608
  */
@@ -1550,6 +1658,26 @@ export type JobExecutionTaskSpec = {
1550
1658
  * Job execution task status
1551
1659
  */
1552
1660
  export type JobExecutionTaskStatus = 'unspecified' | 'pending' | 'reconciling' | 'failed' | 'succeeded' | 'running' | 'cancelled';
1661
+ /**
1662
+ * Cursor-paginated list of batch jobs. Returned starting with API version 2026-04-28; older API versions return a bare array.
1663
+ */
1664
+ export type JobList = {
1665
+ /**
1666
+ * Page of jobs.
1667
+ */
1668
+ data?: Array<Job>;
1669
+ meta?: PaginationMeta;
1670
+ };
1671
+ /**
1672
+ * Cursor-paginated list of batch jobs. Returned starting with API version 2026-04-28; older API versions return a bare array.
1673
+ */
1674
+ export type JobListWritable = {
1675
+ /**
1676
+ * Page of jobs.
1677
+ */
1678
+ data?: Array<JobWritable>;
1679
+ meta?: PaginationMeta;
1680
+ };
1553
1681
  /**
1554
1682
  * Runtime configuration defining how batch job tasks are executed with parallelism and retry settings
1555
1683
  */
@@ -1648,6 +1776,60 @@ export type JobVolume = {
1648
1776
  type: 'ephemeral';
1649
1777
  };
1650
1778
  export type JobVolumes = Array<JobVolume>;
1779
+ /**
1780
+ * LiteVolume is the listing-shape projection of a Volume. Drops events to keep page payloads small.
1781
+ */
1782
+ export type LiteVolume = {
1783
+ metadata?: LiteVolumeMetadata;
1784
+ spec?: LiteVolumeSpec;
1785
+ state?: VolumeState;
1786
+ /**
1787
+ * Computed status of the volume.
1788
+ */
1789
+ status?: string;
1790
+ /**
1791
+ * Termination timestamp for soft-deleted volumes.
1792
+ */
1793
+ terminatedAt?: string;
1794
+ };
1795
+ /**
1796
+ * LiteVolume is the listing-shape projection of a Volume. Drops events to keep page payloads small.
1797
+ */
1798
+ export type LiteVolumeWritable = {
1799
+ metadata?: LiteVolumeMetadata;
1800
+ spec?: LiteVolumeSpec;
1801
+ state?: VolumeStateWritable;
1802
+ /**
1803
+ * Computed status of the volume.
1804
+ */
1805
+ status?: string;
1806
+ /**
1807
+ * Termination timestamp for soft-deleted volumes.
1808
+ */
1809
+ terminatedAt?: string;
1810
+ };
1811
+ /**
1812
+ * Compact metadata for a Volume, returned in listing responses.
1813
+ */
1814
+ export type LiteVolumeMetadata = {
1815
+ createdAt?: string;
1816
+ displayName?: string;
1817
+ name?: string;
1818
+ updatedAt?: string;
1819
+ };
1820
+ /**
1821
+ * Compact spec for a Volume, returned in listing responses.
1822
+ */
1823
+ export type LiteVolumeSpec = {
1824
+ /**
1825
+ * Region the volume is provisioned in.
1826
+ */
1827
+ region?: string;
1828
+ /**
1829
+ * Volume size in gigabytes.
1830
+ */
1831
+ size?: number;
1832
+ };
1651
1833
  /**
1652
1834
  * Location availability for policies
1653
1835
  */
@@ -1871,6 +2053,26 @@ export type ModelWritable = {
1871
2053
  spec: ModelSpec;
1872
2054
  status?: Status;
1873
2055
  };
2056
+ /**
2057
+ * Cursor-paginated list of model gateway endpoints. Returned starting with API version 2026-04-28; older API versions return a bare array.
2058
+ */
2059
+ export type ModelList = {
2060
+ /**
2061
+ * Page of models.
2062
+ */
2063
+ data?: Array<Model>;
2064
+ meta?: PaginationMeta;
2065
+ };
2066
+ /**
2067
+ * Cursor-paginated list of model gateway endpoints. Returned starting with API version 2026-04-28; older API versions return a bare array.
2068
+ */
2069
+ export type ModelListWritable = {
2070
+ /**
2071
+ * Page of models.
2072
+ */
2073
+ data?: Array<ModelWritable>;
2074
+ meta?: PaginationMeta;
2075
+ };
1874
2076
  /**
1875
2077
  * Configuration identifying which external LLM provider and model this gateway endpoint proxies to
1876
2078
  */
@@ -1950,6 +2152,23 @@ export type OwnerFields = {
1950
2152
  */
1951
2153
  readonly updatedBy?: string;
1952
2154
  };
2155
+ /**
2156
+ * Pagination metadata returned alongside a page of listing results. Always present on listing endpoints starting with API version 2026-04-28.
2157
+ */
2158
+ export type PaginationMeta = {
2159
+ /**
2160
+ * True when more pages are available beyond the current one.
2161
+ */
2162
+ hasMore?: boolean;
2163
+ /**
2164
+ * Opaque cursor to pass back as the `cursor` query param for the next page. Empty when there are no more pages.
2165
+ */
2166
+ nextCursor?: string;
2167
+ /**
2168
+ * 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.
2169
+ */
2170
+ total?: number;
2171
+ };
1953
2172
  /**
1954
2173
  * Pending cross-account image share awaiting approval from the destination workspace
1955
2174
  */
@@ -2261,6 +2480,7 @@ export type PoliciesList = Array<string>;
2261
2480
  export type Policy = {
2262
2481
  metadata: Metadata;
2263
2482
  spec: PolicySpec;
2483
+ usage?: PolicyUsageCounts;
2264
2484
  };
2265
2485
  /**
2266
2486
  * Rule that controls how a deployment is made and served (e.g. location restrictions)
@@ -2268,6 +2488,27 @@ export type Policy = {
2268
2488
  export type PolicyWritable = {
2269
2489
  metadata: MetadataWritable;
2270
2490
  spec: PolicySpec;
2491
+ usage?: PolicyUsageCounts;
2492
+ };
2493
+ /**
2494
+ * Cursor-paginated list of policies. Returned starting with API version 2026-04-28; older API versions return a bare array.
2495
+ */
2496
+ export type PolicyList = {
2497
+ /**
2498
+ * Page of policies.
2499
+ */
2500
+ data?: Array<Policy>;
2501
+ meta?: PaginationMeta;
2502
+ };
2503
+ /**
2504
+ * Cursor-paginated list of policies. Returned starting with API version 2026-04-28; older API versions return a bare array.
2505
+ */
2506
+ export type PolicyListWritable = {
2507
+ /**
2508
+ * Page of policies.
2509
+ */
2510
+ data?: Array<PolicyWritable>;
2511
+ meta?: PaginationMeta;
2271
2512
  };
2272
2513
  /**
2273
2514
  * Policy location
@@ -2340,6 +2581,51 @@ export type PolicySpec = {
2340
2581
  */
2341
2582
  type?: 'location' | 'flavor' | 'maxToken';
2342
2583
  };
2584
+ /**
2585
+ * Per-resource counts of how many resources reference a policy. Computed by the policies listing endpoint to avoid client-side fan-out across the agents/models/functions/sandboxes/jobs listings.
2586
+ */
2587
+ export type PolicyUsageCounts = {
2588
+ agents?: number;
2589
+ functions?: number;
2590
+ jobs?: number;
2591
+ models?: number;
2592
+ sandboxes?: number;
2593
+ };
2594
+ /**
2595
+ * Resources currently referencing a policy. Returned by GET /policies/{name}/usages so the policies UI can render attachments without fetching the agents/models/functions listings full.
2596
+ */
2597
+ export type PolicyUsages = {
2598
+ /**
2599
+ * Names of agents whose spec.policies contains this policy.
2600
+ */
2601
+ agents?: Array<{
2602
+ [key: string]: unknown;
2603
+ }>;
2604
+ /**
2605
+ * Names of functions whose spec.policies contains this policy.
2606
+ */
2607
+ functions?: Array<{
2608
+ [key: string]: unknown;
2609
+ }>;
2610
+ /**
2611
+ * Names of jobs whose spec.policies contains this policy.
2612
+ */
2613
+ jobs?: Array<{
2614
+ [key: string]: unknown;
2615
+ }>;
2616
+ /**
2617
+ * Names of models whose spec.policies contains this policy.
2618
+ */
2619
+ models?: Array<{
2620
+ [key: string]: unknown;
2621
+ }>;
2622
+ /**
2623
+ * Names of sandboxes whose spec.policies contains this policy.
2624
+ */
2625
+ sandboxes?: Array<{
2626
+ [key: string]: unknown;
2627
+ }>;
2628
+ };
2343
2629
  /**
2344
2630
  * A port for a resource
2345
2631
  */
@@ -3051,6 +3337,26 @@ export type SandboxLifecycle = {
3051
3337
  */
3052
3338
  terminatedRetention?: string;
3053
3339
  };
3340
+ /**
3341
+ * Cursor-paginated list of sandboxes. Returned starting with API version 2026-04-28; older API versions return a bare array.
3342
+ */
3343
+ export type SandboxList = {
3344
+ /**
3345
+ * Page of sandboxes. Items use the lite shape (no inline event history) to keep the page payload small, matching the unpaginated response.
3346
+ */
3347
+ data?: Array<Sandbox>;
3348
+ meta?: PaginationMeta;
3349
+ };
3350
+ /**
3351
+ * Cursor-paginated list of sandboxes. Returned starting with API version 2026-04-28; older API versions return a bare array.
3352
+ */
3353
+ export type SandboxListWritable = {
3354
+ /**
3355
+ * Page of sandboxes. Items use the lite shape (no inline event history) to keep the page payload small, matching the unpaginated response.
3356
+ */
3357
+ data?: Array<SandboxWritable>;
3358
+ meta?: PaginationMeta;
3359
+ };
3054
3360
  /**
3055
3361
  * Network configuration for a sandbox including domain filtering, egress IP binding, and proxy settings
3056
3362
  */
@@ -3224,7 +3530,7 @@ export type Trigger = {
3224
3530
  */
3225
3531
  enabled?: boolean;
3226
3532
  /**
3227
- * The id of the trigger
3533
+ * Identifier of the trigger. Optional — the server auto-generates a unique id when one is not provided, and disambiguates duplicates within a resource.
3228
3534
  */
3229
3535
  id?: string;
3230
3536
  /**
@@ -3242,7 +3548,7 @@ export type TriggerWritable = {
3242
3548
  */
3243
3549
  enabled?: boolean;
3244
3550
  /**
3245
- * The id of the trigger
3551
+ * Identifier of the trigger. Optional — the server auto-generates a unique id when one is not provided, and disambiguates duplicates within a resource.
3246
3552
  */
3247
3553
  id?: string;
3248
3554
  /**
@@ -3402,6 +3708,26 @@ export type VolumeAttachment = {
3402
3708
  readOnly?: boolean;
3403
3709
  };
3404
3710
  export type VolumeAttachments = Array<VolumeAttachment>;
3711
+ /**
3712
+ * Cursor-paginated list of volumes. Returned starting with API version 2026-04-28; older API versions return a bare array. Items use the lite shape (no inline event history).
3713
+ */
3714
+ export type VolumeList = {
3715
+ /**
3716
+ * Page of volumes.
3717
+ */
3718
+ data?: Array<LiteVolume>;
3719
+ meta?: PaginationMeta;
3720
+ };
3721
+ /**
3722
+ * Cursor-paginated list of volumes. Returned starting with API version 2026-04-28; older API versions return a bare array. Items use the lite shape (no inline event history).
3723
+ */
3724
+ export type VolumeListWritable = {
3725
+ /**
3726
+ * Page of volumes.
3727
+ */
3728
+ data?: Array<LiteVolumeWritable>;
3729
+ meta?: PaginationMeta;
3730
+ };
3405
3731
  /**
3406
3732
  * Immutable volume configuration set at creation time (size and region cannot be changed after creation)
3407
3733
  */
@@ -3608,6 +3934,12 @@ export type Workspace = TimeFields & OwnerFields & {
3608
3934
  * Workspace write region
3609
3935
  */
3610
3936
  region?: string;
3937
+ /**
3938
+ * Per-resource counts (agents, functions, models, sandboxes, policies, jobs, volumes, drives, volumetemplates, integrationconnections, previews, customdomains, serviceaccounts, images). Only populated when GetWorkspace is called with ?countResources=true.
3939
+ */
3940
+ readonly resourceCounts?: {
3941
+ [key: string]: number;
3942
+ };
3611
3943
  runtime?: WorkspaceRuntime;
3612
3944
  /**
3613
3945
  * Workspace status (created, account_binded, account_configured, workspace_configured, ready, error)
@@ -3716,10 +4048,47 @@ export type WorkspaceUser = {
3716
4048
  */
3717
4049
  sub?: string;
3718
4050
  };
4051
+ /**
4052
+ * 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.
4053
+ */
4054
+ export type BlaxelVersion = string;
4055
+ /**
4056
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
4057
+ */
4058
+ export type PaginationCursor = string;
4059
+ /**
4060
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
4061
+ */
4062
+ export type PaginationLimit = number;
4063
+ /**
4064
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4065
+ */
4066
+ export type PaginationQuery = string;
4067
+ /**
4068
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4069
+ */
4070
+ export type PaginationSort = 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
3719
4071
  export type ListAgentsData = {
3720
4072
  body?: never;
3721
4073
  path?: never;
3722
- query?: never;
4074
+ query?: {
4075
+ /**
4076
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
4077
+ */
4078
+ cursor?: string;
4079
+ /**
4080
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
4081
+ */
4082
+ limit?: number;
4083
+ /**
4084
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4085
+ */
4086
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
4087
+ /**
4088
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4089
+ */
4090
+ q?: string;
4091
+ };
3723
4092
  url: '/agents';
3724
4093
  };
3725
4094
  export type ListAgentsErrors = {
@@ -3741,7 +4110,7 @@ export type ListAgentsResponses = {
3741
4110
  /**
3742
4111
  * successful operation
3743
4112
  */
3744
- 200: Array<Agent>;
4113
+ 200: AgentList;
3745
4114
  };
3746
4115
  export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
3747
4116
  export type CreateAgentData = {
@@ -4032,7 +4401,24 @@ export type VerifyCustomDomainResponse = VerifyCustomDomainResponses[keyof Verif
4032
4401
  export type ListDrivesData = {
4033
4402
  body?: never;
4034
4403
  path?: never;
4035
- query?: never;
4404
+ query?: {
4405
+ /**
4406
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
4407
+ */
4408
+ cursor?: string;
4409
+ /**
4410
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
4411
+ */
4412
+ limit?: number;
4413
+ /**
4414
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4415
+ */
4416
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
4417
+ /**
4418
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4419
+ */
4420
+ q?: string;
4421
+ };
4036
4422
  url: '/drives';
4037
4423
  };
4038
4424
  export type ListDrivesErrors = {
@@ -4045,7 +4431,7 @@ export type ListDrivesResponses = {
4045
4431
  /**
4046
4432
  * successful operation
4047
4433
  */
4048
- 200: Array<Drive>;
4434
+ 200: DriveList;
4049
4435
  };
4050
4436
  export type ListDrivesResponse = ListDrivesResponses[keyof ListDrivesResponses];
4051
4437
  export type CreateDriveData = {
@@ -4208,6 +4594,19 @@ export type ListAllEgressGatewaysResponses = {
4208
4594
  200: Array<EgressGateway>;
4209
4595
  };
4210
4596
  export type ListAllEgressGatewaysResponse = ListAllEgressGatewaysResponses[keyof ListAllEgressGatewaysResponses];
4597
+ export type GetEgressGatewayUsageData = {
4598
+ body?: never;
4599
+ path?: never;
4600
+ query?: never;
4601
+ url: '/egressgateways/usage';
4602
+ };
4603
+ export type GetEgressGatewayUsageResponses = {
4604
+ /**
4605
+ * successful operation
4606
+ */
4607
+ 200: EgressGatewayUsage;
4608
+ };
4609
+ export type GetEgressGatewayUsageResponse = GetEgressGatewayUsageResponses[keyof GetEgressGatewayUsageResponses];
4211
4610
  export type ListAllEgressIpsData = {
4212
4611
  body?: never;
4213
4612
  path?: never;
@@ -4305,7 +4704,24 @@ export type TestFeatureFlagResponse = TestFeatureFlagResponses[keyof TestFeature
4305
4704
  export type ListFunctionsData = {
4306
4705
  body?: never;
4307
4706
  path?: never;
4308
- query?: never;
4707
+ query?: {
4708
+ /**
4709
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
4710
+ */
4711
+ cursor?: string;
4712
+ /**
4713
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
4714
+ */
4715
+ limit?: number;
4716
+ /**
4717
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4718
+ */
4719
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
4720
+ /**
4721
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
4722
+ */
4723
+ q?: string;
4724
+ };
4309
4725
  url: '/functions';
4310
4726
  };
4311
4727
  export type ListFunctionsErrors = {
@@ -4327,7 +4743,7 @@ export type ListFunctionsResponses = {
4327
4743
  /**
4328
4744
  * successful operation
4329
4745
  */
4330
- 200: Array<_Function>;
4746
+ 200: FunctionList;
4331
4747
  };
4332
4748
  export type ListFunctionsResponse = ListFunctionsResponses[keyof ListFunctionsResponses];
4333
4749
  export type CreateFunctionData = {
@@ -5050,14 +5466,31 @@ export type GetIntegrationConnectionModelResponses = {
5050
5466
  export type ListJobsData = {
5051
5467
  body?: never;
5052
5468
  path?: never;
5053
- query?: never;
5469
+ query?: {
5470
+ /**
5471
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
5472
+ */
5473
+ cursor?: string;
5474
+ /**
5475
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
5476
+ */
5477
+ limit?: number;
5478
+ /**
5479
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5480
+ */
5481
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
5482
+ /**
5483
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5484
+ */
5485
+ q?: string;
5486
+ };
5054
5487
  url: '/jobs';
5055
5488
  };
5056
5489
  export type ListJobsResponses = {
5057
5490
  /**
5058
5491
  * successful operation
5059
5492
  */
5060
- 200: Array<Job>;
5493
+ 200: JobList;
5061
5494
  };
5062
5495
  export type ListJobsResponse = ListJobsResponses[keyof ListJobsResponses];
5063
5496
  export type CreateJobData = {
@@ -5146,9 +5579,21 @@ export type ListJobExecutionsData = {
5146
5579
  */
5147
5580
  limit?: number;
5148
5581
  /**
5149
- * Page offset
5582
+ * Page offset (legacy, ignored when Blaxel-Version >= 2026-04-28)
5150
5583
  */
5151
5584
  offset?: number;
5585
+ /**
5586
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
5587
+ */
5588
+ cursor?: string;
5589
+ /**
5590
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5591
+ */
5592
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
5593
+ /**
5594
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5595
+ */
5596
+ q?: string;
5152
5597
  };
5153
5598
  url: '/jobs/{jobId}/executions';
5154
5599
  };
@@ -5166,7 +5611,7 @@ export type ListJobExecutionsResponses = {
5166
5611
  /**
5167
5612
  * successful operation
5168
5613
  */
5169
- 200: Array<JobExecution>;
5614
+ 200: JobExecutionList;
5170
5615
  };
5171
5616
  export type ListJobExecutionsResponse = ListJobExecutionsResponses[keyof ListJobExecutionsResponses];
5172
5617
  export type CreateJobExecutionData = {
@@ -5269,6 +5714,59 @@ export type GetJobExecutionResponses = {
5269
5714
  200: JobExecution;
5270
5715
  };
5271
5716
  export type GetJobExecutionResponse = GetJobExecutionResponses[keyof GetJobExecutionResponses];
5717
+ export type ListJobExecutionTasksData = {
5718
+ body?: never;
5719
+ path: {
5720
+ /**
5721
+ * Name of the job
5722
+ */
5723
+ jobId: string;
5724
+ /**
5725
+ * Execution id
5726
+ */
5727
+ executionId: string;
5728
+ };
5729
+ query?: {
5730
+ /**
5731
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
5732
+ */
5733
+ cursor?: string;
5734
+ /**
5735
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
5736
+ */
5737
+ limit?: number;
5738
+ /**
5739
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5740
+ */
5741
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
5742
+ /**
5743
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5744
+ */
5745
+ q?: string;
5746
+ };
5747
+ url: '/jobs/{jobId}/executions/{executionId}/tasks';
5748
+ };
5749
+ export type ListJobExecutionTasksErrors = {
5750
+ /**
5751
+ * bad request
5752
+ */
5753
+ 400: unknown;
5754
+ /**
5755
+ * job or execution not found
5756
+ */
5757
+ 404: unknown;
5758
+ /**
5759
+ * internal server error
5760
+ */
5761
+ 500: unknown;
5762
+ };
5763
+ export type ListJobExecutionTasksResponses = {
5764
+ /**
5765
+ * successful operation
5766
+ */
5767
+ 200: JobExecutionTaskList;
5768
+ };
5769
+ export type ListJobExecutionTasksResponse = ListJobExecutionTasksResponses[keyof ListJobExecutionTasksResponses];
5272
5770
  export type ListJobRevisionsData = {
5273
5771
  body?: never;
5274
5772
  path: {
@@ -5316,7 +5814,24 @@ export type ListMcpHubDefinitionsResponse = ListMcpHubDefinitionsResponses[keyof
5316
5814
  export type ListModelsData = {
5317
5815
  body?: never;
5318
5816
  path?: never;
5319
- query?: never;
5817
+ query?: {
5818
+ /**
5819
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
5820
+ */
5821
+ cursor?: string;
5822
+ /**
5823
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
5824
+ */
5825
+ limit?: number;
5826
+ /**
5827
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5828
+ */
5829
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
5830
+ /**
5831
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
5832
+ */
5833
+ q?: string;
5834
+ };
5320
5835
  url: '/models';
5321
5836
  };
5322
5837
  export type ListModelsErrors = {
@@ -5338,7 +5853,7 @@ export type ListModelsResponses = {
5338
5853
  /**
5339
5854
  * successful operation
5340
5855
  */
5341
- 200: Array<Model>;
5856
+ 200: ModelList;
5342
5857
  };
5343
5858
  export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
5344
5859
  export type CreateModelData = {
@@ -5600,14 +6115,31 @@ export type DeclineImageShareResponse = DeclineImageShareResponses[keyof Decline
5600
6115
  export type ListPoliciesData = {
5601
6116
  body?: never;
5602
6117
  path?: never;
5603
- query?: never;
6118
+ query?: {
6119
+ /**
6120
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
6121
+ */
6122
+ cursor?: string;
6123
+ /**
6124
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
6125
+ */
6126
+ limit?: number;
6127
+ /**
6128
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
6129
+ */
6130
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
6131
+ /**
6132
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
6133
+ */
6134
+ q?: string;
6135
+ };
5604
6136
  url: '/policies';
5605
6137
  };
5606
6138
  export type ListPoliciesResponses = {
5607
6139
  /**
5608
6140
  * successful operation
5609
6141
  */
5610
- 200: Array<Policy>;
6142
+ 200: PolicyList;
5611
6143
  };
5612
6144
  export type ListPoliciesResponse = ListPoliciesResponses[keyof ListPoliciesResponses];
5613
6145
  export type CreatePolicyData = {
@@ -5677,6 +6209,24 @@ export type UpdatePolicyResponses = {
5677
6209
  200: Policy;
5678
6210
  };
5679
6211
  export type UpdatePolicyResponse = UpdatePolicyResponses[keyof UpdatePolicyResponses];
6212
+ export type GetPolicyUsagesData = {
6213
+ body?: never;
6214
+ path: {
6215
+ /**
6216
+ * Unique name identifier of the policy
6217
+ */
6218
+ policyName: string;
6219
+ };
6220
+ query?: never;
6221
+ url: '/policies/{policyName}/usages';
6222
+ };
6223
+ export type GetPolicyUsagesResponses = {
6224
+ /**
6225
+ * successful operation
6226
+ */
6227
+ 200: PolicyUsages;
6228
+ };
6229
+ export type GetPolicyUsagesResponse = GetPolicyUsagesResponses[keyof GetPolicyUsagesResponses];
5680
6230
  export type ListPublicIpsData = {
5681
6231
  body?: never;
5682
6232
  path?: never;
@@ -5711,7 +6261,28 @@ export type ListSandboxHubDefinitionsResponse = ListSandboxHubDefinitionsRespons
5711
6261
  export type ListSandboxesData = {
5712
6262
  body?: never;
5713
6263
  path?: never;
5714
- query?: never;
6264
+ query?: {
6265
+ /**
6266
+ * If true, include terminated sandboxes in the response. Defaults to false.
6267
+ */
6268
+ showTerminated?: boolean;
6269
+ /**
6270
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
6271
+ */
6272
+ cursor?: string;
6273
+ /**
6274
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
6275
+ */
6276
+ limit?: number;
6277
+ /**
6278
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
6279
+ */
6280
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
6281
+ /**
6282
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
6283
+ */
6284
+ q?: string;
6285
+ };
5715
6286
  url: '/sandboxes';
5716
6287
  };
5717
6288
  export type ListSandboxesErrors = {
@@ -5733,7 +6304,7 @@ export type ListSandboxesResponses = {
5733
6304
  /**
5734
6305
  * successful operation
5735
6306
  */
5736
- 200: Array<Sandbox>;
6307
+ 200: SandboxList;
5737
6308
  };
5738
6309
  export type ListSandboxesResponse = ListSandboxesResponses[keyof ListSandboxesResponses];
5739
6310
  export type CreateSandboxData = {
@@ -6572,7 +7143,24 @@ export type DeleteVolumeTemplateVersionResponse = DeleteVolumeTemplateVersionRes
6572
7143
  export type ListVolumesData = {
6573
7144
  body?: never;
6574
7145
  path?: never;
6575
- query?: never;
7146
+ query?: {
7147
+ /**
7148
+ * Opaque cursor returned by a previous response's meta.nextCursor. Only valid for the same query (workspace + filters); the server rejects cursors bound to a different query or older than 24h. Omit on the first page.
7149
+ */
7150
+ cursor?: string;
7151
+ /**
7152
+ * Maximum number of items to return per page. Defaults to 50, clamped to 200.
7153
+ */
7154
+ limit?: number;
7155
+ /**
7156
+ * Sort spec, formatted as `<key>:<direction>`. Allowed values are `createdAt:desc` (default), `createdAt:asc`, `name:asc`, `name:desc`. The cursor fingerprint is bound to the sort, so a cursor opened with one value cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
7157
+ */
7158
+ sort?: 'createdAt:desc' | 'createdAt:asc' | 'name:asc' | 'name:desc';
7159
+ /**
7160
+ * Substring search across `metadata.name`, `metadata.displayName` and labels (keys + values). Trimmed and lowercased server-side; queries shorter than 2 characters fall back to the unfiltered listing. Bound into the cursor fingerprint so a cursor opened with one query cannot be reused with another. Only honoured starting on Blaxel-Version 2026-04-28.
7161
+ */
7162
+ q?: string;
7163
+ };
6576
7164
  url: '/volumes';
6577
7165
  };
6578
7166
  export type ListVolumesErrors = {
@@ -6594,7 +7182,7 @@ export type ListVolumesResponses = {
6594
7182
  /**
6595
7183
  * successful operation
6596
7184
  */
6597
- 200: Array<Volume>;
7185
+ 200: VolumeList;
6598
7186
  };
6599
7187
  export type ListVolumesResponse = ListVolumesResponses[keyof ListVolumesResponses];
6600
7188
  export type CreateVolumeData = {
@@ -7018,7 +7606,12 @@ export type GetWorkspaceData = {
7018
7606
  */
7019
7607
  workspaceName: string;
7020
7608
  };
7021
- query?: never;
7609
+ query?: {
7610
+ /**
7611
+ * When true, the response includes a resourceCounts map with the number of agents, functions, models, sandboxes, policies, jobs, volumes, volumetemplates, integrationconnections, previews, customdomains, serviceaccounts and images currently in this workspace. Off by default — each count is one extra indexed query.
7612
+ */
7613
+ countResources?: boolean;
7614
+ };
7022
7615
  url: '/workspaces/{workspaceName}';
7023
7616
  };
7024
7617
  export type GetWorkspaceErrors = {