Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
feat: add Volume CRUD operations to SDKs (#1126)
Mish Ushakov6d7e72e3bd65
diff --git a/.changeset/shiny-wasps-find.md b/.changeset/shiny-wasps-find.mdnew file mode 100644index 000000000..f69ce9e9b--- /dev/null+++ b/.changeset/shiny-wasps-find.md@@ -0,0 +1,6 @@+---+'@e2b/python-sdk': minor+'e2b': minor+---++added volumes support to the SDKsdiff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex 59ed744f4..b37cb1506 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -29,9 +29,10 @@"example": "tsx example.mts","test": "vitest run","generate": "npm-run-all generate:* && pnpm run format",- "generate:api": "python ./../../spec/remove_extra_tags.py sandboxes snapshots templates tags auth && openapi-typescript ../../spec/openapi_generated.yml -x api_key --array-length --alphabetize --default-non-nullable false --output src/api/schema.gen.ts",+ "generate:api": "python ./../../spec/remove_extra_tags.py sandboxes snapshots templates tags auth volumes && openapi-typescript ../../spec/openapi_generated.yml -x api_key --array-length --alphabetize --default-non-nullable false --output src/api/schema.gen.ts","generate:envd": "cd ../../spec/envd && buf generate --template buf-js.gen.yaml\n","generate:envd-api": "openapi-typescript ../../spec/envd/envd.yaml -x api_key --array-length --alphabetize --output src/envd/schema.gen.ts",+ "generate:volume-api": "openapi-typescript ../../spec/openapi-volumecontent.yml -x api_key --array-length --alphabetize --output src/volume/schema.gen.ts","generate:mcp": "json2ts -i ./../../spec/mcp-server.json -o src/sandbox/mcp.d.ts --unreachableDefinitions --style.singleQuote --no-style.semi","check-deps": "knip","pretest": "npx playwright install --with-deps chromium",@@ -56,7 +57,8 @@"eslint": "^8.57.1","json-schema-to-typescript": "^15.0.4","knip": "^5.43.6",- "msw": "^2.12.3",+ "msw": "^2.12.10",+ "npm-check-updates": "^16.14.20","npm-run-all": "^4.1.5","openapi-typescript": "^7.9.1","playwright": "^1.55.1",diff --git a/packages/js-sdk/src/api/schema.gen.ts b/packages/js-sdk/src/api/schema.gen.tsindex 53413b0f9..d3c42e3ee 100644--- a/packages/js-sdk/src/api/schema.gen.ts+++ b/packages/js-sdk/src/api/schema.gen.ts@@ -1336,8 +1336,12 @@ export interface paths {cursor?: number;/** @description Direction of the logs that should be returned */direction?: components["schemas"]["LogsDirection"];+ /** @description Minimum log level to return. Logs below this level are excluded */+ level?: components["schemas"]["LogLevel"];/** @description Maximum number of logs that should be returned */limit?: number;+ /** @description Case-sensitive substring match on log message content */+ search?: string;};header?: never;path: {@@ -1546,10 +1550,145 @@ export interface paths {patch?: never;trace?: never;};+ "/volumes": {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ /** @description List all team volumes */+ get: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully listed all team volumes */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Volume"][];+ };+ };+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ };+ put?: never;+ /** @description Create a new team volume */+ post: {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": components["schemas"]["NewVolume"];+ };+ };+ responses: {+ /** @description Successfully created a new team volume */+ 201: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["VolumeAndToken"];+ };+ };+ 400: components["responses"]["400"];+ 401: components["responses"]["401"];+ 500: components["responses"]["500"];+ };+ };+ delete?: never;+ options?: never;+ head?: never;+ patch?: never;+ trace?: never;+ };+ "/volumes/{volumeID}": {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ /** @description Get team volume info */+ get: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully retrieved a team volume */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["VolumeAndToken"];+ };+ };+ 401: components["responses"]["401"];+ 404: components["responses"]["404"];+ 500: components["responses"]["500"];+ };+ };+ put?: never;+ post?: never;+ /** @description Delete a team volume */+ delete: {+ parameters: {+ query?: never;+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully deleted a team volume */+ 204: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ 401: components["responses"]["401"];+ 404: components["responses"]["404"];+ 500: components["responses"]["500"];+ };+ };+ options?: never;+ head?: never;+ patch?: never;+ trace?: never;+ };}export type webhooks = Record<string, never>;export interface components {schemas: {+ AdminBuildCancelResult: {+ /** @description Number of builds successfully cancelled */+ cancelledCount: number;+ /** @description Number of builds that failed to cancel */+ failedCount: number;+ };AdminSandboxKillResult: {/** @description Number of sandboxes that failed to kill */failedCount: number;@@ -1869,11 +2008,6 @@ export interface components {id: string;machineInfo: components["schemas"]["MachineInfo"];metrics: components["schemas"]["NodeMetrics"];- /**- * @deprecated- * @description Identifier of the nomad node- */- nodeID: string;/*** Format: uint32* @description Number of sandboxes running on the node@@ -1912,12 +2046,10 @@ export interface components {machineInfo: components["schemas"]["MachineInfo"];metrics: components["schemas"]["NodeMetrics"];/**- * @deprecated- * @description Identifier of the nomad node+ * Format: uint32+ * @description Number of sandboxes running on the node*/- nodeID: string;- /** @description List of sandboxes running on the node */- sandboxes: components["schemas"]["ListedSandbox"][];+ sandboxCount: number;/** @description Service instance identifier of the node */serviceInstanceID: string;status: components["schemas"]["NodeStatus"];@@ -2178,7 +2310,7 @@ export interface components {SnapshotInfo: {/** @description Full names of the snapshot template including team namespace and tag (e.g. team-slug/my-snapshot:v2) */names: string[];- /** @description Identifier of the snapshot template */+ /** @description Identifier of the snapshot template including the tag. Uses namespace/alias when a name was provided (e.g. team-slug/my-snapshot:default), otherwise falls back to the raw template ID (e.g. abc123:default). */snapshotID: string;};Team: {@@ -2565,6 +2697,17 @@ export interface components {/** @description ID of the volume */volumeID: string;};+ VolumeAndToken: {+ /** @description Name of the volume */+ name: string;+ /** @description Auth token to use for interacting with volume content */+ token: string;+ /** @description ID of the volume */+ volumeID: string;+ };+ VolumeToken: {+ token: string;+ };};responses: {/** @description Bad request */diff --git a/packages/js-sdk/src/errors.ts b/packages/js-sdk/src/errors.tsindex 7305083c5..e66ea07c6 100644--- a/packages/js-sdk/src/errors.ts+++ b/packages/js-sdk/src/errors.ts@@ -162,3 +162,15 @@ export class FileUploadError extends BuildError {this.name = 'FileUploadError'}}++/**+ * Base class for all volume errors.+ *+ * Thrown when general volume errors occur.+ */+export class VolumeError extends Error {+ constructor(message: string) {+ super(message)+ this.name = 'VolumeError'+ }+}diff --git a/packages/js-sdk/src/index.ts b/packages/js-sdk/src/index.tsindex 5d3bfa58a..1a52e70e6 100644--- a/packages/js-sdk/src/index.ts+++ b/packages/js-sdk/src/index.ts@@ -18,6 +18,7 @@ export {RateLimitError,BuildError,FileUploadError,+ VolumeError,} from './errors'export type { Logger } from './logs'@@ -90,6 +91,17 @@ export type {GitStatus,} from './sandbox/git'+export { Volume, VolumeFileType } from './volume'+export type {+ VolumeInfo,+ VolumeAndToken,+ VolumeEntryStat,+ VolumeMetadataOptions,+ VolumeWriteOptions,+ VolumeApiOpts,+ VolumeConnectionConfig,+} from './volume'+export { Sandbox }import { Sandbox } from './sandbox'diff --git a/packages/js-sdk/src/sandbox/sandboxApi.ts b/packages/js-sdk/src/sandbox/sandboxApi.tsindex f65398de9..f1bcf86bf 100644--- a/packages/js-sdk/src/sandbox/sandboxApi.ts+++ b/packages/js-sdk/src/sandbox/sandboxApi.ts@@ -7,6 +7,7 @@ import {import { compareVersions } from 'compare-versions'import { SandboxNotFoundError, TemplateError } from '../errors'import { timeoutToSeconds } from '../utils'+import type { Volume } from '../volume'import type { McpServer as BaseMcpServer } from './mcp'/**@@ -156,6 +157,16 @@ export interface SandboxOpts extends ConnectionOpts {*/network?: SandboxNetworkOpts+ /**+ * Volume mounts for the sandbox.+ *+ * The keys are mount paths inside the sandbox and the values are either+ * a `Volume` instance or a string representing the volume name.+ *+ * @default undefined+ */+ volumeMounts?: Record<string, Volume | string>+/*** Sandbox URL. Used for local development*/@@ -337,6 +348,11 @@ export interface SandboxInfo {* Sandbox lifecycle configuration.*/lifecycle?: SandboxInfoLifecycle++ /**+ * Volume mounts for the sandbox.+ */+ volumeMounts?: Array<{ name: string; path: string }>}/**@@ -602,6 +618,7 @@ export class SandboxApi {}: undefined,sandboxDomain: res.data.domain || undefined,+ volumeMounts: res.data.volumeMounts ?? [],}}@@ -775,6 +792,15 @@ export class SandboxApi {: {}),}+ if (opts?.volumeMounts) {+ body.volumeMounts = Object.entries(opts.volumeMounts).map(+ ([mountPath, vol]) => ({+ name: typeof vol === 'string' ? vol : vol.name,+ path: mountPath,+ })+ )+ }+const res = await client.api.POST('/sandboxes', {body,signal: config.getSignal(opts?.requestTimeoutMs),@@ -959,6 +985,7 @@ export class SandboxPaginator extends BasePaginator<SandboxInfo> {cpuCount: sandbox.cpuCount,memoryMB: sandbox.memoryMB,envdVersion: sandbox.envdVersion,+ volumeMounts: sandbox.volumeMounts ?? [],}))}diff --git a/packages/js-sdk/src/volume/client.ts b/packages/js-sdk/src/volume/client.tsnew file mode 100644index 000000000..8c382635c--- /dev/null+++ b/packages/js-sdk/src/volume/client.ts@@ -0,0 +1,114 @@+import createClient from 'openapi-fetch'++import type { components, paths } from './schema.gen'+import { defaultHeaders, getEnvVar } from '../api/metadata'+import { createApiLogger, Logger } from '../logs'+import type { Volume } from './index'++export interface VolumeApiOpts {+ /**+ * E2B API key to use for authentication.+ *+ * @default E2B_API_KEY // environment variable+ */+ token?: string+ /**+ * Domain to use for the volume API.+ *+ * @default E2B_DOMAIN // environment variable or `e2b.app`+ */+ domain?: string+ /**+ * If true the SDK starts in the debug mode and connects to the local volume API server.+ * @internal+ * @default E2B_DEBUG // environment variable or `false`+ */+ debug?: boolean+ /**+ * API Url to use for the API.+ * @internal+ * @default E2B_VOLUME_API_URL // environment variable or `https://api.${domain}`+ */+ apiUrl?: string+ /**+ * Timeout for requests to the API in **milliseconds**.+ *+ * @default 60_000 // 60 seconds+ */+ requestTimeoutMs?: number+ /**+ * Logger to use for logging messages. It can accept any object that implements `Logger` interface—for example, {@link console}.+ */+ logger?: Logger++ /**+ * Additional headers to send with the request.+ */+ headers?: Record<string, string>+}++export class VolumeConnectionConfig {+ readonly domain: string+ readonly debug: boolean+ readonly apiUrl: string+ readonly token?: string+ readonly headers?: Record<string, string>+ readonly logger?: Logger+ readonly requestTimeoutMs?: number++ constructor(volume: Volume, opts?: VolumeApiOpts) {+ this.domain = opts?.domain || volume.domain || VolumeConnectionConfig.domain+ this.debug = opts?.debug ?? volume.debug ?? VolumeConnectionConfig.debug+ this.apiUrl =+ opts?.apiUrl ||+ VolumeConnectionConfig.volumeApiUrl ||+ (this.debug ? 'http://localhost:8080' : `https://api.${this.domain}`)+ this.token = opts?.token || volume.token+ this.headers = opts?.headers+ this.logger = opts?.logger+ this.requestTimeoutMs = opts?.requestTimeoutMs+ }++ private static get domain() {+ return getEnvVar('E2B_DOMAIN') || 'e2b.app'+ }++ private static get debug() {+ return (getEnvVar('E2B_DEBUG') || 'false').toLowerCase() === 'true'+ }++ private static get volumeApiUrl() {+ return getEnvVar('E2B_VOLUME_API_URL')+ }++ getSignal(requestTimeoutMs?: number) {+ const timeout = requestTimeoutMs ?? this.requestTimeoutMs++ return timeout ? AbortSignal.timeout(timeout) : undefined+ }+}++/**+ * Client for interacting with the E2B Volume API.+ */+class VolumeApiClient {+ readonly api: ReturnType<typeof createClient<paths>>++ constructor(config: VolumeConnectionConfig) {+ this.api = createClient<paths>({+ baseUrl: config.apiUrl,+ headers: {+ ...defaultHeaders,+ ...(config.token && { Authorization: `Bearer ${config.token}` }),+ ...config.headers,+ },+ })++ if (config.logger) {+ this.api.use(createApiLogger(config.logger))+ }+ }+}++export type { components as VolumeApiComponents, paths as VolumeApiPaths }+export { VolumeApiClient }diff --git a/packages/js-sdk/src/volume/index.ts b/packages/js-sdk/src/volume/index.tsnew file mode 100644index 000000000..256915eb0--- /dev/null+++ b/packages/js-sdk/src/volume/index.ts@@ -0,0 +1,664 @@+import { ApiClient, handleApiError, components as ApiComponents } from '../api'+import {+ VolumeApiClient,+ VolumeApiComponents,+ VolumeConnectionConfig,+ VolumeApiOpts,+} from './client'+import { ConnectionConfig, ConnectionOpts } from '../connectionConfig'+import { NotFoundError, VolumeError } from '../errors'+import { toBlob } from '../utils'+import { VolumeFileType } from './types'+import type {+ VolumeAndToken,+ VolumeEntryStat,+ VolumeInfo,+ VolumeMetadataOptions,+ VolumeWriteOptions,+} from './types'++/**+ * Convert API VolumeEntryStat to SDK VolumeEntryStat.+ */+function convertVolumeEntryStat(+ entry: VolumeApiComponents['schemas']['VolumeEntryStat']+): VolumeEntryStat {+ return {+ ...entry,+ type: entry.type as VolumeFileType,+ atime: new Date(entry.atime),+ mtime: new Date(entry.mtime),+ ctime: new Date(entry.ctime),+ }+}++/**+ * Module for interacting with E2B volumes.+ *+ * Create a `Volume` instance to interact with a volume by its ID,+ * or use the static methods to manage volumes.+ */+export class Volume {+ /**+ * Volume ID.+ */+ readonly volumeId: string++ /**+ * Volume name.+ */+ readonly name: string++ /**+ * Volume auth token.+ */+ readonly token: string++ /**+ * Domain used for constructing the volume API URL.+ */+ readonly domain?: string++ /**+ * Whether to use debug mode (connects to local volume API server).+ */+ readonly debug?: boolean++ /**+ * Create a local Volume instance with no API call.+ *+ * @param volumeId volume ID.+ * @param name volume name.+ * @param token volume auth token.+ * @param domain domain for the volume API.+ * @param debug whether to use debug mode.+ */+ constructor(+ volumeId: string,+ name: string,+ token: string,+ domain?: string,+ debug?: boolean+ ) {+ this.volumeId = volumeId+ this.name = name+ this.token = token+ this.domain = domain+ this.debug = debug+ }++ /**+ * Create a new volume.+ *+ * @param name name of the volume.+ * @param opts connection options.+ *+ * @returns new Volume instance.+ */+ static async create(name: string, opts?: ConnectionOpts): Promise<Volume> {+ const config = new ConnectionConfig(opts)+ const client = new ApiClient(config)++ const res = await client.api.POST('/volumes', {+ body: {+ name,+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ if (!res.data) {+ throw new Error('Response data is missing')+ }++ return new Volume(+ res.data.volumeID,+ res.data.name,+ res.data.token,+ config.domain,+ config.debug+ )+ }++ /**+ * Connect to an existing volume by ID.+ *+ * @param volumeId volume ID.+ * @param opts connection options.+ *+ * @returns Volume instance.+ */+ static async connect(+ volumeId: string,+ opts?: ConnectionOpts+ ): Promise<Volume> {+ const config = new ConnectionConfig(opts)+ const { name, token } = await Volume.getInfo(volumeId, opts)+ return new Volume(volumeId, name, token, config.domain, config.debug)+ }++ /**+ * Get volume information.+ *+ * @param volumeId volume ID.+ * @param opts connection options.+ *+ * @returns volume information.+ */+ static async getInfo(+ volumeId: string,+ opts?: ConnectionOpts+ ): Promise<VolumeAndToken> {+ const config = new ConnectionConfig(opts)+ const client = new ApiClient(config)++ const res = await client.api.GET('/volumes/{volumeID}', {+ params: {+ path: {+ volumeID: volumeId,+ },+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Volume ${volumeId} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ return {+ volumeId: res.data!.volumeID,+ name: res.data!.name,+ token: res.data!.token,+ }+ }++ /**+ * List all volumes.+ *+ * @param opts connection options.+ *+ * @returns list of volume information.+ */+ static async list(opts?: ConnectionOpts): Promise<VolumeInfo[]> {+ const config = new ConnectionConfig(opts)+ const client = new ApiClient(config)++ const res = await client.api.GET('/volumes', {+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ return (res.data ?? []).map((vol: ApiComponents['schemas']['Volume']) => ({+ volumeId: vol.volumeID,+ name: vol.name,+ }))+ }++ /**+ * Destroy a volume.+ *+ * @param volumeId volume ID.+ * @param opts connection options.+ */+ static async destroy(+ volumeId: string,+ opts?: ConnectionOpts+ ): Promise<boolean> {+ const config = new ConnectionConfig(opts)+ const client = new ApiClient(config)++ const res = await client.api.DELETE('/volumes/{volumeID}', {+ params: {+ path: {+ volumeID: volumeId,+ },+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ return false+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ return true+ }++ /**+ * List directory contents.+ *+ * @param path path to the directory.+ * @param opts connection options.+ * @param [opts.depth] number of layers deep to recurse into the directory (default: 1).+ *+ * @returns list of entries in the directory.+ */+ async list(+ path: string,+ opts?: VolumeApiOpts & { depth?: number }+ ): Promise<VolumeEntryStat[]> {+ const config = new VolumeConnectionConfig(this, opts)+ const client = new VolumeApiClient(config)++ const res = await client.api.GET('/volumecontent/{volumeID}/dir', {+ params: {+ path: {+ volumeID: this.volumeId,+ },+ query: {+ path,+ depth: opts?.depth,+ },+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Path ${path} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ // VolumeDirectoryListing is an array according to the spec+ const entries = Array.isArray(res.data) ? res.data : []+ return entries.map(convertVolumeEntryStat)+ }++ /**+ * Create a directory.+ *+ * @param path path to the directory to create.+ * @param options directory creation options.+ * @param opts connection options.+ */+ async makeDir(+ path: string,+ opts?: VolumeWriteOptions & VolumeApiOpts+ ): Promise<VolumeEntryStat> {+ const config = new VolumeConnectionConfig(this, opts)+ const client = new VolumeApiClient(config)++ const res = await client.api.POST('/volumecontent/{volumeID}/dir', {+ params: {+ path: {+ volumeID: this.volumeId,+ },+ query: {+ path,+ uid: opts?.uid,+ gid: opts?.gid,+ mode: opts?.mode,+ force: opts?.force,+ },+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Path ${path} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ if (!res.data) {+ throw new Error('Response data is missing')+ }++ return convertVolumeEntryStat(+ res.data as VolumeApiComponents['schemas']['VolumeEntryStat']+ )+ }++ /**+ * Get information about a file or directory.+ *+ * @param path path to the file or directory.+ * @param opts connection options.+ *+ * @returns information about the entry.+ */+ async getInfo(path: string, opts?: VolumeApiOpts): Promise<VolumeEntryStat> {+ const config = new VolumeConnectionConfig(this, opts)+ const client = new VolumeApiClient(config)++ const res = await client.api.GET('/volumecontent/{volumeID}/path', {+ params: {+ path: {+ volumeID: this.volumeId,+ },+ query: {+ path,+ },+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Path ${path} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ if (!res.data) {+ throw new Error('Response data is missing')+ }++ return convertVolumeEntryStat(+ res.data as VolumeApiComponents['schemas']['VolumeEntryStat']+ )+ }++ /**+ * Check whether a file or directory exists.+ *+ * Uses {@link getInfo} under the hood. Returns `true` if the path exists,+ * `false` if it does not (404). Other errors are rethrown.+ *+ * @param path path to the file or directory.+ * @param opts connection options.+ *+ * @returns `true` if the path exists, `false` otherwise.+ */+ async exists(path: string, opts?: VolumeApiOpts): Promise<boolean> {+ try {+ await this.getInfo(path, opts)+ return true+ } catch (err) {+ if (err instanceof NotFoundError) {+ return false+ }+ throw err+ }+ }++ /**+ * Update file or directory metadata.+ *+ * @param path path to the file or directory.+ * @param metadata metadata to update (uid, gid, mode).+ * @param opts connection options.+ *+ * @returns updated entry information.+ */+ async updateMetadata(+ path: string,+ metadata: VolumeMetadataOptions,+ opts?: VolumeApiOpts+ ): Promise<VolumeEntryStat> {+ const config = new VolumeConnectionConfig(this, opts)+ const client = new VolumeApiClient(config)++ const res = await client.api.PATCH('/volumecontent/{volumeID}/path', {+ params: {+ path: {+ volumeID: this.volumeId,+ },+ query: {+ path,+ },+ },+ body: {+ uid: metadata.uid,+ gid: metadata.gid,+ mode: metadata.mode,+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Path ${path} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ if (!res.data) {+ throw new Error('Response data is missing')+ }++ return convertVolumeEntryStat(+ res.data as VolumeApiComponents['schemas']['VolumeEntryStat']+ )+ }++ /**+ * Read file content as a `string`.+ *+ * You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.+ *+ * @param path path to the file.+ * @param opts connection options.+ * @param [opts.format] format of the file content—`text` by default.+ *+ * @returns file content as string+ */+ async readFile(+ path: string,+ opts?: VolumeApiOpts & { format?: 'text' }+ ): Promise<string>+ /**+ * Read file content as a `Uint8Array`.+ *+ * You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.+ *+ * @param path path to the file.+ * @param opts connection options.+ * @param [opts.format] format of the file content—`bytes`.+ *+ * @returns file content as `Uint8Array`+ */+ async readFile(+ path: string,+ opts?: VolumeApiOpts & { format: 'bytes' }+ ): Promise<Uint8Array>+ /**+ * Read file content as a `Blob`.+ *+ * You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.+ *+ * @param path path to the file.+ * @param opts connection options.+ * @param [opts.format] format of the file content—`blob`.+ *+ * @returns file content as `Blob`+ */+ async readFile(+ path: string,+ opts?: VolumeApiOpts & { format: 'blob' }+ ): Promise<Blob>+ /**+ * Read file content as a `ReadableStream`.+ *+ * You can pass `text`, `bytes`, `blob`, or `stream` to `opts.format` to change the return type.+ *+ * @param path path to the file.+ * @param opts connection options.+ * @param [opts.format] format of the file content—`stream`.+ *+ * @returns file content as `ReadableStream`+ */+ async readFile(+ path: string,+ opts?: VolumeApiOpts & { format: 'stream' }+ ): Promise<ReadableStream<Uint8Array>>+ async readFile(+ path: string,+ opts?: VolumeApiOpts & {+ format?: 'text' | 'stream' | 'bytes' | 'blob'+ }+ ): Promise<unknown> {+ const format = opts?.format ?? 'text'+ const config = new VolumeConnectionConfig(this, opts)+ const client = new VolumeApiClient(config)++ const res = await client.api.GET('/volumecontent/{volumeID}/file', {+ params: {+ path: {+ volumeID: this.volumeId,+ },+ query: {+ path,+ },+ },+ parseAs: format === 'bytes' ? 'arrayBuffer' : format,+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Path ${path} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ if (format === 'bytes') {+ return new Uint8Array(res.data as ArrayBuffer)+ }++ if (format === 'text') {+ // When the file is empty, res.data is parsed as `{}`. This is a workaround to return an empty string.+ if (res.response.headers.get('content-length') === '0') {+ return ''+ }+ return typeof res.data === 'string' ? res.data : ''+ }++ return res.data+ }++ /**+ * Write content to a file.+ *+ * Writing to a file that doesn't exist creates the file.+ *+ * Writing to a file that already exists overwrites the file.+ *+ * @param path path to the file.+ * @param data data to write to the file. Data can be a string, `ArrayBuffer`, `Blob`, or `ReadableStream`.+ * @param options file creation options.+ * @param opts connection options.+ *+ * @returns information about the written file+ */+ async writeFile(+ path: string,+ data: string | ArrayBuffer | Blob | ReadableStream<Uint8Array>,+ opts?: VolumeWriteOptions & VolumeApiOpts+ ): Promise<VolumeEntryStat> {+ const config = new VolumeConnectionConfig(this, opts)+ const client = new VolumeApiClient(config)++ const blob = await toBlob(data)++ const res = await client.api.PUT('/volumecontent/{volumeID}/file', {+ params: {+ path: {+ volumeID: this.volumeId,+ },+ query: {+ path,+ uid: opts?.uid,+ gid: opts?.gid,+ mode: opts?.mode,+ force: opts?.force,+ },+ },+ bodySerializer: () => blob,+ body: {} as any,+ headers: {+ 'Content-Type': 'application/octet-stream',+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Path ${path} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }++ if (!res.data) {+ throw new Error('Response data is missing')+ }++ return convertVolumeEntryStat(+ res.data as VolumeApiComponents['schemas']['VolumeEntryStat']+ )+ }++ /**+ * Remove a file or directory.+ *+ * @param path path to the file or directory to remove.+ * @param opts connection options.+ */+ async remove(path: string, opts?: VolumeApiOpts): Promise<void> {+ const config = new VolumeConnectionConfig(this, opts)+ const client = new VolumeApiClient(config)++ const res = await client.api.DELETE('/volumecontent/{volumeID}/path', {+ params: {+ path: {+ volumeID: this.volumeId,+ },+ query: {+ path,+ },+ },+ signal: config.getSignal(opts?.requestTimeoutMs),+ })++ if (res.response.status === 404) {+ throw new NotFoundError(`Path ${path} not found`)+ }++ const err = handleApiError(res, VolumeError)+ if (err) {+ throw err+ }+ }+}++export type {+ VolumeInfo,+ VolumeAndToken,+ VolumeEntryStat,+ VolumeMetadataOptions,+ VolumeWriteOptions,+} from './types'++export type { VolumeApiOpts, VolumeConnectionConfig } from './client'+export { VolumeFileType } from './types'diff --git a/packages/js-sdk/src/volume/schema.gen.ts b/packages/js-sdk/src/volume/schema.gen.tsnew file mode 100644index 000000000..1d5c47930--- /dev/null+++ b/packages/js-sdk/src/volume/schema.gen.ts@@ -0,0 +1,414 @@+/**+ * This file was auto-generated by openapi-typescript.+ * Do not make direct changes to the file.+ */++export interface paths {+ "/volumecontent/{volumeID}/dir": {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ /** @description List directory contents */+ get: {+ parameters: {+ query: {+ /** @description Number of layers deep to recurse into the directory */+ depth?: number;+ path: components["parameters"]["path"];+ };+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully retrieved a directory listing */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["VolumeDirectoryListing"];+ };+ };+ /** @description Invalid path provided */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description path not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ 500: components["responses"]["500"];+ };+ };+ put?: never;+ /** @description Create a directory */+ post: {+ parameters: {+ query: {+ /** @description Create the parents of a directory if they don't exist */+ force?: boolean;+ /** @description Group ID of the created directory */+ gid?: number;+ /** @description Mode of the created directory */+ mode?: number;+ path: components["parameters"]["path"];+ /** @description User ID of the created directory */+ uid?: number;+ };+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully created a directory */+ 201: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["VolumeEntryStat"];+ };+ };+ /** @description path not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ 500: components["responses"]["500"];+ };+ };+ delete?: never;+ options?: never;+ head?: never;+ patch?: never;+ trace?: never;+ };+ "/volumecontent/{volumeID}/file": {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ /** @description Download file */+ get: {+ parameters: {+ query: {+ path: components["parameters"]["path"];+ };+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully downloaded a file */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/octet-stream": string;+ };+ };+ /** @description path not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ 500: components["responses"]["500"];+ };+ };+ /** @description Upload file */+ put: {+ parameters: {+ query: {+ /** @description Force overwrite of an existing file */+ force?: boolean;+ /** @description Group ID of the uploaded file */+ gid?: number;+ /** @description Mode of the uploaded file */+ mode?: number;+ path: components["parameters"]["path"];+ /** @description User ID of the uploaded file */+ uid?: number;+ };+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: {+ content: {+ "application/octet-stream": string;+ };+ };+ responses: {+ /** @description Successfully created a file */+ 201: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["VolumeEntryStat"];+ };+ };+ /** @description path not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ 500: components["responses"]["500"];+ };+ };+ post?: never;+ delete?: never;+ options?: never;+ head?: never;+ patch?: never;+ trace?: never;+ };+ "/volumecontent/{volumeID}/path": {+ parameters: {+ query?: never;+ header?: never;+ path?: never;+ cookie?: never;+ };+ /** @description Get path information */+ get: {+ parameters: {+ query: {+ path: components["parameters"]["path"];+ };+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully retrieved path information */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["VolumeEntryStat"];+ };+ };+ 404: components["responses"]["404"];+ };+ };+ put?: never;+ post?: never;+ /** @description Delete a path */+ delete: {+ parameters: {+ query: {+ path: components["parameters"]["path"];+ };+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody?: never;+ responses: {+ /** @description Successfully deleted a path */+ 204: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ 404: components["responses"]["404"];+ };+ };+ options?: never;+ head?: never;+ /** @description Update path metadata */+ patch: {+ parameters: {+ query: {+ path: components["parameters"]["path"];+ };+ header?: never;+ path: {+ volumeID: components["parameters"]["volumeID"];+ };+ cookie?: never;+ };+ requestBody: {+ content: {+ "application/json": {+ /** Format: uint32 */+ gid?: number;+ /** Format: uint32 */+ mode?: number;+ /** Format: uint32 */+ uid?: number;+ };+ };+ };+ responses: {+ /** @description Successfully updated a file's metadata */+ 200: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["VolumeEntryStat"];+ };+ };+ /** @description Invalid metadata provided */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description path not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ /** @description Internal server error */+ 500: {+ headers: {+ [name: string]: unknown;+ };+ content?: never;+ };+ };+ };+ trace?: never;+ };+}+export type webhooks = Record<string, never>;+export interface components {+ schemas: {+ Error: {+ /** @description Error code */+ code: string;+ /** @description Error message */+ message: string;+ };+ VolumeDirectoryListing: components["schemas"]["VolumeEntryStat"][];+ VolumeEntryStat: {+ /** Format: date-time */+ atime: string;+ /** Format: date-time */+ ctime: string;+ /** Format: uint32 */+ gid: number;+ /** Format: uint32 */+ mode: number;+ /** Format: date-time */+ mtime: string;+ name: string;+ path: string;+ /** Format: int64 */+ size: number;+ target?: string;+ /** @enum {string} */+ type: "unknown" | "file" | "directory" | "symlink";+ /** Format: uint32 */+ uid: number;+ };+ };+ responses: {+ /** @description Bad request */+ 400: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** @description Authentication error */+ 401: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** @description Forbidden */+ 403: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** @description Not found */+ 404: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** @description Conflict */+ 409: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** @description Server error */+ 500: {+ headers: {+ [name: string]: unknown;+ };+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ };+ parameters: {+ path: string;+ volumeID: string;+ };+ requestBodies: never;+ headers: never;+ pathItems: never;+}+export type $defs = Record<string, never>;+export type operations = Record<string, never>;diff --git a/packages/js-sdk/src/volume/types.ts b/packages/js-sdk/src/volume/types.tsnew file mode 100644index 000000000..7f5043ece--- /dev/null+++ b/packages/js-sdk/src/volume/types.ts@@ -0,0 +1,95 @@+import { VolumeApiComponents } from './client'++/**+ * File type enum.+ */+export enum VolumeFileType {+ UNKNOWN = 'unknown',+ FILE = 'file',+ DIRECTORY = 'directory',+ SYMLINK = 'symlink',+}++/**+ * Information about a volume.+ */+export type VolumeInfo = {+ /**+ * Volume ID.+ */+ volumeId: string++ /**+ * Volume name.+ */+ name: string+}++/**+ * Information about a volume and its auth token.+ */+export type VolumeAndToken = VolumeInfo & {+ /**+ * Volume auth token.+ */+ token: string+}++/**+ * Volume entry stat with dates converted to Date objects.+ */+export type VolumeEntryStat = Omit<+ VolumeApiComponents['schemas']['VolumeEntryStat'],+ 'atime' | 'mtime' | 'ctime' | 'type'+> & {+ /**+ * Access time as a Date object.+ */+ atime: Date++ /**+ * Modification time as a Date object.+ */+ mtime: Date++ /**+ * Creation time as a Date object.+ */+ ctime: Date++ /**+ * File type.+ */+ type: VolumeFileType+}++/**+ * Options for updating file metadata.+ */+export type VolumeMetadataOptions = {+ /**+ * User ID of the file or directory.+ */+ uid?: number++ /**+ * Group ID of the file or directory.+ */+ gid?: number++ /**+ * Mode of the file or directory.+ */+ mode?: number+}++/**+ * Options for file and directory operations.+ */+export type VolumeWriteOptions = VolumeMetadataOptions & {+ /**+ * For makeDir: Create parent directories if they don't exist.+ * For writeFile: Force overwrite of an existing file.+ */+ force?: boolean+}diff --git a/packages/js-sdk/tests/setup.ts b/packages/js-sdk/tests/setup.tsindex df1635033..be1f74b83 100644--- a/packages/js-sdk/tests/setup.ts+++ b/packages/js-sdk/tests/setup.ts@@ -1,4 +1,3 @@-import { randomUUID } from 'node:crypto'import { test as base, onTestFailed } from 'vitest'import {BuildInfo,@@ -7,6 +6,7 @@ import {SandboxOpts,Template,TemplateClass,+ Volume,} from '../src'import { template } from './template'@@ -17,6 +17,10 @@ interface SandboxFixture {sandboxOpts: Partial<SandboxOpts>}+interface VolumeFixture {+ volume: Volume+}+interface BuildTemplateFixture {buildTemplate: (template: TemplateClass,@@ -30,7 +34,7 @@ async function buildTemplate(options?: { name?: string; skipCache?: boolean },onBuildLogs?: (logEntry: LogEntry) => void): Promise<BuildInfo> {- const buildName = options?.name || `e2b-test:v1-${randomUUID()}`+ const buildName = options?.name || `e2b-test-${generateRandomString()}`const buildInfo: { templateId?: string; buildId?: string } = {}const captureLogs = (log: LogEntry) => {@@ -111,6 +115,28 @@ export const buildTemplateTest = base.extend<BuildTemplateFixture>({],})+export const volumeTest = base.extend<VolumeFixture>({+ volume: [+ // eslint-disable-next-line no-empty-pattern+ async ({}, use) => {+ const volume = await Volume.create(`test-vol-${generateRandomString()}`)+ onTestFailed(() => {+ console.error(`\n[TEST FAILED] Volume ID: ${volume.volumeId}`)+ })+ try {+ await use(volume)+ } finally {+ try {+ await Volume.destroy(volume.volumeId)+ } catch {+ // Ignore cleanup errors+ }+ }+ },+ { auto: false },+ ],+})+export const isDebug = process.env.E2B_DEBUG !== undefinedexport const isIntegrationTest = process.env.E2B_INTEGRATION_TEST !== undefineddiff --git a/packages/js-sdk/tests/volume/file.test.ts b/packages/js-sdk/tests/volume/file.test.tsnew file mode 100644index 000000000..f15131b7e--- /dev/null+++ b/packages/js-sdk/tests/volume/file.test.ts@@ -0,0 +1,360 @@+import { describe, expect } from 'vitest'+import { NotFoundError, VolumeError, VolumeFileType } from '../../src'+import { volumeTest } from '../setup'++describe('Volume File Operations', () => {+ describe('writeFile and readFile', () => {+ volumeTest('should write and read a text file', async ({ volume }) => {+ const path = '/test.txt'+ const content = 'Hello, World!'++ const stat = await volume.writeFile(path, content)+ expect(stat.name).toBe('test.txt')+ expect(stat.type).toBe(VolumeFileType.FILE)+ expect(stat.path).toBe(path)+ expect(stat.atime).toBeInstanceOf(Date)+ expect(stat.mtime).toBeInstanceOf(Date)+ expect(stat.ctime).toBeInstanceOf(Date)++ const readContent = await volume.readFile(path, { format: 'text' })+ expect(readContent).toBe(content)+ })++ volumeTest(+ 'should write and read a file with bytes format',+ async ({ volume }) => {+ const path = '/test-bytes.txt'+ const content = 'Test bytes content'+ const contentBytes = new TextEncoder().encode(content)++ await volume.writeFile(path, contentBytes.buffer)+ const readBytes = await volume.readFile(path, { format: 'bytes' })++ expect(readBytes).toEqual(contentBytes)+ }+ )++ volumeTest('should write and read binary data', async ({ volume }) => {+ const path = '/binary.bin'+ const binaryData = new Uint8Array([0, 1, 2, 3, 4])++ await volume.writeFile(path, binaryData.buffer)+ const readBytes = await volume.readFile(path, { format: 'bytes' })++ expect(readBytes).toEqual(binaryData)+ })++ volumeTest(+ 'should write and read a file with blob format',+ async ({ volume }) => {+ const path = '/test-blob.txt'+ const content = 'Test blob content'+ const blob = new Blob([content], { type: 'text/plain' })++ await volume.writeFile(path, blob)+ const readBlob = await volume.readFile(path, { format: 'blob' })++ expect(await readBlob.text()).toBe(content)+ }+ )++ volumeTest('should write and read an empty file', async ({ volume }) => {+ const path = '/empty.txt'+ const content = ''++ await volume.writeFile(path, content)+ const readContent = await volume.readFile(path, { format: 'text' })++ expect(readContent).toBe(content)+ })++ volumeTest(+ 'should overwrite an existing file with force option',+ async ({ volume }) => {+ const path = '/overwrite.txt'+ const initialContent = 'Initial content'+ const newContent = 'New content'++ await volume.writeFile(path, initialContent)+ await volume.writeFile(path, newContent, { force: true })+ const readContent = await volume.readFile(path, { format: 'text' })++ expect(readContent).toBe(newContent)+ }+ )++ volumeTest(+ 'should throw VolumeError when writing to existing file with force: false',+ async ({ volume }) => {+ const path = '/no-overwrite.txt'+ const initialContent = 'Initial content'+ const newContent = 'New content'++ await volume.writeFile(path, initialContent)+ await expect(+ volume.writeFile(path, newContent, { force: false })+ ).rejects.toThrow(VolumeError)+ }+ )++ volumeTest(+ 'should write file with metadata (uid, gid, mode)',+ async ({ volume }) => {+ const path = '/metadata.txt'+ const content = 'File with metadata'++ const stat = await volume.writeFile(path, content, {+ uid: 1000,+ gid: 1000,+ mode: 0o644,+ })++ expect(stat.type).toBe(VolumeFileType.FILE)+ expect(stat.uid).toBe(1000)+ expect(stat.gid).toBe(1000)+ expect(stat.mode).toBe(0o644)+ }+ )++ volumeTest('should write file in nested directory', async ({ volume }) => {+ const dirPath = '/nested/deep/path'+ const filePath = `${dirPath}/file.txt`+ const content = 'Nested file content'++ await volume.makeDir(dirPath, { force: true })+ await volume.writeFile(filePath, content)+ const readContent = await volume.readFile(filePath, { format: 'text' })++ expect(readContent).toBe(content)+ })+ })++ describe('getInfo', () => {+ volumeTest('should get info for a file', async ({ volume }) => {+ const path = '/info-file.txt'+ const content = 'File for info test'++ await volume.writeFile(path, content)+ const info = await volume.getInfo(path)++ expect(info.name).toBe('info-file.txt')+ expect(info.type).toBe(VolumeFileType.FILE)+ expect(info.path).toBe(path)+ expect(info.atime).toBeInstanceOf(Date)+ expect(info.mtime).toBeInstanceOf(Date)+ expect(info.ctime).toBeInstanceOf(Date)+ })++ volumeTest('should get info for a directory', async ({ volume }) => {+ const path = '/info-dir'++ await volume.makeDir(path)+ const info = await volume.getInfo(path)++ expect(info.name).toBe('info-dir')+ expect(info.type).toBe(VolumeFileType.DIRECTORY)+ expect(info.path).toBe(path)+ })++ volumeTest(+ 'should return false from exists for non-existent file',+ async ({ volume }) => {+ expect(await volume.exists('/non-existent.txt')).toBe(false)+ }+ )+ })++ describe('updateMetadata', () => {+ volumeTest('should update file metadata', async ({ volume }) => {+ const path = '/metadata-update.txt'+ await volume.writeFile(path, 'Content')++ const updated = await volume.updateMetadata(path, {+ uid: 1001,+ gid: 1001,+ mode: 0o755,+ })++ expect(updated.path).toBe(path)+ expect(updated.type).toBe(VolumeFileType.FILE)+ expect(updated.uid).toBe(1001)+ expect(updated.gid).toBe(1001)+ expect(updated.mode).toBe(0o755)+ })++ volumeTest(+ 'should throw NotFoundError when updating non-existent file',+ async ({ volume }) => {+ await expect(+ volume.updateMetadata('/non-existent.txt', { mode: 0o644 })+ ).rejects.toThrow(NotFoundError)+ }+ )+ })++ describe('makeDir', () => {+ volumeTest('should create a directory', async ({ volume }) => {+ const path = '/test-dir'++ const stat = await volume.makeDir(path)++ expect(stat.type).toBe(VolumeFileType.DIRECTORY)+ expect(stat.path).toBe(path)+ expect(stat.atime).toBeInstanceOf(Date)+ expect(stat.mtime).toBeInstanceOf(Date)+ expect(stat.ctime).toBeInstanceOf(Date)+ })++ volumeTest(+ 'should create nested directories with force option',+ async ({ volume }) => {+ const path = '/nested/deep/directory'++ const stat = await volume.makeDir(path, { force: true })++ expect(stat.type).toBe(VolumeFileType.DIRECTORY)+ }+ )++ volumeTest(+ 'should throw VolumeError when creating existing directory with force: false',+ async ({ volume }) => {+ const path = '/existing-dir'++ await volume.makeDir(path)+ await expect(volume.makeDir(path, { force: false })).rejects.toThrow(+ VolumeError+ )+ }+ )++ volumeTest('should create directory with metadata', async ({ volume }) => {+ const path = '/dir-with-metadata'++ const stat = await volume.makeDir(path, {+ uid: 1000,+ gid: 1000,+ mode: 0o755,+ })++ expect(stat.type).toBe(VolumeFileType.DIRECTORY)+ expect(stat.uid).toBe(1000)+ expect(stat.gid).toBe(1000)+ expect(stat.mode & 0o777).toBe(0o755)+ })+ })++ describe('list', () => {+ volumeTest('should list directory contents', async ({ volume }) => {+ await volume.writeFile('/file1.txt', 'Content 1')+ await volume.writeFile('/file2.txt', 'Content 2')+ await volume.makeDir('/dir1')++ const entries = await volume.list('/')++ expect(entries.length).toBeGreaterThanOrEqual(3)+ const fileNames = entries.map((e) => e.name).sort()+ expect(fileNames).toContain('file1.txt')+ expect(fileNames).toContain('file2.txt')+ expect(fileNames).toContain('dir1')+ })++ volumeTest('should list nested directory contents', async ({ volume }) => {+ await volume.makeDir('/nested', { force: true })+ await volume.writeFile('/nested/file.txt', 'Content')++ const entries = await volume.list('/nested')++ expect(entries.length).toBeGreaterThanOrEqual(1)+ expect(entries.some((e) => e.name === 'file.txt')).toBe(true)+ })++ volumeTest.skip('should list with depth option', async ({ volume }) => {+ await volume.makeDir('/deep/nested/structure', { force: true })+ await volume.writeFile('/deep/nested/structure/file.txt', 'Content')++ const entries = await volume.list('/deep', { depth: 2 })++ expect(entries.length).toBeGreaterThan(0)+ })++ volumeTest(+ 'should throw NotFoundError for non-existent directory',+ async ({ volume }) => {+ await expect(volume.list('/non-existent')).rejects.toThrow(+ NotFoundError+ )+ }+ )+ })++ describe('remove', () => {+ volumeTest('should remove a file', async ({ volume }) => {+ const path = '/to-remove.txt'+ await volume.writeFile(path, 'Content')++ await volume.remove(path)++ expect(await volume.exists(path)).toBe(false)+ })++ volumeTest('should remove a directory', async ({ volume }) => {+ const path = '/to-remove-dir'+ await volume.makeDir(path)++ await volume.remove(path)++ expect(await volume.exists(path)).toBe(false)+ })++ volumeTest('should remove a directory recursively', async ({ volume }) => {+ const dirPath = '/recursive-dir'+ await volume.makeDir(`${dirPath}/nested`, { force: true })+ await volume.writeFile(`${dirPath}/nested/file.txt`, 'Content')++ await volume.remove(dirPath)++ expect(await volume.exists(dirPath)).toBe(false)+ })++ volumeTest(+ 'should throw NotFoundError when removing non-existent file',+ async ({ volume }) => {+ await expect(volume.remove('/non-existent.txt')).rejects.toThrow(+ NotFoundError+ )+ }+ )+ })++ describe('file operations lifecycle', () => {+ volumeTest(+ 'should handle directory with multiple files',+ async ({ volume }) => {+ const dirPath = '/multi-file-dir'+ await volume.makeDir(dirPath)++ const files = ['file1.txt', 'file2.txt', 'file3.txt']+ for (const fileName of files) {+ await volume.writeFile(+ `${dirPath}/${fileName}`,+ `Content of ${fileName}`+ )+ }++ const entries = await volume.list(dirPath)+ expect(entries.length).toBeGreaterThanOrEqual(files.length)++ for (const fileName of files) {+ const content = await volume.readFile(`${dirPath}/${fileName}`, {+ format: 'text',+ })+ expect(content).toBe(`Content of ${fileName}`)+ }++ await volume.remove(dirPath)+ expect(await volume.exists(dirPath)).toBe(false)+ }+ )+ })+})diff --git a/packages/js-sdk/tests/volume/volume.test.ts b/packages/js-sdk/tests/volume/volume.test.tsnew file mode 100644index 000000000..87a1c0b92--- /dev/null+++ b/packages/js-sdk/tests/volume/volume.test.ts@@ -0,0 +1,149 @@+import { describe, it, expect, afterAll, afterEach, beforeAll } from 'vitest'+import { http, HttpResponse } from 'msw'+import { setupServer } from 'msw/node'+import { randomUUID } from 'node:crypto'++import { Volume, NotFoundError } from '../../src'+import { apiUrl } from '../setup'++// In-memory store for mock volumes+const volumes = new Map<+ string,+ { volumeID: string; name: string; token: string }+>()++const restHandlers = [+ // POST /volumes - create (returns VolumeAndToken)+ http.post(apiUrl('/volumes'), async ({ request }) => {+ const { name } = (await request.clone().json()) as { name: string }+ const volumeID = randomUUID()+ const token = `vol-token-${randomUUID()}`+ volumes.set(volumeID, { volumeID, name, token })+ return HttpResponse.json({ volumeID, name, token }, { status: 201 })+ }),++ // GET /volumes - list (returns Volume[] without tokens)+ http.get(apiUrl('/volumes'), () => {+ const list = Array.from(volumes.values()).map(({ volumeID, name }) => ({+ volumeID,+ name,+ }))+ return HttpResponse.json(list)+ }),++ // GET /volumes/:volumeID - get info (returns VolumeAndToken with token)+ http.get<{ volumeID: string }>(apiUrl('/volumes/:volumeID'), ({ params }) => {+ const vol = volumes.get(params.volumeID)+ if (!vol) {+ return HttpResponse.json(+ { code: 404, message: 'Not found' },+ { status: 404 }+ )+ }+ return HttpResponse.json(vol)+ }),++ // DELETE /volumes/:volumeID - destroy+ http.delete<{ volumeID: string }>(+ apiUrl('/volumes/:volumeID'),+ ({ params }) => {+ const existed = volumes.delete(params.volumeID)+ if (!existed) {+ return HttpResponse.json(+ { code: 404, message: 'Not found' },+ { status: 404 }+ )+ }+ return new HttpResponse(null, { status: 204 })+ }+ ),+]++const server = setupServer(...restHandlers)++beforeAll(() => server.listen({ onUnhandledRequest: 'error' }))+afterAll(() => server.close())+afterEach(() => {+ server.resetHandlers()+ volumes.clear()+})++describe('Volume CRUD', () => {+ it('should create a volume', async () => {+ const vol = await Volume.create('test-volume')++ expect(vol).toBeDefined()+ expect(vol.volumeId).toBeDefined()+ expect(vol.name).toBe('test-volume')+ expect(vol.token).toBeDefined()+ expect(vol.token).not.toBe('undefined')+ })++ it('should get volume info', async () => {+ const created = await Volume.create('info-volume')+ const info = await Volume.getInfo(created.volumeId)++ expect(info.volumeId).toBe(created.volumeId)+ expect(info.name).toBe('info-volume')+ })++ it('should list volumes', async () => {+ await Volume.create('vol-a')+ await Volume.create('vol-b')++ const list = await Volume.list()++ expect(list).toHaveLength(2)+ expect(list.map((v) => v.name).sort()).toEqual(['vol-a', 'vol-b'])+ })++ it('should return empty list when no volumes exist', async () => {+ const list = await Volume.list()+ expect(list).toHaveLength(0)+ })++ it('should destroy a volume', async () => {+ const vol = await Volume.create('to-delete')+ const result = await Volume.destroy(vol.volumeId)++ expect(result).toBe(true)++ // Verify it's gone+ const list = await Volume.list()+ expect(list).toHaveLength(0)+ })++ it('should return false when destroying a non-existent volume', async () => {+ const result = await Volume.destroy('non-existent-id')+ expect(result).toBe(false)+ })++ it('should throw NotFoundError when getting info of non-existent volume', async () => {+ await expect(Volume.getInfo('non-existent-id')).rejects.toThrow(+ NotFoundError+ )+ })++ it('should handle full lifecycle: create, get, list, destroy', async () => {+ // Create+ const vol = await Volume.create('lifecycle-vol')+ expect(vol.name).toBe('lifecycle-vol')++ // Get info+ const info = await Volume.getInfo(vol.volumeId)+ expect(info.name).toBe('lifecycle-vol')++ // List - should contain the volume+ const list = await Volume.list()+ expect(list).toHaveLength(1)+ expect(list[0].volumeId).toBe(vol.volumeId)++ // Destroy+ const destroyed = await Volume.destroy(vol.volumeId)+ expect(destroyed).toBe(true)++ // List again - should be empty+ const listAfter = await Volume.list()+ expect(listAfter).toHaveLength(0)+ })+})diff --git a/packages/python-sdk/Makefile b/packages/python-sdk/Makefileindex 0ca7bfc5d..572c0fbd9 100644--- a/packages/python-sdk/Makefile+++ b/packages/python-sdk/Makefile@@ -1,13 +1,20 @@ROOT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/../..)generate-api:- python $(ROOT_DIR)/spec/remove_extra_tags.py sandboxes snapshots templates tags+ python $(ROOT_DIR)/spec/remove_extra_tags.py sandboxes snapshots templates tags volumesopenapi-python-client generate --output-path $(ROOT_DIR)/packages/python-sdk/e2b/api/api --overwrite --path $(ROOT_DIR)/spec/openapi_generated.ymlrm -rf e2b/api/clientmv e2b/api/api/e2b_api_client e2b/api/clientrm -rf e2b/api/apiruff format .+generate-volume-api:+ openapi-python-client generate --output-path $(ROOT_DIR)/packages/python-sdk/e2b/volume/api --overwrite --path $(ROOT_DIR)/spec/openapi-volumecontent.yml+ rm -rf e2b/volume/client+ mv e2b/volume/api/e2b_api_client e2b/volume/client+ rm -rf e2b/volume/api+ ruff format .+generate-envd:if [ ! -f "/go/bin/protoc-gen-connect-python" ]; then \$(MAKE) -C $(ROOT_DIR)/packages/connect-python build; \@@ -18,7 +25,7 @@ generate-envd:ruff format .-generate: generate-api generate-envd generate-mcp+generate: generate-api generate-envd generate-mcp generate-volume-apiinit:pip install openapi-python-client datamodel-code-generatordiff --git a/packages/python-sdk/e2b/__init__.py b/packages/python-sdk/e2b/__init__.pyindex b8711a5ca..e43f621e4 100644--- a/packages/python-sdk/e2b/__init__.py+++ b/packages/python-sdk/e2b/__init__.py@@ -30,9 +30,12 @@ from .api import (client,)from .connection_config import (+ ApiParams,ConnectionConfig,ProxyTypes,+ Username,)+from .volume.connection_config import VolumeApiParams, VolumeConnectionConfigfrom .exceptions import (AuthenticationException,FileNotFoundException,@@ -43,10 +46,12 @@ from .exceptions import (InvalidArgumentException,NotEnoughSpaceException,NotFoundException,+ RateLimitException,SandboxException,SandboxNotFoundException,TemplateException,TimeoutException,+ VolumeException,)from .sandbox.commands.command_handle import (CommandExitException,@@ -63,7 +68,9 @@ from .sandbox.filesystem.watch_handle import (FilesystemEventType,)from .sandbox._git import GitBranches, GitFileStatus, GitStatus+from .sandbox_sync.git import Gitfrom .sandbox.network import ALL_TRAFFIC+from .sandbox.signature import get_signaturefrom .sandbox.sandbox_api import (GitHubMcpServer,GitHubMcpServerConfig,@@ -114,13 +121,26 @@ from .template.types import (from .template_async.main import AsyncTemplatefrom .template_sync.main import Template+from .volume.volume_sync import Volume+from .volume.volume_async import AsyncVolume+from .volume.types import (+ VolumeInfo,+ VolumeAndToken,+ VolumeEntryStat,+ VolumeFileType,+)+__all__ = [# API"ApiClient","client",# Connection config"ConnectionConfig",+ "VolumeConnectionConfig","ProxyTypes",+ "ApiParams",+ "VolumeApiParams",+ "Username",# Exceptions"SandboxException","TimeoutException",@@ -135,6 +155,8 @@ __all__ = ["TemplateException","BuildException","FileUploadException",+ "RateLimitException",+ "VolumeException",# Sandbox API"SandboxInfo","SandboxInfoLifecycle",@@ -167,6 +189,8 @@ __all__ = ["SnapshotInfo","SnapshotPaginator","AsyncSnapshotPaginator",+ # Signature+ "get_signature",# Sync sandbox"Sandbox","SandboxPaginator",@@ -205,4 +229,13 @@ __all__ = ["McpServer","GitHubMcpServer","GitHubMcpServerConfig",+ # Git+ "Git",+ # Volume+ "Volume",+ "AsyncVolume",+ "VolumeInfo",+ "VolumeAndToken",+ "VolumeEntryStat",+ "VolumeFileType",]diff --git a/packages/python-sdk/e2b/api/__init__.py b/packages/python-sdk/e2b/api/__init__.pyindex 7f7cb6ae0..d3dac5bb0 100644--- a/packages/python-sdk/e2b/api/__init__.py+++ b/packages/python-sdk/e2b/api/__init__.py@@ -3,7 +3,7 @@ import loggingimport osfrom dataclasses import dataclassfrom types import TracebackType-from typing import Optional, Union+from typing import Optional, Protocol, Unionfrom httpx import AsyncBaseTransport, BaseTransport, Limits@@ -36,7 +36,7 @@ class SandboxCreateResponse:def handle_api_exception(- e: Response,+ e: "SupportsApiErrorResponse",default_exception_class: type[Exception] = SandboxException,stack_trace: Optional[TracebackType] = None,):@@ -66,6 +66,14 @@ def handle_api_exception()+class SupportsApiErrorResponse(Protocol):+ @property+ def status_code(self) -> int: ...++ @property+ def content(self) -> Union[str, bytes]: ...++class ApiClient(AuthenticatedClient):"""The client for interacting with the E2B API.diff --git a/packages/python-sdk/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py b/packages/python-sdk/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.pyindex 37d2a3b51..6a19076b7 100644--- a/packages/python-sdk/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py+++ b/packages/python-sdk/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py@@ -6,6 +6,7 @@ import httpxfrom ... import errorsfrom ...client import AuthenticatedClient, Clientfrom ...models.error import Error+from ...models.log_level import LogLevelfrom ...models.logs_direction import LogsDirectionfrom ...models.sandbox_logs_v2_response import SandboxLogsV2Responsefrom ...types import UNSET, Response, Unset@@ -17,6 +18,8 @@ def _get_kwargs(cursor: Union[Unset, int] = UNSET,limit: Union[Unset, int] = 1000,direction: Union[Unset, LogsDirection] = UNSET,+ level: Union[Unset, LogLevel] = UNSET,+ search: Union[Unset, str] = UNSET,) -> dict[str, Any]:params: dict[str, Any] = {}@@ -30,6 +33,14 @@ def _get_kwargs(params["direction"] = json_direction+ json_level: Union[Unset, str] = UNSET+ if not isinstance(level, Unset):+ json_level = level.value++ params["level"] = json_level++ params["search"] = search+params = {k: v for k, v in params.items() if v is not UNSET and v is not None}_kwargs: dict[str, Any] = {@@ -84,6 +95,8 @@ def sync_detailed(cursor: Union[Unset, int] = UNSET,limit: Union[Unset, int] = 1000,direction: Union[Unset, LogsDirection] = UNSET,+ level: Union[Unset, LogLevel] = UNSET,+ search: Union[Unset, str] = UNSET,) -> Response[Union[Error, SandboxLogsV2Response]]:"""Get sandbox logs@@ -92,6 +105,8 @@ def sync_detailed(cursor (Union[Unset, int]):limit (Union[Unset, int]): Default: 1000.direction (Union[Unset, LogsDirection]): Direction of the logs that should be returned+ level (Union[Unset, LogLevel]): State of the sandbox+ search (Union[Unset, str]):Raises:errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.@@ -106,6 +121,8 @@ def sync_detailed(cursor=cursor,limit=limit,direction=direction,+ level=level,+ search=search,)response = client.get_httpx_client().request(@@ -122,6 +139,8 @@ def sync(cursor: Union[Unset, int] = UNSET,limit: Union[Unset, int] = 1000,direction: Union[Unset, LogsDirection] = UNSET,+ level: Union[Unset, LogLevel] = UNSET,+ search: Union[Unset, str] = UNSET,) -> Optional[Union[Error, SandboxLogsV2Response]]:"""Get sandbox logs@@ -130,6 +149,8 @@ def sync(cursor (Union[Unset, int]):limit (Union[Unset, int]): Default: 1000.direction (Union[Unset, LogsDirection]): Direction of the logs that should be returned+ level (Union[Unset, LogLevel]): State of the sandbox+ search (Union[Unset, str]):Raises:errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.@@ -145,6 +166,8 @@ def sync(cursor=cursor,limit=limit,direction=direction,+ level=level,+ search=search,).parsed@@ -155,6 +178,8 @@ async def asyncio_detailed(cursor: Union[Unset, int] = UNSET,limit: Union[Unset, int] = 1000,direction: Union[Unset, LogsDirection] = UNSET,+ level: Union[Unset, LogLevel] = UNSET,+ search: Union[Unset, str] = UNSET,) -> Response[Union[Error, SandboxLogsV2Response]]:"""Get sandbox logs@@ -163,6 +188,8 @@ async def asyncio_detailed(cursor (Union[Unset, int]):limit (Union[Unset, int]): Default: 1000.direction (Union[Unset, LogsDirection]): Direction of the logs that should be returned+ level (Union[Unset, LogLevel]): State of the sandbox+ search (Union[Unset, str]):Raises:errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.@@ -177,6 +204,8 @@ async def asyncio_detailed(cursor=cursor,limit=limit,direction=direction,+ level=level,+ search=search,)response = await client.get_async_httpx_client().request(**kwargs)@@ -191,6 +220,8 @@ async def asyncio(cursor: Union[Unset, int] = UNSET,limit: Union[Unset, int] = 1000,direction: Union[Unset, LogsDirection] = UNSET,+ level: Union[Unset, LogLevel] = UNSET,+ search: Union[Unset, str] = UNSET,) -> Optional[Union[Error, SandboxLogsV2Response]]:"""Get sandbox logs@@ -199,6 +230,8 @@ async def asyncio(cursor (Union[Unset, int]):limit (Union[Unset, int]): Default: 1000.direction (Union[Unset, LogsDirection]): Direction of the logs that should be returned+ level (Union[Unset, LogLevel]): State of the sandbox+ search (Union[Unset, str]):Raises:errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.@@ -215,5 +248,7 @@ async def asyncio(cursor=cursor,limit=limit,direction=direction,+ level=level,+ search=search,)).parseddiff --git a/packages/python-sdk/e2b/api/client/api/volumes/__init__.py b/packages/python-sdk/e2b/api/client/api/volumes/__init__.pynew file mode 100644index 000000000..2d7c0b23d--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/volumes/__init__.py@@ -0,0 +1 @@+"""Contains endpoint functions for accessing the API"""diff --git a/packages/python-sdk/e2b/api/client/api/volumes/delete_volumes_volume_id.py b/packages/python-sdk/e2b/api/client/api/volumes/delete_volumes_volume_id.pynew file mode 100644index 000000000..d79ca75ad--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/volumes/delete_volumes_volume_id.py@@ -0,0 +1,161 @@+from http import HTTPStatus+from typing import Any, Optional, Union, cast++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...types import Response+++def _get_kwargs(+ volume_id: str,+) -> dict[str, Any]:+ _kwargs: dict[str, Any] = {+ "method": "delete",+ "url": f"/volumes/{volume_id}",+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Any, Error]]:+ if response.status_code == 204:+ response_204 = cast(Any, None)+ return response_204+ if response.status_code == 401:+ response_401 = Error.from_dict(response.json())++ return response_401+ if response.status_code == 404:+ response_404 = Error.from_dict(response.json())++ return response_404+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Any, Error]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Response[Union[Any, Error]]:+ """Delete a team volume++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Optional[Union[Any, Error]]:+ """Delete a team volume++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Response[Union[Any, Error]]:+ """Delete a team volume++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Optional[Union[Any, Error]]:+ """Delete a team volume++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/api/client/api/volumes/get_volumes.py b/packages/python-sdk/e2b/api/client/api/volumes/get_volumes.pynew file mode 100644index 000000000..2c794b5ce--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/volumes/get_volumes.py@@ -0,0 +1,140 @@+from http import HTTPStatus+from typing import Any, Optional, Union++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...models.volume import Volume+from ...types import Response+++def _get_kwargs() -> dict[str, Any]:+ _kwargs: dict[str, Any] = {+ "method": "get",+ "url": "/volumes",+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Error, list["Volume"]]]:+ if response.status_code == 200:+ response_200 = []+ _response_200 = response.json()+ for response_200_item_data in _response_200:+ response_200_item = Volume.from_dict(response_200_item_data)++ response_200.append(response_200_item)++ return response_200+ if response.status_code == 401:+ response_401 = Error.from_dict(response.json())++ return response_401+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Error, list["Volume"]]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ *,+ client: AuthenticatedClient,+) -> Response[Union[Error, list["Volume"]]]:+ """List all team volumes++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, list['Volume']]]+ """++ kwargs = _get_kwargs()++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ *,+ client: AuthenticatedClient,+) -> Optional[Union[Error, list["Volume"]]]:+ """List all team volumes++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, list['Volume']]+ """++ return sync_detailed(+ client=client,+ ).parsed+++async def asyncio_detailed(+ *,+ client: AuthenticatedClient,+) -> Response[Union[Error, list["Volume"]]]:+ """List all team volumes++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, list['Volume']]]+ """++ kwargs = _get_kwargs()++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ *,+ client: AuthenticatedClient,+) -> Optional[Union[Error, list["Volume"]]]:+ """List all team volumes++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, list['Volume']]+ """++ return (+ await asyncio_detailed(+ client=client,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/api/client/api/volumes/get_volumes_volume_id.py b/packages/python-sdk/e2b/api/client/api/volumes/get_volumes_volume_id.pynew file mode 100644index 000000000..7fc5ebf91--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/volumes/get_volumes_volume_id.py@@ -0,0 +1,163 @@+from http import HTTPStatus+from typing import Any, Optional, Union++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...models.volume_and_token import VolumeAndToken+from ...types import Response+++def _get_kwargs(+ volume_id: str,+) -> dict[str, Any]:+ _kwargs: dict[str, Any] = {+ "method": "get",+ "url": f"/volumes/{volume_id}",+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Error, VolumeAndToken]]:+ if response.status_code == 200:+ response_200 = VolumeAndToken.from_dict(response.json())++ return response_200+ if response.status_code == 401:+ response_401 = Error.from_dict(response.json())++ return response_401+ if response.status_code == 404:+ response_404 = Error.from_dict(response.json())++ return response_404+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Error, VolumeAndToken]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Response[Union[Error, VolumeAndToken]]:+ """Get team volume info++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, VolumeAndToken]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Optional[Union[Error, VolumeAndToken]]:+ """Get team volume info++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, VolumeAndToken]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Response[Union[Error, VolumeAndToken]]:+ """Get team volume info++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, VolumeAndToken]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: AuthenticatedClient,+) -> Optional[Union[Error, VolumeAndToken]]:+ """Get team volume info++ Args:+ volume_id (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, VolumeAndToken]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/api/client/api/volumes/post_volumes.py b/packages/python-sdk/e2b/api/client/api/volumes/post_volumes.pynew file mode 100644index 000000000..74e1c8f4d--- /dev/null+++ b/packages/python-sdk/e2b/api/client/api/volumes/post_volumes.py@@ -0,0 +1,172 @@+from http import HTTPStatus+from typing import Any, Optional, Union++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...models.new_volume import NewVolume+from ...models.volume_and_token import VolumeAndToken+from ...types import Response+++def _get_kwargs(+ *,+ body: NewVolume,+) -> dict[str, Any]:+ headers: dict[str, Any] = {}++ _kwargs: dict[str, Any] = {+ "method": "post",+ "url": "/volumes",+ }++ _kwargs["json"] = body.to_dict()++ headers["Content-Type"] = "application/json"++ _kwargs["headers"] = headers+ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Error, VolumeAndToken]]:+ if response.status_code == 201:+ response_201 = VolumeAndToken.from_dict(response.json())++ return response_201+ if response.status_code == 400:+ response_400 = Error.from_dict(response.json())++ return response_400+ if response.status_code == 401:+ response_401 = Error.from_dict(response.json())++ return response_401+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Error, VolumeAndToken]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ *,+ client: AuthenticatedClient,+ body: NewVolume,+) -> Response[Union[Error, VolumeAndToken]]:+ """Create a new team volume++ Args:+ body (NewVolume):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, VolumeAndToken]]+ """++ kwargs = _get_kwargs(+ body=body,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ *,+ client: AuthenticatedClient,+ body: NewVolume,+) -> Optional[Union[Error, VolumeAndToken]]:+ """Create a new team volume++ Args:+ body (NewVolume):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, VolumeAndToken]+ """++ return sync_detailed(+ client=client,+ body=body,+ ).parsed+++async def asyncio_detailed(+ *,+ client: AuthenticatedClient,+ body: NewVolume,+) -> Response[Union[Error, VolumeAndToken]]:+ """Create a new team volume++ Args:+ body (NewVolume):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, VolumeAndToken]]+ """++ kwargs = _get_kwargs(+ body=body,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ *,+ client: AuthenticatedClient,+ body: NewVolume,+) -> Optional[Union[Error, VolumeAndToken]]:+ """Create a new team volume++ Args:+ body (NewVolume):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, VolumeAndToken]+ """++ return (+ await asyncio_detailed(+ client=client,+ body=body,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/api/client/models/__init__.py b/packages/python-sdk/e2b/api/client/models/__init__.pyindex dc1cc3344..fb263334f 100644--- a/packages/python-sdk/e2b/api/client/models/__init__.py+++ b/packages/python-sdk/e2b/api/client/models/__init__.py@@ -1,5 +1,6 @@"""Contains all the data models used in inputs/outputs"""+from .admin_build_cancel_result import AdminBuildCancelResultfrom .admin_sandbox_kill_result import AdminSandboxKillResultfrom .assign_template_tags_request import AssignTemplateTagsRequestfrom .assigned_template_tags import AssignedTemplateTags@@ -82,8 +83,11 @@ from .template_update_response import TemplateUpdateResponsefrom .template_with_builds import TemplateWithBuildsfrom .update_team_api_key import UpdateTeamAPIKeyfrom .volume import Volume+from .volume_and_token import VolumeAndToken+from .volume_token import VolumeToken__all__ = (+ "AdminBuildCancelResult","AdminSandboxKillResult","AssignedTemplateTags","AssignTemplateTagsRequest",@@ -162,4 +166,6 @@ __all__ = ("TemplateWithBuilds","UpdateTeamAPIKey","Volume",+ "VolumeAndToken",+ "VolumeToken",)diff --git a/packages/python-sdk/e2b/api/client/models/admin_build_cancel_result.py b/packages/python-sdk/e2b/api/client/models/admin_build_cancel_result.pynew file mode 100644index 000000000..ad7429415--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/admin_build_cancel_result.py@@ -0,0 +1,67 @@+from collections.abc import Mapping+from typing import Any, TypeVar++from attrs import define as _attrs_define+from attrs import field as _attrs_field++T = TypeVar("T", bound="AdminBuildCancelResult")+++@_attrs_define+class AdminBuildCancelResult:+ """+ Attributes:+ cancelled_count (int): Number of builds successfully cancelled+ failed_count (int): Number of builds that failed to cancel+ """++ cancelled_count: int+ failed_count: int+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)++ def to_dict(self) -> dict[str, Any]:+ cancelled_count = self.cancelled_count++ failed_count = self.failed_count++ field_dict: dict[str, Any] = {}+ field_dict.update(self.additional_properties)+ field_dict.update(+ {+ "cancelledCount": cancelled_count,+ "failedCount": failed_count,+ }+ )++ return field_dict++ @classmethod+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:+ d = dict(src_dict)+ cancelled_count = d.pop("cancelledCount")++ failed_count = d.pop("failedCount")++ admin_build_cancel_result = cls(+ cancelled_count=cancelled_count,+ failed_count=failed_count,+ )++ admin_build_cancel_result.additional_properties = d+ return admin_build_cancel_result++ @property+ def additional_keys(self) -> list[str]:+ return list(self.additional_properties.keys())++ def __getitem__(self, key: str) -> Any:+ return self.additional_properties[key]++ def __setitem__(self, key: str, value: Any) -> None:+ self.additional_properties[key] = value++ def __delitem__(self, key: str) -> None:+ del self.additional_properties[key]++ def __contains__(self, key: str) -> bool:+ return key in self.additional_propertiesdiff --git a/packages/python-sdk/e2b/api/client/models/node.py b/packages/python-sdk/e2b/api/client/models/node.pyindex af839117c..fc60b7fc2 100644--- a/packages/python-sdk/e2b/api/client/models/node.py+++ b/packages/python-sdk/e2b/api/client/models/node.py@@ -25,7 +25,6 @@ class Node:id (str): Identifier of the nodemachine_info (MachineInfo):metrics (NodeMetrics): Node metrics- node_id (str): Identifier of the nomad nodesandbox_count (int): Number of sandboxes running on the nodesandbox_starting_count (int): Number of starting Sandboxesservice_instance_id (str): Service instance identifier of the node@@ -40,7 +39,6 @@ class Node:id: strmachine_info: "MachineInfo"metrics: "NodeMetrics"- node_id: strsandbox_count: intsandbox_starting_count: intservice_instance_id: str@@ -63,8 +61,6 @@ class Node:metrics = self.metrics.to_dict()- node_id = self.node_id-sandbox_count = self.sandbox_countsandbox_starting_count = self.sandbox_starting_count@@ -86,7 +82,6 @@ class Node:"id": id,"machineInfo": machine_info,"metrics": metrics,- "nodeID": node_id,"sandboxCount": sandbox_count,"sandboxStartingCount": sandbox_starting_count,"serviceInstanceID": service_instance_id,@@ -117,8 +112,6 @@ class Node:metrics = NodeMetrics.from_dict(d.pop("metrics"))- node_id = d.pop("nodeID")-sandbox_count = d.pop("sandboxCount")sandbox_starting_count = d.pop("sandboxStartingCount")@@ -137,7 +130,6 @@ class Node:id=id,machine_info=machine_info,metrics=metrics,- node_id=node_id,sandbox_count=sandbox_count,sandbox_starting_count=sandbox_starting_count,service_instance_id=service_instance_id,diff --git a/packages/python-sdk/e2b/api/client/models/node_detail.py b/packages/python-sdk/e2b/api/client/models/node_detail.pyindex 41b32a09f..03c736280 100644--- a/packages/python-sdk/e2b/api/client/models/node_detail.py+++ b/packages/python-sdk/e2b/api/client/models/node_detail.py@@ -7,7 +7,6 @@ from attrs import field as _attrs_fieldfrom ..models.node_status import NodeStatusif TYPE_CHECKING:- from ..models.listed_sandbox import ListedSandboxfrom ..models.machine_info import MachineInfofrom ..models.node_metrics import NodeMetrics@@ -27,8 +26,7 @@ class NodeDetail:id (str): Identifier of the nodemachine_info (MachineInfo):metrics (NodeMetrics): Node metrics- node_id (str): Identifier of the nomad node- sandboxes (list['ListedSandbox']): List of sandboxes running on the node+ sandbox_count (int): Number of sandboxes running on the nodeservice_instance_id (str): Service instance identifier of the nodestatus (NodeStatus): Status of the nodeversion (str): Version of the orchestrator@@ -42,8 +40,7 @@ class NodeDetail:id: strmachine_info: "MachineInfo"metrics: "NodeMetrics"- node_id: str- sandboxes: list["ListedSandbox"]+ sandbox_count: intservice_instance_id: strstatus: NodeStatusversion: str@@ -66,12 +63,7 @@ class NodeDetail:metrics = self.metrics.to_dict()- node_id = self.node_id-- sandboxes = []- for sandboxes_item_data in self.sandboxes:- sandboxes_item = sandboxes_item_data.to_dict()- sandboxes.append(sandboxes_item)+ sandbox_count = self.sandbox_countservice_instance_id = self.service_instance_id@@ -91,8 +83,7 @@ class NodeDetail:"id": id,"machineInfo": machine_info,"metrics": metrics,- "nodeID": node_id,- "sandboxes": sandboxes,+ "sandboxCount": sandbox_count,"serviceInstanceID": service_instance_id,"status": status,"version": version,@@ -103,7 +94,6 @@ class NodeDetail:@classmethoddef from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:- from ..models.listed_sandbox import ListedSandboxfrom ..models.machine_info import MachineInfofrom ..models.node_metrics import NodeMetrics@@ -124,14 +114,7 @@ class NodeDetail:metrics = NodeMetrics.from_dict(d.pop("metrics"))- node_id = d.pop("nodeID")-- sandboxes = []- _sandboxes = d.pop("sandboxes")- for sandboxes_item_data in _sandboxes:- sandboxes_item = ListedSandbox.from_dict(sandboxes_item_data)-- sandboxes.append(sandboxes_item)+ sandbox_count = d.pop("sandboxCount")service_instance_id = d.pop("serviceInstanceID")@@ -148,8 +131,7 @@ class NodeDetail:id=id,machine_info=machine_info,metrics=metrics,- node_id=node_id,- sandboxes=sandboxes,+ sandbox_count=sandbox_count,service_instance_id=service_instance_id,status=status,version=version,diff --git a/packages/python-sdk/e2b/api/client/models/snapshot_info.py b/packages/python-sdk/e2b/api/client/models/snapshot_info.pyindex 9cd5250dc..82b47269d 100644--- a/packages/python-sdk/e2b/api/client/models/snapshot_info.py+++ b/packages/python-sdk/e2b/api/client/models/snapshot_info.py@@ -13,7 +13,9 @@ class SnapshotInfo:Attributes:names (list[str]): Full names of the snapshot template including team namespace and tag (e.g. team-slug/my-snapshot:v2)- snapshot_id (str): Identifier of the snapshot template+ snapshot_id (str): Identifier of the snapshot template including the tag. Uses namespace/alias when a name was+ provided (e.g. team-slug/my-snapshot:default), otherwise falls back to the raw template ID (e.g.+ abc123:default)."""names: list[str]diff --git a/packages/python-sdk/e2b/api/client/models/volume_and_token.py b/packages/python-sdk/e2b/api/client/models/volume_and_token.pynew file mode 100644index 000000000..5f57d4630--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/volume_and_token.py@@ -0,0 +1,75 @@+from collections.abc import Mapping+from typing import Any, TypeVar++from attrs import define as _attrs_define+from attrs import field as _attrs_field++T = TypeVar("T", bound="VolumeAndToken")+++@_attrs_define+class VolumeAndToken:+ """+ Attributes:+ name (str): Name of the volume+ token (str): Auth token to use for interacting with volume content+ volume_id (str): ID of the volume+ """++ name: str+ token: str+ volume_id: str+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)++ def to_dict(self) -> dict[str, Any]:+ name = self.name++ token = self.token++ volume_id = self.volume_id++ field_dict: dict[str, Any] = {}+ field_dict.update(self.additional_properties)+ field_dict.update(+ {+ "name": name,+ "token": token,+ "volumeID": volume_id,+ }+ )++ return field_dict++ @classmethod+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:+ d = dict(src_dict)+ name = d.pop("name")++ token = d.pop("token")++ volume_id = d.pop("volumeID")++ volume_and_token = cls(+ name=name,+ token=token,+ volume_id=volume_id,+ )++ volume_and_token.additional_properties = d+ return volume_and_token++ @property+ def additional_keys(self) -> list[str]:+ return list(self.additional_properties.keys())++ def __getitem__(self, key: str) -> Any:+ return self.additional_properties[key]++ def __setitem__(self, key: str, value: Any) -> None:+ self.additional_properties[key] = value++ def __delitem__(self, key: str) -> None:+ del self.additional_properties[key]++ def __contains__(self, key: str) -> bool:+ return key in self.additional_propertiesdiff --git a/packages/python-sdk/e2b/api/client/models/volume_token.py b/packages/python-sdk/e2b/api/client/models/volume_token.pynew file mode 100644index 000000000..f6f4cec81--- /dev/null+++ b/packages/python-sdk/e2b/api/client/models/volume_token.py@@ -0,0 +1,59 @@+from collections.abc import Mapping+from typing import Any, TypeVar++from attrs import define as _attrs_define+from attrs import field as _attrs_field++T = TypeVar("T", bound="VolumeToken")+++@_attrs_define+class VolumeToken:+ """+ Attributes:+ token (str):+ """++ token: str+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)++ def to_dict(self) -> dict[str, Any]:+ token = self.token++ field_dict: dict[str, Any] = {}+ field_dict.update(self.additional_properties)+ field_dict.update(+ {+ "token": token,+ }+ )++ return field_dict++ @classmethod+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:+ d = dict(src_dict)+ token = d.pop("token")++ volume_token = cls(+ token=token,+ )++ volume_token.additional_properties = d+ return volume_token++ @property+ def additional_keys(self) -> list[str]:+ return list(self.additional_properties.keys())++ def __getitem__(self, key: str) -> Any:+ return self.additional_properties[key]++ def __setitem__(self, key: str, value: Any) -> None:+ self.additional_properties[key] = value++ def __delitem__(self, key: str) -> None:+ del self.additional_properties[key]++ def __contains__(self, key: str) -> bool:+ return key in self.additional_propertiesdiff --git a/packages/python-sdk/e2b/exceptions.py b/packages/python-sdk/e2b/exceptions.pyindex 6e9fe6530..14587a5c0 100644--- a/packages/python-sdk/e2b/exceptions.py+++ b/packages/python-sdk/e2b/exceptions.py@@ -129,3 +129,11 @@ class FileUploadException(BuildException):"""Raised when the file upload fails."""+++class VolumeException(Exception):+ """+ Base class for all volume errors.++ Raised when general volume errors occur.+ """diff --git a/packages/python-sdk/e2b/sandbox/sandbox_api.py b/packages/python-sdk/e2b/sandbox/sandbox_api.pyindex 3ff92ce94..96e4d4627 100644--- a/packages/python-sdk/e2b/sandbox/sandbox_api.py+++ b/packages/python-sdk/e2b/sandbox/sandbox_api.py@@ -1,4 +1,4 @@-from dataclasses import dataclass+from dataclasses import dataclass, fieldfrom datetime import datetimefrom typing import Any, Dict, List, Literal, Optional, TypedDict, Union, cast@@ -192,6 +192,8 @@ class SandboxInfo:"""Sandbox network configuration."""lifecycle: Optional[SandboxInfoLifecycle] = None"""Sandbox lifecycle configuration."""+ volume_mounts: List[Dict[str, str]] = field(default_factory=list)+ """Volume mounts for the sandbox."""@classmethoddef _from_sandbox_data(@@ -218,6 +220,11 @@ class SandboxInfo:cpu_count=sandbox.cpu_count,memory_mb=sandbox.memory_mb,envd_version=sandbox.envd_version,+ volume_mounts=[+ {"name": vm.name, "path": vm.path} for vm in sandbox.volume_mounts+ ]+ if not isinstance(sandbox.volume_mounts, Unset)+ else [],_envd_access_token=envd_access_token,allow_internet_access=allow_internet_access,network=network,diff --git a/packages/python-sdk/e2b/sandbox_async/main.py b/packages/python-sdk/e2b/sandbox_async/main.pyindex ea4885a3c..0fe175de3 100644--- a/packages/python-sdk/e2b/sandbox_async/main.py+++ b/packages/python-sdk/e2b/sandbox_async/main.py@@ -2,7 +2,7 @@ import datetimeimport jsonimport loggingimport uuid-from typing import Dict, List, Optional, overload+from typing import Dict, List, Optional, Union, overloadimport httpxfrom packaging.version import Version@@ -32,9 +32,13 @@ from e2b.sandbox_async.filesystem.filesystem import Filesystemfrom e2b.sandbox_async.git import Gitfrom e2b.sandbox_async.sandbox_api import SandboxApi, SandboxInfofrom e2b.sandbox_async.paginator import AsyncSnapshotPaginator+from e2b.volume.volume_async import AsyncVolume+from e2b.api.client.models import SandboxVolumeMount as SandboxVolumeMountAPIlogger = logging.getLogger(__name__)+SandboxAsyncVolumeMount = Dict[str, Union[AsyncVolume, str]]+class AsyncSandbox(SandboxApi):"""@@ -173,6 +177,7 @@ class AsyncSandbox(SandboxApi):mcp: Optional[McpServer] = None,network: Optional[SandboxNetworkOpts] = None,lifecycle: Optional[SandboxLifecycle] = None,+ volume_mounts: Optional[SandboxAsyncVolumeMount] = None,**opts: Unpack[ApiParams],) -> Self:"""@@ -189,6 +194,7 @@ class AsyncSandbox(SandboxApi)::param mcp: MCP server to enable in the sandbox:param network: Sandbox network configuration:param lifecycle: Sandbox lifecycle configuration — ``on_timeout``: ``"kill"`` (default) or ``"pause"``; ``auto_resume``: ``False`` (default) or ``True`` (only when ``on_timeout="pause"``). Example: ``{"on_timeout": "pause", "auto_resume": True}``+ :param volume_mounts: Dictionary mapping mount paths to AsyncVolume instances or volume names:return: A Sandbox instance for the new sandbox@@ -199,6 +205,16 @@ class AsyncSandbox(SandboxApi):elif not template:template = cls.default_template+ transformed_mounts: Optional[List[SandboxVolumeMountAPI]] = None+ if volume_mounts:+ transformed_mounts = [+ SandboxVolumeMountAPI(+ name=vol.name if isinstance(vol, AsyncVolume) else vol,+ path=path,+ )+ for path, vol in volume_mounts.items()+ ]+sandbox = await cls._create(template=template,timeout=timeout,@@ -210,6 +226,7 @@ class AsyncSandbox(SandboxApi):mcp=mcp,network=network,lifecycle=lifecycle,+ volume_mounts=transformed_mounts,**opts,)@@ -539,6 +556,7 @@ class AsyncSandbox(SandboxApi):secure: bool = True,allow_internet_access: bool = True,mcp: Optional[McpServer] = None,+ volume_mounts: Optional[SandboxAsyncVolumeMount] = None,**opts: Unpack[ApiParams],) -> Self:"""@@ -556,17 +574,27 @@ class AsyncSandbox(SandboxApi)::param secure: Envd is secured with access token and cannot be used without it, defaults to `True`.:param allow_internet_access: Allow sandbox to access the internet, defaults to `True`.:param mcp: MCP server to enable in the sandbox+ :param volume_mounts: Dictionary mapping mount paths to AsyncVolume instances or volume names:return: A Sandbox instance for the new sandboxUse this method instead of using the constructor to create a new sandbox."""-if not template and mcp is not None:template = cls.default_mcp_templateelif not template:template = cls.default_template+ transformed_mounts: Optional[List[SandboxVolumeMountAPI]] = None+ if volume_mounts:+ transformed_mounts = [+ SandboxVolumeMountAPI(+ name=vol.name if isinstance(vol, AsyncVolume) else vol,+ path=path,+ )+ for path, vol in volume_mounts.items()+ ]+sandbox = await cls._create(template=template,timeout=timeout,@@ -579,6 +607,7 @@ class AsyncSandbox(SandboxApi):lifecycle=({"on_timeout": "pause", "auto_resume": False} if auto_pause else None),+ volume_mounts=transformed_mounts,**opts,)@@ -863,6 +892,7 @@ class AsyncSandbox(SandboxApi):mcp: Optional[McpServer] = None,network: Optional[SandboxNetworkOpts] = None,lifecycle: Optional[SandboxLifecycle] = None,+ volume_mounts: Optional[list] = None,**opts: Unpack[ApiParams],) -> Self:extra_sandbox_headers = {}@@ -886,6 +916,7 @@ class AsyncSandbox(SandboxApi):mcp=mcp,network=network,lifecycle=lifecycle,+ volume_mounts=volume_mounts,**opts,)diff --git a/packages/python-sdk/e2b/sandbox_async/sandbox_api.py b/packages/python-sdk/e2b/sandbox_async/sandbox_api.pyindex 38f3cfd95..8946b038f 100644--- a/packages/python-sdk/e2b/sandbox_async/sandbox_api.py+++ b/packages/python-sdk/e2b/sandbox_async/sandbox_api.py@@ -25,6 +25,7 @@ from e2b.api.client.models import (Sandbox,SandboxAutoResumeConfig,SandboxNetworkConfig,+ SandboxVolumeMount as SandboxVolumeMountAPI,)from e2b.api.client.types import UNSETfrom e2b.api.client_async import get_api_client@@ -171,6 +172,7 @@ class SandboxApi(SandboxBase):mcp: Optional[McpServer] = None,network: Optional[SandboxNetworkOpts] = None,lifecycle: Optional[SandboxLifecycle] = None,+ volume_mounts: Optional[List[SandboxVolumeMountAPI]] = None,**opts: Unpack[ApiParams],) -> SandboxCreateResponse:config = ConnectionConfig(**opts)@@ -189,6 +191,7 @@ class SandboxApi(SandboxBase):secure=secure,allow_internet_access=allow_internet_access,network=SandboxNetworkConfig(**network) if network else UNSET,+ volume_mounts=volume_mounts if volume_mounts else UNSET,)if auto_resume_enabled is not None:body.auto_resume = SandboxAutoResumeConfig(enabled=auto_resume_enabled)diff --git a/packages/python-sdk/e2b/sandbox_sync/main.py b/packages/python-sdk/e2b/sandbox_sync/main.pyindex 0b88d8ae0..a52cb4c30 100644--- a/packages/python-sdk/e2b/sandbox_sync/main.py+++ b/packages/python-sdk/e2b/sandbox_sync/main.py@@ -2,7 +2,7 @@ import datetimeimport jsonimport loggingimport uuid-from typing import Dict, List, Optional, overload+from typing import Dict, List, Optional, Union, overloadimport httpxfrom packaging.version import Version@@ -32,9 +32,13 @@ from e2b.sandbox_sync.filesystem.filesystem import Filesystemfrom e2b.sandbox_sync.git import Gitfrom e2b.sandbox_sync.sandbox_api import SandboxApi, SandboxInfofrom e2b.sandbox_sync.paginator import SnapshotPaginator+from e2b.api.client.models import SandboxVolumeMount as SandboxVolumeMountAPI+from e2b.volume.volume_sync import Volumelogger = logging.getLogger(__name__)+SandboxVolumeMount = Dict[str, Union[Volume, str]]+class Sandbox(SandboxApi):"""@@ -171,6 +175,7 @@ class Sandbox(SandboxApi):mcp: Optional[McpServer] = None,network: Optional[SandboxNetworkOpts] = None,lifecycle: Optional[SandboxLifecycle] = None,+ volume_mounts: Optional[SandboxVolumeMount] = None,**opts: Unpack[ApiParams],) -> Self:"""@@ -187,6 +192,7 @@ class Sandbox(SandboxApi)::param mcp: MCP server to enable in the sandbox:param network: Sandbox network configuration:param lifecycle: Sandbox lifecycle configuration — ``on_timeout``: ``"kill"`` (default) or ``"pause"``; ``auto_resume``: ``False`` (default) or ``True`` (only when ``on_timeout="pause"``). Example: ``{"on_timeout": "pause", "auto_resume": True}``+ :param volume_mounts: Dictionary mapping mount paths to Volume instances or volume names:return: A Sandbox instance for the new sandbox@@ -197,6 +203,16 @@ class Sandbox(SandboxApi):elif not template:template = cls.default_template+ transformed_mounts = None+ if volume_mounts:+ transformed_mounts = [+ SandboxVolumeMountAPI(+ name=vol.name if isinstance(vol, Volume) else vol,+ path=path,+ )+ for path, vol in volume_mounts.items()+ ]+sandbox = cls._create(template=template,auto_pause=False,@@ -208,6 +224,7 @@ class Sandbox(SandboxApi):mcp=mcp,network=network,lifecycle=lifecycle,+ volume_mounts=transformed_mounts,**opts,)@@ -540,6 +557,7 @@ class Sandbox(SandboxApi):secure: bool = True,allow_internet_access: bool = True,mcp: Optional[McpServer] = None,+ volume_mounts: Optional[SandboxVolumeMount] = None,**opts: Unpack[ApiParams],) -> Self:"""@@ -557,17 +575,27 @@ class Sandbox(SandboxApi)::param secure: Envd is secured with access token and cannot be used without it, defaults to `True`.:param allow_internet_access: Allow sandbox to access the internet, defaults to `True`.:param mcp: MCP server to enable in the sandbox+ :param volume_mounts: Dictionary mapping mount paths to Volume instances or volume names:return: A Sandbox instance for the new sandboxUse this method instead of using the constructor to create a new sandbox."""-if not template and mcp is not None:template = cls.default_mcp_templateelif not template:template = cls.default_template+ transformed_mounts = None+ if volume_mounts:+ transformed_mounts = [+ SandboxVolumeMountAPI(+ name=vol.name if isinstance(vol, Volume) else vol,+ path=path,+ )+ for path, vol in volume_mounts.items()+ ]+sandbox = cls._create(template=template,auto_pause=auto_pause,@@ -580,6 +608,7 @@ class Sandbox(SandboxApi):lifecycle=({"on_timeout": "pause", "auto_resume": False} if auto_pause else None),+ volume_mounts=transformed_mounts,**opts,)@@ -858,6 +887,7 @@ class Sandbox(SandboxApi):mcp: Optional[McpServer] = None,network: Optional[SandboxNetworkOpts] = None,lifecycle: Optional[SandboxLifecycle] = None,+ volume_mounts: Optional[list] = None,**opts: Unpack[ApiParams],) -> Self:extra_sandbox_headers = {}@@ -881,6 +911,7 @@ class Sandbox(SandboxApi):mcp=mcp,network=network,lifecycle=lifecycle,+ volume_mounts=volume_mounts,**opts,)diff --git a/packages/python-sdk/e2b/sandbox_sync/sandbox_api.py b/packages/python-sdk/e2b/sandbox_sync/sandbox_api.pyindex 8b340cc62..4cad1247d 100644--- a/packages/python-sdk/e2b/sandbox_sync/sandbox_api.py+++ b/packages/python-sdk/e2b/sandbox_sync/sandbox_api.py@@ -25,6 +25,7 @@ from e2b.api.client.models import (Sandbox,SandboxAutoResumeConfig,SandboxNetworkConfig,+ SandboxVolumeMount as SandboxVolumeMountAPI,)from e2b.api.client.types import UNSETfrom e2b.connection_config import ApiParams, ConnectionConfig@@ -170,6 +171,7 @@ class SandboxApi(SandboxBase):mcp: Optional[McpServer] = None,network: Optional[SandboxNetworkOpts] = None,lifecycle: Optional[SandboxLifecycle] = None,+ volume_mounts: Optional[List[SandboxVolumeMountAPI]] = None,**opts: Unpack[ApiParams],) -> SandboxCreateResponse:config = ConnectionConfig(**opts)@@ -188,6 +190,7 @@ class SandboxApi(SandboxBase):secure=secure,allow_internet_access=allow_internet_access,network=SandboxNetworkConfig(**network) if network else UNSET,+ volume_mounts=volume_mounts if volume_mounts else UNSET,)if auto_resume_enabled is not None:body.auto_resume = SandboxAutoResumeConfig(enabled=auto_resume_enabled)diff --git a/packages/python-sdk/e2b/volume/client/__init__.py b/packages/python-sdk/e2b/volume/client/__init__.pynew file mode 100644index 000000000..10d90b023--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/__init__.py@@ -0,0 +1,8 @@+"""A client library for accessing E2B API"""++from .client import AuthenticatedClient, Client++__all__ = (+ "AuthenticatedClient",+ "Client",+)diff --git a/packages/python-sdk/e2b/volume/client/api/__init__.py b/packages/python-sdk/e2b/volume/client/api/__init__.pynew file mode 100644index 000000000..81f9fa241--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/__init__.py@@ -0,0 +1 @@+"""Contains methods for accessing the API"""diff --git a/packages/python-sdk/e2b/volume/client/api/volumes/__init__.py b/packages/python-sdk/e2b/volume/client/api/volumes/__init__.pynew file mode 100644index 000000000..2d7c0b23d--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/__init__.py@@ -0,0 +1 @@+"""Contains endpoint functions for accessing the API"""diff --git a/packages/python-sdk/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py b/packages/python-sdk/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.pynew file mode 100644index 000000000..7acae25ab--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py@@ -0,0 +1,174 @@+from http import HTTPStatus+from typing import Any, Optional, Union, cast++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...types import UNSET, Response+++def _get_kwargs(+ volume_id: str,+ *,+ path: str,+) -> dict[str, Any]:+ params: dict[str, Any] = {}++ params["path"] = path++ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}++ _kwargs: dict[str, Any] = {+ "method": "delete",+ "url": f"/volumecontent/{volume_id}/path",+ "params": params,+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Any, Error]]:+ if response.status_code == 204:+ response_204 = cast(Any, None)+ return response_204+ if response.status_code == 404:+ response_404 = Error.from_dict(response.json())++ return response_404+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Any, Error]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Response[Union[Any, Error]]:+ """Delete a path++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Optional[Union[Any, Error]]:+ """Delete a path++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Response[Union[Any, Error]]:+ """Delete a path++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Optional[Union[Any, Error]]:+ """Delete a path++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py b/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.pynew file mode 100644index 000000000..d3243beb9--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py@@ -0,0 +1,204 @@+from http import HTTPStatus+from typing import Any, Optional, Union, cast++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...models.volume_entry_stat import VolumeEntryStat+from ...types import UNSET, Response, Unset+++def _get_kwargs(+ volume_id: str,+ *,+ path: str,+ depth: Union[Unset, int] = 1,+) -> dict[str, Any]:+ params: dict[str, Any] = {}++ params["path"] = path++ params["depth"] = depth++ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}++ _kwargs: dict[str, Any] = {+ "method": "get",+ "url": f"/volumecontent/{volume_id}/dir",+ "params": params,+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Any, Error, list["VolumeEntryStat"]]]:+ if response.status_code == 200:+ response_200 = []+ _response_200 = response.json()+ for componentsschemas_volume_directory_listing_item_data in _response_200:+ componentsschemas_volume_directory_listing_item = VolumeEntryStat.from_dict(+ componentsschemas_volume_directory_listing_item_data+ )++ response_200.append(componentsschemas_volume_directory_listing_item)++ return response_200+ if response.status_code == 400:+ response_400 = cast(Any, None)+ return response_400+ if response.status_code == 404:+ response_404 = cast(Any, None)+ return response_404+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Any, Error, list["VolumeEntryStat"]]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ depth: Union[Unset, int] = 1,+) -> Response[Union[Any, Error, list["VolumeEntryStat"]]]:+ """List directory contents++ Args:+ volume_id (str):+ path (str):+ depth (Union[Unset, int]): Default: 1.++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, list['VolumeEntryStat']]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ depth=depth,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ depth: Union[Unset, int] = 1,+) -> Optional[Union[Any, Error, list["VolumeEntryStat"]]]:+ """List directory contents++ Args:+ volume_id (str):+ path (str):+ depth (Union[Unset, int]): Default: 1.++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, list['VolumeEntryStat']]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ depth=depth,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ depth: Union[Unset, int] = 1,+) -> Response[Union[Any, Error, list["VolumeEntryStat"]]]:+ """List directory contents++ Args:+ volume_id (str):+ path (str):+ depth (Union[Unset, int]): Default: 1.++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, list['VolumeEntryStat']]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ depth=depth,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ depth: Union[Unset, int] = 1,+) -> Optional[Union[Any, Error, list["VolumeEntryStat"]]]:+ """List directory contents++ Args:+ volume_id (str):+ path (str):+ depth (Union[Unset, int]): Default: 1.++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, list['VolumeEntryStat']]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ depth=depth,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py b/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.pynew file mode 100644index 000000000..c644c13d6--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py@@ -0,0 +1,179 @@+from http import HTTPStatus+from io import BytesIO+from typing import Any, Optional, Union, cast++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...types import UNSET, File, Response+++def _get_kwargs(+ volume_id: str,+ *,+ path: str,+) -> dict[str, Any]:+ params: dict[str, Any] = {}++ params["path"] = path++ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}++ _kwargs: dict[str, Any] = {+ "method": "get",+ "url": f"/volumecontent/{volume_id}/file",+ "params": params,+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Any, Error, File]]:+ if response.status_code == 200:+ response_200 = File(payload=BytesIO(response.content))++ return response_200+ if response.status_code == 404:+ response_404 = cast(Any, None)+ return response_404+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Any, Error, File]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Response[Union[Any, Error, File]]:+ """Download file++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, File]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Optional[Union[Any, Error, File]]:+ """Download file++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, File]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Response[Union[Any, Error, File]]:+ """Download file++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, File]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Optional[Union[Any, Error, File]]:+ """Download file++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, File]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py b/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.pynew file mode 100644index 000000000..01b894f5c--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py@@ -0,0 +1,176 @@+from http import HTTPStatus+from typing import Any, Optional, Union++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...models.volume_entry_stat import VolumeEntryStat+from ...types import UNSET, Response+++def _get_kwargs(+ volume_id: str,+ *,+ path: str,+) -> dict[str, Any]:+ params: dict[str, Any] = {}++ params["path"] = path++ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}++ _kwargs: dict[str, Any] = {+ "method": "get",+ "url": f"/volumecontent/{volume_id}/path",+ "params": params,+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Error, VolumeEntryStat]]:+ if response.status_code == 200:+ response_200 = VolumeEntryStat.from_dict(response.json())++ return response_200+ if response.status_code == 404:+ response_404 = Error.from_dict(response.json())++ return response_404+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Error, VolumeEntryStat]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Response[Union[Error, VolumeEntryStat]]:+ """Get path information++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Optional[Union[Error, VolumeEntryStat]]:+ """Get path information++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, VolumeEntryStat]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Response[Union[Error, VolumeEntryStat]]:+ """Get path information++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Error, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+) -> Optional[Union[Error, VolumeEntryStat]]:+ """Get path information++ Args:+ volume_id (str):+ path (str):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Error, VolumeEntryStat]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py b/packages/python-sdk/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.pynew file mode 100644index 000000000..42e7a98c3--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py@@ -0,0 +1,203 @@+from http import HTTPStatus+from typing import Any, Optional, Union, cast++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.patch_volumecontent_volume_id_path_body import (+ PatchVolumecontentVolumeIDPathBody,+)+from ...models.volume_entry_stat import VolumeEntryStat+from ...types import UNSET, Response+++def _get_kwargs(+ volume_id: str,+ *,+ body: PatchVolumecontentVolumeIDPathBody,+ path: str,+) -> dict[str, Any]:+ headers: dict[str, Any] = {}++ params: dict[str, Any] = {}++ params["path"] = path++ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}++ _kwargs: dict[str, Any] = {+ "method": "patch",+ "url": f"/volumecontent/{volume_id}/path",+ "params": params,+ }++ _kwargs["json"] = body.to_dict()++ headers["Content-Type"] = "application/json"++ _kwargs["headers"] = headers+ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Any, VolumeEntryStat]]:+ if response.status_code == 200:+ response_200 = VolumeEntryStat.from_dict(response.json())++ return response_200+ if response.status_code == 400:+ response_400 = cast(Any, None)+ return response_400+ if response.status_code == 404:+ response_404 = cast(Any, None)+ return response_404+ if response.status_code == 500:+ response_500 = cast(Any, None)+ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Any, VolumeEntryStat]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: PatchVolumecontentVolumeIDPathBody,+ path: str,+) -> Response[Union[Any, VolumeEntryStat]]:+ """Update path metadata++ Args:+ volume_id (str):+ path (str):+ body (PatchVolumecontentVolumeIDPathBody):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ body=body,+ path=path,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: PatchVolumecontentVolumeIDPathBody,+ path: str,+) -> Optional[Union[Any, VolumeEntryStat]]:+ """Update path metadata++ Args:+ volume_id (str):+ path (str):+ body (PatchVolumecontentVolumeIDPathBody):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, VolumeEntryStat]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ body=body,+ path=path,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: PatchVolumecontentVolumeIDPathBody,+ path: str,+) -> Response[Union[Any, VolumeEntryStat]]:+ """Update path metadata++ Args:+ volume_id (str):+ path (str):+ body (PatchVolumecontentVolumeIDPathBody):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ body=body,+ path=path,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: PatchVolumecontentVolumeIDPathBody,+ path: str,+) -> Optional[Union[Any, VolumeEntryStat]]:+ """Update path metadata++ Args:+ volume_id (str):+ path (str):+ body (PatchVolumecontentVolumeIDPathBody):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, VolumeEntryStat]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ body=body,+ path=path,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py b/packages/python-sdk/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.pynew file mode 100644index 000000000..85308be8d--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py@@ -0,0 +1,239 @@+from http import HTTPStatus+from typing import Any, Optional, Union, cast++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...models.volume_entry_stat import VolumeEntryStat+from ...types import UNSET, Response, Unset+++def _get_kwargs(+ volume_id: str,+ *,+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> dict[str, Any]:+ params: dict[str, Any] = {}++ params["path"] = path++ params["uid"] = uid++ params["gid"] = gid++ params["mode"] = mode++ params["force"] = force++ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}++ _kwargs: dict[str, Any] = {+ "method": "post",+ "url": f"/volumecontent/{volume_id}/dir",+ "params": params,+ }++ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Any, Error, VolumeEntryStat]]:+ if response.status_code == 201:+ response_201 = VolumeEntryStat.from_dict(response.json())++ return response_201+ if response.status_code == 404:+ response_404 = cast(Any, None)+ return response_404+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Any, Error, VolumeEntryStat]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Response[Union[Any, Error, VolumeEntryStat]]:+ """Create a directory++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Optional[Union[Any, Error, VolumeEntryStat]]:+ """Create a directory++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, VolumeEntryStat]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Response[Union[Any, Error, VolumeEntryStat]]:+ """Create a directory++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Optional[Union[Any, Error, VolumeEntryStat]]:+ """Create a directory++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, VolumeEntryStat]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py b/packages/python-sdk/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.pynew file mode 100644index 000000000..61a38a619--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py@@ -0,0 +1,259 @@+from http import HTTPStatus+from typing import Any, Optional, Union, cast++import httpx++from ... import errors+from ...client import AuthenticatedClient, Client+from ...models.error import Error+from ...models.volume_entry_stat import VolumeEntryStat+from ...types import UNSET, File, Response, Unset+++def _get_kwargs(+ volume_id: str,+ *,+ body: File,+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> dict[str, Any]:+ headers: dict[str, Any] = {}++ params: dict[str, Any] = {}++ params["path"] = path++ params["uid"] = uid++ params["gid"] = gid++ params["mode"] = mode++ params["force"] = force++ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}++ _kwargs: dict[str, Any] = {+ "method": "put",+ "url": f"/volumecontent/{volume_id}/file",+ "params": params,+ }++ _kwargs["content"] = body.payload++ headers["Content-Type"] = "application/octet-stream"++ _kwargs["headers"] = headers+ return _kwargs+++def _parse_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Optional[Union[Any, Error, VolumeEntryStat]]:+ if response.status_code == 201:+ response_201 = VolumeEntryStat.from_dict(response.json())++ return response_201+ if response.status_code == 404:+ response_404 = cast(Any, None)+ return response_404+ if response.status_code == 500:+ response_500 = Error.from_dict(response.json())++ return response_500+ if client.raise_on_unexpected_status:+ raise errors.UnexpectedStatus(response.status_code, response.content)+ else:+ return None+++def _build_response(+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response+) -> Response[Union[Any, Error, VolumeEntryStat]]:+ return Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=_parse_response(client=client, response=response),+ )+++def sync_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: File,+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Response[Union[Any, Error, VolumeEntryStat]]:+ """Upload file++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):+ body (File):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ body=body,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ )++ response = client.get_httpx_client().request(+ **kwargs,+ )++ return _build_response(client=client, response=response)+++def sync(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: File,+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Optional[Union[Any, Error, VolumeEntryStat]]:+ """Upload file++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):+ body (File):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, VolumeEntryStat]+ """++ return sync_detailed(+ volume_id=volume_id,+ client=client,+ body=body,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ ).parsed+++async def asyncio_detailed(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: File,+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Response[Union[Any, Error, VolumeEntryStat]]:+ """Upload file++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):+ body (File):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Response[Union[Any, Error, VolumeEntryStat]]+ """++ kwargs = _get_kwargs(+ volume_id=volume_id,+ body=body,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ )++ response = await client.get_async_httpx_client().request(**kwargs)++ return _build_response(client=client, response=response)+++async def asyncio(+ volume_id: str,+ *,+ client: Union[AuthenticatedClient, Client],+ body: File,+ path: str,+ uid: Union[Unset, int] = UNSET,+ gid: Union[Unset, int] = UNSET,+ mode: Union[Unset, int] = UNSET,+ force: Union[Unset, bool] = UNSET,+) -> Optional[Union[Any, Error, VolumeEntryStat]]:+ """Upload file++ Args:+ volume_id (str):+ path (str):+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ force (Union[Unset, bool]):+ body (File):++ Raises:+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.+ httpx.TimeoutException: If the request takes longer than Client.timeout.++ Returns:+ Union[Any, Error, VolumeEntryStat]+ """++ return (+ await asyncio_detailed(+ volume_id=volume_id,+ client=client,+ body=body,+ path=path,+ uid=uid,+ gid=gid,+ mode=mode,+ force=force,+ )+ ).parseddiff --git a/packages/python-sdk/e2b/volume/client/client.py b/packages/python-sdk/e2b/volume/client/client.pynew file mode 100644index 000000000..eeffd00c8--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/client.py@@ -0,0 +1,286 @@+import ssl+from typing import Any, Optional, Union++import httpx+from attrs import define, evolve, field+++@define+class Client:+ """A class for keeping track of data related to the API++ The following are accepted as keyword arguments and will be used to construct httpx Clients internally:++ ``base_url``: The base URL for the API, all requests are made to a relative path to this URL++ ``cookies``: A dictionary of cookies to be sent with every request++ ``headers``: A dictionary of headers to be sent with every request++ ``timeout``: The maximum amount of a time a request can take. API functions will raise+ httpx.TimeoutException if this is exceeded.++ ``verify_ssl``: Whether or not to verify the SSL certificate of the API server. This should be True in production,+ but can be set to False for testing purposes.++ ``follow_redirects``: Whether or not to follow redirects. Default value is False.++ ``httpx_args``: A dictionary of additional arguments to be passed to the ``httpx.Client`` and ``httpx.AsyncClient`` constructor.+++ Attributes:+ raise_on_unexpected_status: Whether or not to raise an errors.UnexpectedStatus if the API returns a+ status code that was not documented in the source OpenAPI document. Can also be provided as a keyword+ argument to the constructor.+ """++ raise_on_unexpected_status: bool = field(default=False, kw_only=True)+ _base_url: str = field(alias="base_url")+ _cookies: dict[str, str] = field(factory=dict, kw_only=True, alias="cookies")+ _headers: dict[str, str] = field(factory=dict, kw_only=True, alias="headers")+ _timeout: Optional[httpx.Timeout] = field(+ default=None, kw_only=True, alias="timeout"+ )+ _verify_ssl: Union[str, bool, ssl.SSLContext] = field(+ default=True, kw_only=True, alias="verify_ssl"+ )+ _follow_redirects: bool = field(+ default=False, kw_only=True, alias="follow_redirects"+ )+ _httpx_args: dict[str, Any] = field(factory=dict, kw_only=True, alias="httpx_args")+ _client: Optional[httpx.Client] = field(default=None, init=False)+ _async_client: Optional[httpx.AsyncClient] = field(default=None, init=False)++ def with_headers(self, headers: dict[str, str]) -> "Client":+ """Get a new client matching this one with additional headers"""+ if self._client is not None:+ self._client.headers.update(headers)+ if self._async_client is not None:+ self._async_client.headers.update(headers)+ return evolve(self, headers={**self._headers, **headers})++ def with_cookies(self, cookies: dict[str, str]) -> "Client":+ """Get a new client matching this one with additional cookies"""+ if self._client is not None:+ self._client.cookies.update(cookies)+ if self._async_client is not None:+ self._async_client.cookies.update(cookies)+ return evolve(self, cookies={**self._cookies, **cookies})++ def with_timeout(self, timeout: httpx.Timeout) -> "Client":+ """Get a new client matching this one with a new timeout (in seconds)"""+ if self._client is not None:+ self._client.timeout = timeout+ if self._async_client is not None:+ self._async_client.timeout = timeout+ return evolve(self, timeout=timeout)++ def set_httpx_client(self, client: httpx.Client) -> "Client":+ """Manually set the underlying httpx.Client++ **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.+ """+ self._client = client+ return self++ def get_httpx_client(self) -> httpx.Client:+ """Get the underlying httpx.Client, constructing a new one if not previously set"""+ if self._client is None:+ self._client = httpx.Client(+ base_url=self._base_url,+ cookies=self._cookies,+ headers=self._headers,+ timeout=self._timeout,+ verify=self._verify_ssl,+ follow_redirects=self._follow_redirects,+ **self._httpx_args,+ )+ return self._client++ def __enter__(self) -> "Client":+ """Enter a context manager for self.client—you cannot enter twice (see httpx docs)"""+ self.get_httpx_client().__enter__()+ return self++ def __exit__(self, *args: Any, **kwargs: Any) -> None:+ """Exit a context manager for internal httpx.Client (see httpx docs)"""+ self.get_httpx_client().__exit__(*args, **kwargs)++ def set_async_httpx_client(self, async_client: httpx.AsyncClient) -> "Client":+ """Manually the underlying httpx.AsyncClient++ **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.+ """+ self._async_client = async_client+ return self++ def get_async_httpx_client(self) -> httpx.AsyncClient:+ """Get the underlying httpx.AsyncClient, constructing a new one if not previously set"""+ if self._async_client is None:+ self._async_client = httpx.AsyncClient(+ base_url=self._base_url,+ cookies=self._cookies,+ headers=self._headers,+ timeout=self._timeout,+ verify=self._verify_ssl,+ follow_redirects=self._follow_redirects,+ **self._httpx_args,+ )+ return self._async_client++ async def __aenter__(self) -> "Client":+ """Enter a context manager for underlying httpx.AsyncClient—you cannot enter twice (see httpx docs)"""+ await self.get_async_httpx_client().__aenter__()+ return self++ async def __aexit__(self, *args: Any, **kwargs: Any) -> None:+ """Exit a context manager for underlying httpx.AsyncClient (see httpx docs)"""+ await self.get_async_httpx_client().__aexit__(*args, **kwargs)+++@define+class AuthenticatedClient:+ """A Client which has been authenticated for use on secured endpoints++ The following are accepted as keyword arguments and will be used to construct httpx Clients internally:++ ``base_url``: The base URL for the API, all requests are made to a relative path to this URL++ ``cookies``: A dictionary of cookies to be sent with every request++ ``headers``: A dictionary of headers to be sent with every request++ ``timeout``: The maximum amount of a time a request can take. API functions will raise+ httpx.TimeoutException if this is exceeded.++ ``verify_ssl``: Whether or not to verify the SSL certificate of the API server. This should be True in production,+ but can be set to False for testing purposes.++ ``follow_redirects``: Whether or not to follow redirects. Default value is False.++ ``httpx_args``: A dictionary of additional arguments to be passed to the ``httpx.Client`` and ``httpx.AsyncClient`` constructor.+++ Attributes:+ raise_on_unexpected_status: Whether or not to raise an errors.UnexpectedStatus if the API returns a+ status code that was not documented in the source OpenAPI document. Can also be provided as a keyword+ argument to the constructor.+ token: The token to use for authentication+ prefix: The prefix to use for the Authorization header+ auth_header_name: The name of the Authorization header+ """++ raise_on_unexpected_status: bool = field(default=False, kw_only=True)+ _base_url: str = field(alias="base_url")+ _cookies: dict[str, str] = field(factory=dict, kw_only=True, alias="cookies")+ _headers: dict[str, str] = field(factory=dict, kw_only=True, alias="headers")+ _timeout: Optional[httpx.Timeout] = field(+ default=None, kw_only=True, alias="timeout"+ )+ _verify_ssl: Union[str, bool, ssl.SSLContext] = field(+ default=True, kw_only=True, alias="verify_ssl"+ )+ _follow_redirects: bool = field(+ default=False, kw_only=True, alias="follow_redirects"+ )+ _httpx_args: dict[str, Any] = field(factory=dict, kw_only=True, alias="httpx_args")+ _client: Optional[httpx.Client] = field(default=None, init=False)+ _async_client: Optional[httpx.AsyncClient] = field(default=None, init=False)++ token: str+ prefix: str = "Bearer"+ auth_header_name: str = "Authorization"++ def with_headers(self, headers: dict[str, str]) -> "AuthenticatedClient":+ """Get a new client matching this one with additional headers"""+ if self._client is not None:+ self._client.headers.update(headers)+ if self._async_client is not None:+ self._async_client.headers.update(headers)+ return evolve(self, headers={**self._headers, **headers})++ def with_cookies(self, cookies: dict[str, str]) -> "AuthenticatedClient":+ """Get a new client matching this one with additional cookies"""+ if self._client is not None:+ self._client.cookies.update(cookies)+ if self._async_client is not None:+ self._async_client.cookies.update(cookies)+ return evolve(self, cookies={**self._cookies, **cookies})++ def with_timeout(self, timeout: httpx.Timeout) -> "AuthenticatedClient":+ """Get a new client matching this one with a new timeout (in seconds)"""+ if self._client is not None:+ self._client.timeout = timeout+ if self._async_client is not None:+ self._async_client.timeout = timeout+ return evolve(self, timeout=timeout)++ def set_httpx_client(self, client: httpx.Client) -> "AuthenticatedClient":+ """Manually set the underlying httpx.Client++ **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.+ """+ self._client = client+ return self++ def get_httpx_client(self) -> httpx.Client:+ """Get the underlying httpx.Client, constructing a new one if not previously set"""+ if self._client is None:+ self._headers[self.auth_header_name] = (+ f"{self.prefix} {self.token}" if self.prefix else self.token+ )+ self._client = httpx.Client(+ base_url=self._base_url,+ cookies=self._cookies,+ headers=self._headers,+ timeout=self._timeout,+ verify=self._verify_ssl,+ follow_redirects=self._follow_redirects,+ **self._httpx_args,+ )+ return self._client++ def __enter__(self) -> "AuthenticatedClient":+ """Enter a context manager for self.client—you cannot enter twice (see httpx docs)"""+ self.get_httpx_client().__enter__()+ return self++ def __exit__(self, *args: Any, **kwargs: Any) -> None:+ """Exit a context manager for internal httpx.Client (see httpx docs)"""+ self.get_httpx_client().__exit__(*args, **kwargs)++ def set_async_httpx_client(+ self, async_client: httpx.AsyncClient+ ) -> "AuthenticatedClient":+ """Manually the underlying httpx.AsyncClient++ **NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.+ """+ self._async_client = async_client+ return self++ def get_async_httpx_client(self) -> httpx.AsyncClient:+ """Get the underlying httpx.AsyncClient, constructing a new one if not previously set"""+ if self._async_client is None:+ self._headers[self.auth_header_name] = (+ f"{self.prefix} {self.token}" if self.prefix else self.token+ )+ self._async_client = httpx.AsyncClient(+ base_url=self._base_url,+ cookies=self._cookies,+ headers=self._headers,+ timeout=self._timeout,+ verify=self._verify_ssl,+ follow_redirects=self._follow_redirects,+ **self._httpx_args,+ )+ return self._async_client++ async def __aenter__(self) -> "AuthenticatedClient":+ """Enter a context manager for underlying httpx.AsyncClient—you cannot enter twice (see httpx docs)"""+ await self.get_async_httpx_client().__aenter__()+ return self++ async def __aexit__(self, *args: Any, **kwargs: Any) -> None:+ """Exit a context manager for underlying httpx.AsyncClient (see httpx docs)"""+ await self.get_async_httpx_client().__aexit__(*args, **kwargs)diff --git a/packages/python-sdk/e2b/volume/client/errors.py b/packages/python-sdk/e2b/volume/client/errors.pynew file mode 100644index 000000000..5f92e76ac--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/errors.py@@ -0,0 +1,16 @@+"""Contains shared errors types that can be raised from API functions"""+++class UnexpectedStatus(Exception):+ """Raised by api functions when the response status an undocumented status and Client.raise_on_unexpected_status is True"""++ def __init__(self, status_code: int, content: bytes):+ self.status_code = status_code+ self.content = content++ super().__init__(+ f"Unexpected status code: {status_code}\n\nResponse content:\n{content.decode(errors='ignore')}"+ )+++__all__ = ["UnexpectedStatus"]diff --git a/packages/python-sdk/e2b/volume/client/models/__init__.py b/packages/python-sdk/e2b/volume/client/models/__init__.pynew file mode 100644index 000000000..befc988b8--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/models/__init__.py@@ -0,0 +1,13 @@+"""Contains all the data models used in inputs/outputs"""++from .error import Error+from .patch_volumecontent_volume_id_path_body import PatchVolumecontentVolumeIDPathBody+from .volume_entry_stat import VolumeEntryStat+from .volume_entry_stat_type import VolumeEntryStatType++__all__ = (+ "Error",+ "PatchVolumecontentVolumeIDPathBody",+ "VolumeEntryStat",+ "VolumeEntryStatType",+)diff --git a/packages/python-sdk/e2b/volume/client/models/error.py b/packages/python-sdk/e2b/volume/client/models/error.pynew file mode 100644index 000000000..fde9c70fb--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/models/error.py@@ -0,0 +1,67 @@+from collections.abc import Mapping+from typing import Any, TypeVar++from attrs import define as _attrs_define+from attrs import field as _attrs_field++T = TypeVar("T", bound="Error")+++@_attrs_define+class Error:+ """+ Attributes:+ code (str): Error code+ message (str): Error message+ """++ code: str+ message: str+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)++ def to_dict(self) -> dict[str, Any]:+ code = self.code++ message = self.message++ field_dict: dict[str, Any] = {}+ field_dict.update(self.additional_properties)+ field_dict.update(+ {+ "code": code,+ "message": message,+ }+ )++ return field_dict++ @classmethod+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:+ d = dict(src_dict)+ code = d.pop("code")++ message = d.pop("message")++ error = cls(+ code=code,+ message=message,+ )++ error.additional_properties = d+ return error++ @property+ def additional_keys(self) -> list[str]:+ return list(self.additional_properties.keys())++ def __getitem__(self, key: str) -> Any:+ return self.additional_properties[key]++ def __setitem__(self, key: str, value: Any) -> None:+ self.additional_properties[key] = value++ def __delitem__(self, key: str) -> None:+ del self.additional_properties[key]++ def __contains__(self, key: str) -> bool:+ return key in self.additional_propertiesdiff --git a/packages/python-sdk/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py b/packages/python-sdk/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.pynew file mode 100644index 000000000..fd0014edf--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py@@ -0,0 +1,77 @@+from collections.abc import Mapping+from typing import Any, TypeVar, Union++from attrs import define as _attrs_define+from attrs import field as _attrs_field++from ..types import UNSET, Unset++T = TypeVar("T", bound="PatchVolumecontentVolumeIDPathBody")+++@_attrs_define+class PatchVolumecontentVolumeIDPathBody:+ """+ Attributes:+ uid (Union[Unset, int]):+ gid (Union[Unset, int]):+ mode (Union[Unset, int]):+ """++ uid: Union[Unset, int] = UNSET+ gid: Union[Unset, int] = UNSET+ mode: Union[Unset, int] = UNSET+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)++ def to_dict(self) -> dict[str, Any]:+ uid = self.uid++ gid = self.gid++ mode = self.mode++ field_dict: dict[str, Any] = {}+ field_dict.update(self.additional_properties)+ field_dict.update({})+ if uid is not UNSET:+ field_dict["uid"] = uid+ if gid is not UNSET:+ field_dict["gid"] = gid+ if mode is not UNSET:+ field_dict["mode"] = mode++ return field_dict++ @classmethod+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:+ d = dict(src_dict)+ uid = d.pop("uid", UNSET)++ gid = d.pop("gid", UNSET)++ mode = d.pop("mode", UNSET)++ patch_volumecontent_volume_id_path_body = cls(+ uid=uid,+ gid=gid,+ mode=mode,+ )++ patch_volumecontent_volume_id_path_body.additional_properties = d+ return patch_volumecontent_volume_id_path_body++ @property+ def additional_keys(self) -> list[str]:+ return list(self.additional_properties.keys())++ def __getitem__(self, key: str) -> Any:+ return self.additional_properties[key]++ def __setitem__(self, key: str, value: Any) -> None:+ self.additional_properties[key] = value++ def __delitem__(self, key: str) -> None:+ del self.additional_properties[key]++ def __contains__(self, key: str) -> bool:+ return key in self.additional_propertiesdiff --git a/packages/python-sdk/e2b/volume/client/models/volume_entry_stat.py b/packages/python-sdk/e2b/volume/client/models/volume_entry_stat.pynew file mode 100644index 000000000..2642a83fb--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/models/volume_entry_stat.py@@ -0,0 +1,145 @@+import datetime+from collections.abc import Mapping+from typing import Any, TypeVar, Union++from attrs import define as _attrs_define+from attrs import field as _attrs_field+from dateutil.parser import isoparse++from ..models.volume_entry_stat_type import VolumeEntryStatType+from ..types import UNSET, Unset++T = TypeVar("T", bound="VolumeEntryStat")+++@_attrs_define+class VolumeEntryStat:+ """+ Attributes:+ name (str):+ type_ (VolumeEntryStatType):+ path (str):+ size (int):+ mode (int):+ uid (int):+ gid (int):+ atime (datetime.datetime):+ mtime (datetime.datetime):+ ctime (datetime.datetime):+ target (Union[Unset, str]):+ """++ name: str+ type_: VolumeEntryStatType+ path: str+ size: int+ mode: int+ uid: int+ gid: int+ atime: datetime.datetime+ mtime: datetime.datetime+ ctime: datetime.datetime+ target: Union[Unset, str] = UNSET+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)++ def to_dict(self) -> dict[str, Any]:+ name = self.name++ type_ = self.type_.value++ path = self.path++ size = self.size++ mode = self.mode++ uid = self.uid++ gid = self.gid++ atime = self.atime.isoformat()++ mtime = self.mtime.isoformat()++ ctime = self.ctime.isoformat()++ target = self.target++ field_dict: dict[str, Any] = {}+ field_dict.update(self.additional_properties)+ field_dict.update(+ {+ "name": name,+ "type": type_,+ "path": path,+ "size": size,+ "mode": mode,+ "uid": uid,+ "gid": gid,+ "atime": atime,+ "mtime": mtime,+ "ctime": ctime,+ }+ )+ if target is not UNSET:+ field_dict["target"] = target++ return field_dict++ @classmethod+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:+ d = dict(src_dict)+ name = d.pop("name")++ type_ = VolumeEntryStatType(d.pop("type"))++ path = d.pop("path")++ size = d.pop("size")++ mode = d.pop("mode")++ uid = d.pop("uid")++ gid = d.pop("gid")++ atime = isoparse(d.pop("atime"))++ mtime = isoparse(d.pop("mtime"))++ ctime = isoparse(d.pop("ctime"))++ target = d.pop("target", UNSET)++ volume_entry_stat = cls(+ name=name,+ type_=type_,+ path=path,+ size=size,+ mode=mode,+ uid=uid,+ gid=gid,+ atime=atime,+ mtime=mtime,+ ctime=ctime,+ target=target,+ )++ volume_entry_stat.additional_properties = d+ return volume_entry_stat++ @property+ def additional_keys(self) -> list[str]:+ return list(self.additional_properties.keys())++ def __getitem__(self, key: str) -> Any:+ return self.additional_properties[key]++ def __setitem__(self, key: str, value: Any) -> None:+ self.additional_properties[key] = value++ def __delitem__(self, key: str) -> None:+ del self.additional_properties[key]++ def __contains__(self, key: str) -> bool:+ return key in self.additional_propertiesdiff --git a/packages/python-sdk/e2b/volume/client/models/volume_entry_stat_type.py b/packages/python-sdk/e2b/volume/client/models/volume_entry_stat_type.pynew file mode 100644index 000000000..e14e23c06--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/models/volume_entry_stat_type.py@@ -0,0 +1,11 @@+from enum import Enum+++class VolumeEntryStatType(str, Enum):+ DIRECTORY = "directory"+ FILE = "file"+ SYMLINK = "symlink"+ UNKNOWN = "unknown"++ def __str__(self) -> str:+ return str(self.value)diff --git a/packages/python-sdk/e2b/volume/client/py.typed b/packages/python-sdk/e2b/volume/client/py.typednew file mode 100644index 000000000..1aad32711--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/py.typed@@ -0,0 +1 @@+# Marker file for PEP 561\ No newline at end of filediff --git a/packages/python-sdk/e2b/volume/client/types.py b/packages/python-sdk/e2b/volume/client/types.pynew file mode 100644index 000000000..1b96ca408--- /dev/null+++ b/packages/python-sdk/e2b/volume/client/types.py@@ -0,0 +1,54 @@+"""Contains some shared types for properties"""++from collections.abc import Mapping, MutableMapping+from http import HTTPStatus+from typing import IO, BinaryIO, Generic, Literal, Optional, TypeVar, Union++from attrs import define+++class Unset:+ def __bool__(self) -> Literal[False]:+ return False+++UNSET: Unset = Unset()++# The types that `httpx.Client(files=)` can accept, copied from that library.+FileContent = Union[IO[bytes], bytes, str]+FileTypes = Union[+ # (filename, file (or bytes), content_type)+ tuple[Optional[str], FileContent, Optional[str]],+ # (filename, file (or bytes), content_type, headers)+ tuple[Optional[str], FileContent, Optional[str], Mapping[str, str]],+]+RequestFiles = list[tuple[str, FileTypes]]+++@define+class File:+ """Contains information for file uploads"""++ payload: BinaryIO+ file_name: Optional[str] = None+ mime_type: Optional[str] = None++ def to_tuple(self) -> FileTypes:+ """Return a tuple representation that httpx will accept for multipart/form-data"""+ return self.file_name, self.payload, self.mime_type+++T = TypeVar("T")+++@define+class Response(Generic[T]):+ """A response from an endpoint"""++ status_code: HTTPStatus+ content: bytes+ headers: MutableMapping[str, str]+ parsed: Optional[T]+++__all__ = ["UNSET", "File", "FileTypes", "RequestFiles", "Response", "Unset"]diff --git a/packages/python-sdk/e2b/volume/client_async/__init__.py b/packages/python-sdk/e2b/volume/client_async/__init__.pynew file mode 100644index 000000000..f1e44a8a3--- /dev/null+++ b/packages/python-sdk/e2b/volume/client_async/__init__.py@@ -0,0 +1,69 @@+import logging+import os+from typing import Optional++import httpx+from httpx import Limits++from e2b.api.metadata import default_headers+from e2b.exceptions import AuthenticationException+from e2b.volume.client.client import AuthenticatedClient as AsyncVolumeApiClient+from e2b.volume.connection_config import VolumeConnectionConfig++logger = logging.getLogger(__name__)++limits = Limits(+ max_keepalive_connections=int(os.getenv("E2B_MAX_KEEPALIVE_CONNECTIONS", "20")),+ max_connections=int(os.getenv("E2B_MAX_CONNECTIONS", "2000")),+ keepalive_expiry=int(os.getenv("E2B_KEEPALIVE_EXPIRY", "300")),+)+++def get_api_client(config: VolumeConnectionConfig, **kwargs) -> AsyncVolumeApiClient:+ if config.access_token is None:+ raise AuthenticationException(+ "Access token is required for volume operations. "+ "Set `E2B_ACCESS_TOKEN` or pass `token` in options.",+ )++ headers = {+ **default_headers,+ **(config.headers or {}),+ }++ return AsyncVolumeApiClient(+ base_url=config.api_url,+ token=config.access_token,+ auth_header_name="Authorization",+ prefix="Bearer",+ headers=headers,+ httpx_args={"proxy": config.proxy, "transport": get_transport(config)},+ **kwargs,+ )+++class AsyncTransportWithLogger(httpx.AsyncHTTPTransport):+ singleton: Optional["AsyncTransportWithLogger"] = None++ async def handle_async_request(self, request):+ url = f"{request.url.scheme}://{request.url.host}{request.url.path}"+ logger.info(f"Request: {request.method} {url}")+ response = await super().handle_async_request(request)+ logger.info(f"Response: {response.status_code} {url}")+ return response++ @property+ def pool(self):+ return self._pool+++def get_transport(config: VolumeConnectionConfig) -> AsyncTransportWithLogger:+ if AsyncTransportWithLogger.singleton is not None:+ return AsyncTransportWithLogger.singleton++ transport = AsyncTransportWithLogger(+ limits=limits,+ proxy=config.proxy,+ )+ AsyncTransportWithLogger.singleton = transport+ return transportdiff --git a/packages/python-sdk/e2b/volume/client_sync/__init__.py b/packages/python-sdk/e2b/volume/client_sync/__init__.pynew file mode 100644index 000000000..5afdcfef2--- /dev/null+++ b/packages/python-sdk/e2b/volume/client_sync/__init__.py@@ -0,0 +1,69 @@+import logging+import os+from typing import Optional++import httpx+from httpx import Limits++from e2b.api.metadata import default_headers+from e2b.exceptions import AuthenticationException+from e2b.volume.client.client import AuthenticatedClient as VolumeApiClient+from e2b.volume.connection_config import VolumeConnectionConfig++logger = logging.getLogger(__name__)++limits = Limits(+ max_keepalive_connections=int(os.getenv("E2B_MAX_KEEPALIVE_CONNECTIONS", "20")),+ max_connections=int(os.getenv("E2B_MAX_CONNECTIONS", "2000")),+ keepalive_expiry=int(os.getenv("E2B_KEEPALIVE_EXPIRY", "300")),+)+++def get_api_client(config: VolumeConnectionConfig, **kwargs) -> VolumeApiClient:+ if config.access_token is None:+ raise AuthenticationException(+ "Access token is required for volume operations. "+ "Set `E2B_ACCESS_TOKEN` or pass `token` in options.",+ )++ headers = {+ **default_headers,+ **(config.headers or {}),+ }++ return VolumeApiClient(+ base_url=config.api_url,+ token=config.access_token,+ auth_header_name="Authorization",+ prefix="Bearer",+ headers=headers,+ httpx_args={"proxy": config.proxy, "transport": get_transport(config)},+ **kwargs,+ )+++class TransportWithLogger(httpx.HTTPTransport):+ singleton: Optional["TransportWithLogger"] = None++ def handle_request(self, request):+ url = f"{request.url.scheme}://{request.url.host}{request.url.path}"+ logger.info(f"Request: {request.method} {url}")+ response = super().handle_request(request)+ logger.info(f"Response: {response.status_code} {url}")+ return response++ @property+ def pool(self):+ return self._pool+++def get_transport(config: VolumeConnectionConfig) -> TransportWithLogger:+ if TransportWithLogger.singleton is not None:+ return TransportWithLogger.singleton++ transport = TransportWithLogger(+ limits=limits,+ proxy=config.proxy,+ )+ TransportWithLogger.singleton = transport+ return transportdiff --git a/packages/python-sdk/e2b/volume/connection_config.py b/packages/python-sdk/e2b/volume/connection_config.pynew file mode 100644index 000000000..3db9f6a70--- /dev/null+++ b/packages/python-sdk/e2b/volume/connection_config.py@@ -0,0 +1,136 @@+import os++from typing import Dict, Optional, TypedDict++from httpx._types import ProxyTypes+from typing_extensions import Unpack++from e2b.api.metadata import package_version++REQUEST_TIMEOUT: float = 60.0 # 60 seconds+++class VolumeApiParams(TypedDict, total=False):+ """+ Parameters for requests made to the volume content API.+ """++ domain: Optional[str]+ """Domain to use for the volume API, defaults to `E2B_DOMAIN` or `e2b.app`."""++ debug: Optional[bool]+ """Whether to use debug mode, defaults to `E2B_DEBUG` environment variable."""++ request_timeout: Optional[float]+ """Timeout for the request in **seconds**, defaults to 60 seconds."""++ headers: Optional[Dict[str, str]]+ """Additional headers to send with the request."""++ token: Optional[str]+ """Volume auth token used for `Authorization: Bearer <token>`."""++ api_url: Optional[str]+ """URL to use for the volume API, defaults to `E2B_VOLUME_API_URL` or `https://api.<domain>`."""++ proxy: Optional[ProxyTypes]+ """Proxy to use for the request."""+++class VolumeConnectionConfig:+ """+ Configuration for the volume content API.++ Uses bearer token authentication and defaults to the volume content host.+ """++ @staticmethod+ def _domain():+ return os.getenv("E2B_DOMAIN") or "e2b.app"++ @staticmethod+ def _debug():+ return os.getenv("E2B_DEBUG", "false").lower() == "true"++ @staticmethod+ def _volume_api_url():+ return os.getenv("E2B_VOLUME_API_URL")++ @staticmethod+ def _access_token():+ return os.getenv("E2B_ACCESS_TOKEN")++ @staticmethod+ def _get_request_timeout(+ default_timeout: Optional[float],+ request_timeout: Optional[float],+ ):+ if request_timeout == 0:+ return None+ elif request_timeout is not None:+ return request_timeout+ else:+ return default_timeout++ def __init__(+ self,+ domain: Optional[str] = None,+ debug: Optional[bool] = None,+ token: Optional[str] = None,+ api_url: Optional[str] = None,+ request_timeout: Optional[float] = None,+ headers: Optional[Dict[str, str]] = None,+ proxy: Optional[ProxyTypes] = None,+ ):+ self.domain = domain or self._domain()+ self.debug = debug if debug is not None else self._debug()++ self.api_url = (+ api_url+ or self._volume_api_url()+ or ("http://localhost:8080" if self.debug else f"https://api.{self.domain}")+ )+ self.access_token = token or self._access_token()+ self.token = self.access_token+ self.proxy = proxy++ self.headers = headers or {}+ self.headers["User-Agent"] = f"e2b-python-sdk/{package_version}"++ self.request_timeout = self._get_request_timeout(+ REQUEST_TIMEOUT, request_timeout+ )++ def get_request_timeout(self, request_timeout: Optional[float] = None):+ return self._get_request_timeout(self.request_timeout, request_timeout)++ def get_api_params(+ self,+ **opts: Unpack[VolumeApiParams],+ ) -> dict:+ """+ Get request parameters for the volume content API.+ """+ domain = opts.get("domain")+ debug = opts.get("debug")+ headers = opts.get("headers")+ request_timeout = opts.get("request_timeout")+ token = opts.get("token")+ api_url = opts.get("api_url")+ proxy = opts.get("proxy")++ req_headers = self.headers.copy()+ if headers is not None:+ req_headers.update(headers)++ return dict(+ VolumeApiParams(+ domain=domain if domain is not None else self.domain,+ debug=debug if debug is not None else self.debug,+ token=token if token is not None else self.token,+ api_url=api_url if api_url is not None else self.api_url,+ request_timeout=self.get_request_timeout(request_timeout),+ headers=req_headers,+ proxy=proxy if proxy is not None else self.proxy,+ )+ )diff --git a/packages/python-sdk/e2b/volume/types.py b/packages/python-sdk/e2b/volume/types.pynew file mode 100644index 000000000..cfec12d28--- /dev/null+++ b/packages/python-sdk/e2b/volume/types.py@@ -0,0 +1,62 @@+import datetime+from dataclasses import dataclass+from typing import Optional++from e2b.volume.client.models.volume_entry_stat_type import VolumeEntryStatType++# Type alias for file type enum+VolumeFileType = VolumeEntryStatType+++@dataclass+class VolumeInfo:+ """Information about a volume."""++ volume_id: str+ """Volume ID."""+ name: str+ """Volume name."""+++@dataclass+class VolumeAndToken(VolumeInfo):+ """Information about a volume and its auth token."""++ token: str+ """Volume auth token."""+++@dataclass+class VolumeEntryStat:+ """Volume entry stat information."""++ name: str+ """Name of the filesystem object."""+ type: VolumeFileType+ """Type of the filesystem object."""+ path: str+ """Path to the filesystem object."""+ size: int+ """Size of the filesystem object."""+ mode: int+ """Mode of the filesystem object."""+ uid: int+ """User ID of the filesystem object."""+ gid: int+ """Group ID of the filesystem object."""+ atime: datetime.datetime+ """Access time."""+ mtime: datetime.datetime+ """Modification time."""+ ctime: datetime.datetime+ """Creation time."""+ target: Optional[str] = None+ """Target path for symlinks."""+++__all__ = [+ "VolumeInfo",+ "VolumeAndToken",+ "VolumeEntryStat",+ "VolumeFileType",+]diff --git a/packages/python-sdk/e2b/volume/utils.py b/packages/python-sdk/e2b/volume/utils.pynew file mode 100644index 000000000..5dcd16448--- /dev/null+++ b/packages/python-sdk/e2b/volume/utils.py@@ -0,0 +1,44 @@+from typing import Optional++from e2b.volume.client.models import VolumeEntryStat as VolumeEntryStatApi+from e2b.volume.client.types import UNSET+from e2b.volume.types import VolumeEntryStat+++def convert_volume_entry_stat(api_stat: VolumeEntryStatApi) -> VolumeEntryStat:+ """Convert API VolumeEntryStat to SDK VolumeEntryStat."""+ target: Optional[str] = None+ if api_stat.target is not UNSET and api_stat.target is not None:+ target = str(api_stat.target)++ return VolumeEntryStat(+ name=api_stat.name,+ type=api_stat.type_,+ path=api_stat.path,+ size=api_stat.size,+ mode=api_stat.mode,+ uid=api_stat.uid,+ gid=api_stat.gid,+ atime=api_stat.atime,+ mtime=api_stat.mtime,+ ctime=api_stat.ctime,+ target=target,+ )+++class DualMethod:+ """Descriptor enabling the same name for a static (class-level) and instance method.++ When accessed on the class (e.g. ``Volume.get_info``), the static function+ is returned. When accessed on an instance (e.g. ``vol.get_info``), the+ instance method is returned as a bound method.+ """++ def __init__(self, static_fn, instance_fn):+ self._static_fn = static_fn+ self._instance_fn = instance_fn++ def __get__(self, obj, objtype=None):+ if obj is None:+ return self._static_fn+ return self._instance_fn.__get__(obj, objtype)diff --git a/packages/python-sdk/e2b/volume/volume_async.py b/packages/python-sdk/e2b/volume/volume_async.pynew file mode 100644index 000000000..741b43d72--- /dev/null+++ b/packages/python-sdk/e2b/volume/volume_async.py@@ -0,0 +1,603 @@+from typing import AsyncIterator, IO, List, Literal, Optional, Union, cast, overload+from http import HTTPStatus++from typing_extensions import Unpack++from e2b.api import handle_api_exception+from e2b.api.client.api.volumes import (+ post_volumes,+ get_volumes,+ get_volumes_volume_id,+ delete_volumes_volume_id,+)+from e2b.api.client.models import (+ NewVolume as NewVolumeModel,+ Error,+)+from e2b.api.client.types import Response+from e2b.api.client_async import get_api_client as get_core_api_client+from e2b.connection_config import ApiParams, ConnectionConfig+from e2b.exceptions import NotFoundException, VolumeException+from e2b.volume.client.api.volumes import (+ get_volumecontent_volume_id_path as get_path,+ get_volumecontent_volume_id_dir as get_dir,+ post_volumecontent_volume_id_dir as post_dir,+ delete_volumecontent_volume_id_path as delete_path,+ patch_volumecontent_volume_id_path as patch_path,+ put_volumecontent_volume_id_file as put_file,+)+from e2b.volume.client.models import (+ Error as VolumeError,+ PatchVolumecontentVolumeIDPathBody as PatchPathBody,+ VolumeEntryStat as VolumeEntryStatApi,+)+from e2b.volume.client.types import File as FilePayload, UNSET+from e2b.volume.client_async import get_api_client as get_volume_api_client+from e2b.volume.connection_config import VolumeApiParams, VolumeConnectionConfig+from e2b.volume.types import (+ VolumeAndToken,+ VolumeInfo,+ VolumeEntryStat,+)+from e2b.volume.utils import DualMethod, convert_volume_entry_stat+++class AsyncVolume:+ """E2B Volume for persistent storage that can be mounted to sandboxes (async)."""++ def __init__(+ self,+ volume_id: str,+ name: str,+ token: Optional[str] = None,+ domain: Optional[str] = None,+ debug: Optional[bool] = None,+ ):+ self._volume_id = volume_id+ self._name = name+ self._token = token+ self._domain = domain+ self._debug = debug++ @property+ def volume_id(self) -> str:+ return self._volume_id++ @property+ def name(self) -> str:+ return self._name++ @property+ def token(self) -> Optional[str]:+ return self._token++ def _get_volume_config(+ self, **opts: Unpack[VolumeApiParams]+ ) -> VolumeConnectionConfig:+ return VolumeConnectionConfig(+ domain=opts.get("domain") or self._domain,+ debug=opts.get("debug") if opts.get("debug") is not None else self._debug,+ token=opts.get("token") or self._token,+ api_url=opts.get("api_url"),+ request_timeout=opts.get("request_timeout"),+ headers=opts.get("headers"),+ proxy=opts.get("proxy"),+ )++ @classmethod+ async def create(cls, name: str, **opts: Unpack[ApiParams]) -> "AsyncVolume":+ """+ Create a new volume.++ :param name: Name of the volume++ :return: An AsyncVolume instance for the new volume+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = await post_volumes.asyncio_detailed(+ body=NewVolumeModel(name=name),+ client=api_client,+ )++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, Error):+ raise Exception(f"{res.parsed.message}: Request failed")++ vol = cls(+ volume_id=res.parsed.volume_id,+ name=res.parsed.name,+ token=res.parsed.token,+ domain=config.domain,+ debug=config.debug,+ )+ return vol++ @classmethod+ async def connect(cls, volume_id: str, **opts: Unpack[ApiParams]) -> "AsyncVolume":+ """+ Connect to an existing volume by ID.++ :param volume_id: Volume ID++ :return: An AsyncVolume instance for the existing volume+ """+ info = await cls.get_info(volume_id, **opts)+ config = ConnectionConfig(**opts)+ return cls(+ volume_id=volume_id,+ name=info.name,+ token=info.token,+ domain=config.domain,+ debug=config.debug,+ )++ @staticmethod+ async def _class_get_info(+ volume_id: str, **opts: Unpack[ApiParams]+ ) -> VolumeAndToken:+ """+ Get information about a volume.++ :param volume_id: Volume ID++ :return: Volume info+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = await get_volumes_volume_id.asyncio_detailed(+ volume_id,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Volume {volume_id} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, Error):+ raise Exception(f"{res.parsed.message}: Request failed")++ return VolumeAndToken(+ volume_id=res.parsed.volume_id,+ name=res.parsed.name,+ token=res.parsed.token,+ )++ @staticmethod+ async def _class_list(**opts: Unpack[ApiParams]) -> List[VolumeInfo]:+ """+ List all volumes.++ :return: List of volumes+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = await get_volumes.asyncio_detailed(+ client=api_client,+ )++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ return []++ if isinstance(res.parsed, Error):+ raise Exception(f"{res.parsed.message}: Request failed")++ return [VolumeInfo(volume_id=v.volume_id, name=v.name) for v in res.parsed]++ @staticmethod+ async def destroy(volume_id: str, **opts: Unpack[ApiParams]) -> bool:+ """+ Destroy a volume.++ :param volume_id: Volume ID+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = await delete_volumes_volume_id.asyncio_detailed(+ volume_id,+ client=api_client,+ )++ if res.status_code == 404:+ return False++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ return True++ async def _instance_list(+ self, path: str, depth: Optional[int] = None, **opts: Unpack[VolumeApiParams]+ ) -> List[VolumeEntryStat]:+ """+ List directory contents.++ :param path: Path to the directory+ :param depth: Number of layers deep to recurse into the directory+ :param opts: Connection options++ :return: List of items (files and directories) in the directory+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = await get_dir.asyncio_detailed(+ self._volume_id,+ path=path,+ depth=depth if depth is not None else UNSET,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ return []++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ # VolumeDirectoryListing is a list according to the spec+ if isinstance(res.parsed, list):+ parsed_entries = cast(List[VolumeEntryStatApi], res.parsed)+ return [convert_volume_entry_stat(entry) for entry in parsed_entries]+ return []++ async def make_dir(+ self,+ path: str,+ uid: Optional[int] = None,+ gid: Optional[int] = None,+ mode: Optional[int] = None,+ force: Optional[bool] = None,+ **opts: Unpack[VolumeApiParams],+ ) -> VolumeEntryStat:+ """+ Create a directory.++ :param path: Path to the directory to create+ :param uid: User ID of the created directory+ :param gid: Group ID of the created directory+ :param mode: Mode of the created directory+ :param force: Create parent directories if they don't exist+ :param opts: Connection options++ :return: Information about the created directory+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = await post_dir.asyncio_detailed(+ self._volume_id,+ path=path,+ uid=uid if uid is not None else UNSET,+ gid=gid if gid is not None else UNSET,+ mode=mode if mode is not None else UNSET,+ force=force if force is not None else UNSET,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ return convert_volume_entry_stat(res.parsed)++ async def exists(self, path: str, **opts: Unpack[VolumeApiParams]) -> bool:+ """+ Check whether a file or directory exists.++ Uses get_info under the hood. Returns True if the path exists,+ False if it does not (404). Other errors are re-raised.++ :param path: Path to the file or directory+ :param opts: Connection options++ :return: True if the path exists, False otherwise+ """+ try:+ await self.get_info(path, **opts)+ return True+ except NotFoundException:+ return False++ async def _instance_get_info(+ self, path: str, **opts: Unpack[VolumeApiParams]+ ) -> VolumeEntryStat:+ """+ Get information about a file or directory.++ :param path: Path to the file or directory+ :param opts: Connection options++ :return: Information about the entry+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = await get_path.asyncio_detailed(+ self._volume_id,+ path=path,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ return convert_volume_entry_stat(cast(VolumeEntryStatApi, res.parsed))++ get_info = DualMethod(_class_get_info.__func__, _instance_get_info)+ list = DualMethod(_class_list.__func__, _instance_list)++ async def update_metadata(+ self,+ path: str,+ uid: Optional[int] = None,+ gid: Optional[int] = None,+ mode: Optional[int] = None,+ **opts: Unpack[VolumeApiParams],+ ) -> VolumeEntryStat:+ """+ Update file or directory metadata.++ :param path: Path to the file or directory+ :param uid: User ID of the file or directory+ :param gid: Group ID of the file or directory+ :param mode: Mode of the file or directory+ :param opts: Connection options++ :return: Updated entry information+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ body = PatchPathBody(+ uid=uid if uid is not None else UNSET,+ gid=gid if gid is not None else UNSET,+ mode=mode if mode is not None else UNSET,+ )++ res = await patch_path.asyncio_detailed(+ self._volume_id,+ path=path,+ body=body,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ return convert_volume_entry_stat(cast(VolumeEntryStatApi, res.parsed))++ @overload+ async def read_file(+ self,+ path: str,+ format: Literal["text"] = "text",+ **opts: Unpack[VolumeApiParams],+ ) -> str: ...++ @overload+ async def read_file(+ self,+ path: str,+ format: Literal["bytes"],+ **opts: Unpack[VolumeApiParams],+ ) -> bytes: ...++ @overload+ async def read_file(+ self,+ path: str,+ format: Literal["stream"],+ **opts: Unpack[VolumeApiParams],+ ) -> AsyncIterator[bytes]: ...++ async def read_file(+ self,+ path: str,+ format: Literal["text", "bytes", "stream"] = "text",+ **opts: Unpack[VolumeApiParams],+ ) -> Union[str, bytes, AsyncIterator[bytes]]:+ """+ Read file content.++ You can pass `text`, `bytes`, or `stream` to `format` to change the return type.++ :param path: Path to the file+ :param format: Format of the file content—`text` by default+ :param opts: Connection options++ :return: File content as string, bytes, or async iterator of bytes+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ params = {"path": path}+ timeout = config.get_request_timeout(opts.get("request_timeout"))++ if format == "stream":++ async def stream_file() -> AsyncIterator[bytes]:+ async with api_client.get_async_httpx_client().stream(+ method="GET",+ url=f"/volumecontent/{self._volume_id}/file",+ params=params,+ timeout=timeout,+ ) as response:+ if response.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if response.status_code >= 300:+ api_response = Response(+ status_code=HTTPStatus(response.status_code),+ content=await response.aread(),+ headers=response.headers,+ parsed=None,+ )+ raise handle_api_exception(api_response, VolumeException)++ async for chunk in response.aiter_bytes():+ yield chunk++ return stream_file()++ response = await api_client.get_async_httpx_client().request(+ method="GET",+ url=f"/volumecontent/{self._volume_id}/file",+ params=params,+ timeout=timeout,+ )++ if response.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if response.status_code >= 300:+ api_response = Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=None,+ )+ raise handle_api_exception(api_response, VolumeException)++ if format == "bytes":+ return response.content+ else:+ return response.text++ async def write_file(+ self,+ path: str,+ data: Union[str, bytes, IO[bytes]],+ uid: Optional[int] = None,+ gid: Optional[int] = None,+ mode: Optional[int] = None,+ force: Optional[bool] = None,+ **opts: Unpack[VolumeApiParams],+ ) -> VolumeEntryStat:+ """+ Write content to a file.++ Writing to a file that doesn't exist creates the file.+ Writing to a file that already exists overwrites the file.++ :param path: Path to the file+ :param data: Data to write to the file. Data can be a string, bytes, or IO.+ :param uid: User ID of the created file+ :param gid: Group ID of the created file+ :param mode: Mode of the created file+ :param force: Force overwrite of an existing file+ :param opts: Connection options++ :return: Information about the written file+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ if isinstance(data, str):+ data_bytes = data.encode("utf-8")+ elif isinstance(data, bytes):+ data_bytes = data+ elif hasattr(data, "read"):+ content = data.read()+ if isinstance(content, bytes):+ data_bytes = content+ else:+ data_bytes = content.encode("utf-8")+ else:+ raise ValueError(f"Unsupported data type: {type(data)}")++ res = await put_file.asyncio_detailed(+ self._volume_id,+ body=FilePayload(payload=data_bytes), # type: ignore[arg-type] # Pass bytes directly for async httpx compatibility+ path=path,+ uid=uid if uid is not None else UNSET,+ gid=gid if gid is not None else UNSET,+ mode=mode if mode is not None else UNSET,+ force=force if force is not None else UNSET,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ return convert_volume_entry_stat(cast(VolumeEntryStatApi, res.parsed))++ async def remove(+ self,+ path: str,+ **opts: Unpack[VolumeApiParams],+ ) -> None:+ """+ Remove a file or directory.++ :param path: Path to the file or directory to remove+ :param opts: Connection options+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = await delete_path.asyncio_detailed(+ self._volume_id,+ path=path,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)diff --git a/packages/python-sdk/e2b/volume/volume_sync.py b/packages/python-sdk/e2b/volume/volume_sync.pynew file mode 100644index 000000000..0d8c093f5--- /dev/null+++ b/packages/python-sdk/e2b/volume/volume_sync.py@@ -0,0 +1,600 @@+from typing import IO, Iterator, List, Literal, Optional, Union, cast, overload+from http import HTTPStatus++from typing_extensions import Unpack++from e2b.api import handle_api_exception+from e2b.api.client.api.volumes import (+ post_volumes,+ get_volumes,+ get_volumes_volume_id,+ delete_volumes_volume_id,+)+from e2b.api.client.models import (+ NewVolume as NewVolumeModel,+ Error,+)+from e2b.api.client.types import Response+from e2b.api.client_sync import get_api_client as get_core_api_client+from e2b.connection_config import ApiParams, ConnectionConfig+from e2b.exceptions import NotFoundException, VolumeException+from e2b.volume.client.api.volumes import (+ get_volumecontent_volume_id_path as get_path,+ get_volumecontent_volume_id_dir as get_dir,+ post_volumecontent_volume_id_dir as post_dir,+ delete_volumecontent_volume_id_path as delete_path,+ patch_volumecontent_volume_id_path as patch_path,+ put_volumecontent_volume_id_file as put_file,+)+from e2b.volume.client.models import (+ Error as VolumeError,+ PatchVolumecontentVolumeIDPathBody as PatchPathBody,+ VolumeEntryStat as VolumeEntryStatApi,+)+from e2b.volume.client.types import File as FilePayload, UNSET+from e2b.volume.client_sync import get_api_client as get_volume_api_client+from e2b.volume.connection_config import VolumeApiParams, VolumeConnectionConfig+from e2b.volume.types import (+ VolumeAndToken,+ VolumeInfo,+ VolumeEntryStat,+)+from e2b.volume.utils import DualMethod, convert_volume_entry_stat+++class Volume:+ """E2B Volume for persistent storage that can be mounted to sandboxes."""++ def __init__(+ self,+ volume_id: str,+ name: str,+ token: Optional[str] = None,+ domain: Optional[str] = None,+ debug: Optional[bool] = None,+ ):+ self._volume_id = volume_id+ self._name = name+ self._token = token+ self._domain = domain+ self._debug = debug++ @property+ def volume_id(self) -> str:+ return self._volume_id++ @property+ def name(self) -> str:+ return self._name++ @property+ def token(self) -> Optional[str]:+ return self._token++ def _get_volume_config(+ self, **opts: Unpack[VolumeApiParams]+ ) -> VolumeConnectionConfig:+ return VolumeConnectionConfig(+ domain=opts.get("domain") or self._domain,+ debug=opts.get("debug") if opts.get("debug") is not None else self._debug,+ token=opts.get("token") or self._token,+ api_url=opts.get("api_url"),+ request_timeout=opts.get("request_timeout"),+ headers=opts.get("headers"),+ proxy=opts.get("proxy"),+ )++ @classmethod+ def create(cls, name: str, **opts: Unpack[ApiParams]) -> "Volume":+ """+ Create a new volume.++ :param name: Name of the volume++ :return: A Volume instance for the new volume+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = post_volumes.sync_detailed(+ body=NewVolumeModel(name=name),+ client=api_client,+ )++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, Error):+ raise Exception(f"{res.parsed.message}: Request failed")++ vol = cls(+ volume_id=res.parsed.volume_id,+ name=res.parsed.name,+ token=res.parsed.token,+ domain=config.domain,+ debug=config.debug,+ )+ return vol++ @classmethod+ def connect(cls, volume_id: str, **opts: Unpack[ApiParams]) -> "Volume":+ """+ Connect to an existing volume by ID.++ :param volume_id: Volume ID++ :return: A Volume instance for the existing volume+ """+ info = cls.get_info(volume_id, **opts)+ config = ConnectionConfig(**opts)+ return cls(+ volume_id=volume_id,+ name=info.name,+ token=info.token,+ domain=config.domain,+ debug=config.debug,+ )++ @staticmethod+ def _class_get_info(volume_id: str, **opts: Unpack[ApiParams]) -> VolumeAndToken:+ """+ Get information about a volume.++ :param volume_id: Volume ID++ :return: Volume info+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = get_volumes_volume_id.sync_detailed(+ volume_id,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Volume {volume_id} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, Error):+ raise Exception(f"{res.parsed.message}: Request failed")++ return VolumeAndToken(+ volume_id=res.parsed.volume_id,+ name=res.parsed.name,+ token=res.parsed.token,+ )++ @staticmethod+ def _class_list(**opts: Unpack[ApiParams]) -> List[VolumeInfo]:+ """+ List all volumes.++ :return: List of volumes+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = get_volumes.sync_detailed(+ client=api_client,+ )++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ return []++ if isinstance(res.parsed, Error):+ raise Exception(f"{res.parsed.message}: Request failed")++ return [VolumeInfo(volume_id=v.volume_id, name=v.name) for v in res.parsed]++ @staticmethod+ def destroy(volume_id: str, **opts: Unpack[ApiParams]) -> bool:+ """+ Destroy a volume.++ :param volume_id: Volume ID+ """+ config = ConnectionConfig(**opts)++ api_client = get_core_api_client(config)+ res = delete_volumes_volume_id.sync_detailed(+ volume_id,+ client=api_client,+ )++ if res.status_code == 404:+ return False++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ return True++ def _instance_list(+ self, path: str, depth: Optional[int] = None, **opts: Unpack[VolumeApiParams]+ ) -> List[VolumeEntryStat]:+ """+ List directory contents.++ :param path: Path to the directory+ :param depth: Number of layers deep to recurse into the directory+ :param opts: Connection options++ :return: List of items (files and directories) in the directory+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = get_dir.sync_detailed(+ self._volume_id,+ path=path,+ depth=depth if depth is not None else UNSET,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ return []++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ # VolumeDirectoryListing is a list according to the spec+ if isinstance(res.parsed, list):+ parsed_entries = cast(List[VolumeEntryStatApi], res.parsed)+ return [convert_volume_entry_stat(entry) for entry in parsed_entries]+ return []++ def make_dir(+ self,+ path: str,+ uid: Optional[int] = None,+ gid: Optional[int] = None,+ mode: Optional[int] = None,+ force: Optional[bool] = None,+ **opts: Unpack[VolumeApiParams],+ ) -> VolumeEntryStat:+ """+ Create a directory.++ :param path: Path to the directory to create+ :param uid: User ID of the created directory+ :param gid: Group ID of the created directory+ :param mode: Mode of the created directory+ :param force: Create parent directories if they don't exist+ :param opts: Connection options++ :return: Information about the created directory+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = post_dir.sync_detailed(+ self._volume_id,+ path=path,+ uid=uid if uid is not None else UNSET,+ gid=gid if gid is not None else UNSET,+ mode=mode if mode is not None else UNSET,+ force=force if force is not None else UNSET,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ return convert_volume_entry_stat(res.parsed)++ def exists(self, path: str, **opts: Unpack[VolumeApiParams]) -> bool:+ """+ Check whether a file or directory exists.++ Uses get_info under the hood. Returns True if the path exists,+ False if it does not (404). Other errors are re-raised.++ :param path: Path to the file or directory+ :param opts: Connection options++ :return: True if the path exists, False otherwise+ """+ try:+ self.get_info(path, **opts)+ return True+ except NotFoundException:+ return False++ def _instance_get_info(+ self, path: str, **opts: Unpack[VolumeApiParams]+ ) -> VolumeEntryStat:+ """+ Get information about a file or directory.++ :param path: Path to the file or directory+ :param opts: Connection options++ :return: Information about the entry+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = get_path.sync_detailed(+ self._volume_id,+ path=path,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ return convert_volume_entry_stat(cast(VolumeEntryStatApi, res.parsed))++ get_info = DualMethod(_class_get_info.__func__, _instance_get_info)+ list = DualMethod(_class_list.__func__, _instance_list)++ def update_metadata(+ self,+ path: str,+ uid: Optional[int] = None,+ gid: Optional[int] = None,+ mode: Optional[int] = None,+ **opts: Unpack[VolumeApiParams],+ ) -> VolumeEntryStat:+ """+ Update file or directory metadata.++ :param path: Path to the file or directory+ :param uid: User ID of the file or directory+ :param gid: Group ID of the file or directory+ :param mode: Mode of the file or directory+ :param opts: Connection options++ :return: Updated entry information+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ body = PatchPathBody(+ uid=uid if uid is not None else UNSET,+ gid=gid if gid is not None else UNSET,+ mode=mode if mode is not None else UNSET,+ )++ res = patch_path.sync_detailed(+ self._volume_id,+ path=path,+ body=body,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ return convert_volume_entry_stat(cast(VolumeEntryStatApi, res.parsed))++ @overload+ def read_file(+ self,+ path: str,+ format: Literal["text"] = "text",+ **opts: Unpack[VolumeApiParams],+ ) -> str: ...++ @overload+ def read_file(+ self,+ path: str,+ format: Literal["bytes"],+ **opts: Unpack[VolumeApiParams],+ ) -> bytes: ...++ @overload+ def read_file(+ self,+ path: str,+ format: Literal["stream"],+ **opts: Unpack[VolumeApiParams],+ ) -> Iterator[bytes]: ...++ def read_file(+ self,+ path: str,+ format: Literal["text", "bytes", "stream"] = "text",+ **opts: Unpack[VolumeApiParams],+ ) -> Union[str, bytes, Iterator[bytes]]:+ """+ Read file content.++ You can pass `text`, `bytes`, or `stream` to `format` to change the return type.++ :param path: Path to the file+ :param format: Format of the file content—`text` by default+ :param opts: Connection options++ :return: File content as string, bytes, or iterator of bytes+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ params = {"path": path}+ timeout = config.get_request_timeout(opts.get("request_timeout"))++ if format == "stream":++ def stream_file() -> Iterator[bytes]:+ with api_client.get_httpx_client().stream(+ method="GET",+ url=f"/volumecontent/{self._volume_id}/file",+ params=params,+ timeout=timeout,+ ) as response:+ if response.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if response.status_code >= 300:+ api_response = Response(+ status_code=HTTPStatus(response.status_code),+ content=response.read(),+ headers=response.headers,+ parsed=None,+ )+ raise handle_api_exception(api_response, VolumeException)++ yield from response.iter_bytes()++ return stream_file()++ response = api_client.get_httpx_client().request(+ method="GET",+ url=f"/volumecontent/{self._volume_id}/file",+ params=params,+ timeout=timeout,+ )++ if response.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if response.status_code >= 300:+ api_response = Response(+ status_code=HTTPStatus(response.status_code),+ content=response.content,+ headers=response.headers,+ parsed=None,+ )+ raise handle_api_exception(api_response, VolumeException)++ if format == "bytes":+ return response.content+ else:+ return response.text++ def write_file(+ self,+ path: str,+ data: Union[str, bytes, IO[bytes]],+ uid: Optional[int] = None,+ gid: Optional[int] = None,+ mode: Optional[int] = None,+ force: Optional[bool] = None,+ **opts: Unpack[VolumeApiParams],+ ) -> VolumeEntryStat:+ """+ Write content to a file.++ Writing to a file that doesn't exist creates the file.+ Writing to a file that already exists overwrites the file.++ :param path: Path to the file+ :param data: Data to write to the file. Data can be a string, bytes, or IO.+ :param uid: User ID of the created file+ :param gid: Group ID of the created file+ :param mode: Mode of the created file+ :param force: Force overwrite of an existing file+ :param opts: Connection options++ :return: Information about the written file+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ if isinstance(data, str):+ data_bytes = data.encode("utf-8")+ elif isinstance(data, bytes):+ data_bytes = data+ elif hasattr(data, "read"):+ content = data.read()+ if isinstance(content, bytes):+ data_bytes = content+ else:+ data_bytes = content.encode("utf-8")+ else:+ raise ValueError(f"Unsupported data type: {type(data)}")++ res = put_file.sync_detailed(+ self._volume_id,+ body=FilePayload(payload=data_bytes), # type: ignore[arg-type] # Pass bytes directly for sync httpx compatibility+ path=path,+ uid=uid if uid is not None else UNSET,+ gid=gid if gid is not None else UNSET,+ mode=mode if mode is not None else UNSET,+ force=force if force is not None else UNSET,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)++ if res.parsed is None:+ raise Exception("Body of the request is None")++ if isinstance(res.parsed, VolumeError):+ raise Exception(f"{res.parsed.message}: Request failed")++ return convert_volume_entry_stat(cast(VolumeEntryStatApi, res.parsed))++ def remove(+ self,+ path: str,+ **opts: Unpack[VolumeApiParams],+ ) -> None:+ """+ Remove a file or directory.++ :param path: Path to the file or directory to remove+ :param opts: Connection options+ """+ config = self._get_volume_config(**opts)+ api_client = get_volume_api_client(config)++ res = delete_path.sync_detailed(+ self._volume_id,+ path=path,+ client=api_client,+ )++ if res.status_code == 404:+ raise NotFoundException(f"Path {path} not found")++ if res.status_code >= 300:+ raise handle_api_exception(res, VolumeException)diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.tomlindex 9190c614c..d54028fa2 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -56,6 +56,10 @@ rules = { invalid-argument-type = "ignore" }include = ["e2b/envd/**/*.pyi"]rules = { conflicting-metaclass = "ignore", unresolved-attribute = "ignore" }+[[tool.ty.overrides]]+include = ["e2b/volume/**"]+rules = { unresolved-attribute = "ignore" }+[tool.ruff]exclude = ["e2b/envd/filesystem/filesystem_pb2.py"diff --git a/packages/python-sdk/tests/async/volume_async/test_file.py b/packages/python-sdk/tests/async/volume_async/test_file.pynew file mode 100644index 000000000..014eb33a2--- /dev/null+++ b/packages/python-sdk/tests/async/volume_async/test_file.py@@ -0,0 +1,288 @@+import datetime+from io import BytesIO++import pytest++from e2b import AsyncVolume+from e2b.exceptions import NotFoundException, VolumeException+++class TestWriteFileAndReadFile:+ async def test_write_and_read_text_file(self, async_volume: AsyncVolume):+ path = "/test.txt"+ content = "Hello, World!"++ await async_volume.write_file(path, content)+ read_content = await async_volume.read_file(path, format="text")++ assert read_content == content++ async def test_write_and_read_bytes(self, async_volume: AsyncVolume):+ path = "/test-bytes.txt"+ content = "Test bytes content"+ content_bytes = content.encode("utf-8")++ await async_volume.write_file(path, content_bytes)+ read_bytes = await async_volume.read_file(path, format="bytes")++ assert read_bytes == content_bytes++ async def test_write_and_read_binary_data(self, async_volume: AsyncVolume):+ path = "/binary.bin"+ binary_data = bytes([0, 1, 2, 3, 4])++ await async_volume.write_file(path, binary_data)+ read_bytes = await async_volume.read_file(path, format="bytes")++ assert read_bytes == binary_data++ async def test_write_and_read_stream(self, async_volume: AsyncVolume):+ path = "/test-stream.txt"+ content = "Test stream content"+ stream = BytesIO(content.encode("utf-8"))++ await async_volume.write_file(path, stream)+ read_stream = await async_volume.read_file(path, format="stream")+ chunks = []+ async for chunk in read_stream:+ chunks.append(chunk)+ read_content = b"".join(chunks).decode("utf-8")++ assert read_content == content++ async def test_write_and_read_empty_file(self, async_volume: AsyncVolume):+ path = "/empty.txt"+ content = ""++ await async_volume.write_file(path, content)+ read_content = await async_volume.read_file(path, format="text")++ assert read_content == content++ async def test_overwrite_with_force(self, async_volume: AsyncVolume):+ path = "/overwrite.txt"+ initial_content = "Initial content"+ new_content = "New content"++ await async_volume.write_file(path, initial_content)+ await async_volume.write_file(path, new_content, force=True)+ read_content = await async_volume.read_file(path, format="text")++ assert read_content == new_content++ async def test_write_existing_file_without_force_raises(+ self, async_volume: AsyncVolume+ ):+ path = "/no-overwrite.txt"+ initial_content = "Initial content"+ new_content = "New content"++ await async_volume.write_file(path, initial_content)+ with pytest.raises(VolumeException):+ await async_volume.write_file(path, new_content, force=False)++ async def test_write_file_with_metadata(self, async_volume: AsyncVolume):+ path = "/metadata.txt"+ content = "File with metadata"++ await async_volume.write_file(path, content, uid=1000, gid=1000, mode=0o644)++ entry_info = await async_volume.get_info(path)+ assert entry_info.type.value == "file"+ assert entry_info.uid == 1000+ assert entry_info.gid == 1000+ assert entry_info.mode == 0o644++ async def test_write_file_in_nested_directory(self, async_volume: AsyncVolume):+ dir_path = "/nested/deep/path"+ file_path = f"{dir_path}/file.txt"+ content = "Nested file content"++ await async_volume.make_dir(dir_path, force=True)+ await async_volume.write_file(file_path, content)+ read_content = await async_volume.read_file(file_path, format="text")++ assert read_content == content+++class TestGetInfo:+ async def test_get_info_for_file(self, async_volume: AsyncVolume):+ path = "/info-file.txt"+ content = "File for info test"++ await async_volume.write_file(path, content)+ info = await async_volume.get_info(path)++ assert info.name == "info-file.txt"+ assert info.type.value == "file"+ assert info.path == path+ assert isinstance(info.mtime, datetime.datetime)+ assert isinstance(info.ctime, datetime.datetime)++ async def test_get_info_for_directory(self, async_volume: AsyncVolume):+ path = "/info-dir"++ await async_volume.make_dir(path)+ info = await async_volume.get_info(path)++ assert info.name == "info-dir"+ assert info.type.value == "directory"+ assert info.path == path++ async def test_exists_returns_false_for_nonexistent(+ self, async_volume: AsyncVolume+ ):+ assert await async_volume.exists("/non-existent.txt") is False+++class TestUpdateMetadata:+ async def test_update_file_metadata(self, async_volume: AsyncVolume):+ path = "/metadata-update.txt"+ await async_volume.write_file(path, "Content")++ updated = await async_volume.update_metadata(+ path, uid=1001, gid=1001, mode=0o755+ )++ assert updated.path == path+ assert updated.type.value == "file"+ assert updated.uid == 1001+ assert updated.gid == 1001+ assert updated.mode == 0o755++ async def test_update_metadata_nonexistent_raises(self, async_volume: AsyncVolume):+ with pytest.raises(NotFoundException):+ await async_volume.update_metadata("/non-existent.txt", mode=0o644)+++class TestMakeDir:+ async def test_create_directory(self, async_volume: AsyncVolume):+ path = "/test-dir"++ await async_volume.make_dir(path)+ info = await async_volume.get_info(path)++ assert info.type.value == "directory"+ assert info.path == path++ async def test_create_nested_directories_with_force(+ self, async_volume: AsyncVolume+ ):+ path = "/nested/deep/directory"++ await async_volume.make_dir(path, force=True)+ info = await async_volume.get_info(path)++ assert info.type.value == "directory"++ async def test_create_existing_directory_without_force_raises(+ self, async_volume: AsyncVolume+ ):+ path = "/existing-dir"++ await async_volume.make_dir(path)+ with pytest.raises(VolumeException):+ await async_volume.make_dir(path, force=False)++ async def test_create_directory_with_metadata(self, async_volume: AsyncVolume):+ path = "/dir-with-metadata"++ await async_volume.make_dir(path, uid=1000, gid=1000, mode=0o755)++ info = await async_volume.get_info(path)+ assert info.type.value == "directory"+ assert info.uid == 1000+ assert info.gid == 1000+ assert info.mode & 0o777 == 0o755+++class TestList:+ async def test_list_directory_contents(self, async_volume: AsyncVolume):+ await async_volume.write_file("/file1.txt", "Content 1")+ await async_volume.write_file("/file2.txt", "Content 2")+ await async_volume.make_dir("/dir1")++ entries = await async_volume.list("/")++ assert len(entries) >= 3+ file_names = sorted([e.name for e in entries])+ assert "file1.txt" in file_names+ assert "file2.txt" in file_names+ assert "dir1" in file_names++ async def test_list_nested_directory(self, async_volume: AsyncVolume):+ await async_volume.make_dir("/nested", force=True)+ await async_volume.write_file("/nested/file.txt", "Content")++ entries = await async_volume.list("/nested")++ assert len(entries) >= 1+ assert any(e.name == "file.txt" for e in entries)++ @pytest.mark.skip(reason="depth option not yet supported")+ async def test_list_with_depth(self, async_volume: AsyncVolume):+ await async_volume.make_dir("/deep/nested/structure", force=True)+ await async_volume.write_file("/deep/nested/structure/file.txt", "Content")++ entries = await async_volume.list("/deep", depth=2)++ assert len(entries) > 0++ async def test_list_nonexistent_raises(self, async_volume: AsyncVolume):+ with pytest.raises(NotFoundException):+ await async_volume.list("/non-existent")+++class TestRemove:+ async def test_remove_file(self, async_volume: AsyncVolume):+ path = "/to-remove.txt"+ await async_volume.write_file(path, "Content")++ await async_volume.remove(path)++ assert await async_volume.exists(path) is False++ async def test_remove_directory(self, async_volume: AsyncVolume):+ path = "/to-remove-dir"+ await async_volume.make_dir(path)++ await async_volume.remove(path)++ assert await async_volume.exists(path) is False++ async def test_remove_directory_recursively(self, async_volume: AsyncVolume):+ dir_path = "/recursive-dir"+ await async_volume.make_dir(f"{dir_path}/nested", force=True)+ await async_volume.write_file(f"{dir_path}/nested/file.txt", "Content")++ await async_volume.remove(dir_path)++ assert await async_volume.exists(dir_path) is False++ async def test_remove_nonexistent_raises(self, async_volume: AsyncVolume):+ with pytest.raises(NotFoundException):+ await async_volume.remove("/non-existent.txt")+++class TestFileOperationsLifecycle:+ async def test_directory_with_multiple_files(self, async_volume: AsyncVolume):+ dir_path = "/multi-file-dir"+ await async_volume.make_dir(dir_path)++ files = ["file1.txt", "file2.txt", "file3.txt"]+ for file_name in files:+ await async_volume.write_file(+ f"{dir_path}/{file_name}", f"Content of {file_name}"+ )++ entries = await async_volume.list(dir_path)+ assert len(entries) >= len(files)++ for file_name in files:+ content = await async_volume.read_file(+ f"{dir_path}/{file_name}", format="text"+ )+ assert content == f"Content of {file_name}"++ await async_volume.remove(dir_path)+ assert await async_volume.exists(dir_path) is Falsediff --git a/packages/python-sdk/tests/async/volume_async/test_volume.py b/packages/python-sdk/tests/async/volume_async/test_volume.pynew file mode 100644index 000000000..24e22aba1--- /dev/null+++ b/packages/python-sdk/tests/async/volume_async/test_volume.py@@ -0,0 +1,156 @@+from http import HTTPStatus+from uuid import uuid4++import pytest++from e2b import AsyncVolume+from e2b.exceptions import NotFoundException+from e2b.api.client.models.volume_and_token import VolumeAndToken+from e2b.api.client.types import Response+import e2b.api.client.api.volumes.post_volumes as post_volumes_mod+import e2b.api.client.api.volumes.get_volumes as get_volumes_mod+import e2b.api.client.api.volumes.get_volumes_volume_id as get_volume_mod+import e2b.api.client.api.volumes.delete_volumes_volume_id as delete_volume_mod++# In-memory store for mock volumes+_volumes: dict[str, VolumeAndToken] = {}++[email protected](autouse=True)+def mock_volume_api(monkeypatch):+ monkeypatch.setenv("E2B_API_KEY", "test-api-key")+ _volumes.clear()++ async def mock_post_volumes(*, client, body):+ vol_id = str(uuid4())+ token = f"vol-token-{uuid4()}"+ vol = VolumeAndToken(volume_id=vol_id, name=body.name, token=token)+ _volumes[vol_id] = vol+ return Response(+ status_code=HTTPStatus(201),+ content=b"",+ headers={},+ parsed=vol,+ )++ async def mock_get_volumes(*, client):+ return Response(+ status_code=HTTPStatus(200),+ content=b"",+ headers={},+ parsed=list(_volumes.values()),+ )++ async def mock_get_volume(volume_id, *, client):+ vol = _volumes.get(volume_id)+ if vol is None:+ return Response(+ status_code=HTTPStatus(404),+ content=b"",+ headers={},+ parsed=None,+ )+ return Response(+ status_code=HTTPStatus(200),+ content=b"",+ headers={},+ parsed=vol,+ )++ async def mock_delete_volume(volume_id, *, client):+ if volume_id not in _volumes:+ return Response(+ status_code=HTTPStatus(404),+ content=b"",+ headers={},+ parsed=None,+ )+ del _volumes[volume_id]+ return Response(+ status_code=HTTPStatus(204),+ content=b"",+ headers={},+ parsed=None,+ )++ monkeypatch.setattr(post_volumes_mod, "asyncio_detailed", mock_post_volumes)+ monkeypatch.setattr(get_volumes_mod, "asyncio_detailed", mock_get_volumes)+ monkeypatch.setattr(get_volume_mod, "asyncio_detailed", mock_get_volume)+ monkeypatch.setattr(delete_volume_mod, "asyncio_detailed", mock_delete_volume)+++async def test_create_volume():+ vol = await AsyncVolume.create("test-volume")++ assert vol is not None+ assert vol.volume_id is not None+ assert vol.name == "test-volume"+ assert vol.token is not None+++async def test_get_volume_info():+ created = await AsyncVolume.create("info-volume")+ info = await AsyncVolume.get_info(created.volume_id)++ assert info.volume_id == created.volume_id+ assert info.name == "info-volume"+ assert info.token is not None+++async def test_list_volumes():+ await AsyncVolume.create("vol-a")+ await AsyncVolume.create("vol-b")++ volumes = await AsyncVolume.list()++ assert len(volumes) == 2+ names = sorted([v.name for v in volumes])+ assert names == ["vol-a", "vol-b"]+++async def test_list_volumes_empty():+ volumes = await AsyncVolume.list()+ assert len(volumes) == 0+++async def test_destroy_volume():+ vol = await AsyncVolume.create("to-delete")+ result = await AsyncVolume.destroy(vol.volume_id)++ assert result is True++ volumes = await AsyncVolume.list()+ assert len(volumes) == 0+++async def test_destroy_nonexistent_volume():+ result = await AsyncVolume.destroy("non-existent-id")+ assert result is False+++async def test_get_info_nonexistent_volume():+ with pytest.raises(NotFoundException):+ await AsyncVolume.get_info("non-existent-id")+++async def test_volume_full_lifecycle():+ # Create+ vol = await AsyncVolume.create("lifecycle-vol")+ assert vol.name == "lifecycle-vol"++ # Get info+ info = await AsyncVolume.get_info(vol.volume_id)+ assert info.name == "lifecycle-vol"++ # List+ volumes = await AsyncVolume.list()+ assert len(volumes) == 1+ assert volumes[0].volume_id == vol.volume_id++ # Destroy+ destroyed = await AsyncVolume.destroy(vol.volume_id)+ assert destroyed is True++ # List again+ volumes = await AsyncVolume.list()+ assert len(volumes) == 0diff --git a/packages/python-sdk/tests/conftest.py b/packages/python-sdk/tests/conftest.pyindex 498d8d541..b735bc0c9 100644--- a/packages/python-sdk/tests/conftest.py+++ b/packages/python-sdk/tests/conftest.py@@ -1,8 +1,8 @@import asyncioimport os-import uuid+import random+import stringfrom typing import Callable, Dict, Optional-from uuid import uuid4import pytestimport pytest_asyncio@@ -11,12 +11,14 @@ from e2b import (AsyncCommandHandle,AsyncSandbox,AsyncTemplate,+ AsyncVolume,CommandExitException,CommandHandle,LogEntry,Sandbox,Template,TemplateClass,+ Volume,)@@ -30,7 +32,7 @@ def pytest_runtest_makereport(item, call):@pytest.fixture()def sandbox_test_id():- return f"test_{uuid.uuid4()}"+ return f"test_{_generate_random_string()}"@pytest.fixture()@@ -112,7 +114,7 @@ def build():skip_cache: bool = False,on_build_logs: Optional[Callable[[LogEntry], None]] = None,):- build_name = name or f"e2b-test:v1-{uuid4()}"+ build_name = name or f"e2b-test-{_generate_random_string()}"build_info: Dict[str, Optional[str]] = {"template_id": None, "build_id": None}def capture_logs(log: LogEntry):@@ -156,7 +158,7 @@ def async_build():skip_cache: bool = False,on_build_logs: Optional[Callable[[LogEntry], None]] = None,):- build_name = name or f"e2b-test:v1-{uuid4()}"+ build_name = name or f"e2b-test-{_generate_random_string()}"build_info: Dict[str, Optional[str]] = {"template_id": None, "build_id": None}def capture_logs(log: LogEntry):@@ -241,3 +243,43 @@ class Helpers:@pytest.fixturedef helpers():return Helpers+++def _generate_random_string(length: int = 8) -> str:+ return "".join(random.choices(string.ascii_lowercase + string.digits, k=length))+++def volume(request):+ vol = Volume.create(f"test-vol-{_generate_random_string()}")++ def finalizer():+ if getattr(request.node, "_test_failed", False):+ print(f"\n[TEST FAILED] Volume ID: {vol.volume_id}")+ try:+ Volume.destroy(vol.volume_id)+ except Exception:+ pass++ request.addfinalizer(finalizer)+ return vol+++async def async_volume(request, event_loop):+ vol = await AsyncVolume.create(f"test-vol-{_generate_random_string()}")++ def finalizer():+ if getattr(request.node, "_test_failed", False):+ print(f"\n[TEST FAILED] Volume ID: {vol.volume_id}")++ async def _destroy():+ try:+ await AsyncVolume.destroy(vol.volume_id)+ except Exception:+ pass++ event_loop.run_until_complete(_destroy())++ request.addfinalizer(finalizer)+ return voldiff --git a/packages/python-sdk/tests/sync/volume_sync/test_file.py b/packages/python-sdk/tests/sync/volume_sync/test_file.pynew file mode 100644index 000000000..c51db8169--- /dev/null+++ b/packages/python-sdk/tests/sync/volume_sync/test_file.py@@ -0,0 +1,271 @@+import datetime+from io import BytesIO++import pytest++from e2b import Volume+from e2b.exceptions import NotFoundException, VolumeException+++class TestWriteFileAndReadFile:+ def test_write_and_read_text_file(self, volume: Volume):+ path = "/test.txt"+ content = "Hello, World!"++ volume.write_file(path, content)+ read_content = volume.read_file(path, format="text")++ assert read_content == content++ def test_write_and_read_bytes(self, volume: Volume):+ path = "/test-bytes.txt"+ content = "Test bytes content"+ content_bytes = content.encode("utf-8")++ volume.write_file(path, content_bytes)+ read_bytes = volume.read_file(path, format="bytes")++ assert read_bytes == content_bytes++ def test_write_and_read_binary_data(self, volume: Volume):+ path = "/binary.bin"+ binary_data = bytes([0, 1, 2, 3, 4])++ volume.write_file(path, binary_data)+ read_bytes = volume.read_file(path, format="bytes")++ assert read_bytes == binary_data++ def test_write_and_read_stream(self, volume: Volume):+ path = "/test-stream.txt"+ content = "Test stream content"+ stream = BytesIO(content.encode("utf-8"))++ volume.write_file(path, stream)+ read_stream = volume.read_file(path, format="stream")+ read_content = b"".join(read_stream).decode("utf-8")++ assert read_content == content++ def test_write_and_read_empty_file(self, volume: Volume):+ path = "/empty.txt"+ content = ""++ volume.write_file(path, content)+ read_content = volume.read_file(path, format="text")++ assert read_content == content++ def test_overwrite_with_force(self, volume: Volume):+ path = "/overwrite.txt"+ initial_content = "Initial content"+ new_content = "New content"++ volume.write_file(path, initial_content)+ volume.write_file(path, new_content, force=True)+ read_content = volume.read_file(path, format="text")++ assert read_content == new_content++ def test_write_existing_file_without_force_raises(self, volume: Volume):+ path = "/no-overwrite.txt"+ initial_content = "Initial content"+ new_content = "New content"++ volume.write_file(path, initial_content)+ with pytest.raises(VolumeException):+ volume.write_file(path, new_content, force=False)++ def test_write_file_with_metadata(self, volume: Volume):+ path = "/metadata.txt"+ content = "File with metadata"++ volume.write_file(path, content, uid=1000, gid=1000, mode=0o644)++ entry_info = volume.get_info(path)+ assert entry_info.type.value == "file"+ assert entry_info.uid == 1000+ assert entry_info.gid == 1000+ assert entry_info.mode == 0o644++ def test_write_file_in_nested_directory(self, volume: Volume):+ dir_path = "/nested/deep/path"+ file_path = f"{dir_path}/file.txt"+ content = "Nested file content"++ volume.make_dir(dir_path, force=True)+ volume.write_file(file_path, content)+ read_content = volume.read_file(file_path, format="text")++ assert read_content == content+++class TestGetInfo:+ def test_get_info_for_file(self, volume: Volume):+ path = "/info-file.txt"+ content = "File for info test"++ volume.write_file(path, content)+ info = volume.get_info(path)++ assert info.name == "info-file.txt"+ assert info.type.value == "file"+ assert info.path == path+ assert isinstance(info.mtime, datetime.datetime)+ assert isinstance(info.ctime, datetime.datetime)++ def test_get_info_for_directory(self, volume: Volume):+ path = "/info-dir"++ volume.make_dir(path)+ info = volume.get_info(path)++ assert info.name == "info-dir"+ assert info.type.value == "directory"+ assert info.path == path++ def test_exists_returns_false_for_nonexistent(self, volume: Volume):+ assert volume.exists("/non-existent.txt") is False+++class TestUpdateMetadata:+ def test_update_file_metadata(self, volume: Volume):+ path = "/metadata-update.txt"+ volume.write_file(path, "Content")++ updated = volume.update_metadata(path, uid=1001, gid=1001, mode=0o755)++ assert updated.path == path+ assert updated.type.value == "file"+ assert updated.uid == 1001+ assert updated.gid == 1001+ assert updated.mode == 0o755++ def test_update_metadata_nonexistent_raises(self, volume: Volume):+ with pytest.raises(NotFoundException):+ volume.update_metadata("/non-existent.txt", mode=0o644)+++class TestMakeDir:+ def test_create_directory(self, volume: Volume):+ path = "/test-dir"++ volume.make_dir(path)+ info = volume.get_info(path)++ assert info.type.value == "directory"+ assert info.path == path++ def test_create_nested_directories_with_force(self, volume: Volume):+ path = "/nested/deep/directory"++ volume.make_dir(path, force=True)+ info = volume.get_info(path)++ assert info.type.value == "directory"++ def test_create_existing_directory_without_force_raises(self, volume: Volume):+ path = "/existing-dir"++ volume.make_dir(path)+ with pytest.raises(VolumeException):+ volume.make_dir(path, force=False)++ def test_create_directory_with_metadata(self, volume: Volume):+ path = "/dir-with-metadata"++ volume.make_dir(path, uid=1000, gid=1000, mode=0o755)++ info = volume.get_info(path)+ assert info.type.value == "directory"+ assert info.uid == 1000+ assert info.gid == 1000+ assert info.mode & 0o777 == 0o755+++class TestList:+ def test_list_directory_contents(self, volume: Volume):+ volume.write_file("/file1.txt", "Content 1")+ volume.write_file("/file2.txt", "Content 2")+ volume.make_dir("/dir1")++ entries = volume.list("/")++ assert len(entries) >= 3+ file_names = sorted([e.name for e in entries])+ assert "file1.txt" in file_names+ assert "file2.txt" in file_names+ assert "dir1" in file_names++ def test_list_nested_directory(self, volume: Volume):+ volume.make_dir("/nested", force=True)+ volume.write_file("/nested/file.txt", "Content")++ entries = volume.list("/nested")++ assert len(entries) >= 1+ assert any(e.name == "file.txt" for e in entries)++ @pytest.mark.skip(reason="depth option not yet supported")+ def test_list_with_depth(self, volume: Volume):+ volume.make_dir("/deep/nested/structure", force=True)+ volume.write_file("/deep/nested/structure/file.txt", "Content")++ entries = volume.list("/deep", depth=2)++ assert len(entries) > 0++ def test_list_nonexistent_raises(self, volume: Volume):+ with pytest.raises(NotFoundException):+ volume.list("/non-existent")+++class TestRemove:+ def test_remove_file(self, volume: Volume):+ path = "/to-remove.txt"+ volume.write_file(path, "Content")++ volume.remove(path)++ assert volume.exists(path) is False++ def test_remove_directory(self, volume: Volume):+ path = "/to-remove-dir"+ volume.make_dir(path)++ volume.remove(path)++ assert volume.exists(path) is False++ def test_remove_directory_recursively(self, volume: Volume):+ dir_path = "/recursive-dir"+ volume.make_dir(f"{dir_path}/nested", force=True)+ volume.write_file(f"{dir_path}/nested/file.txt", "Content")++ volume.remove(dir_path)++ assert volume.exists(dir_path) is False++ def test_remove_nonexistent_raises(self, volume: Volume):+ with pytest.raises(NotFoundException):+ volume.remove("/non-existent.txt")+++class TestFileOperationsLifecycle:+ def test_directory_with_multiple_files(self, volume: Volume):+ dir_path = "/multi-file-dir"+ volume.make_dir(dir_path)++ files = ["file1.txt", "file2.txt", "file3.txt"]+ for file_name in files:+ volume.write_file(f"{dir_path}/{file_name}", f"Content of {file_name}")++ entries = volume.list(dir_path)+ assert len(entries) >= len(files)++ for file_name in files:+ content = volume.read_file(f"{dir_path}/{file_name}", format="text")+ assert content == f"Content of {file_name}"++ volume.remove(dir_path)+ assert volume.exists(dir_path) is Falsediff --git a/packages/python-sdk/tests/sync/volume_sync/test_volume.py b/packages/python-sdk/tests/sync/volume_sync/test_volume.pynew file mode 100644index 000000000..f634f113e--- /dev/null+++ b/packages/python-sdk/tests/sync/volume_sync/test_volume.py@@ -0,0 +1,156 @@+from http import HTTPStatus+from uuid import uuid4++import pytest++from e2b import Volume+from e2b.exceptions import NotFoundException+from e2b.api.client.models.volume_and_token import VolumeAndToken+from e2b.api.client.types import Response+import e2b.api.client.api.volumes.post_volumes as post_volumes_mod+import e2b.api.client.api.volumes.get_volumes as get_volumes_mod+import e2b.api.client.api.volumes.get_volumes_volume_id as get_volume_mod+import e2b.api.client.api.volumes.delete_volumes_volume_id as delete_volume_mod++# In-memory store for mock volumes+_volumes: dict[str, VolumeAndToken] = {}++[email protected](autouse=True)+def mock_volume_api(monkeypatch):+ monkeypatch.setenv("E2B_API_KEY", "test-api-key")+ _volumes.clear()++ def mock_post_volumes(*, client, body):+ vol_id = str(uuid4())+ token = f"vol-token-{uuid4()}"+ vol = VolumeAndToken(volume_id=vol_id, name=body.name, token=token)+ _volumes[vol_id] = vol+ return Response(+ status_code=HTTPStatus(201),+ content=b"",+ headers={},+ parsed=vol,+ )++ def mock_get_volumes(*, client):+ return Response(+ status_code=HTTPStatus(200),+ content=b"",+ headers={},+ parsed=list(_volumes.values()),+ )++ def mock_get_volume(volume_id, *, client):+ vol = _volumes.get(volume_id)+ if vol is None:+ return Response(+ status_code=HTTPStatus(404),+ content=b"",+ headers={},+ parsed=None,+ )+ return Response(+ status_code=HTTPStatus(200),+ content=b"",+ headers={},+ parsed=vol,+ )++ def mock_delete_volume(volume_id, *, client):+ if volume_id not in _volumes:+ return Response(+ status_code=HTTPStatus(404),+ content=b"",+ headers={},+ parsed=None,+ )+ del _volumes[volume_id]+ return Response(+ status_code=HTTPStatus(204),+ content=b"",+ headers={},+ parsed=None,+ )++ monkeypatch.setattr(post_volumes_mod, "sync_detailed", mock_post_volumes)+ monkeypatch.setattr(get_volumes_mod, "sync_detailed", mock_get_volumes)+ monkeypatch.setattr(get_volume_mod, "sync_detailed", mock_get_volume)+ monkeypatch.setattr(delete_volume_mod, "sync_detailed", mock_delete_volume)+++def test_create_volume():+ vol = Volume.create("test-volume")++ assert vol is not None+ assert vol.volume_id is not None+ assert vol.name == "test-volume"+ assert vol.token is not None+++def test_get_volume_info():+ created = Volume.create("info-volume")+ info = Volume.get_info(created.volume_id)++ assert info.volume_id == created.volume_id+ assert info.name == "info-volume"+ assert info.token is not None+++def test_list_volumes():+ Volume.create("vol-a")+ Volume.create("vol-b")++ volumes = Volume.list()++ assert len(volumes) == 2+ names = sorted([v.name for v in volumes])+ assert names == ["vol-a", "vol-b"]+++def test_list_volumes_empty():+ volumes = Volume.list()+ assert len(volumes) == 0+++def test_destroy_volume():+ vol = Volume.create("to-delete")+ result = Volume.destroy(vol.volume_id)++ assert result is True++ volumes = Volume.list()+ assert len(volumes) == 0+++def test_destroy_nonexistent_volume():+ result = Volume.destroy("non-existent-id")+ assert result is False+++def test_get_info_nonexistent_volume():+ with pytest.raises(NotFoundException):+ Volume.get_info("non-existent-id")+++def test_volume_full_lifecycle():+ # Create+ vol = Volume.create("lifecycle-vol")+ assert vol.name == "lifecycle-vol"++ # Get info+ info = Volume.get_info(vol.volume_id)+ assert info.name == "lifecycle-vol"++ # List+ volumes = Volume.list()+ assert len(volumes) == 1+ assert volumes[0].volume_id == vol.volume_id++ # Destroy+ destroyed = Volume.destroy(vol.volume_id)+ assert destroyed is True++ # List again+ volumes = Volume.list()+ assert len(volumes) == 0diff --git a/packages/python-sdk/tests/test_volume_connection_config.py b/packages/python-sdk/tests/test_volume_connection_config.pynew file mode 100644index 000000000..421bea813--- /dev/null+++ b/packages/python-sdk/tests/test_volume_connection_config.py@@ -0,0 +1,50 @@+from e2b.volume.connection_config import VolumeConnectionConfig+++def test_volume_api_url_defaults_correctly(monkeypatch):+ monkeypatch.delenv("E2B_VOLUME_API_URL", raising=False)+ monkeypatch.delenv("E2B_DOMAIN", raising=False)+ monkeypatch.delenv("E2B_DEBUG", raising=False)++ config = VolumeConnectionConfig()+ assert config.api_url == "https://api.e2b.app"+++def test_volume_api_url_in_args():+ config = VolumeConnectionConfig(api_url="http://localhost:8080")+ assert config.api_url == "http://localhost:8080"+++def test_volume_api_url_in_env_var(monkeypatch):+ monkeypatch.setenv("E2B_VOLUME_API_URL", "http://localhost:8080")++ config = VolumeConnectionConfig()+ assert config.api_url == "http://localhost:8080"+++def test_volume_api_url_has_correct_priority(monkeypatch):+ monkeypatch.setenv("E2B_VOLUME_API_URL", "http://localhost:1111")++ config = VolumeConnectionConfig(api_url="http://localhost:8080")+ assert config.api_url == "http://localhost:8080"+++def test_volume_api_url_debug_mode(monkeypatch):+ monkeypatch.delenv("E2B_VOLUME_API_URL", raising=False)+ monkeypatch.setenv("E2B_DEBUG", "true")++ config = VolumeConnectionConfig()+ assert config.api_url == "http://localhost:8080"+++def test_volume_api_url_custom_domain(monkeypatch):+ monkeypatch.delenv("E2B_VOLUME_API_URL", raising=False)+ monkeypatch.setenv("E2B_DOMAIN", "custom.com")++ config = VolumeConnectionConfig()+ assert config.api_url == "https://api.custom.com"+++def test_volume_api_url_custom_domain_in_args():+ config = VolumeConnectionConfig(domain="custom.com")+ assert config.api_url == "https://api.custom.com"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0e06aaf89..fd74e1543 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -129,7 +129,7 @@ importers:version: 5.2.2vitest:specifier: ^3.2.4- version: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ version: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])packages/js-sdk:dependencies:@@ -162,7 +162,7 @@ importers:version: 1.3.6tar:specifier: ^7.5.11- version: 7.5.11+ version: 7.5.12devDependencies:'@testing-library/react':specifier: ^16.2.0@@ -187,7 +187,7 @@ importers:version: 4.3.4([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@vitest/browser':specifier: ^3.2.4- version: 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])dotenv:specifier: ^16.4.5version: 16.4.5@@ -201,8 +201,11 @@ importers:specifier: ^5.43.6version: 5.43.6(@types/[email protected])([email protected])msw:- specifier: ^2.12.3- version: 2.12.3(@types/[email protected])([email protected])+ specifier: ^2.12.10+ version: 2.12.14(@types/[email protected])([email protected])+ npm-check-updates:+ specifier: ^16.14.20+ version: 16.14.20npm-run-all:specifier: ^4.1.5version: 4.1.5@@ -223,7 +226,7 @@ importers:version: 5.5.3vitest:specifier: ^3.2.4- version: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ version: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])vitest-browser-react:specifier: ^0.1.1version: 0.1.1(@types/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected]([email protected]))([email protected])([email protected])@@ -368,6 +371,10 @@ packages:'@changesets/[email protected]':resolution: {integrity: sha512-b1UkfNulgKoWfqyHtzKS5fOZYSJO+77adgL7DLRDr+/7jhChN+QcHnbjiQVOz/U+Ts3PGNySq7diAItzDgugfQ==}+ '@colors/[email protected]':+ resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==}+ engines: {node: '>=0.1.90'}+'@connectrpc/[email protected]':resolution: {integrity: sha512-w88P8Lsn5CCsA7MFRl2e6oLY4J/5toiNtJns/YJrlyQaWOy3RO8pDgkz+iIkG98RPMhj2thuBvsd3Cn4DKKCkw==}peerDependencies:@@ -561,6 +568,9 @@ packages:resolution: {integrity: sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==}engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ '@gar/[email protected]':+ resolution: {integrity: sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==}+'@humanwhocodes/[email protected]':resolution: {integrity: sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==}engines: {node: '>=10.10.0'}@@ -777,8 +787,8 @@ packages:'@manypkg/[email protected]':resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==}- '@mswjs/[email protected]':- resolution: {integrity: sha512-EFd6cVbHsgLa6wa4RljGj6Wk75qoHxUSyc5asLyyPSyuhIcdS2Q3Phw6ImS1q+CkALthJRShiYfKANcQMuMqsQ==}+ '@mswjs/[email protected]':+ resolution: {integrity: sha512-cXu86tF4VQVfwz8W1SPbhoRyHJkti6mjH/XJIxp40jhO4j2k1m4KYrEykxqWPkFF3vrK4rgQppBh//AwyGSXPA==}engines: {node: '>=18'}'@nodelib/[email protected]':@@ -805,18 +815,52 @@ packages:resolution: {integrity: sha512-nIh/M6Kh3ZtOmlY00DaUYB4xeeV6F3/ts1l29iwl3/cfyY/OuCfUx+v08zgx8TKPTifXRcjjqVQ4KB2zOYSbyw==}engines: {node: '>=18.18.0'}+ '@npmcli/[email protected]':+ resolution: {integrity: sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}++ '@npmcli/[email protected]':+ resolution: {integrity: sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ '@npmcli/[email protected]':+ resolution: {integrity: sha512-9hwoB3gStVfa0N31ymBmrX+GuDGdVA/QWShZVqE0HK2Af+7QGGrCTbZia/SW0ImUTjTne7SP91qxDmtXvDHRPQ==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+'@npmcli/[email protected]':resolution: {integrity: sha512-liASfw5cqhjNW9UFd+ruwwdEf/lbOAQjLL2XY2dFW/bkJheXDYZgOyul/4gVvEV4BWkTXjYGmDqMw9uegdbJNQ==}engines: {node: ^16.14.0 || >=18.0.0}+ '@npmcli/[email protected]':+ resolution: {integrity: sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ hasBin: true++ '@npmcli/[email protected]':+ resolution: {integrity: sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ deprecated: This functionality has been moved to @npmcli/fs++ '@npmcli/[email protected]':+ resolution: {integrity: sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+'@npmcli/[email protected]':resolution: {integrity: sha512-f7zYC6kQautXHvNbLEWgD/uGu1+xCn9izgqBfgItWSx22U0ZDekxN08A1vM8cTxj/cRVe0Q94Ode+tdoYmIOOQ==}engines: {node: ^16.14.0 || >=18.0.0}+ '@npmcli/[email protected]':+ resolution: {integrity: sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+'@npmcli/[email protected]':resolution: {integrity: sha512-xhfYPXoV5Dy4UkY0D+v2KkwvnDfiA/8Mt3sWCGI/hM03NsYIH8ZaG6QzS9x7pje5vHZBZJ2v6VRFVTWACnqcmQ==}engines: {node: ^16.14.0 || >=18.0.0}+ '@npmcli/[email protected]':+ resolution: {integrity: sha512-NCcr1uQo1k5U+SYlnIrbAh3cxy+OQT1VtqiAbxdymSlptbzBb62AjH2xXgjNCoP073hoa1CfCAcwoZ8k96C4nA==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+'@open-draft/[email protected]':resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}@@ -830,6 +874,18 @@ packages:resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}+ '@pnpm/[email protected]':+ resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==}+ engines: {node: '>=12.22.0'}++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-YcPQ8a0jwYU9bTdJDpXjMi7Brhkr1mXsXrUJvjqM2mQDgkRiz8jFaQGOdaLxgjtUfQgZhKy/O3cG/YwmgKaxLA==}+ engines: {node: '>=12.22.0'}++ '@pnpm/[email protected]':+ resolution: {integrity: sha512-UA91GwWPhFExt3IizW6bOeY/pQ0BkuNwKjk9iQW9KqxluGCrg4VenZ0/L+2Y0+ZOtme72EVvg6v0zo3AMQRCeA==}+ engines: {node: '>=12'}+'@polka/[email protected]':resolution: {integrity: sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==}@@ -943,11 +999,35 @@ packages:cpu: [x64]os: [win32]+ '@sigstore/[email protected]':+ resolution: {integrity: sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ '@sigstore/[email protected]':+ resolution: {integrity: sha512-XTWVxnWJu+c1oCshMLwnKvz8ZQJJDVOlciMfgpJBQbThVjKTCG8dwyhgLngBD2KN0ap9F/gOV8rFDEx8uh7R2A==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ '@sigstore/[email protected]':+ resolution: {integrity: sha512-INxFVNQteLtcfGmcoldzV6Je0sbbfh9I16DM4yJPw3j5+TFP8X6uIiA18mvpEa9yyeycAKgPmOA3X9hVdVTPUA==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ '@sigstore/[email protected]':+ resolution: {integrity: sha512-2bRovzs0nJZFlCN3rXirE4gwxCn97JNjMmwpecqlbgV9WcxX7WRuIrgzx/X7Ib7MYRbyUTpBYE0s2x6AmZXnlg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ '@sindresorhus/[email protected]':+ resolution: {integrity: sha512-TV7t8GKYaJWsn00tFDqBw8+Uqmr8A0fRU1tvTQhyZzGv0sJCGRQL3JGMI3ucuKo3XIZdUP+Lx7/gh2t3lewy7g==}+ engines: {node: '>=14.16'}+'@snyk/[email protected]':resolution: {integrity: sha512-lGFf08pbkEac0NYgVf4hdANpAgApRjNByLXB+WBip3qj1iendOIyAwP2GKkKbQMNVy2r1xxDf0ssfWscoiC+Vw==}engines: {node: '>=8.10'}hasBin: true+ '@szmarczak/[email protected]':+ resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==}+ engines: {node: '>=14.16'}+'@testing-library/[email protected]':resolution: {integrity: sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==}engines: {node: '>=18'}@@ -973,6 +1053,18 @@ packages:peerDependencies:'@testing-library/dom': '>=7.21.4'+ '@tootallnate/[email protected]':+ resolution: {integrity: sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==}+ engines: {node: '>= 10'}++ '@tufjs/[email protected]':+ resolution: {integrity: sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ '@tufjs/[email protected]':+ resolution: {integrity: sha512-qaGV9ltJP0EO25YfFUPhxRVK0evXFIAGicsVXuRim4Ed9cjPxYhNnNJ49SFmbeLgtxpslIkX317IgpfcHPVj/A==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+'@types/[email protected]':resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}@@ -1007,6 +1099,9 @@ packages:resolution: {integrity: sha512-gq9YweFKNNB1uFK71eRqsd4niVkXrxHugqWFQkeLRJvGjnxsLr16bYtcsG4tOFwmYi0Bax+wCkbf1reUfdl4kA==}deprecated: This is a stub types definition. handlebars provides its own type definitions, so you do not need this installed.+ '@types/[email protected]':+ resolution: {integrity: sha512-V46MYLFp08Wf2mmaBhvgjStM3tPa+2GAdy/iqoX+noX1//zje2x4XmrIU0cAwyClATsTmahbtoQ2EwP7I5WSiA==}+'@types/[email protected]':resolution: {integrity: sha512-Q0zyBupO6NxGRZut/JdmqYKOnN95Eg5V8Csg3PGKkP+FnvsUZx1jAyK7fztIszxxMuoBA6E3KXWvdZVXIpx60g==}@@ -1031,9 +1126,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-ZmSaqHuvzv+jC232cFoz2QqPUkaj6EvMmCrWcx3WRr7xTPVFCMUOTcOq8m2d+Zw1iKRc1kDiaA+jtNrV0hkVew==}- '@types/[email protected]':- resolution: {integrity: sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==}-'@types/[email protected]':resolution: {integrity: sha512-RK/kBbYOQQHLYj9Z95eh7S6t7gq4Ojt/NT8HTk8bWVhA5DaF+5SMnxHKkP4gPNN3wAZkKP+VjAf0ebtYzf+fxg==}@@ -1043,8 +1135,8 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-r6QZ069rFTjrEYgFdOck1gK7FLVsgJE7tTz0pQBczlBNUhBNk0MQH4UbnFSwjpQLMkLzgqvBBa+qGpLje16eTQ==}- '@types/[email protected]':- resolution: {integrity: sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-T+YwkslhsM+CeuhYUxyAjWm7mJ5am/K10UX40RuA6k6Lc7eGtq8iY2xOzy7Vq0GOqhl/xZl5l2FwURZMTPTUww==}'@types/[email protected]':resolution: {integrity: sha512-7aqorHYgdNO4DM36stTiGO3DvKoex9TQRwsJU6vMaFGyqpBA1MNZkz+PG3gaNUPpTAOYhT1WR7M1JyA3fbS9Cw==}@@ -1236,6 +1328,9 @@ packages:'@vitest/[email protected]':resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==}+ resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}+resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}peerDependencies:@@ -1246,15 +1341,23 @@ packages:engines: {node: '>=0.4.0'}hasBin: true- resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}engines: {node: '>=0.4.0'}hasBin: true+ resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}+ engines: {node: '>= 6.0.0'}+resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==}engines: {node: '>= 14'}+ resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==}+ engines: {node: '>= 8.0.0'}+resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==}engines: {node: '>=8'}@@ -1296,6 +1399,14 @@ packages:resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}+ resolution: {integrity: sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew==}++ resolution: {integrity: sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ deprecated: This package is no longer supported.+resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}@@ -1390,6 +1501,22 @@ packages:resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}engines: {node: '>=8'}+ resolution: {integrity: sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}++ resolution: {integrity: sha512-/aJwG2l3ZMJ1xNAnqbMpA40of9dj/pIH3QfiuQSqjfPJF747VR0J/bHn+/KdNnHKc6XQcWt/AfRSBft82W1d2A==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-zkDT5WAF4hSSoUgyfg5tFIxz8XQK+25W/TLVojJTMKBaxevLBBtLxgqguAuVQB8PVW79FVjHcU+GJ9tVbDZ9mQ==}+ engines: {node: '>=14.16'}+resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}engines: {node: '>= 0.4'}@@ -1446,10 +1573,18 @@ packages:resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}engines: {node: '>= 14.16.0'}+ resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}engines: {node: '>=18'}+ resolution: {integrity: sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==}engines: {node: '>=6'}@@ -1463,6 +1598,10 @@ packages:engines: {node: '>=8.0.0', npm: '>=5.0.0'}hasBin: true+ resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==}+ engines: {node: 10.* || >= 12.*}+resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}engines: {node: '>= 12'}@@ -1491,12 +1630,20 @@ packages:resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}+ resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==}+ hasBin: true+resolution: {integrity: sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==}resolution: {integrity: sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==}+ resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}engines: {node: '>=16'}@@ -1514,10 +1661,20 @@ packages:resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}+ resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==}++ resolution: {integrity: sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}engines: {node: ^14.18.0 || >=16.10.0}+ resolution: {integrity: sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==}+resolution: {integrity: sha512-uuUHie0sfPP542TKGzPFal0W1wo1beuKAqIZdaavcONx8OoqdnJRKjkinbRTOta4FaCa1RcIL+7mMJWX3pQGVg==}@@ -1536,12 +1693,13 @@ packages:resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}engines: {node: '>= 8'}+ resolution: {integrity: sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==}- resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}-resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==}engines: {node: '>= 0.4'}@@ -1581,10 +1739,18 @@ packages:supports-color:optional: true+ resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}engines: {node: '>=6'}+ resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}+ engines: {node: '>=4.0.0'}+resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}@@ -1599,6 +1765,10 @@ packages:resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==}+ resolution: {integrity: sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==}engines: {node: '>= 0.4'}@@ -1615,6 +1785,9 @@ packages:resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==}+resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}engines: {node: '>=6'}@@ -1636,6 +1809,10 @@ packages:resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}+ resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==}engines: {node: '>=12'}@@ -1663,10 +1840,17 @@ packages:resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}+ resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==}+resolution: {integrity: sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==}engines: {node: '>=10.13.0'}+ resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==}@@ -1713,6 +1897,10 @@ packages:resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}engines: {node: '>=0.8.0'}@@ -1789,6 +1977,9 @@ packages:resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==}+resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==}@@ -1809,6 +2000,9 @@ packages:resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}+ resolution: {integrity: sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==}+resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==}@@ -1863,6 +2057,14 @@ packages:resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==}engines: {node: '>=14'}+ resolution: {integrity: sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==}+ engines: {node: '>= 14.17'}++ resolution: {integrity: sha512-+yRYRhpnFPWXSly/6V4Lw9IfOV26uu30kynGJ03PW+MnjOEQe45RZ141QcS0aJehYBYA50GfCDnsRbFJdhssRw==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==}engines: {node: '>=6 <7 || >=8'}@@ -1871,6 +2073,14 @@ packages:resolution: {integrity: sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==}engines: {node: '>=6 <7 || >=8'}+ resolution: {integrity: sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}@@ -1894,6 +2104,11 @@ packages:resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}+ resolution: {integrity: sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ deprecated: This package is no longer supported.+resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}engines: {node: '>=6.9.0'}@@ -1913,6 +2128,10 @@ packages:resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}engines: {node: '>=10'}@@ -1944,6 +2163,15 @@ packages:resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]+ resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}+ engines: {node: '>=12'}+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]++ resolution: {integrity: sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}engines: {node: '>=4'}@@ -1964,6 +2192,13 @@ packages:resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-mThBblvlAF1d4O5oqyvN+ZxLAYwIJK7bpMxgYqPD9okW0C3qm5FFn7k811QrcuEBwaogR3ngOFoCfs6mRv7teQ==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==}+resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}@@ -2020,6 +2255,13 @@ packages:resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==}++ resolution: {integrity: sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+resolution: {integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==}engines: {node: '>= 0.4.0'}@@ -2037,6 +2279,14 @@ packages:resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==}+ resolution: {integrity: sha512-xIcQYMnhcx2Nr4JTjsFmwwnr9vldugPy9uVm0o87bjqqWMv9GaqsTeT+i99wTl0mk1uLxJtHxLb8kymqTENQsw==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}++ resolution: {integrity: sha512-HVJyzUrLIL1c0QmviVh5E8VGyUS7xCFPS6yydaVd1UegW+ibV/CohqTH9MkOLDp5o+rb82DMo77PTuc9F/8GKw==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==}engines: {node: ^16.14.0 || >=18.0.0}@@ -2044,6 +2294,21 @@ packages:resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==}+ resolution: {integrity: sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==}++ resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-kZB0wxMo0sh1PehyjJUWRFEd99KC5TLjZ2cULC4f9iqJBAmKQQXEICjxl5iPJRwP40dpeHFqqhm7tYCvODpqpQ==}+ engines: {node: '>=10.19.0'}++ resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==}+ engines: {node: '>= 6'}+resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}engines: {node: '>= 14'}@@ -2056,10 +2321,21 @@ packages:resolution: {integrity: sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==}engines: {node: '>=14.18.0'}+ resolution: {integrity: sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==}++ resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==}engines: {node: '>= 4'}@@ -2072,6 +2348,10 @@ packages:resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}engines: {node: '>=6'}+ resolution: {integrity: sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}engines: {node: '>=0.8.19'}@@ -2087,6 +2367,9 @@ packages:resolution: {integrity: sha512-Yg7+ztRkqslMAS2iFaU+Oa4KTSidr63OsFGlOrJoW981kIYO3CGCS3wA95P1mUi/IVSJkn0D479KTJpVpvFNuw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==}+resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.@@ -2094,6 +2377,13 @@ packages:resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}+ resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}++ resolution: {integrity: sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -2111,6 +2401,10 @@ packages:resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==}+ engines: {node: '>= 12'}+resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}engines: {node: '>= 0.4'}@@ -2134,6 +2428,10 @@ packages:resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==}+ hasBin: true+resolution: {integrity: sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==}@@ -2184,6 +2482,13 @@ packages:engines: {node: '>=14.16'}hasBin: true+ resolution: {integrity: sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==}+resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==}engines: {node: '>= 0.4'}@@ -2195,6 +2500,10 @@ packages:resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==}+ resolution: {integrity: sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==}engines: {node: '>= 0.4'}@@ -2203,6 +2512,10 @@ packages:resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}engines: {node: '>=0.12.0'}+ resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}engines: {node: '>=8'}@@ -2247,6 +2560,9 @@ packages:resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}+resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}engines: {node: '>= 0.4'}@@ -2267,6 +2583,10 @@ packages:resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}engines: {node: '>=8'}+ resolution: {integrity: sha512-/kppl+R+LO5VmhYSEWARUFjodS25D68gvj8W7z0I7OWhUla5xWu8KL6CtB2V0R6yqhnRgbcaREMr4EEM6htLPQ==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}@@ -2304,6 +2624,9 @@ packages:resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==}hasBin: true+ resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}+resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==}engines: {node: '>=10'}@@ -2341,6 +2664,9 @@ packages:resolution: {integrity: sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ resolution: {integrity: sha512-XgP0FGR77+QhUxjXkwOMkC94k3WtqEBfcnjWqhRd82qTat4SWKRE+9kUnynz/shm3I4ea2+qISvTIeGTNU7kJg==}+resolution: {integrity: sha512-Su9oK8DR4xCmDsLlyvadkXzX6+GGXJpbhwoLtOGArAG61dvbW4YQmSEno2y66ahpIdmLMg6YUf/QHLgiwvkrHQ==}engines: {node: '>=16.0.0'}@@ -2366,9 +2692,20 @@ packages:resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==}+ resolution: {integrity: sha512-ekDrAGso79Cvf+dtm+mL8OBI2bmAOt3gssYs833De/C9NmIpWDWyUO4zPgB5x2/OhY366dkhgfPMYfwZF7yOZA==}++ resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==}+ engines: {'0': node >= 0.2.0}+resolution: {integrity: sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==}+ resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-bUCFlg44imdV5vayYxu0pIAB373S8Ufjda0qaI9oRZDH6ltJFwUoAO2j7nafxDmo5G0ZeP4IiLAHqlc3wYIONQ==}engines: {node: '>=18.18.0'}@@ -2377,6 +2714,10 @@ packages:'@types/node': '>=18'typescript: '>=5.0.4'+ resolution: {integrity: sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg==}+ engines: {node: '>=14.16'}+resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}engines: {node: '>= 0.8.0'}@@ -2420,6 +2761,10 @@ packages:resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}+ resolution: {integrity: sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}@@ -2430,6 +2775,10 @@ packages:resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}+ resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}hasBin: true@@ -2444,6 +2793,14 @@ packages:resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}engines: {node: '>=10'}+ resolution: {integrity: sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}++ resolution: {integrity: sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}engines: {node: '>= 0.4'}@@ -2471,6 +2828,14 @@ packages:resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}engines: {node: '>=12'}+ resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+resolution: {integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==}engines: {node: 20 || >=22}@@ -2489,18 +2854,58 @@ packages:resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}+ resolution: {integrity: sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}++ resolution: {integrity: sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-myxeeTm57lYs8pH2nxPzmEEg8DGIgW+9mv6D4JZD2pa81I/OBjeU7PtICXV6c9eRGTA5JMDsuIPUZRCyBMYNhg==}++ resolution: {integrity: sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}engines: {node: '>=16 || 14 >=14.17'}- resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==}- engines: {node: '>=16 || 14 >=14.17'}+ resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==}+ engines: {node: '>= 8'}resolution: {integrity: sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==}engines: {node: '>= 18'}+ resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==}+ engines: {node: '>=10'}+ hasBin: true+resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==}engines: {node: '>=10'}@@ -2511,8 +2916,8 @@ packages:resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}- resolution: {integrity: sha512-/5rpGC0eK8LlFqsHaBmL19/PVKxu/CCt8pO1vzp9X6SDLsRDh/Ccudkf3Ur5lyaKxJz9ndAx+LaThdv0ySqB6A==}+ resolution: {integrity: sha512-4KXa4nVBIBjbDbd7vfQNuQ25eFxug0aropCQFoI0JdOBuJWamkT1yLVIWReFI8SiTRc+H1hKzaNk+cLk2N9rtQ==}engines: {node: '>=18'}hasBin: truepeerDependencies:@@ -2536,6 +2941,10 @@ packages:resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}+ resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}@@ -2546,16 +2955,43 @@ packages:resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==}hasBin: true+ resolution: {integrity: sha512-OQkWKbjQKbGkMf/xqI1jjy3oCTgMKJac58G2+bjZb3fza6gW2YrCSdMQYaoTb70crvE//Gngr4f0AgVHmqHvBQ==}+ engines: {node: ^12.13 || ^14.13 || >=16}+ hasBin: true+resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==}+ resolution: {integrity: sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ hasBin: true+resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==}+ resolution: {integrity: sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g==}engines: {node: ^16.14.0 || >=18.0.0}+ resolution: {integrity: sha512-uVFpKhj5MheNBJRTiMZ9pE/7hD1QTeEvugSJW/OmLzAp78PB5O6adfMNTvmfKhXBkvCzC+rqifWcVYpGFwTjnw==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-+AvaheE/ww1JEwRHOrn4WHNzOxGtVp+adrg2AeZS/7KuxGUYFuBta98wYpfHBbJp6Tg6j1NKSEVHNcfZzJHQwQ==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-sYbIhun4DrjO7NFOTdvs11nCar0etEhZTsEjL47eM0TuiGMhmYughRCxG2SpGRmGAQ7AkwN7bw2lWzoE7q6yOQ==}+ engines: {node: '>=14.14'}+ hasBin: true+resolution: {integrity: sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}@@ -2564,14 +3000,30 @@ packages:resolution: {integrity: sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ resolution: {integrity: sha512-uFyyCEmgBfZTtrKk/5xDfHp6+MdrqGotX/VoOyEEl3mBwiEE5FlBaePanazJSVMPT7vKepcjYBY2ztg9A3yPIA==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-sHGJy8sOC1YraBywpzQlIKBE4pBbGbiF95U6Auspzyem956E0+FtDtsx1ZxlOJkQCZ1AFXAY/yuvtFYrOxF+Bw==}engines: {node: ^16.14.0 || >=18.0.0}+ resolution: {integrity: sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-1dKY+86/AIiq1tkKVD3l0WI+Gd3vkknVGAggsFeBkTvbhMQ1OND/LKkYv4JtXPKUJ8bOTCyLiqEg2P6QNdK+Gg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-nkc+3pIIhqHVQr085X9d2JzPzLyjzQS96zbruppqC9aZRm/x8xx6xhI98gHtsfELP2bE+loHq8ZaHFHhe+NauA==}engines: {node: ^16.14.0 || >=18.0.0}+ resolution: {integrity: sha512-kIDMIo4aBm6xg7jOttupWZamsZRkAqMqwqqbVXnUqstY5+tapvv6bkH/qMR76jdgV+YljEUCyWx3hRYMrJiAgA==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==}engines: {node: '>= 4'}@@ -2585,6 +3037,11 @@ packages:resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+ deprecated: This package is no longer supported.+resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}engines: {node: '>=0.10.0'}@@ -2639,6 +3096,10 @@ packages:resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==}+ engines: {node: '>=12.20'}+resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==}engines: {node: '>=8'}@@ -2674,10 +3135,24 @@ packages:resolution: {integrity: sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==}+ resolution: {integrity: sha512-cbH9IAIJHNj9uXi196JVsRlt7cHKak6u/e6AkL/bkRelZ7rlL3X1YKxsZwa36xipOEKAsdtmaG6aAJoM1fx2zA==}+ engines: {node: '>=14.16'}++ resolution: {integrity: sha512-rJVZeIwHTUta23sIZgEIM62WYwbmGbThdbnkt81ravBplQv+HjyroqnLRNH2+sLJHcGZmLRmhPwACqhfTcOmnA==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ hasBin: true+resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}engines: {node: '>=6'}+ resolution: {integrity: sha512-tfalY5/4SqGaV/GIGzWyHnFjlpTPTNpENR9Ea2lLldSJ8EWXMsvacWucqY3m3I4YPtas15IxTLQVQ5NSYXPrww==}+ engines: {node: '>= 0.10'}+ hasBin: true+resolution: {integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==}engines: {node: '>=4'}@@ -2840,10 +3315,18 @@ packages:resolution: {integrity: sha512-o1piW0n3tgKIKCwk2vpM/vOV13zjJzvP37Ioze54YlTHE06m4tjEbzg9WsKkvTuyYln2DHjo5pY4qrZGI0otpw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA==}engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==}+ engines: {node: '>=0.4.0'}+resolution: {integrity: sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==}peerDependencies:@@ -2856,16 +3339,38 @@ packages:resolution: {integrity: sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==}engines: {node: '>=10'}+ resolution: {integrity: sha512-BthHeqP0vwvZPk3ZmqZXhssNabxM60aBCbg/gQdxF8bQW/dy6ZGQpS8SG10bUQTMy5HKh34iI0g0TstCRZyjag==}+ engines: {node: '>= 14'}+resolution: {integrity: sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA==}+ resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==}+resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug==}+ engines: {node: '>=12.20'}+resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}+ resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-3GiwEzklkbXTDp52UR5nT8iXgYAx1V9ZG/kDZT7p60u2GCv2XTwQq4NzinMoMpNtXhmt3WkhYXcj6HH8HdwCEQ==}++ resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}+ hasBin: true+resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==}peerDependencies:@@ -2882,6 +3387,15 @@ packages:resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-AEtWXYfopBj2z5N5PbkAOeNHRPUg5q+Nen7QLxV8M2zJq1ym6/lCz3fYNTCXe19puu2d06jfHhrP7v/S2PtMMw==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ deprecated: This package is no longer supported. Please use @npmcli/package-json instead.+resolution: {integrity: sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==}engines: {node: '>=4'}@@ -2890,6 +3404,10 @@ packages:resolution: {integrity: sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==}engines: {node: '>=6'}+ resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}+ engines: {node: '>= 6'}+resolution: {integrity: sha512-h80JrZu/MHUZCyHu5ciuoI0+WxsCxzxJTILn6Fs8rxSnFPh+UVHYfeIxK1nVGugMqkfC4vJcBOYbkfkwYK0+gw==}engines: {node: '>= 14.18.0'}@@ -2902,6 +3420,18 @@ packages:resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-C9hAO4eoEsX+OXA4rla66pXZQ+TLQ8T9dttgQj18yuKlPMTVkIkdYXvlMC55IuUsIkV6DpmQYi10JKFLaU+l7w==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}engines: {node: '>=0.10.0'}@@ -2910,6 +3440,9 @@ packages:resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==}+resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}engines: {node: '>=4'}@@ -2922,12 +3455,16 @@ packages:resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}hasBin: true+ resolution: {integrity: sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg==}+ engines: {node: '>=14.16'}+resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}engines: {node: '>= 4'}- resolution: {integrity: sha512-LPRKoHnLKd/r3dVxcwO7vhCW+orkOGj9ViueosEBK6ie89CijnfRlhaDhHq/3Hxu4CkWQtxwlBG0mzTQY6uQjw==}+ resolution: {integrity: sha512-uyDrIlUEH37cinabq0AX4QbgV4HbFZ/gqoiunWQ1UqBtRvTTytwhNYjE++pO/MjPTZL5KQCf2bEoJ/BJNVQ5Kw==}resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}@@ -2938,6 +3475,10 @@ packages:deprecated: Rimraf versions prior to v4 are no longer supportedhasBin: true+ resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==}+ hasBin: true+resolution: {integrity: sha512-C5VvvgCCyfyotVITIAv+4efVytl5F7wt+/I2i9q9GZcEXW9BP52YYOXC58igUi+LFZVHukErIIqQSWwv/M3WRw==}engines: {node: '>=18.0.0', npm: '>=8.0.0'}@@ -2964,6 +3505,9 @@ packages:resolution: {integrity: sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==}engines: {node: '>=0.4'}+ resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}+resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==}engines: {node: '>= 0.4'}@@ -2975,8 +3519,15 @@ packages:resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}- resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}+ resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==}++ resolution: {integrity: sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-EjnoLE5OGmDAVV/8YDoN5KiajNadjzIp9BAHOhYeQHt7j0UWxjmgsx4YD48wp4Ue1Qogq38F1GNUJNqF1kKKxA==}resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==}@@ -2996,6 +3547,9 @@ packages:engines: {node: '>=10'}hasBin: true+ resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}+resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}engines: {node: '>= 0.4'}@@ -3054,6 +3608,11 @@ packages:resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}engines: {node: '>=14'}+ resolution: {integrity: sha512-0Zjz0oe37d08VeOtBIuB6cRriqXse2e8w+7yIy2XSXjshRKxbc2KkhXjL229jXSxEm7UbcjS76wcJDGQddVI9A==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ hasBin: true+resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==}engines: {node: '>=10'}@@ -3065,14 +3624,29 @@ packages:resolution: {integrity: sha512-FoqMu0NCGBLCcAkS1qA+XJIQTR6/JHfQXl+uGteNCQ76T91DMUjPa9xfmeqMY3z80nLSg9yQmNjK0Px6RWsH/A==}engines: {node: '>=18'}+ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}+resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}engines: {node: '>=8'}+ resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==}+ engines: {node: '>= 6.0.0', npm: '>= 3.0.0'}+resolution: {integrity: sha512-tEYNll18pPKHroYSmLLrksq233j021G0giwW7P3D24jC54pQ5W5BXMsQ/Mvw1OJCmEYDgY+lrzT+3nNUtoNfXQ==}engines: {node: '>= 18'}+ resolution: {integrity: sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww==}+ engines: {node: '>= 10'}++ resolution: {integrity: sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==}+ engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}+resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}engines: {node: '>=0.10.0'}@@ -3089,6 +3663,10 @@ packages:engines: {node: '>= 8'}deprecated: The work that was done in this beta branch won't be included in future versions+ resolution: {integrity: sha512-KM8coezO6ISQ89c1BzyWNtcn2V2kAVtwIXd3cN/V5a0xPYc1F/vydrRc01wsKFEQ/p+V1a4sw4z2yMITIXrgGw==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==}@@ -3107,7 +3685,15 @@ packages:resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}+ resolution: {integrity: sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}+resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}@@ -3152,6 +3738,9 @@ packages:resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}+resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}engines: {node: '>=8'}@@ -3172,6 +3761,10 @@ packages:resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}engines: {node: '>=12'}+ resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}engines: {node: '>=8'}@@ -3215,8 +3808,13 @@ packages:resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}engines: {node: '>=6'}- resolution: {integrity: sha512-ChjMH33/KetonMTAtpYdgUFr0tbz69Fp2v7zWxQfYZX4g5ZN2nOBXm1R2xyA+lMIKrLKIoKAwFj93jE/avX9cQ==}+ resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==}+ engines: {node: '>=10'}+ deprecated: Old versions of tar are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]++ resolution: {integrity: sha512-9TsuLcdhOn4XztcQqhNyq1KOwOOED/3k58JAvtULiYqbO8B/0IBAAIE1hj0Svmm58k27TmcigyDI0deMlgG3uw==}engines: {node: '>=18'}@@ -3341,6 +3939,10 @@ packages:typescript:optional: true+ resolution: {integrity: sha512-i3P9Kgw3ytjELUfpuKVDNBJvk4u5bXL6gskv572mcevPbSKCV3zt3djhmlEQ65yERjIbOSncy7U4cQJaB1CBCg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}engines: {node: '>= 0.8.0'}@@ -3349,6 +3951,10 @@ packages:resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}engines: {node: '>=10'}+ resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}engines: {node: '>=12.20'}@@ -3377,6 +3983,9 @@ packages:resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==}+resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==}engines: {node: '>=14.17'}@@ -3405,6 +4014,26 @@ packages:resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}+ resolution: {integrity: sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}++ resolution: {integrity: sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w==}+ engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0}++ resolution: {integrity: sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}++ resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}engines: {node: '>= 4.0.0'}@@ -3422,6 +4051,10 @@ packages:peerDependencies:browserslist: '>= 4.21.0'+ resolution: {integrity: sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og==}+ engines: {node: '>=14.16'}+resolution: {integrity: sha512-W+C9NWNLFOoBI2QWDp4UT9pv65r2w5Cx+3sTYFvtMdDBxkKt1syCqsUdSFAChbEe1uK5TfS04wt/nGwmaeIQ0g==}@@ -3432,6 +4065,9 @@ packages:resolution: {integrity: sha512-uIuGf9TWQ/y+0Lp+KGZCMuJWc3N9BHA+l/UmHd/oUHwJJDeysyTRxNQVkbzsIWfGFbRe3OcgML/i0mvVRPOyDA==}engines: {node: '>=6.14.2'}+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}+resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}@@ -3568,6 +4204,11 @@ packages:engines: {node: '>= 8'}hasBin: true+ resolution: {integrity: sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==}+ engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}+ hasBin: true+resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}engines: {node: ^16.13.0 || >=18.0.0}@@ -3578,6 +4219,9 @@ packages:engines: {node: '>=8'}hasBin: true+ resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==}+resolution: {integrity: sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==}engines: {node: '>=12'}@@ -3604,6 +4248,9 @@ packages:resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}+ resolution: {integrity: sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==}+resolution: {integrity: sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==}engines: {node: '>=10.0.0'}@@ -3616,6 +4263,10 @@ packages:utf-8-validate:optional: true+ resolution: {integrity: sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==}+ engines: {node: '>=12'}+resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}engines: {node: '>=10'}@@ -3623,6 +4274,9 @@ packages:resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}+ resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}+resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}engines: {node: '>=18'}@@ -3849,6 +4503,9 @@ snapshots:'@changesets/[email protected]': {}+ '@colors/[email protected]':+ optional: true+'@connectrpc/[email protected](@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))':dependencies:'@bufbuild/protobuf': 2.6.2@@ -3965,6 +4622,8 @@ snapshots:'@eslint/[email protected]': {}+ '@gar/[email protected]': {}+'@humanwhocodes/[email protected]':dependencies:'@humanwhocodes/object-schema': 2.0.3@@ -4121,7 +4780,7 @@ snapshots:'@isaacs/[email protected]':dependencies:- minipass: 7.1.3+ minipass: 7.1.2'@istanbuljs/[email protected]': {}@@ -4186,7 +4845,7 @@ snapshots:globby: 11.1.0read-yaml-file: 1.1.0- '@mswjs/[email protected]':+ '@mswjs/[email protected]':dependencies:'@open-draft/deferred-promise': 2.2.0'@open-draft/logger': 0.3.0@@ -4219,6 +4878,28 @@ snapshots:'@nodelib/fs.scandir': 4.0.1fastq: 1.15.0+ '@npmcli/[email protected]':+ dependencies:+ '@gar/promisify': 1.1.3+ semver: 7.7.2++ '@npmcli/[email protected]':+ dependencies:+ semver: 7.7.2++ '@npmcli/[email protected]':+ dependencies:+ '@npmcli/promise-spawn': 6.0.2+ lru-cache: 7.18.3+ npm-pick-manifest: 8.0.2+ proc-log: 3.0.0+ promise-inflight: 1.0.1+ promise-retry: 2.0.1+ semver: 7.7.2+ which: 3.0.1+ transitivePeerDependencies:+ - bluebird+'@npmcli/[email protected]':dependencies:'@npmcli/promise-spawn': 7.0.2@@ -4233,6 +4914,18 @@ snapshots:transitivePeerDependencies:- bluebird+ '@npmcli/[email protected]':+ dependencies:+ npm-bundled: 3.0.1+ npm-normalize-package-bin: 3.0.1++ '@npmcli/[email protected]':+ dependencies:+ mkdirp: 1.0.4+ rimraf: 3.0.2++ '@npmcli/[email protected]': {}+'@npmcli/[email protected]':dependencies:'@npmcli/git': 5.0.8@@ -4245,10 +4938,25 @@ snapshots:transitivePeerDependencies:- bluebird+ '@npmcli/[email protected]':+ dependencies:+ which: 3.0.1+'@npmcli/[email protected]':dependencies:which: 4.0.0+ '@npmcli/[email protected]':+ dependencies:+ '@npmcli/node-gyp': 3.0.0+ '@npmcli/promise-spawn': 6.0.2+ node-gyp: 9.4.1+ read-package-json-fast: 3.0.2+ which: 3.0.1+ transitivePeerDependencies:+ - bluebird+ - supports-color+'@open-draft/[email protected]': {}'@open-draft/[email protected]':@@ -4261,6 +4969,18 @@ snapshots:'@pkgjs/[email protected]':optional: true+ '@pnpm/[email protected]': {}++ '@pnpm/[email protected]':+ dependencies:+ graceful-fs: 4.2.10++ '@pnpm/[email protected]':+ dependencies:+ '@pnpm/config.env-replace': 1.1.0+ '@pnpm/network.ca-file': 1.0.2+ config-chain: 1.1.13+'@polka/[email protected]': {}'@redocly/[email protected]':@@ -4346,12 +5066,39 @@ snapshots:'@rollup/[email protected]':optional: true+ '@sigstore/[email protected]':+ dependencies:+ '@sigstore/protobuf-specs': 0.2.1++ '@sigstore/[email protected]': {}++ '@sigstore/[email protected]':+ dependencies:+ '@sigstore/bundle': 1.1.0+ '@sigstore/protobuf-specs': 0.2.1+ make-fetch-happen: 11.1.1+ transitivePeerDependencies:+ - supports-color++ '@sigstore/[email protected]':+ dependencies:+ '@sigstore/protobuf-specs': 0.2.1+ tuf-js: 1.1.7+ transitivePeerDependencies:+ - supports-color++ '@sindresorhus/[email protected]': {}+'@snyk/[email protected]':dependencies:commander: 4.1.1ignore: 5.3.2p-map: 4.0.0+ '@szmarczak/[email protected]':+ dependencies:+ defer-to-connect: 2.0.1+'@testing-library/[email protected]':dependencies:'@babel/code-frame': 7.27.1@@ -4377,6 +5124,15 @@ snapshots:dependencies:'@testing-library/dom': 10.4.0+ '@tootallnate/[email protected]': {}++ '@tufjs/[email protected]': {}++ '@tufjs/[email protected]':+ dependencies:+ '@tufjs/canonical-json': 1.0.0+ minimatch: 9.0.5+'@types/[email protected]': {}'@types/[email protected]':@@ -4416,6 +5172,8 @@ snapshots:dependencies:handlebars: 4.7.8+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/through': 0.0.33@@ -4437,14 +5195,11 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':- optional: true-'@types/[email protected]': {}'@types/[email protected]':dependencies:- '@types/react': 18.3.28+ '@types/react': 18.3.11optional: true'@types/[email protected]':@@ -4452,11 +5207,7 @@ snapshots:'@types/prop-types': 15.7.6csstype: 3.1.2- '@types/[email protected]':- dependencies:- '@types/prop-types': 15.7.15- csstype: 3.2.3- optional: true+ '@types/[email protected]': {}'@types/[email protected]': {}@@ -4592,7 +5343,7 @@ snapshots:globby: 11.1.0is-glob: 4.0.3minimatch: 9.0.5- semver: 7.7.2+ semver: 7.7.1ts-api-utils: 1.3.0([email protected])optionalDependencies:typescript: 5.5.3@@ -4647,16 +5398,16 @@ snapshots:transitivePeerDependencies:- supports-color- '@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@testing-library/dom': 10.4.0'@testing-library/user-event': 14.6.1(@testing-library/[email protected])- '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@vitest/utils': 3.2.4magic-string: 0.30.17sirv: 3.0.1tinyrainbow: 2.0.0- vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])ws: 8.19.0([email protected])([email protected])optionalDependencies:playwright: 1.55.1@@ -4667,16 +5418,16 @@ snapshots:- viteoptional: true- '@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@vitest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:'@testing-library/dom': 10.4.0'@testing-library/user-event': 14.6.1(@testing-library/[email protected])- '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@vitest/utils': 3.2.4magic-string: 0.30.17sirv: 3.0.1tinyrainbow: 2.0.0- vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])ws: 8.19.0([email protected])([email protected])optionalDependencies:playwright: 1.55.1@@ -4701,9 +5452,9 @@ snapshots:std-env: 3.9.0test-exclude: 7.0.1tinyrainbow: 2.0.0- vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])optionalDependencies:- '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])transitivePeerDependencies:- supports-color@@ -4715,22 +5466,22 @@ snapshots:chai: 5.2.0tinyrainbow: 2.0.0- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 3.2.4estree-walker: 3.0.3magic-string: 0.30.17optionalDependencies:- msw: 2.12.3(@types/[email protected])([email protected])+ msw: 2.12.14(@types/[email protected])([email protected])- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 3.2.4estree-walker: 3.0.3magic-string: 0.30.17optionalDependencies:- msw: 2.12.3(@types/[email protected])([email protected])+ msw: 2.12.14(@types/[email protected])([email protected])'@vitest/[email protected]':@@ -4759,17 +5510,29 @@ snapshots:loupe: 3.2.1tinyrainbow: 2.0.0+ [email protected]: {}+dependencies:acorn: 8.14.0optional: true+ dependencies:+ debug: 4.4.3([email protected])+ transitivePeerDependencies:+ - supports-color++ dependencies:+ humanize-ms: 1.2.1+dependencies:clean-stack: 2.2.0@@ -4806,6 +5569,13 @@ snapshots:+ [email protected]: {}++ dependencies:+ delegates: 1.0.0+ readable-stream: 3.6.2+dependencies:sprintf-js: 1.0.3@@ -4890,8 +5660,7 @@ snapshots:node-releases: 2.0.19update-browserslist-db: 1.1.2([email protected])- optional: true+ [email protected]: {}dependencies:@@ -4913,6 +5682,56 @@ snapshots:+ dependencies:+ '@npmcli/fs': 2.1.2+ '@npmcli/move-file': 2.0.1+ chownr: 2.0.0+ fs-minipass: 2.1.0+ glob: 8.1.0+ infer-owner: 1.0.4+ lru-cache: 7.18.3+ minipass: 3.3.6+ minipass-collect: 1.0.2+ minipass-flush: 1.0.5+ minipass-pipeline: 1.2.4+ mkdirp: 1.0.4+ p-map: 4.0.0+ promise-inflight: 1.0.1+ rimraf: 3.0.2+ ssri: 9.0.1+ tar: 6.2.1+ unique-filename: 2.0.1+ transitivePeerDependencies:+ - bluebird++ dependencies:+ '@npmcli/fs': 3.1.1+ fs-minipass: 3.0.3+ glob: 10.5.0+ lru-cache: 7.18.3+ minipass: 7.1.2+ minipass-collect: 1.0.2+ minipass-flush: 1.0.5+ minipass-pipeline: 1.2.4+ p-map: 4.0.0+ ssri: 10.0.6+ tar: 6.2.1+ unique-filename: 3.0.0++ [email protected]: {}++ dependencies:+ '@types/http-cache-semantics': 4.0.3+ get-stream: 6.0.1+ http-cache-semantics: 4.1.1+ keyv: 4.5.3+ mimic-response: 4.0.0+ normalize-url: 8.0.0+ responselike: 3.0.0+dependencies:es-errors: 1.3.0@@ -4972,8 +5791,12 @@ snapshots:dependencies:readdirp: 4.1.1+ [email protected]: {}++ [email protected]: {}+@@ -4987,6 +5810,12 @@ snapshots:parse5-htmlparser2-tree-adapter: 6.0.1yargs: 16.2.0+ dependencies:+ string-width: 4.2.3+ optionalDependencies:+ '@colors/colors': 1.5.0+@@ -5016,10 +5845,14 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -5031,8 +5864,23 @@ snapshots:+ dependencies:+ ini: 1.3.8+ proto-list: 1.2.4++ dependencies:+ dot-prop: 6.0.1+ graceful-fs: 4.2.11+ unique-string: 3.0.0+ write-file-atomic: 3.0.3+ xdg-basedir: 5.1.0++ [email protected]: {}+dependencies:simple-wcswidth: 1.0.1@@ -5055,10 +5903,11 @@ snapshots:shebang-command: 2.0.0which: 2.0.2- [email protected]: {}+ dependencies:+ type-fest: 1.4.0- optional: true+ [email protected]: {}dependencies:@@ -5092,8 +5941,14 @@ snapshots:optionalDependencies:supports-color: 10.2.2+ dependencies:+ mimic-response: 3.1.0++ [email protected]: {}+@@ -5113,6 +5968,8 @@ snapshots:clone: 1.0.4optional: true+ [email protected]: {}+dependencies:get-intrinsic: 1.3.0@@ -5133,6 +5990,8 @@ snapshots:has-property-descriptors: 1.0.0object-keys: 1.1.1+ [email protected]: {}+@@ -5155,6 +6014,10 @@ snapshots:+ dependencies:+ is-obj: 2.0.0+@@ -5174,7 +6037,7 @@ snapshots:glob: 11.1.0openapi-fetch: 0.14.1platform: 1.3.6- tar: 7.5.11+ tar: 7.5.12@@ -5190,11 +6053,18 @@ snapshots:+ dependencies:+ iconv-lite: 0.6.3+ optional: true+dependencies:graceful-fs: 4.2.11tapable: 2.2.1+ [email protected]: {}+@@ -5313,6 +6183,8 @@ snapshots:+ [email protected]: {}+@@ -5426,6 +6298,8 @@ snapshots:+ [email protected]: {}+@@ -5450,6 +6324,8 @@ snapshots:+ [email protected]: {}+dependencies:reusify: 1.0.4@@ -5501,6 +6377,10 @@ snapshots:cross-spawn: 7.0.6signal-exit: 4.1.0+ [email protected]: {}++ [email protected]: {}+dependencies:graceful-fs: 4.2.11@@ -5513,6 +6393,14 @@ snapshots:jsonfile: 4.0.0universalify: 0.1.2+ dependencies:+ minipass: 3.3.6++ dependencies:+ minipass: 7.1.2+@@ -5534,6 +6422,17 @@ snapshots:+ dependencies:+ aproba: 2.1.0+ color-support: 1.1.3+ console-control-strings: 1.1.0+ has-unicode: 2.0.1+ signal-exit: 3.0.7+ string-width: 4.2.3+ strip-ansi: 6.0.1+ wide-align: 1.1.5+@@ -5563,6 +6462,8 @@ snapshots:dunder-proto: 1.0.1es-object-atoms: 1.1.1+ [email protected]: {}+@@ -5606,6 +6507,18 @@ snapshots:once: 1.4.0path-is-absolute: 1.0.1+ dependencies:+ fs.realpath: 1.0.0+ inflight: 1.0.6+ inherits: 2.0.4+ minimatch: 5.1.6+ once: 1.4.0++ dependencies:+ ini: 2.0.0+@@ -5628,6 +6541,22 @@ snapshots:+ dependencies:+ '@sindresorhus/is': 5.6.0+ '@szmarczak/http-timer': 5.0.1+ cacheable-lookup: 7.0.0+ cacheable-request: 10.2.14+ decompress-response: 6.0.0+ form-data-encoder: 2.1.4+ get-stream: 6.0.1+ http2-wrapper: 2.2.0+ lowercase-keys: 3.0.0+ p-cancelable: 3.0.0+ responselike: 3.0.0++ [email protected]: {}+@@ -5675,6 +6604,10 @@ snapshots:dependencies:has-symbols: 1.0.3+ [email protected]: {}++ [email protected]: {}+dependencies:function-bind: 1.1.2@@ -5689,12 +6622,42 @@ snapshots:+ dependencies:+ lru-cache: 7.18.3++ dependencies:+ lru-cache: 7.18.3+dependencies:lru-cache: 10.4.3+ [email protected]: {}++ dependencies:+ '@tootallnate/once': 2.0.0+ agent-base: 6.0.2+ debug: 4.4.3([email protected])+ transitivePeerDependencies:+ - supports-color++ dependencies:+ quick-lru: 5.1.1+ resolve-alpn: 1.2.1++ dependencies:+ agent-base: 6.0.2+ debug: 4.4.3([email protected])+ transitivePeerDependencies:+ - supports-color+dependencies:agent-base: 7.1.3@@ -5706,10 +6669,23 @@ snapshots:+ dependencies:+ ms: 2.1.3++ dependencies:+ safer-buffer: 2.1.2+ optional: true+dependencies:safer-buffer: 2.1.2+ dependencies:+ minimatch: 9.0.5+@@ -5719,6 +6695,8 @@ snapshots:parent-module: 1.0.1resolve-from: 4.0.0+ [email protected]: {}+@@ -5727,6 +6705,8 @@ snapshots:+ [email protected]: {}+dependencies:once: 1.4.0@@ -5734,6 +6714,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+[email protected](@types/[email protected]):@@ -5754,6 +6738,8 @@ snapshots:hasown: 2.0.2side-channel: 1.1.0+ [email protected]: {}+dependencies:call-bind: 1.0.8@@ -5777,6 +6763,10 @@ snapshots:+ dependencies:+ ci-info: 3.8.0+dependencies:has: 1.0.3@@ -5820,12 +6810,21 @@ snapshots:dependencies:is-docker: 3.0.0+ dependencies:+ global-dirs: 3.0.1+ is-path-inside: 3.0.3++ [email protected]: {}++ [email protected]: {}+dependencies:call-bound: 1.0.4@@ -5833,6 +6832,8 @@ snapshots:+ [email protected]: {}+@@ -5875,6 +6876,8 @@ snapshots:dependencies:which-typed-array: 1.1.19+ [email protected]: {}+@@ -5892,6 +6895,8 @@ snapshots:dependencies:is-docker: 2.2.1+ [email protected]: {}+@@ -5931,6 +6936,8 @@ snapshots:+ [email protected]: {}+@@ -5956,6 +6963,10 @@ snapshots:+ dependencies:+ jju: 1.4.0+dependencies:'@apidevtools/json-schema-ref-parser': 11.9.3@@ -5984,10 +6995,16 @@ snapshots:optionalDependencies:graceful-fs: 4.2.11+ [email protected]: {}++ [email protected]: {}+dependencies:json-buffer: 3.0.1+ [email protected]: {}+dependencies:'@nodelib/fs.walk': 3.0.1@@ -6030,6 +7047,10 @@ snapshots:zod: 3.22.4zod-validation-error: 3.4.0([email protected])+ dependencies:+ package-json: 8.1.1+dependencies:prelude-ls: 1.2.1@@ -6068,6 +7089,8 @@ snapshots:+ [email protected]: {}+@@ -6076,6 +7099,8 @@ snapshots:dependencies:yallist: 3.1.1+ [email protected]: {}+@@ -6092,6 +7117,48 @@ snapshots:dependencies:semver: 7.7.2+ dependencies:+ agentkeepalive: 4.5.0+ cacache: 16.1.3+ http-cache-semantics: 4.1.1+ http-proxy-agent: 5.0.0+ https-proxy-agent: 5.0.1+ is-lambda: 1.0.1+ lru-cache: 7.18.3+ minipass: 3.3.6+ minipass-collect: 1.0.2+ minipass-fetch: 2.1.2+ minipass-flush: 1.0.5+ minipass-pipeline: 1.2.4+ negotiator: 0.6.4+ promise-retry: 2.0.1+ socks-proxy-agent: 7.0.0+ ssri: 9.0.1+ transitivePeerDependencies:+ - bluebird+ - supports-color++ dependencies:+ agentkeepalive: 4.5.0+ cacache: 17.1.4+ http-cache-semantics: 4.1.1+ http-proxy-agent: 5.0.0+ https-proxy-agent: 5.0.1+ is-lambda: 1.0.1+ lru-cache: 7.18.3+ minipass: 5.0.0+ minipass-fetch: 3.0.5+ minipass-flush: 1.0.5+ minipass-pipeline: 1.2.4+ negotiator: 0.6.4+ promise-retry: 2.0.1+ socks-proxy-agent: 7.0.0+ ssri: 10.0.6+ transitivePeerDependencies:+ - supports-color+@@ -6109,6 +7176,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+dependencies:'@isaacs/brace-expansion': 5.0.1@@ -6127,13 +7198,61 @@ snapshots:+ dependencies:+ minipass: 3.3.6++ dependencies:+ minipass: 3.3.6+ minipass-sized: 1.0.3+ minizlib: 2.1.2+ optionalDependencies:+ encoding: 0.1.13++ dependencies:+ minipass: 7.1.2+ minipass-sized: 1.0.3+ minizlib: 2.1.2+ optionalDependencies:+ encoding: 0.1.13++ dependencies:+ minipass: 3.3.6++ dependencies:+ jsonparse: 1.3.1+ minipass: 3.3.6++ dependencies:+ minipass: 3.3.6++ dependencies:+ minipass: 3.3.6++ dependencies:+ yallist: 4.0.0++ [email protected]: {}+- [email protected]: {}+ dependencies:+ minipass: 3.3.6+ yallist: 4.0.0dependencies:- minipass: 7.1.3+ minipass: 7.1.2++ [email protected]: {}@@ -6141,10 +7260,10 @@ snapshots:dependencies:'@inquirer/confirm': 5.1.19(@types/[email protected])- '@mswjs/interceptors': 0.40.0+ '@mswjs/interceptors': 0.41.3'@open-draft/deferred-promise': 2.2.0'@types/statuses': 2.0.6cookie: 1.1.1@@ -6154,7 +7273,7 @@ snapshots:outvariant: 1.4.3path-to-regexp: 6.3.0picocolors: 1.1.1- rettime: 0.7.0+ rettime: 0.10.1statuses: 2.0.2strict-event-emitter: 0.5.1tough-cookie: 6.0.0@@ -6167,10 +7286,10 @@ snapshots:- '@types/node'optional: truedependencies:'@inquirer/confirm': 5.1.19(@types/[email protected])- '@mswjs/interceptors': 0.40.0+ '@mswjs/interceptors': 0.41.3'@open-draft/deferred-promise': 2.2.0'@types/statuses': 2.0.6cookie: 1.1.1@@ -6180,7 +7299,7 @@ snapshots:outvariant: 1.4.3path-to-regexp: 6.3.0picocolors: 1.1.1- rettime: 0.7.0+ rettime: 0.10.1statuses: 2.0.2strict-event-emitter: 0.5.1tough-cookie: 6.0.0@@ -6204,6 +7323,8 @@ snapshots:+ [email protected]: {}+@@ -6211,8 +7332,29 @@ snapshots:optional: true+ dependencies:+ env-paths: 2.2.1+ exponential-backoff: 3.1.3+ glob: 7.2.3+ graceful-fs: 4.2.11+ make-fetch-happen: 10.2.1+ nopt: 6.0.0+ npmlog: 6.0.2+ rimraf: 3.0.2+ semver: 7.7.2+ tar: 6.2.1+ which: 2.0.2+ transitivePeerDependencies:+ - bluebird+ - supports-color++ dependencies:+ abbrev: 1.1.1+dependencies:hosted-git-info: 2.8.9@@ -6220,18 +7362,77 @@ snapshots:semver: 5.7.2validate-npm-package-license: 3.0.4+ dependencies:+ hosted-git-info: 6.1.3+ is-core-module: 2.13.0+ semver: 7.7.2+ validate-npm-package-license: 3.0.4+dependencies:hosted-git-info: 7.0.2semver: 7.7.2validate-npm-package-license: 3.0.4+ [email protected]: {}++ dependencies:+ npm-normalize-package-bin: 3.0.1++ dependencies:+ '@types/semver-utils': 1.1.3+ chalk: 5.3.0+ cli-table3: 0.6.5+ commander: 10.0.1+ fast-memoize: 2.5.2+ find-up: 5.0.0+ fp-and-or: 0.1.4+ get-stdin: 8.0.0+ globby: 11.1.0+ hosted-git-info: 5.2.1+ ini: 4.1.3+ js-yaml: 4.1.1+ json-parse-helpfulerror: 1.0.3+ jsonlines: 0.1.1+ lodash: 4.17.23+ make-fetch-happen: 11.1.1+ minimatch: 9.0.5+ p-map: 4.0.0+ pacote: 15.2.0+ parse-github-url: 1.0.3+ progress: 2.0.3+ prompts-ncu: 3.0.2+ rc-config-loader: 4.1.4+ remote-git-tags: 3.0.0+ rimraf: 5.0.10+ semver: 7.7.2+ semver-utils: 1.1.4+ source-map-support: 0.5.21+ spawn-please: 2.0.2+ strip-ansi: 7.1.0+ strip-json-comments: 5.0.1+ untildify: 4.0.0+ update-notifier: 6.0.2+ transitivePeerDependencies:+ - bluebird+ - supports-color+dependencies:semver: 7.7.2+ dependencies:+ hosted-git-info: 6.1.3+ proc-log: 3.0.0+ semver: 7.7.2+ validate-npm-package-name: 5.0.0+dependencies:hosted-git-info: 7.0.2@@ -6239,6 +7440,17 @@ snapshots:semver: 7.7.2validate-npm-package-name: 5.0.0+ dependencies:+ ignore-walk: 6.0.5++ dependencies:+ npm-install-checks: 6.3.0+ npm-normalize-package-bin: 3.0.1+ npm-package-arg: 10.1.0+ semver: 7.7.2+dependencies:npm-install-checks: 6.3.0@@ -6246,6 +7458,18 @@ snapshots:npm-package-arg: 11.0.3semver: 7.7.2+ dependencies:+ make-fetch-happen: 11.1.1+ minipass: 5.0.0+ minipass-fetch: 3.0.5+ minipass-json-stream: 1.0.2+ minizlib: 2.1.2+ npm-package-arg: 10.1.0+ proc-log: 3.0.0+ transitivePeerDependencies:+ - supports-color+dependencies:ansi-styles: 3.2.1@@ -6266,6 +7490,13 @@ snapshots:dependencies:path-key: 4.0.0+ dependencies:+ are-we-there-yet: 3.0.1+ console-control-strings: 1.1.0+ gauge: 4.0.4+ set-blocking: 2.0.0+@@ -6333,6 +7564,8 @@ snapshots:object-keys: 1.1.1safe-push-apply: 1.0.0+ [email protected]: {}+dependencies:p-map: 2.1.0@@ -6363,10 +7596,43 @@ snapshots:+ dependencies:+ got: 12.6.1+ registry-auth-token: 5.0.2+ registry-url: 6.0.1+ semver: 7.7.2++ dependencies:+ '@npmcli/git': 4.1.0+ '@npmcli/installed-package-contents': 2.1.0+ '@npmcli/promise-spawn': 6.0.2+ '@npmcli/run-script': 6.0.2+ cacache: 17.1.4+ fs-minipass: 3.0.3+ minipass: 5.0.0+ npm-package-arg: 10.1.0+ npm-packlist: 7.0.4+ npm-pick-manifest: 8.0.2+ npm-registry-fetch: 14.0.5+ proc-log: 3.0.0+ promise-retry: 2.0.1+ read-package-json: 6.0.4+ read-package-json-fast: 3.0.2+ sigstore: 1.9.0+ ssri: 10.0.6+ tar: 6.2.1+ transitivePeerDependencies:+ - bluebird+ - supports-color+dependencies:callsites: 3.1.0+ [email protected]: {}+dependencies:error-ex: 1.3.2@@ -6403,7 +7669,7 @@ snapshots:dependencies:lru-cache: 10.4.3- minipass: 7.1.3+ minipass: 7.1.2dependencies:@@ -6480,8 +7746,12 @@ snapshots:dependencies:parse-ms: 4.0.0+ [email protected]: {}++ [email protected]: {}+@@ -6489,17 +7759,46 @@ snapshots:err-code: 2.0.3retry: 0.12.0+ dependencies:+ kleur: 4.1.5+ sisteransi: 1.0.5++ [email protected]: {}++ dependencies:+ escape-goat: 4.0.0++ [email protected]: {}++ dependencies:+ debug: 4.4.3([email protected])+ js-yaml: 4.1.1+ json5: 2.2.3+ require-from-string: 2.0.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ deep-extend: 0.6.0+ ini: 1.3.8+ minimist: 1.2.8+ strip-json-comments: 2.0.1+dependencies:loose-envify: 1.4.0react: 18.3.1- scheduler: 0.23.2+ scheduler: 0.23.0@@ -6509,6 +7808,18 @@ snapshots:dependencies:loose-envify: 1.4.0+ dependencies:+ json-parse-even-better-errors: 3.0.0+ npm-normalize-package-bin: 3.0.1++ dependencies:+ glob: 10.5.0+ json-parse-even-better-errors: 3.0.0+ normalize-package-data: 5.0.0+ npm-normalize-package-bin: 3.0.1+dependencies:load-json-file: 4.0.0@@ -6522,6 +7833,12 @@ snapshots:pify: 4.0.1strip-bom: 3.0.0+ dependencies:+ inherits: 2.0.4+ string_decoder: 1.3.0+ util-deprecate: 1.0.2+@@ -6544,10 +7861,22 @@ snapshots:gopd: 1.2.0set-function-name: 2.0.2+ dependencies:+ '@pnpm/npm-conf': 2.2.2++ dependencies:+ rc: 1.2.8++ [email protected]: {}++ [email protected]: {}+@@ -6558,9 +7887,13 @@ snapshots:path-parse: 1.0.7supports-preserve-symlinks-flag: 1.0.0+ dependencies:+ lowercase-keys: 3.0.0+- [email protected]: {}+ [email protected]: {}@@ -6568,6 +7901,10 @@ snapshots:dependencies:glob: 7.2.3+ dependencies:+ glob: 10.5.0+dependencies:'@types/estree': 1.0.7@@ -6620,6 +7957,8 @@ snapshots:has-symbols: 1.1.0isarray: 2.0.5+ [email protected]: {}+dependencies:es-errors: 1.3.0@@ -6633,10 +7972,16 @@ snapshots:dependencies:loose-envify: 1.4.0+ dependencies:+ semver: 7.7.2++ [email protected]: {}+@@ -6645,6 +7990,8 @@ snapshots:+ [email protected]: {}+dependencies:define-data-property: 1.1.4@@ -6715,6 +8062,16 @@ snapshots:+ dependencies:+ '@sigstore/bundle': 1.1.0+ '@sigstore/protobuf-specs': 0.2.1+ '@sigstore/sign': 1.0.0+ '@sigstore/tuf': 1.0.3+ make-fetch-happen: 11.1.1+ transitivePeerDependencies:+ - supports-color+dependencies:semver: 7.7.2@@ -6727,17 +8084,33 @@ snapshots:mrmime: 2.0.0totalist: 3.0.1+ [email protected]: {}++ [email protected]: {}++ dependencies:+ agent-base: 6.0.2+ debug: 4.4.3([email protected])+ socks: 2.8.7+ transitivePeerDependencies:+ - supports-color++ dependencies:+ ip-address: 10.1.0+ smart-buffer: 4.2.0+dependencies:buffer-from: 1.1.2source-map: 0.6.1- optional: true@@ -6745,6 +8118,10 @@ snapshots:dependencies:whatwg-url: 7.1.0+ dependencies:+ cross-spawn: 7.0.6+dependencies:cross-spawn: 7.0.6@@ -6766,6 +8143,14 @@ snapshots:+ dependencies:+ minipass: 7.1.2++ dependencies:+ minipass: 3.3.6+@@ -6823,6 +8208,10 @@ snapshots:define-properties: 1.2.1es-object-atoms: 1.1.1+ dependencies:+ safe-buffer: 5.2.1+dependencies:ansi-regex: 5.0.1@@ -6837,6 +8226,8 @@ snapshots:+ [email protected]: {}+@@ -6873,18 +8264,27 @@ snapshots:+ dependencies:+ chownr: 2.0.0+ fs-minipass: 2.1.0+ minipass: 5.0.0+ minizlib: 2.1.2+ mkdirp: 1.0.4+ yallist: 4.0.0+dependencies:'@isaacs/fs-minipass': 4.0.1chownr: 3.0.0- minipass: 7.1.3+ minipass: 7.1.2minizlib: 3.1.0yallist: 5.0.0dependencies:'@jridgewell/source-map': 0.3.11- acorn: 8.16.0+ acorn: 8.15.0commander: 2.20.3source-map-support: 0.5.21optional: true@@ -7021,12 +8421,22 @@ snapshots:- tsx- yaml+ dependencies:+ '@tufjs/models': 1.0.4+ debug: 4.4.3([email protected])+ make-fetch-happen: 11.1.1+ transitivePeerDependencies:+ - supports-color+dependencies:prelude-ls: 1.2.1+ [email protected]: {}+@@ -7068,6 +8478,10 @@ snapshots:possible-typed-array-names: 1.1.0reflect.getprototypeof: 1.0.10+ dependencies:+ is-typedarray: 1.0.0+@@ -7088,6 +8502,26 @@ snapshots:+ dependencies:+ unique-slug: 3.0.0++ dependencies:+ unique-slug: 4.0.0++ dependencies:+ imurmurhash: 0.1.4++ dependencies:+ imurmurhash: 0.1.4++ dependencies:+ crypto-random-string: 4.0.0+@@ -7100,6 +8534,23 @@ snapshots:escalade: 3.2.0picocolors: 1.1.1+ dependencies:+ boxen: 7.1.1+ chalk: 5.3.0+ configstore: 6.0.0+ has-yarn: 3.0.0+ import-lazy: 4.0.0+ is-ci: 3.0.1+ is-installed-globally: 0.4.0+ is-npm: 6.0.0+ is-yarn-global: 0.4.1+ latest-version: 7.0.0+ pupa: 3.1.0+ semver: 7.7.2+ semver-diff: 4.0.0+ xdg-basedir: 5.1.0+@@ -7111,6 +8562,8 @@ snapshots:node-gyp-build: 4.8.4optional: true+ [email protected]: {}+dependencies:spdx-correct: 3.2.0@@ -7158,19 +8611,19 @@ snapshots:[email protected](@types/[email protected])(@types/[email protected])(@vitest/[email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:- '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])react: 18.3.1react-dom: 18.2.0([email protected])- vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])+ vitest: 3.2.4(@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])optionalDependencies:'@types/react': 18.3.11'@types/react-dom': 18.3.1- [email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]):+ [email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]):dependencies:'@types/chai': 5.2.2'@vitest/expect': 3.2.4- '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 3.2.4'@vitest/runner': 3.2.4'@vitest/snapshot': 3.2.4@@ -7193,7 +8646,7 @@ snapshots:why-is-node-running: 2.3.0optionalDependencies:'@types/node': 20.19.19- '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])transitivePeerDependencies:- jiti- less@@ -7208,11 +8661,11 @@ snapshots:- tsx- yaml- [email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]):+ [email protected](@types/[email protected])(@vitest/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected]):dependencies:'@types/chai': 5.2.2'@vitest/expect': 3.2.4- '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 3.2.4'@vitest/runner': 3.2.4'@vitest/snapshot': 3.2.4@@ -7235,7 +8688,7 @@ snapshots:why-is-node-running: 2.3.0optionalDependencies:'@types/node': 20.19.19- '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ '@vitest/browser': 3.2.4([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])transitivePeerDependencies:- jiti- less@@ -7316,6 +8769,10 @@ snapshots:dependencies:isexe: 2.0.0+ dependencies:+ isexe: 2.0.0+dependencies:isexe: 3.1.1@@ -7325,6 +8782,10 @@ snapshots:siginfo: 2.0.0stackback: 0.0.2+ dependencies:+ string-width: 4.2.3+dependencies:string-width: 5.1.2@@ -7353,15 +8814,26 @@ snapshots:+ dependencies:+ imurmurhash: 0.1.4+ is-typedarray: 1.0.0+ signal-exit: 3.0.7+ typedarray-to-buffer: 3.1.5+optionalDependencies:bufferutil: 4.0.8utf-8-validate: 6.0.3+ [email protected]: {}++ [email protected]: {}+diff --git a/spec/openapi-volumecontent.yml b/spec/openapi-volumecontent.ymlnew file mode 100644index 000000000..64809b33f--- /dev/null+++ b/spec/openapi-volumecontent.yml@@ -0,0 +1,329 @@+openapi: 3.0.0+info:+ version: 0.1.0+ title: E2B API++security:+ - VolumeJWT: []++components:+ securitySchemes:+ VolumeJWT:+ type: http+ scheme: bearer+ bearerFormat: JWT++ parameters:+ volumeID:+ name: volumeID+ in: path+ required: true+ schema:+ type: string+ path:+ name: path+ in: query+ required: true+ schema:+ type: string++ responses:+ '400':+ description: Bad request+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '401':+ description: Authentication error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '403':+ description: Forbidden+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '404':+ description: Not found+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '409':+ description: Conflict+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '500':+ description: Server error+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'++ schemas:+ Error:+ required:+ - code+ - message+ properties:+ code:+ type: string+ description: Error code+ message:+ type: string+ description: Error message++ VolumeEntryStat:+ type: object+ properties:+ name:+ type: string+ type:+ type: string+ enum: [unknown, file, directory, symlink]+ path:+ type: string+ size:+ type: integer+ format: int64+ mode:+ type: integer+ format: uint32+ uid:+ type: integer+ format: uint32+ gid:+ type: integer+ format: uint32+ atime:+ type: string+ format: date-time+ mtime:+ type: string+ format: date-time+ ctime:+ type: string+ format: date-time+ target:+ type: string+ required:+ - name+ - type+ - path+ - size+ - mode+ - uid+ - gid+ - atime+ - mtime+ - ctime++ VolumeDirectoryListing:+ type: array+ items:+ $ref: '#/components/schemas/VolumeEntryStat'++paths:+ /volumecontent/{volumeID}/path:+ get:+ description: Get path information+ tags: [volumes]+ parameters:+ - $ref: '#/components/parameters/volumeID'+ - $ref: '#/components/parameters/path'+ responses:+ '200':+ description: Successfully retrieved path information+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VolumeEntryStat'+ '404':+ $ref: '#/components/responses/404'++ patch:+ description: Update path metadata+ tags: [volumes]+ parameters:+ - $ref: '#/components/parameters/volumeID'+ - $ref: '#/components/parameters/path'+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ properties:+ uid:+ type: integer+ format: uint32+ gid:+ type: integer+ format: uint32+ mode:+ type: integer+ format: uint32+ responses:+ '200':+ description: "Successfully updated a file's metadata"+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VolumeEntryStat'+ '400':+ description: 'Invalid metadata provided'+ '404':+ description: 'path not found'+ '500':+ description: 'Internal server error'++ delete:+ description: Delete a path+ tags: [volumes]+ parameters:+ - $ref: '#/components/parameters/volumeID'+ - $ref: '#/components/parameters/path'+ responses:+ '204':+ description: Successfully deleted a path+ '404':+ $ref: '#/components/responses/404'++ /volumecontent/{volumeID}/dir:+ get:+ description: List directory contents+ tags: [volumes]+ parameters:+ - $ref: '#/components/parameters/volumeID'+ - $ref: '#/components/parameters/path'+ - name: depth+ in: query+ description: Number of layers deep to recurse into the directory+ schema:+ type: integer+ format: uint32+ default: 1+ responses:+ '200':+ description: 'Successfully retrieved a directory listing'+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VolumeDirectoryListing'+ '400':+ description: 'Invalid path provided'+ '404':+ description: 'path not found'+ '500':+ $ref: '#/components/responses/500'+ post:+ description: 'Create a directory'+ tags: [volumes]+ parameters:+ - $ref: '#/components/parameters/volumeID'+ - $ref: '#/components/parameters/path'+ - name: uid+ in: query+ description: User ID of the created directory+ schema:+ type: integer+ format: uint32+ - name: gid+ in: query+ description: Group ID of the created directory+ schema:+ type: integer+ format: uint32+ - name: mode+ in: query+ description: Mode of the created directory+ schema:+ type: integer+ format: uint32+ - name: force+ in: query+ description: Create the parents of a directory if they don't exist+ schema:+ type: boolean+ responses:+ '201':+ description: 'Successfully created a directory'+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VolumeEntryStat'+ '404':+ description: 'path not found'+ '500':+ $ref: '#/components/responses/500'++ /volumecontent/{volumeID}/file:+ get:+ description: Download file+ tags: [volumes]+ parameters:+ - $ref: '#/components/parameters/volumeID'+ - $ref: '#/components/parameters/path'+ responses:+ '200':+ description: 'Successfully downloaded a file'+ content:+ application/octet-stream:+ schema:+ type: string+ format: binary+ '404':+ description: 'path not found'+ '500':+ $ref: '#/components/responses/500'+ put:+ description: Upload file+ tags: [volumes]+ parameters:+ - $ref: '#/components/parameters/volumeID'+ - $ref: '#/components/parameters/path'+ - name: uid+ in: query+ description: User ID of the uploaded file+ schema:+ type: integer+ format: uint32+ - name: gid+ in: query+ description: Group ID of the uploaded file+ schema:+ type: integer+ format: uint32+ - name: mode+ in: query+ description: Mode of the uploaded file+ schema:+ type: integer+ format: uint32+ - name: force+ in: query+ description: Force overwrite of an existing file+ schema:+ type: boolean+ requestBody:+ content:+ application/octet-stream:+ schema:+ type: string+ format: binary+ responses:+ '201':+ description: 'Successfully created a file'+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VolumeEntryStat'+ '404':+ description: 'path not found'+ '500':+ $ref: '#/components/responses/500'diff --git a/spec/openapi.yml b/spec/openapi.ymlindex fccbde234..87084f64b 100644--- a/spec/openapi.yml+++ b/spec/openapi.yml@@ -115,42 +115,42 @@ components:type: stringresponses:- "400":+ '400':description: Bad requestcontent:application/json:schema:- $ref: "#/components/schemas/Error"- "401":+ $ref: '#/components/schemas/Error'+ '401':description: Authentication errorcontent:application/json:schema:- $ref: "#/components/schemas/Error"- "403":+ $ref: '#/components/schemas/Error'+ '403':description: Forbiddencontent:application/json:schema:- $ref: "#/components/schemas/Error"- "404":+ $ref: '#/components/schemas/Error'+ '404':description: Not foundcontent:application/json:schema:- $ref: "#/components/schemas/Error"- "409":+ $ref: '#/components/schemas/Error'+ '409':description: Conflictcontent:application/json:schema:- $ref: "#/components/schemas/Error"- "500":+ $ref: '#/components/schemas/Error'+ '500':description: Server errorcontent:application/json:schema:- $ref: "#/components/schemas/Error"+ $ref: '#/components/schemas/Error'schemas:Team:@@ -244,7 +244,7 @@ components:properties:snapshotID:type: string- description: Identifier of the snapshot template+ description: Identifier of the snapshot template including the tag. Uses namespace/alias when a name was provided (e.g. team-slug/my-snapshot:default), otherwise falls back to the raw template ID (e.g. abc123:default).names:type: arrayitems:@@ -346,7 +346,7 @@ components:type: stringdescription: Log message contentlevel:- $ref: "#/components/schemas/LogLevel"+ $ref: '#/components/schemas/LogLevel'fields:type: objectadditionalProperties:@@ -361,12 +361,12 @@ components:description: Logs of the sandboxtype: arrayitems:- $ref: "#/components/schemas/SandboxLog"+ $ref: '#/components/schemas/SandboxLog'logEntries:description: Structured logs of the sandboxtype: arrayitems:- $ref: "#/components/schemas/SandboxLogEntry"+ $ref: '#/components/schemas/SandboxLogEntry'SandboxLogsV2Response:required:@@ -377,7 +377,7 @@ components:description: Sandbox logs structuredtype: arrayitems:- $ref: "#/components/schemas/SandboxLogEntry"+ $ref: '#/components/schemas/SandboxLogEntry'SandboxMetric:description: Metric entry with timestamp and line@@ -459,7 +459,7 @@ components:deprecated: truedescription: Identifier of the clientenvdVersion:- $ref: "#/components/schemas/EnvdVersion"+ $ref: '#/components/schemas/EnvdVersion'envdAccessToken:type: stringdescription: Access token used for envd communication@@ -507,7 +507,7 @@ components:format: date-timedescription: Time when the sandbox will expireenvdVersion:- $ref: "#/components/schemas/EnvdVersion"+ $ref: '#/components/schemas/EnvdVersion'envdAccessToken:type: stringdescription: Access token used for envd communication@@ -520,23 +520,23 @@ components:nullable: truedescription: Base domain where the sandbox traffic is accessiblecpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'diskSizeMB:- $ref: "#/components/schemas/DiskSizeMB"+ $ref: '#/components/schemas/DiskSizeMB'metadata:- $ref: "#/components/schemas/SandboxMetadata"+ $ref: '#/components/schemas/SandboxMetadata'state:- $ref: "#/components/schemas/SandboxState"+ $ref: '#/components/schemas/SandboxState'network:- $ref: "#/components/schemas/SandboxNetworkConfig"+ $ref: '#/components/schemas/SandboxNetworkConfig'lifecycle:- $ref: "#/components/schemas/SandboxLifecycle"+ $ref: '#/components/schemas/SandboxLifecycle'volumeMounts:type: arrayitems:- $ref: "#/components/schemas/SandboxVolumeMount"+ $ref: '#/components/schemas/SandboxVolumeMount'ListedSandbox:required:@@ -573,21 +573,21 @@ components:format: date-timedescription: Time when the sandbox will expirecpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'diskSizeMB:- $ref: "#/components/schemas/DiskSizeMB"+ $ref: '#/components/schemas/DiskSizeMB'metadata:- $ref: "#/components/schemas/SandboxMetadata"+ $ref: '#/components/schemas/SandboxMetadata'state:- $ref: "#/components/schemas/SandboxState"+ $ref: '#/components/schemas/SandboxState'envdVersion:- $ref: "#/components/schemas/EnvdVersion"+ $ref: '#/components/schemas/EnvdVersion'volumeMounts:type: arrayitems:- $ref: "#/components/schemas/SandboxVolumeMount"+ $ref: '#/components/schemas/SandboxVolumeMount'SandboxesWithMetrics:required:@@ -595,7 +595,7 @@ components:properties:sandboxes:additionalProperties:- $ref: "#/components/schemas/SandboxMetric"+ $ref: '#/components/schemas/SandboxMetric'NewSandbox:required:@@ -615,7 +615,7 @@ components:default: falsedescription: Automatically pauses the sandbox after the timeoutautoResume:- $ref: "#/components/schemas/SandboxAutoResumeConfig"+ $ref: '#/components/schemas/SandboxAutoResumeConfig'secure:type: booleandescription: Secure all system communication with sandbox@@ -625,17 +625,17 @@ components:Allow sandbox to access the internet. When set to false, it behaves the same as specifying denyOutto 0.0.0.0/0 in the network config.network:- $ref: "#/components/schemas/SandboxNetworkConfig"+ $ref: '#/components/schemas/SandboxNetworkConfig'metadata:- $ref: "#/components/schemas/SandboxMetadata"+ $ref: '#/components/schemas/SandboxMetadata'envVars:- $ref: "#/components/schemas/EnvVars"+ $ref: '#/components/schemas/EnvVars'mcp:- $ref: "#/components/schemas/Mcp"+ $ref: '#/components/schemas/Mcp'volumeMounts:type: arrayitems:- $ref: "#/components/schemas/SandboxVolumeMount"+ $ref: '#/components/schemas/SandboxVolumeMount'ResumedSandbox:properties:@@ -719,6 +719,26 @@ components:type: integerdescription: Number of sandboxes that failed to kill+ AdminBuildCancelResult:+ required:+ - cancelledCount+ - failedCount+ properties:+ cancelledCount:+ type: integer+ description: Number of builds successfully cancelled+ failedCount:+ type: integer+ description: Number of builds that failed to cancel++ VolumeToken:+ type: object+ properties:+ token:+ type: string+ required:+ - token+Template:required:- templateID@@ -745,11 +765,11 @@ components:type: stringdescription: Identifier of the last successful build for given templatecpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'diskSizeMB:- $ref: "#/components/schemas/DiskSizeMB"+ $ref: '#/components/schemas/DiskSizeMB'public:type: booleandescription: Whether the template is public or only accessible by the team@@ -774,7 +794,7 @@ components:description: Time when the template was last updatedcreatedBy:allOf:- - $ref: "#/components/schemas/TeamUser"+ - $ref: '#/components/schemas/TeamUser'nullable: truelastSpawnedAt:type: string@@ -790,9 +810,9 @@ components:format: int32description: Number of times the template was builtenvdVersion:- $ref: "#/components/schemas/EnvdVersion"+ $ref: '#/components/schemas/EnvdVersion'buildStatus:- $ref: "#/components/schemas/TemplateBuildStatus"+ $ref: '#/components/schemas/TemplateBuildStatus'TemplateRequestResponseV3:required:@@ -853,11 +873,11 @@ components:type: stringdescription: Identifier of the last successful build for given templatecpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'diskSizeMB:- $ref: "#/components/schemas/DiskSizeMB"+ $ref: '#/components/schemas/DiskSizeMB'public:type: booleandescription: Whether the template is public or only accessible by the team@@ -876,7 +896,7 @@ components:description: Time when the template was last updatedcreatedBy:allOf:- - $ref: "#/components/schemas/TeamUser"+ - $ref: '#/components/schemas/TeamUser'nullable: truelastSpawnedAt:type: string@@ -892,7 +912,7 @@ components:format: int32description: Number of times the template was builtenvdVersion:- $ref: "#/components/schemas/EnvdVersion"+ $ref: '#/components/schemas/EnvdVersion'TemplateBuild:required:@@ -908,7 +928,7 @@ components:format: uuiddescription: Identifier of the buildstatus:- $ref: "#/components/schemas/TemplateBuildStatus"+ $ref: '#/components/schemas/TemplateBuildStatus'createdAt:type: stringformat: date-time@@ -922,13 +942,13 @@ components:format: date-timedescription: Time when the build was finishedcpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'diskSizeMB:- $ref: "#/components/schemas/DiskSizeMB"+ $ref: '#/components/schemas/DiskSizeMB'envdVersion:- $ref: "#/components/schemas/EnvdVersion"+ $ref: '#/components/schemas/EnvdVersion'TemplateWithBuilds:required:@@ -980,7 +1000,7 @@ components:type: arraydescription: List of builds for the templateitems:- $ref: "#/components/schemas/TemplateBuild"+ $ref: '#/components/schemas/TemplateBuild'TemplateAliasResponse:required:@@ -1014,9 +1034,9 @@ components:description: Ready check command to execute in the template after the buildtype: stringcpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'TemplateStep:description: Step in the template build process@@ -1059,9 +1079,9 @@ components:type: stringdescription: Identifier of the teamcpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'TemplateBuildRequestV2:required:@@ -1075,21 +1095,21 @@ components:type: stringdescription: Identifier of the teamcpuCount:- $ref: "#/components/schemas/CPUCount"+ $ref: '#/components/schemas/CPUCount'memoryMB:- $ref: "#/components/schemas/MemoryMB"+ $ref: '#/components/schemas/MemoryMB'FromImageRegistry:oneOf:- - $ref: "#/components/schemas/AWSRegistry"- - $ref: "#/components/schemas/GCPRegistry"- - $ref: "#/components/schemas/GeneralRegistry"+ - $ref: '#/components/schemas/AWSRegistry'+ - $ref: '#/components/schemas/GCPRegistry'+ - $ref: '#/components/schemas/GeneralRegistry'discriminator:propertyName: typemapping:- aws: "#/components/schemas/AWSRegistry"- gcp: "#/components/schemas/GCPRegistry"- registry: "#/components/schemas/GeneralRegistry"+ aws: '#/components/schemas/AWSRegistry'+ gcp: '#/components/schemas/GCPRegistry'+ registry: '#/components/schemas/GeneralRegistry'AWSRegistry:type: object@@ -1155,7 +1175,7 @@ components:type: stringdescription: Template to use as a base for the template buildfromImageRegistry:- $ref: "#/components/schemas/FromImageRegistry"+ $ref: '#/components/schemas/FromImageRegistry'force:default: falsetype: boolean@@ -1165,7 +1185,7 @@ components:description: List of steps to execute in the template buildtype: arrayitems:- $ref: "#/components/schemas/TemplateStep"+ $ref: '#/components/schemas/TemplateStep'startCmd:description: Start command to execute in the template after the buildtype: string@@ -1207,7 +1227,7 @@ components:type: stringdescription: Log message contentlevel:- $ref: "#/components/schemas/LogLevel"+ $ref: '#/components/schemas/LogLevel'step:type: stringdescription: Step in the build process related to the log entry@@ -1227,7 +1247,7 @@ components:description: Log entries related to the status reasontype: arrayitems:- $ref: "#/components/schemas/BuildLogEntry"+ $ref: '#/components/schemas/BuildLogEntry'TemplateBuildStatus:type: string@@ -1257,7 +1277,7 @@ components:description: Build logs structuredtype: arrayitems:- $ref: "#/components/schemas/BuildLogEntry"+ $ref: '#/components/schemas/BuildLogEntry'templateID:type: stringdescription: Identifier of the template@@ -1265,9 +1285,9 @@ components:type: stringdescription: Identifier of the buildstatus:- $ref: "#/components/schemas/TemplateBuildStatus"+ $ref: '#/components/schemas/TemplateBuildStatus'reason:- $ref: "#/components/schemas/BuildStatusReason"+ $ref: '#/components/schemas/BuildStatusReason'TemplateBuildLogsResponse:required:@@ -1278,7 +1298,7 @@ components:description: Build logs structuredtype: arrayitems:- $ref: "#/components/schemas/BuildLogEntry"+ $ref: '#/components/schemas/BuildLogEntry'LogsDirection:type: string@@ -1323,7 +1343,7 @@ components:format: uuiddescription: Identifier of the clusterstatus:- $ref: "#/components/schemas/NodeStatus"+ $ref: '#/components/schemas/NodeStatus'DiskMetrics:required:@@ -1390,7 +1410,7 @@ components:type: arraydescription: Detailed metrics for each disk/mount pointitems:- $ref: "#/components/schemas/DiskMetrics"+ $ref: '#/components/schemas/DiskMetrics'MachineInfo:required:- cpuFamily@@ -1413,7 +1433,6 @@ components:Node:required:- - nodeID- id- serviceInstanceID- clusterID@@ -1433,10 +1452,6 @@ components:commit:type: stringdescription: Commit of the orchestrator- nodeID:- type: string- deprecated: true- description: Identifier of the nomad nodeid:type: stringdescription: Identifier of the node@@ -1447,15 +1462,15 @@ components:type: stringdescription: Identifier of the clustermachineInfo:- $ref: "#/components/schemas/MachineInfo"+ $ref: '#/components/schemas/MachineInfo'status:- $ref: "#/components/schemas/NodeStatus"+ $ref: '#/components/schemas/NodeStatus'sandboxCount:type: integerformat: uint32description: Number of sandboxes running on the nodemetrics:- $ref: "#/components/schemas/NodeMetrics"+ $ref: '#/components/schemas/NodeMetrics'createSuccesses:type: integerformat: uint64@@ -1471,12 +1486,11 @@ components:NodeDetail:required:- - nodeID- id- serviceInstanceID- clusterID- status- - sandboxes+ - sandboxCount- cachedBuilds- createSuccesses- createFails@@ -1500,21 +1514,16 @@ components:serviceInstanceID:type: stringdescription: Service instance identifier of the node- nodeID:- type: string- deprecated: true- description: Identifier of the nomad nodemachineInfo:- $ref: "#/components/schemas/MachineInfo"+ $ref: '#/components/schemas/MachineInfo'status:- $ref: "#/components/schemas/NodeStatus"- sandboxes:- type: array- description: List of sandboxes running on the node- items:- $ref: "#/components/schemas/ListedSandbox"+ $ref: '#/components/schemas/NodeStatus'+ sandboxCount:+ type: integer+ format: uint32+ description: Number of sandboxes running on the nodemetrics:- $ref: "#/components/schemas/NodeMetrics"+ $ref: '#/components/schemas/NodeMetrics'cachedBuilds:type: arraydescription: List of cached builds id on the node@@ -1548,7 +1557,7 @@ components:type: stringdescription: The fully created access tokenmask:- $ref: "#/components/schemas/IdentifierMaskingDetails"+ $ref: '#/components/schemas/IdentifierMaskingDetails'createdAt:type: stringformat: date-time@@ -1577,14 +1586,14 @@ components:type: stringdescription: Name of the API keymask:- $ref: "#/components/schemas/IdentifierMaskingDetails"+ $ref: '#/components/schemas/IdentifierMaskingDetails'createdAt:type: stringformat: date-timedescription: Timestamp of API key creationcreatedBy:allOf:- - $ref: "#/components/schemas/TeamUser"+ - $ref: '#/components/schemas/TeamUser'nullable: truelastUsed:type: string@@ -1608,7 +1617,7 @@ components:type: stringdescription: Raw value of the API keymask:- $ref: "#/components/schemas/IdentifierMaskingDetails"+ $ref: '#/components/schemas/IdentifierMaskingDetails'name:type: stringdescription: Name of the API key@@ -1618,7 +1627,7 @@ components:description: Timestamp of API key creationcreatedBy:allOf:- - $ref: "#/components/schemas/TeamUser"+ - $ref: '#/components/schemas/TeamUser'nullable: truelastUsed:type: string@@ -1749,13 +1758,30 @@ components:- volumeID- name+ VolumeAndToken:+ type: object+ properties:+ volumeID:+ type: string+ description: ID of the volume+ name:+ type: string+ description: Name of the volume+ token:+ type: string+ description: Auth token to use for interacting with volume content+ required:+ - volumeID+ - name+ - token+NewVolume:type: objectproperties:name:type: stringdescription: Name of the volume- pattern: "^[a-zA-Z0-9_-]+$"+ pattern: '^[a-zA-Z0-9_-]+$'required:- name@@ -1773,10 +1799,10 @@ paths:get:description: Health checkresponses:- "200":+ '200':description: Request was successful- "401":- $ref: "#/components/responses/401"+ '401':+ $ref: '#/components/responses/401'/teams:get:@@ -1786,7 +1812,7 @@ paths:- AccessTokenAuth: []- Supabase1TokenAuth: []responses:- "200":+ '200':description: Successfully returned all teamscontent:application/json:@@ -1794,11 +1820,11 @@ paths:type: arrayitems:allOf:- - $ref: "#/components/schemas/Team"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ - $ref: '#/components/schemas/Team'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/teams/{teamID}/metrics:get:@@ -1809,7 +1835,7 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/teamID"+ - $ref: '#/components/parameters/teamID'- in: queryname: startschema:@@ -1825,22 +1851,22 @@ paths:minimum: 0description: Unix timestamp for the end of the interval, in seconds, for which the metricsresponses:- "200":+ '200':description: Successfully returned the team metricscontent:application/json:schema:type: arrayitems:- $ref: "#/components/schemas/TeamMetric"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "403":- $ref: "#/components/responses/403"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TeamMetric'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '403':+ $ref: '#/components/responses/403'+ '500':+ $ref: '#/components/responses/500'/teams/{teamID}/metrics/max:get:@@ -1851,7 +1877,7 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/teamID"+ - $ref: '#/components/parameters/teamID'- in: queryname: startschema:@@ -1874,20 +1900,20 @@ paths:enum: [concurrent_sandboxes, sandbox_start_rate]description: Metric to retrieve the maximum value forresponses:- "200":+ '200':description: Successfully returned the team metricscontent:application/json:schema:- $ref: "#/components/schemas/MaxTeamMetric"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "403":- $ref: "#/components/responses/403"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/MaxTeamMetric'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '403':+ $ref: '#/components/responses/403'+ '500':+ $ref: '#/components/responses/500'/sandboxes:get:@@ -1905,7 +1931,7 @@ paths:schema:type: stringresponses:- "200":+ '200':description: Successfully returned all running sandboxescontent:application/json:@@ -1913,13 +1939,13 @@ paths:type: arrayitems:allOf:- - $ref: "#/components/schemas/ListedSandbox"- "401":- $ref: "#/components/responses/401"- "400":- $ref: "#/components/responses/400"- "500":- $ref: "#/components/responses/500"+ - $ref: '#/components/schemas/ListedSandbox'+ '401':+ $ref: '#/components/responses/401'+ '400':+ $ref: '#/components/responses/400'+ '500':+ $ref: '#/components/responses/500'post:description: Create a sandbox from the templatetags: [sandboxes]@@ -1932,20 +1958,20 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/NewSandbox"+ $ref: '#/components/schemas/NewSandbox'responses:- "201":+ '201':description: The sandbox was created successfullycontent:application/json:schema:- $ref: "#/components/schemas/Sandbox"- "401":- $ref: "#/components/responses/401"- "400":- $ref: "#/components/responses/400"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/Sandbox'+ '401':+ $ref: '#/components/responses/401'+ '400':+ $ref: '#/components/responses/400'+ '500':+ $ref: '#/components/responses/500'/v2/sandboxes:get:@@ -1969,13 +1995,13 @@ paths:schema:type: arrayitems:- $ref: "#/components/schemas/SandboxState"+ $ref: '#/components/schemas/SandboxState'style: formexplode: false- - $ref: "#/components/parameters/paginationNextToken"- - $ref: "#/components/parameters/paginationLimit"+ - $ref: '#/components/parameters/paginationNextToken'+ - $ref: '#/components/parameters/paginationLimit'responses:- "200":+ '200':description: Successfully returned all running sandboxescontent:application/json:@@ -1983,13 +2009,13 @@ paths:type: arrayitems:allOf:- - $ref: "#/components/schemas/ListedSandbox"- "401":- $ref: "#/components/responses/401"- "400":- $ref: "#/components/responses/400"- "500":- $ref: "#/components/responses/500"+ - $ref: '#/components/schemas/ListedSandbox'+ '401':+ $ref: '#/components/responses/401'+ '400':+ $ref: '#/components/responses/400'+ '500':+ $ref: '#/components/responses/500'/sandboxes/metrics:get:@@ -2012,18 +2038,18 @@ paths:maxItems: 100uniqueItems: trueresponses:- "200":+ '200':description: Successfully returned all running sandboxes with metricscontent:application/json:schema:- $ref: "#/components/schemas/SandboxesWithMetrics"- "401":- $ref: "#/components/responses/401"- "400":- $ref: "#/components/responses/400"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/SandboxesWithMetrics'+ '401':+ $ref: '#/components/responses/401'+ '400':+ $ref: '#/components/responses/400'+ '500':+ $ref: '#/components/responses/500'/sandboxes/{sandboxID}/logs:get:@@ -2035,7 +2061,7 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'- in: queryname: startschema:@@ -2052,18 +2078,18 @@ paths:type: integerdescription: Maximum number of logs that should be returnedresponses:- "200":+ '200':description: Successfully returned the sandbox logscontent:application/json:schema:- $ref: "#/components/schemas/SandboxLogs"- "404":- $ref: "#/components/responses/404"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/SandboxLogs'+ '404':+ $ref: '#/components/responses/404'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/v2/sandboxes/{sandboxID}/logs:get:@@ -2074,7 +2100,7 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'- in: queryname: cursorschema:@@ -2094,21 +2120,32 @@ paths:- in: queryname: directionschema:- $ref: "#/components/schemas/LogsDirection"+ $ref: '#/components/schemas/LogsDirection'description: Direction of the logs that should be returned+ - in: query+ name: level+ schema:+ $ref: '#/components/schemas/LogLevel'+ description: Minimum log level to return. Logs below this level are excluded+ - in: query+ name: search+ schema:+ type: string+ maxLength: 256+ description: Case-sensitive substring match on log message contentresponses:- "200":+ '200':description: Successfully returned the sandbox logscontent:application/json:schema:- $ref: "#/components/schemas/SandboxLogsV2Response"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/SandboxLogsV2Response'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/sandboxes/{sandboxID}:get:@@ -2119,20 +2156,20 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'responses:- "200":+ '200':description: Successfully returned the sandboxcontent:application/json:schema:- $ref: "#/components/schemas/SandboxDetail"- "404":- $ref: "#/components/responses/404"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/SandboxDetail'+ '404':+ $ref: '#/components/responses/404'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'delete:description: Kill a sandbox@@ -2142,16 +2179,16 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'responses:- "204":+ '204':description: The sandbox was killed successfully- "404":- $ref: "#/components/responses/404"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ '404':+ $ref: '#/components/responses/404'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/sandboxes/{sandboxID}/metrics:get:@@ -2162,7 +2199,7 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'- in: queryname: startschema:@@ -2179,22 +2216,22 @@ paths:description: Unix timestamp for the end of the interval, in seconds, for which the metricsresponses:- "200":+ '200':description: Successfully returned the sandbox metricscontent:application/json:schema:type: arrayitems:- $ref: "#/components/schemas/SandboxMetric"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/SandboxMetric'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'# TODO: Pause and resume might be exposed as POST /sandboxes/{sandboxID}/snapshot and then POST /sandboxes with specified snapshotting setup/sandboxes/{sandboxID}/pause:@@ -2206,18 +2243,18 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'responses:- "204":+ '204':description: The sandbox was paused successfully and can be resumed- "409":- $ref: "#/components/responses/409"- "404":- $ref: "#/components/responses/404"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ '409':+ $ref: '#/components/responses/409'+ '404':+ $ref: '#/components/responses/404'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/sandboxes/{sandboxID}/resume:post:@@ -2229,28 +2266,28 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'requestBody:required: truecontent:application/json:schema:- $ref: "#/components/schemas/ResumedSandbox"+ $ref: '#/components/schemas/ResumedSandbox'responses:- "201":+ '201':description: The sandbox was resumed successfullycontent:application/json:schema:- $ref: "#/components/schemas/Sandbox"- "409":- $ref: "#/components/responses/409"- "404":- $ref: "#/components/responses/404"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/Sandbox'+ '409':+ $ref: '#/components/responses/409'+ '404':+ $ref: '#/components/responses/404'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/sandboxes/{sandboxID}/connect:post:@@ -2261,34 +2298,34 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'requestBody:required: truecontent:application/json:schema:- $ref: "#/components/schemas/ConnectSandbox"+ $ref: '#/components/schemas/ConnectSandbox'responses:- "200":+ '200':description: The sandbox was already runningcontent:application/json:schema:- $ref: "#/components/schemas/Sandbox"- "201":+ $ref: '#/components/schemas/Sandbox'+ '201':description: The sandbox was resumed successfullycontent:application/json:schema:- $ref: "#/components/schemas/Sandbox"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/Sandbox'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/sandboxes/{sandboxID}/timeout:post:@@ -2312,16 +2349,16 @@ paths:format: int32minimum: 0parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'responses:- "204":+ '204':description: Successfully set the sandbox timeout- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/sandboxes/{sandboxID}/refreshes:post:@@ -2343,14 +2380,14 @@ paths:maximum: 3600 # 1 hourminimum: 0parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'responses:- "204":+ '204':description: Successfully refreshed the sandbox- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'/sandboxes/{sandboxID}/snapshots:post:@@ -2361,7 +2398,7 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/sandboxID"+ - $ref: '#/components/parameters/sandboxID'requestBody:required: truecontent:@@ -2373,20 +2410,20 @@ paths:type: stringdescription: Optional name for the snapshot template. If a snapshot template with this name already exists, a new build will be assigned to the existing template instead of creating a new one.responses:- "201":+ '201':description: Snapshot created successfullycontent:application/json:schema:- $ref: "#/components/schemas/SnapshotInfo"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/SnapshotInfo'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/snapshots:get:@@ -2403,21 +2440,21 @@ paths:schema:type: stringdescription: Filter snapshots by source sandbox ID- - $ref: "#/components/parameters/paginationLimit"- - $ref: "#/components/parameters/paginationNextToken"+ - $ref: '#/components/parameters/paginationLimit'+ - $ref: '#/components/parameters/paginationNextToken'responses:- "200":+ '200':description: Successfully returned snapshotscontent:application/json:schema:type: arrayitems:- $ref: "#/components/schemas/SnapshotInfo"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/SnapshotInfo'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/v3/templates:post:@@ -2432,21 +2469,21 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/TemplateBuildRequestV3"+ $ref: '#/components/schemas/TemplateBuildRequestV3'responses:- "202":+ '202':description: The build was requested successfullycontent:application/json:schema:- $ref: "#/components/schemas/TemplateRequestResponseV3"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateRequestResponseV3'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/v2/templates:post:@@ -2462,21 +2499,21 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/TemplateBuildRequestV2"+ $ref: '#/components/schemas/TemplateBuildRequestV2'responses:- "202":+ '202':description: The build was requested successfullycontent:application/json:schema:- $ref: "#/components/schemas/TemplateLegacy"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateLegacy'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/templates/{templateID}/files/{hash}:get:@@ -2488,7 +2525,7 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"+ - $ref: '#/components/parameters/templateID'- in: pathname: hashrequired: true@@ -2497,20 +2534,20 @@ paths:description: Hash of the filesresponses:- "201":+ '201':description: The upload link where to upload the tar filecontent:application/json:schema:- $ref: "#/components/schemas/TemplateBuildFileUpload"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateBuildFileUpload'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/templates:get:@@ -2529,7 +2566,7 @@ paths:type: stringdescription: Identifier of the teamresponses:- "200":+ '200':description: Successfully returned all templatescontent:application/json:@@ -2537,11 +2574,11 @@ paths:type: arrayitems:allOf:- - $ref: "#/components/schemas/Template"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ - $ref: '#/components/schemas/Template'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'post:description: Create a new templatedeprecated: true@@ -2555,21 +2592,21 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/TemplateBuildRequest"+ $ref: '#/components/schemas/TemplateBuildRequest'responses:- "202":+ '202':description: The build was acceptedcontent:application/json:schema:- $ref: "#/components/schemas/TemplateLegacy"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateLegacy'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/templates/{templateID}:get:@@ -2580,20 +2617,20 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"- - $ref: "#/components/parameters/paginationNextToken"- - $ref: "#/components/parameters/paginationLimit"+ - $ref: '#/components/parameters/templateID'+ - $ref: '#/components/parameters/paginationNextToken'+ - $ref: '#/components/parameters/paginationLimit'responses:- "200":+ '200':description: Successfully returned the template with its buildscontent:application/json:schema:- $ref: "#/components/schemas/TemplateWithBuilds"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateWithBuilds'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'post:description: Rebuild an templatedeprecated: true@@ -2603,25 +2640,25 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"+ - $ref: '#/components/parameters/templateID'requestBody:required: truecontent:application/json:schema:- $ref: "#/components/schemas/TemplateBuildRequest"+ $ref: '#/components/schemas/TemplateBuildRequest'responses:- "202":+ '202':description: The build was acceptedcontent:application/json:schema:- $ref: "#/components/schemas/TemplateLegacy"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateLegacy'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'delete:description: Delete a templatetags: [templates]@@ -2631,14 +2668,14 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"+ - $ref: '#/components/parameters/templateID'responses:- "204":+ '204':description: The template was deleted successfully- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'patch:description: Update templatedeprecated: true@@ -2649,22 +2686,22 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"+ - $ref: '#/components/parameters/templateID'requestBody:required: truecontent:application/json:schema:- $ref: "#/components/schemas/TemplateUpdateRequest"+ $ref: '#/components/schemas/TemplateUpdateRequest'responses:- "200":+ '200':description: The template was updated successfully- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/templates/{templateID}/builds/{buildID}:post:@@ -2676,15 +2713,15 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"- - $ref: "#/components/parameters/buildID"+ - $ref: '#/components/parameters/templateID'+ - $ref: '#/components/parameters/buildID'responses:- "202":+ '202':description: The build has started- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/v2/templates/{templateID}/builds/{buildID}:post:@@ -2695,21 +2732,21 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"- - $ref: "#/components/parameters/buildID"+ - $ref: '#/components/parameters/templateID'+ - $ref: '#/components/parameters/buildID'requestBody:required: truecontent:application/json:schema:- $ref: "#/components/schemas/TemplateBuildStartV2"+ $ref: '#/components/schemas/TemplateBuildStartV2'responses:- "202":+ '202':description: The build has started- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/v2/templates/{templateID}:patch:@@ -2721,26 +2758,26 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"+ - $ref: '#/components/parameters/templateID'requestBody:required: truecontent:application/json:schema:- $ref: "#/components/schemas/TemplateUpdateRequest"+ $ref: '#/components/schemas/TemplateUpdateRequest'responses:- "200":+ '200':description: The template was updated successfullycontent:application/json:schema:- $ref: "#/components/schemas/TemplateUpdateResponse"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateUpdateResponse'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/templates/{templateID}/builds/{buildID}/status:get:@@ -2752,8 +2789,8 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"- - $ref: "#/components/parameters/buildID"+ - $ref: '#/components/parameters/templateID'+ - $ref: '#/components/parameters/buildID'- in: queryname: logsOffsetschema:@@ -2774,20 +2811,20 @@ paths:- in: queryname: levelschema:- $ref: "#/components/schemas/LogLevel"+ $ref: '#/components/schemas/LogLevel'responses:- "200":+ '200':description: Successfully returned the templatecontent:application/json:schema:- $ref: "#/components/schemas/TemplateBuildInfo"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateBuildInfo'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/templates/{templateID}/builds/{buildID}/logs:get:@@ -2799,8 +2836,8 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"- - $ref: "#/components/parameters/buildID"+ - $ref: '#/components/parameters/templateID'+ - $ref: '#/components/parameters/buildID'- in: queryname: cursorschema:@@ -2820,29 +2857,29 @@ paths:- in: queryname: directionschema:- $ref: "#/components/schemas/LogsDirection"+ $ref: '#/components/schemas/LogsDirection'- in: queryname: levelschema:- $ref: "#/components/schemas/LogLevel"+ $ref: '#/components/schemas/LogLevel'- in: queryname: sourceschema:- $ref: "#/components/schemas/LogsSource"+ $ref: '#/components/schemas/LogsSource'description: Source of the logs that should be returned fromresponses:- "200":+ '200':description: Successfully returned the template build logscontent:application/json:schema:- $ref: "#/components/schemas/TemplateBuildLogsResponse"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateBuildLogsResponse'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/templates/tags:post:@@ -2857,22 +2894,22 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/AssignTemplateTagsRequest"+ $ref: '#/components/schemas/AssignTemplateTagsRequest'responses:- "201":+ '201':description: Tag assigned successfullycontent:application/json:schema:- $ref: "#/components/schemas/AssignedTemplateTags"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/AssignedTemplateTags'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'delete:description: Delete multiple tags from templatestags: [tags]@@ -2885,18 +2922,18 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/DeleteTemplateTagsRequest"+ $ref: '#/components/schemas/DeleteTemplateTagsRequest'responses:- "204":+ '204':description: Tags deleted successfully- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/templates/{templateID}/tags:get:@@ -2907,24 +2944,24 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/templateID"+ - $ref: '#/components/parameters/templateID'responses:- "200":+ '200':description: Successfully returned the template tagscontent:application/json:schema:type: arrayitems:- $ref: "#/components/schemas/TemplateTag"- "401":- $ref: "#/components/responses/401"- "403":- $ref: "#/components/responses/403"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateTag'+ '401':+ $ref: '#/components/responses/401'+ '403':+ $ref: '#/components/responses/403'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/templates/aliases/{alias}:get:@@ -2942,20 +2979,20 @@ paths:type: stringdescription: Template aliasresponses:- "200":+ '200':description: Successfully queried template by aliascontent:application/json:schema:- $ref: "#/components/schemas/TemplateAliasResponse"- "400":- $ref: "#/components/responses/400"- "403":- $ref: "#/components/responses/403"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TemplateAliasResponse'+ '400':+ $ref: '#/components/responses/400'+ '403':+ $ref: '#/components/responses/403'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/nodes:get:@@ -2964,7 +3001,7 @@ paths:security:- AdminTokenAuth: []responses:- "200":+ '200':description: Successfully returned all nodescontent:application/json:@@ -2972,11 +3009,11 @@ paths:type: arrayitems:allOf:- - $ref: "#/components/schemas/Node"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ - $ref: '#/components/schemas/Node'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/nodes/{nodeID}:get:@@ -2985,7 +3022,7 @@ paths:security:- AdminTokenAuth: []parameters:- - $ref: "#/components/parameters/nodeID"+ - $ref: '#/components/parameters/nodeID'- in: queryname: clusterIDdescription: Identifier of the cluster@@ -2994,39 +3031,39 @@ paths:type: stringformat: uuidresponses:- "200":+ '200':description: Successfully returned the nodecontent:application/json:schema:- $ref: "#/components/schemas/NodeDetail"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/NodeDetail'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'post:description: Change status of a nodetags: [admin]security:- AdminTokenAuth: []parameters:- - $ref: "#/components/parameters/nodeID"+ - $ref: '#/components/parameters/nodeID'requestBody:content:application/json:schema:- $ref: "#/components/schemas/NodeStatusChange"+ $ref: '#/components/schemas/NodeStatusChange'responses:- "204":+ '204':description: The node status was changed successfully- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/admin/teams/{teamID}/sandboxes/kill:post:@@ -3044,18 +3081,47 @@ paths:format: uuiddescription: Team IDresponses:- "200":+ '200':description: Successfully killed sandboxescontent:application/json:schema:- $ref: "#/components/schemas/AdminSandboxKillResult"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/AdminSandboxKillResult'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'++ /admin/teams/{teamID}/builds/cancel:+ post:+ summary: Cancel all builds for a team+ description: Cancels all in-progress and pending builds for the specified team+ tags: [admin]+ security:+ - AdminTokenAuth: []+ parameters:+ - name: teamID+ in: path+ required: true+ schema:+ type: string+ format: uuid+ description: Team ID+ responses:+ '200':+ description: Successfully cancelled builds+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/AdminBuildCancelResult'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/access-tokens:post:@@ -3068,18 +3134,18 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/NewAccessToken"+ $ref: '#/components/schemas/NewAccessToken'responses:- "201":+ '201':description: Access token created successfullycontent:application/json:schema:- $ref: "#/components/schemas/CreatedAccessToken"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/CreatedAccessToken'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/access-tokens/{accessTokenID}:delete:@@ -3088,16 +3154,16 @@ paths:security:- Supabase1TokenAuth: []parameters:- - $ref: "#/components/parameters/accessTokenID"+ - $ref: '#/components/parameters/accessTokenID'responses:- "204":+ '204':description: Access token deleted successfully- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/api-keys:get:@@ -3107,18 +3173,18 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []responses:- "200":+ '200':description: Successfully returned all team API keyscontent:application/json:schema:type: arrayitems:- $ref: "#/components/schemas/TeamAPIKey"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/TeamAPIKey'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'post:description: Create a new team API keytags: [api-keys]@@ -3130,18 +3196,18 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/NewTeamAPIKey"+ $ref: '#/components/schemas/NewTeamAPIKey'responses:- "201":+ '201':description: Team API key created successfullycontent:application/json:schema:- $ref: "#/components/schemas/CreatedTeamAPIKey"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/CreatedTeamAPIKey'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/api-keys/{apiKeyID}:patch:@@ -3151,22 +3217,22 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/apiKeyID"+ - $ref: '#/components/parameters/apiKeyID'requestBody:required: truecontent:application/json:schema:- $ref: "#/components/schemas/UpdateTeamAPIKey"+ $ref: '#/components/schemas/UpdateTeamAPIKey'responses:- "200":+ '200':description: Team API key updated successfully- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'delete:description: Delete a team API keytags: [api-keys]@@ -3174,45 +3240,43 @@ paths:- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/apiKeyID"+ - $ref: '#/components/parameters/apiKeyID'responses:- "204":+ '204':description: Team API key deleted successfully- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'/volumes:get:description: List all team volumestags: [volumes]security:- - AccessTokenAuth: []- ApiKeyAuth: []- Supabase1TokenAuth: []Supabase2TeamAuth: []responses:- "200":+ '200':description: Successfully listed all team volumescontent:application/json:schema:type: arrayitems:- $ref: "#/components/schemas/Volume"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/Volume'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'post:description: Create a new team volumetags: [volumes]security:- - AccessTokenAuth: []- ApiKeyAuth: []- Supabase1TokenAuth: []Supabase2TeamAuth: []@@ -3221,62 +3285,60 @@ paths:content:application/json:schema:- $ref: "#/components/schemas/NewVolume"+ $ref: '#/components/schemas/NewVolume'responses:- "201":+ '201':description: Successfully created a new team volumecontent:application/json:schema:- $ref: "#/components/schemas/Volume"- "400":- $ref: "#/components/responses/400"- "401":- $ref: "#/components/responses/401"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/VolumeAndToken'+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '500':+ $ref: '#/components/responses/500'/volumes/{volumeID}:get:description: Get team volume infotags: [volumes]security:- - AccessTokenAuth: []- ApiKeyAuth: []- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/volumeID"+ - $ref: '#/components/parameters/volumeID'responses:- "200":+ '200':description: Successfully retrieved a team volumecontent:application/json:schema:- $ref: "#/components/schemas/Volume"- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ $ref: '#/components/schemas/VolumeAndToken'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'delete:description: Delete a team volumetags: [volumes]security:- - AccessTokenAuth: []- ApiKeyAuth: []- Supabase1TokenAuth: []Supabase2TeamAuth: []parameters:- - $ref: "#/components/parameters/volumeID"+ - $ref: '#/components/parameters/volumeID'responses:- "204":+ '204':description: Successfully deleted a team volume- "401":- $ref: "#/components/responses/401"- "404":- $ref: "#/components/responses/404"- "500":- $ref: "#/components/responses/500"+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ '500':+ $ref: '#/components/responses/500'