diff --git a/sdks/sandbox/javascript/src/index.ts b/sdks/sandbox/javascript/src/index.ts index e0f98223..185e0bf5 100644 --- a/sdks/sandbox/javascript/src/index.ts +++ b/sdks/sandbox/javascript/src/index.ts @@ -39,6 +39,7 @@ export type { NetworkPolicy, NetworkRule, NetworkRuleAction, + OSSFS, PVC, RenewSandboxExpirationRequest, RenewSandboxExpirationResponse, diff --git a/sdks/sandbox/javascript/src/models/sandboxes.ts b/sdks/sandbox/javascript/src/models/sandboxes.ts index 52c74cbb..a8b80b49 100644 --- a/sdks/sandbox/javascript/src/models/sandboxes.ts +++ b/sdks/sandbox/javascript/src/models/sandboxes.ts @@ -92,12 +92,51 @@ export interface PVC extends Record { claimName: string; } +/** + * Alibaba Cloud OSS mount backend via ossfs. + * + * The runtime mounts a host-side OSS path under `storage.ossfs_mount_root` + * so the container sees the bucket contents at the specified mount path. + * + * In Docker runtime, OSSFS backend requires OpenSandbox Server to run on a Linux host with FUSE support. + */ +export interface OSSFS extends Record { + /** + * OSS bucket name. + */ + bucket: string; + /** + * OSS endpoint (e.g., "oss-cn-hangzhou.aliyuncs.com"). + */ + endpoint: string; + /** + * ossfs major version used by runtime mount integration. + * @default "2.0" + */ + version?: "1.0" | "2.0"; + /** + * Additional ossfs mount options. + * + * - `1.0`: mounts with `ossfs ... -o