{"version":3,"sources":["../src/client.ts","../src/client-metadata.ts","../src/constants.ts","../src/env.ts","../src/errors.ts","../src/auth.ts","../src/egress-policies.ts","../src/internal/proto/tenki/sandbox/v1/sandbox_pb.ts","../src/internal/proto/buf/validate/validate_pb.ts","../src/internal/proto/tenki/sandbox/v1/registry_pb.ts","../src/internal/proto/tenki/sandbox/v1/secret_file_pb.ts","../src/internal/proto/tenki/sandbox/v1/tailnet_connection_pb.ts","../src/internal/proto/tenki/sandbox/v1/template_pb.ts","../src/session.ts","../src/data-plane.ts","../src/http2-drain.ts","../src/refused-stream.ts","../src/dial.ts","../src/fs.ts","../src/git.ts","../src/metrics.ts","../src/options.ts","../src/process.ts","../src/ready-backoff.ts","../src/snapshot.ts","../src/ssh.ts","../src/storage.ts","../src/stream.ts","../src/tailnet.ts","../src/tunnel.ts","../src/tunnel-resilient.ts","../src/warning.ts","../src/internal/proto/tenki/sandbox/v1/ssh_gateway_client_pb.ts","../src/pagination.ts","../src/preview-url.ts","../src/registry.ts","../src/resources.ts","../src/secret-files.ts","../src/ssh-cert.ts","../src/template.ts","../src/template-spec.ts","../src/usage.ts","../src/volume.ts","../src/result.ts","../src/disk.ts","../src/workspace.ts","../src/internal/proto/tenki/cloud/workspace/v1beta1/secrets_pb.ts","../src/workspace-secrets.ts","../src/secret-policies.ts"],"sourcesContent":["import { create } from \"@bufbuild/protobuf\";\nimport { durationFromMs, timestampDate, timestampFromDate } from \"@bufbuild/protobuf/wkt\";\nimport { ConnectError, createClient, type Client } from \"@connectrpc/connect\";\nimport { createGrpcTransport, type Http2SessionManager } from \"@connectrpc/connect-node\";\n\nimport { createAuthInterceptor, resolveAuthToken } from \"./auth.js\";\nimport type { CIRunnerSizes } from \"./ci-runner-sizes.js\";\nimport {\n  BASE_URL_ENVS,\n  DEFAULT_BASE_URL,\n  DEFAULT_CPU_CORES,\n  DEFAULT_DATA_PLANE_READY_TIMEOUT_MS,\n  DEFAULT_DISK_SIZE_GB,\n  DEFAULT_MEMORY_MB,\n  DEFAULT_SESSION_CREATE_TIMEOUT_MS,\n  DEFAULT_SNAPSHOT_CREATE_TIMEOUT_MS,\n  DEFAULT_TEMPLATE_SPEC_CREATE_TIMEOUT_MS,\n  DEFAULT_TIMEOUT_MS,\n  GATEWAY_URL_ENVS,\n  pollBackoffMs,\n  SNAPSHOT_NOT_FOUND_GRACE_MS,\n} from \"./constants.js\";\nimport {\n  egressPolicyFromMessage,\n  egressPolicySpecToProto,\n  workspaceScope,\n  type EgressPolicy,\n  type EgressPolicySpec,\n} from \"./egress-policies.js\";\nimport { readEnv } from \"./env.js\";\nimport {\n  InvalidTemplateSpecError,\n  mapError,\n  SnapshotFailedError,\n  SnapshotNotFoundError,\n  SnapshotWaitTimeoutError,\n  TemplateBuildFailedError,\n  TemplateRuntimeFailedError,\n  VolumeSyncPendingError,\n  WaitReadyFailedError,\n} from \"./errors.js\";\nimport { DrainingHttp2SessionManager, KEEPALIVE_PING_OPTIONS } from \"./http2-drain.js\";\nimport {\n  DeleteRegistryImageRequestSchema,\n  DeleteRegistryImageVersionRequestSchema,\n  GetRegistryImageRequestSchema,\n  ListRegistryImagesRequestSchema,\n  ListRegistryShareGrantsRequestSchema,\n  PublishRegistryImageRequestSchema,\n  ResolveRegistryRefRequestSchema,\n  RevokeRegistryShareGrantRequestSchema,\n  SetRegistryImageVisibilityRequestSchema,\n  ShareImageRequestSchema,\n  UnshareRegistryImageRequestSchema,\n} from \"./internal/proto/tenki/sandbox/v1/registry_pb.js\";\nimport {\n  CreateEgressPolicyRequestSchema,\n  CreateSessionRequestSchema,\n  CreateSnapshotRequestSchema,\n  CreateStorageConnectionRequestSchema,\n  CreateVolumeRequestSchema,\n  DataPlaneRouteStatus,\n  DeleteEgressPolicyRequestSchema,\n  DeleteSnapshotRequestSchema,\n  DeleteStorageConnectionRequestSchema,\n  DeleteVolumeRequestSchema,\n  GetEgressPolicyRequestSchema,\n  GetSessionMetricsRequestSchema,\n  GetSessionRequestSchema,\n  GetSnapshotDownloadURLRequestSchema,\n  GetSnapshotRequestSchema,\n  GetStorageDefaultsRequestSchema,\n  GetVolumeRequestSchema,\n  GetWorkspaceSandboxUsageRequestSchema,\n  ListCIRunnerSizesRequestSchema,\n  ListDanglingSnapshotsRequestSchema,\n  ListEgressPoliciesRequestSchema,\n  ListSessionSnapshotsRequestSchema,\n  ListStorageConnectionsRequestSchema,\n  ListVolumesRequestSchema,\n  ListWorkspaceSandboxesRequestSchema,\n  ListWorkspaceSnapshotsRequestSchema,\n  ResizeVolumeRequestSchema,\n  SandboxService,\n  SaveStorageDefaultsRequestSchema,\n  SessionEgressPolicySchema,\n  StorageDefaultsSchema,\n  TemplateRuntimeFailureSchema,\n  TestStorageConnectionRequestSchema,\n  UpdateEgressPolicyRequestSchema,\n  UpdateSessionRequestSchema,\n  UpdateSnapshotRequestSchema,\n  UpdateStorageConnectionRequestSchema,\n  UpdateVolumeRequestSchema,\n  VolumeMountSchema,\n  WhoAmIRequestSchema,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport { SSHGatewayClientService } from \"./internal/proto/tenki/sandbox/v1/ssh_gateway_client_pb.js\";\nimport {\n  BuildTemplateRequestSchema,\n  CancelTemplateBuildRequestSchema,\n  CreateTemplateRequestSchema,\n  DeleteTemplateRequestSchema,\n  GetTemplateBuildRequestSchema,\n  GetTemplateRequestSchema,\n  ListActiveTemplateBuildsRequestSchema,\n  ListTemplatesRequestSchema,\n  TemplateResourcesSchema,\n  UpdateTemplateRequestSchema,\n} from \"./internal/proto/tenki/sandbox/v1/template_pb.js\";\nimport type { SessionMetrics } from \"./metrics.js\";\nimport { sessionMetricsFromProto } from \"./metrics.js\";\nimport type {\n  ClientOptions,\n  CreateOptions,\n  CreateSnapshotOptions,\n  CreateTemplateOptions,\n  CreateVolumeOptions,\n  ListOptions,\n  RegistryListOptions,\n  RegistryLookupOptions,\n  RegistryPublishOptions,\n  RegistryShareOptions,\n  UpdateSessionOptions,\n  UpdateSnapshotOptions,\n  UpdateTemplateOptions,\n  UpdateVolumeOptions,\n  WorkspaceScopeOptions,\n} from \"./options.js\";\nimport { validateUpdateMaxDurationMs } from \"./options.js\";\nimport { advancePageToken, automaticPageSize } from \"./pagination.js\";\nimport { PreviewUrlClient } from \"./preview-url.js\";\nimport type {\n  RegistryDeleteResult,\n  RegistryImage,\n  RegistryImageDetail,\n  RegistryListResult,\n  RegistryPublishResult,\n  RegistryShareGrant,\n  RegistryShareResult,\n  RegistryUnshareResult,\n  RegistryVersionDeleteResult,\n  ResolvedRegistryRef,\n} from \"./registry.js\";\nimport {\n  registryImageDetailFromProto,\n  registryImageFromProto,\n  registryImageSummaryFromProto,\n  registryKindToProto,\n  registryShareGrantFromProto,\n  registrySortToProto,\n  registryTagFromProto,\n  registryVisibilityToProto,\n  resolvedRegistryRefFromProto,\n} from \"./registry.js\";\nimport { validateCreateResources, validateTemplateResources } from \"./resources.js\";\nimport { secretFileToProto, validSecretFiles } from \"./secret-files.js\";\nimport { egressHttpRuleToProto, isReady, isTerminal, Session } from \"./session.js\";\nimport type { Snapshot, SnapshotDownloadURL } from \"./snapshot.js\";\nimport { snapshotFromProto, snapshotIsReady, snapshotIsTerminal } from \"./snapshot.js\";\nimport type { SSHCert } from \"./ssh-cert.js\";\nimport { issueSandboxSSHCert } from \"./ssh-cert.js\";\nimport type { SSHConnection, SSHConnectOptions } from \"./ssh.js\";\nimport { connectSSH, deriveGatewayAddress, discoverSSHGatewayUrl } from \"./ssh.js\";\nimport type {\n  StorageAccess,\n  StorageAuthMethod,\n  StorageConnection,\n  StorageConnectionCredentials,\n  StorageConnectionList,\n  StorageConnectionTest,\n  StorageDefaults,\n  StorageProvider,\n} from \"./storage.js\";\nimport {\n  storageAccessToProto,\n  storageAuthMethodToProto,\n  storageConnectionFromProto,\n  storageCredentialsToProto,\n  storageDefaultMountToProto,\n  storageDefaultsFromProto,\n  storageMountSpecToProto,\n  storageProviderToProto,\n  storageTestReasonFromProto,\n} from \"./storage.js\";\nimport { tailnetAttachmentToProto } from \"./tailnet.js\";\nimport type { TemplateSpec, TemplateSpecViolation } from \"./template-spec.js\";\nimport type {\n  Template,\n  TemplateBuild,\n  TemplateBuildOptions,\n  TemplateBuildWaitOptions,\n  TemplateImageRef,\n} from \"./template.js\";\nimport { templateBuildFromProto, templateFromProto } from \"./template.js\";\nimport type { WorkspaceUsageLimit } from \"./usage.js\";\nimport { workspaceUsageLimitFromProto } from \"./usage.js\";\nimport type { Volume } from \"./volume.js\";\nimport { volumeFromProto, volumeIsReady, volumeIsTerminal } from \"./volume.js\";\nimport {\n  defaultWarningHandler,\n  emitWarnings,\n  sandboxWarningsFromProto,\n  templateWarningsFromProto,\n  type WarningHandler,\n} from \"./warning.js\";\nimport type { Identity } from \"./whoami.js\";\n\nconst inspectCustom = Symbol.for(\"nodejs.util.inspect.custom\");\n\n/** @deprecated Use {@link LuxorSandbox}; `TenkiSandbox` remains a supported alias of the same class. */\nexport class TenkiSandbox implements AsyncDisposable {\n  private rpcClient: Client<typeof SandboxService>;\n  private sshGatewayClient: Client<typeof SSHGatewayClientService>;\n  #authToken: string;\n  private readonly baseUrl: string;\n  private gatewayAddress: string;\n  private sshOptions?: SSHConnectOptions;\n  private dataPlaneReadyTimeoutMs: number;\n  private readonly warningHandler?: WarningHandler;\n  private sessionManager?: Http2SessionManager;\n  readonly previewUrls: PreviewUrlClient;\n\n  constructor(options?: ClientOptions) {\n    this.warningHandler =\n      options?.warningHandler === undefined ? defaultWarningHandler : (options.warningHandler ?? undefined);\n    this.#authToken = resolveAuthToken(options?.authToken, options?.apiKey);\n\n    const baseUrl = options?.baseUrl?.trim() || readEnv(BASE_URL_ENVS) || DEFAULT_BASE_URL;\n    this.baseUrl = baseUrl;\n\n    // Explicit SSH gateway overrides disable automatic gateway discovery.\n    const pinnedGateway = options?.gatewayAddress?.trim() || readEnv(GATEWAY_URL_ENVS) || \"\";\n    this.gatewayAddress = pinnedGateway || deriveGatewayAddress(baseUrl);\n\n    this.dataPlaneReadyTimeoutMs =\n      options?.dataPlaneReadyTimeoutMs && options.dataPlaneReadyTimeoutMs > 0\n        ? options.dataPlaneReadyTimeoutMs\n        : DEFAULT_DATA_PLANE_READY_TIMEOUT_MS;\n\n    const sessionManager = options?.transport\n      ? undefined\n      : new DrainingHttp2SessionManager(\n          baseUrl,\n          KEEPALIVE_PING_OPTIONS,\n          options?.rootCertificates !== undefined ? { ca: options.rootCertificates } : undefined,\n        );\n    this.sessionManager = sessionManager;\n    void sessionManager?.connect().catch(() => {});\n    const transport =\n      options?.transport ??\n      createGrpcTransport({\n        baseUrl,\n        interceptors: [createAuthInterceptor(this.#authToken)],\n        sessionManager,\n      });\n\n    this.rpcClient = createClient(SandboxService, transport);\n    this.sshGatewayClient = createClient(SSHGatewayClientService, transport);\n    this.previewUrls = new PreviewUrlClient(this.rpcClient);\n\n    const sshOptions: SSHConnectOptions = {\n      ...(options?.rootCertificates !== undefined ? { rootCertificates: options.rootCertificates } : {}),\n      ...(pinnedGateway ? {} : { discoverGateway: (sid: string) => discoverSSHGatewayUrl(this.sshGatewayClient, sid) }),\n    };\n    this.sshOptions = Object.keys(sshOptions).length > 0 ? sshOptions : undefined;\n  }\n\n  toJSON(): { baseUrl: string; authToken: string } {\n    return { baseUrl: this.baseUrl, authToken: \"[REDACTED]\" };\n  }\n\n  [inspectCustom](): string {\n    return `TenkiSandbox { baseUrl: ${JSON.stringify(this.baseUrl)}, authToken: [REDACTED] }`;\n  }\n\n  // -- Sessions --\n\n  /** cpuCores is 1-128 and memoryMb 128-524288 MiB (even); the workspace's size limit may be lower. */\n  async create(options?: CreateOptions): Promise<Session> {\n    const req = create(CreateSessionRequestSchema, {\n      ownerType: \"SERVICE\",\n      ownerId: \"self\",\n      name: options?.name ?? \"\",\n      allowInbound: options?.allowInbound ?? true,\n      allowOutbound: options?.allowOutbound ?? true,\n      metadata: options?.metadata ?? {},\n      tags: normalizeTags(options?.tags ?? []),\n      env: { ...(options?.env ?? {}) },\n      sshAuthorizedKeys: options?.sshAuthorizedKeys ?? [],\n      enableOpencode: options?.enableOpenCode ?? false,\n      cloneRepoUrl: options?.cloneRepoUrl ?? \"\",\n      setupEnv: { ...(options?.setupEnv ?? {}) },\n      setupSecrets: { ...(options?.setupSecrets ?? {}) },\n      runtime: options?.directRuntime?.toDirectRuntimeProto(),\n      secretOverrides: { ...(options?.secretOverrides ?? {}) },\n      secretFiles: (options?.secretFiles ?? []).map(secretFileToProto),\n      secretPolicies: [...(options?.secretPolicies ?? [])],\n      egressPolicies: [...(options?.egressPolicies ?? [])],\n    });\n\n    if (!validSecretFiles(req.secretFiles, 0) || req.secretFiles.some((file) => file.format.case === \"source\")) {\n      throw new Error(\"Invalid direct secret files; image source paths require a template build\");\n    }\n    if (\n      options?.allowDomains?.length ||\n      options?.allowCidrs?.length ||\n      options?.interceptHttps ||\n      options?.allowedPorts?.length ||\n      options?.httpRules?.length\n    ) {\n      req.egress = create(SessionEgressPolicySchema, {\n        allowDomains: options?.allowDomains ?? [],\n        allowCidrs: options?.allowCidrs ?? [],\n        interceptHttps: options?.interceptHttps ?? false,\n        allowedPorts: [...(options?.allowedPorts ?? [])],\n        httpRules: (options?.httpRules ?? []).map(egressHttpRuleToProto),\n      });\n    }\n\n    const image = registryRefOf(options?.image);\n    const templateSpecId = options?.fromTemplateSpec ? resourceIdOf(options.fromTemplateSpec) : \"\";\n    const snapshotId = options?.snapshotId?.trim() ?? \"\";\n    if ([image, snapshotId, templateSpecId].filter(Boolean).length > 1) {\n      throw new Error(\"Only one of image, snapshotId, or fromTemplateSpec may be set\");\n    }\n    const hasSource = Boolean(image || snapshotId || templateSpecId);\n    const cpuCores = options?.cpuCores ?? (hasSource ? undefined : DEFAULT_CPU_CORES);\n    const memoryMb = options?.memoryMb ?? (hasSource ? undefined : DEFAULT_MEMORY_MB);\n    const diskSizeGb = options?.diskSizeGb ?? (hasSource ? undefined : DEFAULT_DISK_SIZE_GB);\n    validateCreateResources({ cpuCores, memoryMb, diskSizeGb });\n    if (cpuCores != null) req.cpuCores = cpuCores;\n    if (memoryMb != null) req.memoryMb = memoryMb;\n    if (diskSizeGb != null) req.diskSizeGb = diskSizeGb;\n\n    if (options?.maxDurationMs && options.maxDurationMs > 0) {\n      req.maxDuration = durationFromMs(options.maxDurationMs);\n    }\n    if (options?.idleTimeoutMinutes != null) {\n      warnIdleTimeoutDeprecated();\n    }\n    if (options?.pauseRetentionMs && options.pauseRetentionMs > 0) {\n      req.pauseRetention = durationFromMs(options.pauseRetentionMs);\n    }\n    if (options?.sticky) {\n      req.sticky = true;\n    }\n    const waitReady = options?.waitReady !== false;\n    if (req.runtime && options?.fromTemplateSpec)\n      throw new InvalidTemplateSpecError(\"directRuntime conflicts with fromTemplateSpec\");\n    const waitForRuntime = options?.waitForRuntime ?? false;\n    // Wait client-side so WaitSession can expose the endpoint and prewarm the data plane during provision.\n    req.waitReady = waitReady && waitForRuntime;\n    req.waitForRuntime = waitForRuntime;\n\n    if (image) {\n      req.registryRef = image;\n    } else if (snapshotId) {\n      req.snapshotId = snapshotId;\n    } else if (templateSpecId) {\n      req.templateSpecId = templateSpecId;\n    }\n\n    const workspaceId = options?.workspaceId?.trim();\n    if (workspaceId) req.workspaceId = workspaceId;\n    if (options?.disableTailnet && options?.tailnet)\n      throw new TypeError(\"choose a Tailscale connection or disable Tailscale\");\n    req.disableTailnet = options?.disableTailnet ?? false;\n    if (options?.tailnet) req.tailnet = tailnetAttachmentToProto(options.tailnet);\n\n    if (options?.volumes?.length) {\n      req.volumes = options.volumes.map((v) =>\n        create(VolumeMountSchema, {\n          volumeId: v.volumeId,\n          mountPath: v.mountPath,\n          readonly: v.readOnly ?? false,\n        }),\n      );\n    }\n    if (options?.storageMounts?.length) {\n      req.storageMounts = options.storageMounts.map((mount) => storageMountSpecToProto(mount));\n    }\n    if (options?.disableStorageDefaults) {\n      req.disableStorageDefaults = true;\n    }\n    if (options?.excludedDefaultMountIds?.length) {\n      req.excludedDefaultMountIds = options.excludedDefaultMountIds.map((id) => id.trim());\n    }\n\n    if (options?.openCodeProvider) {\n      if (options.openCodeProvider.apiKey) req.env[\"OPENCODE_API_KEY\"] = options.openCodeProvider.apiKey;\n      if (options.openCodeProvider.baseUrl) req.env[\"OPENCODE_PROVIDER_BASE_URL\"] = options.openCodeProvider.baseUrl;\n      if (options.openCodeProvider.npm) req.env[\"OPENCODE_PROVIDER_NPM\"] = options.openCodeProvider.npm;\n    }\n    if (options?.githubToken?.trim()) {\n      req.env[\"GH_TOKEN\"] = options.githubToken.trim();\n      req.env[\"GIT_TOKEN\"] = options.githubToken.trim();\n    }\n\n    for (const target of Object.keys(req.runtime?.secretEnv ?? {})) {\n      if (Object.hasOwn(req.env, target))\n        throw new InvalidTemplateSpecError(\"secret target conflicts with session environment\");\n    }\n\n    let resp;\n    try {\n      resp = await this.rpcClient.createSession(req);\n    } catch (err) {\n      const runtimeFailure = ConnectError.from(err).findDetails(TemplateRuntimeFailureSchema)[0];\n      if (runtimeFailure?.session) {\n        const session = new Session(\n          this.rpcClient,\n          runtimeFailure.session,\n          this.#authToken,\n          this.gatewayAddress,\n          this.sshOptions,\n          this.dataPlaneReadyTimeoutMs,\n          undefined,\n          [],\n          this.warningHandler,\n        );\n        throw new TemplateRuntimeFailedError(runtimeFailure.reason || \"template runtime failed\", session, {\n          cause: err instanceof Error ? err : undefined,\n        });\n      }\n      throw mapError(err);\n    }\n\n    const warnings = sandboxWarningsFromProto(resp.warnings);\n    // Match the Go SDK: skip data-plane config on terminal route failure so the first op fails fast instead of retrying a dead route for the whole readiness budget.\n    const dataPlane =\n      resp.routeStatus === DataPlaneRouteStatus.FAILED\n        ? undefined\n        : { endpoint: resp.dataPlaneEndpoint, credential: resp.credential, routeStatus: resp.routeStatus };\n    const session = new Session(\n      this.rpcClient,\n      resp.session!,\n      this.#authToken,\n      this.gatewayAddress,\n      this.sshOptions,\n      this.dataPlaneReadyTimeoutMs,\n      dataPlane,\n      warnings,\n      this.warningHandler,\n    );\n    emitWarnings(this.warningHandler, warnings);\n    if (!waitReady) return session;\n    if (isReady(session.state)) return session;\n    if (isTerminal(session.state)) {\n      const suffix = session.terminalError ? `: ${session.terminalError}` : \"\";\n      throw mapError(new Error(`session entered terminal state: ${session.state}${suffix}`));\n    }\n    try {\n      await session.waitReady(\n        options?.waitTimeoutMs ??\n          (templateSpecId ? DEFAULT_TEMPLATE_SPEC_CREATE_TIMEOUT_MS : DEFAULT_SESSION_CREATE_TIMEOUT_MS),\n      );\n    } catch (waitErr) {\n      if (isTerminal(session.state)) throw mapError(waitErr);\n      throw new WaitReadyFailedError(`session ${session.id} created but not ready within wait budget`, session, {\n        cause: waitErr instanceof Error ? waitErr : undefined,\n      });\n    }\n    return session;\n  }\n\n  async createAndWait(options?: CreateOptions & { timeoutMs?: number }): Promise<Session> {\n    // Compatibility wrapper: create() already waits by default.\n    const waitTimeoutMs =\n      options?.timeoutMs ??\n      options?.waitTimeoutMs ??\n      (options?.fromTemplateSpec ? DEFAULT_TEMPLATE_SPEC_CREATE_TIMEOUT_MS : DEFAULT_SESSION_CREATE_TIMEOUT_MS);\n    const session = await this.create({\n      ...options,\n      waitReady: true,\n      waitTimeoutMs,\n    });\n    if (session.state !== \"RUNNING\") {\n      try {\n        await session.waitReady(waitTimeoutMs);\n      } catch (waitErr) {\n        if (isTerminal(session.state)) throw waitErr;\n        throw new WaitReadyFailedError(`session ${session.id} created but not ready within wait budget`, session, {\n          cause: waitErr instanceof Error ? waitErr : undefined,\n        });\n      }\n    }\n    return session;\n  }\n\n  async get(sessionId: string): Promise<Session> {\n    try {\n      const resp = await this.rpcClient.getSession(create(GetSessionRequestSchema, { sessionId }));\n      return new Session(\n        this.rpcClient,\n        resp.session!,\n        this.#authToken,\n        this.gatewayAddress,\n        this.sshOptions,\n        this.dataPlaneReadyTimeoutMs,\n        undefined,\n        [],\n        this.warningHandler,\n      );\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async getSessionMetrics(sessionId: string, windowMs?: number): Promise<SessionMetrics> {\n    const req = create(GetSessionMetricsRequestSchema, { sessionId: sessionId.trim() });\n    if (windowMs !== undefined && windowMs !== 0) req.window = durationFromMs(windowMs);\n    try {\n      return sessionMetricsFromProto(await this.rpcClient.getSessionMetrics(req));\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async list(options?: ListOptions): Promise<Session[]> {\n    try {\n      const sessions: Session[] = [];\n      let pageToken = \"\";\n      do {\n        const req = create(ListWorkspaceSandboxesRequestSchema, {\n          workspaceId: options?.workspaceId,\n          pageSize: automaticPageSize(),\n          pageToken,\n          tags: normalizeTags(options?.tags ?? []),\n          includeTerminated: options?.includeTerminated ?? false,\n        });\n        if (options?.sticky !== undefined) req.sticky = options.sticky;\n        const resp = await this.rpcClient.listWorkspaceSandboxes(req);\n        sessions.push(\n          ...(resp.sessions ?? []).map(\n            (s) =>\n              new Session(\n                this.rpcClient,\n                s,\n                this.#authToken,\n                this.gatewayAddress,\n                this.sshOptions,\n                this.dataPlaneReadyTimeoutMs,\n                undefined,\n                [],\n                this.warningHandler,\n              ),\n          ),\n        );\n        pageToken = advancePageToken(pageToken, resp.nextPageToken);\n      } while (pageToken);\n      return sessions;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /**\n   * Current usage vs. limits for a workspace — concurrent sessions, snapshots,\n   * volumes, etc. Each entry carries `current` and an optional `max`. Look up\n   * the `\"max_concurrent_jobs\"` key to check the shared concurrency quota before\n   * creating a session, so the UI can surface a \"limit reached\" state up front\n   * instead of letting the create fail.\n   */\n  async getUsage(): Promise<WorkspaceUsageLimit[]> {\n    try {\n      const req = create(GetWorkspaceSandboxUsageRequestSchema, {});\n      const resp = await this.rpcClient.getWorkspaceSandboxUsage(req);\n      return (resp.limits ?? []).map(workspaceUsageLimitFromProto);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async updateSession(sessionId: string, options: UpdateSessionOptions): Promise<Session> {\n    validateUpdateMaxDurationMs(options.maxDurationMs, options.sticky);\n    const req = create(UpdateSessionRequestSchema, { sessionId: sessionId.trim() });\n    if (options.name !== undefined) req.name = options.name;\n    if (options.tags !== undefined) {\n      const normalized = normalizeTags(options.tags);\n      if (normalized.length === 0) {\n        req.clearTags = true;\n      } else {\n        req.tags = normalized;\n      }\n    }\n    if (options.sticky !== undefined) req.sticky = options.sticky;\n    if (options.maxDurationMs !== undefined) {\n      req.maxDuration = durationFromMs(options.maxDurationMs);\n    }\n    let resp;\n    try {\n      resp = await this.rpcClient.updateSession(req);\n    } catch (err) {\n      throw mapError(err);\n    }\n    const warnings = sandboxWarningsFromProto(resp.warnings);\n    const session = new Session(\n      this.rpcClient,\n      resp.session!,\n      this.#authToken,\n      this.gatewayAddress,\n      this.sshOptions,\n      this.dataPlaneReadyTimeoutMs,\n      undefined,\n      warnings,\n      this.warningHandler,\n    );\n    emitWarnings(this.warningHandler, warnings);\n    return session;\n  }\n\n  // -- Snapshots --\n\n  async createSnapshot(sessionId: string, options?: CreateSnapshotOptions): Promise<Snapshot> {\n    const req = create(CreateSnapshotRequestSchema, { sessionId });\n    if (options?.name?.trim()) req.name = options.name.trim();\n    if (options?.expiresAt) {\n      req.expiresAt = timestampFromDate(options.expiresAt);\n    }\n    req.async = options?.async ?? false;\n    try {\n      const resp = await this.rpcClient.createSnapshot(req);\n      return snapshotFromProto(resp.snapshot!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async createSnapshotAsync(sessionId: string, options?: CreateSnapshotOptions): Promise<Snapshot> {\n    return this.createSnapshot(sessionId, { ...options, async: true });\n  }\n\n  async createSnapshotAndWait(\n    sessionId: string,\n    options?: CreateSnapshotOptions & { timeoutMs?: number },\n  ): Promise<Snapshot> {\n    // Submit asynchronously so a slow capture cannot outlive a gateway timeout.\n    const snap = await this.createSnapshot(sessionId, { ...options, async: true });\n    return this.waitSnapshotReady(snap.id, options?.timeoutMs ?? DEFAULT_SNAPSHOT_CREATE_TIMEOUT_MS);\n  }\n\n  async getSnapshot(snapshotId: string): Promise<Snapshot> {\n    try {\n      const resp = await this.rpcClient.getSnapshot(\n        create(GetSnapshotRequestSchema, { snapshotId: snapshotId.trim() }),\n      );\n      return snapshotFromProto(resp.snapshot!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async getSnapshotDownloadURL(snapshotId: string): Promise<SnapshotDownloadURL> {\n    try {\n      const resp = await this.rpcClient.getSnapshotDownloadURL(\n        create(GetSnapshotDownloadURLRequestSchema, {\n          snapshotId: snapshotId.trim(),\n        }),\n      );\n      return {\n        url: resp.url,\n        expiresAt: resp.expiresAt ? timestampDate(resp.expiresAt) : undefined,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listSnapshots(options?: WorkspaceScopeOptions): Promise<Snapshot[]> {\n    try {\n      const snapshots: Snapshot[] = [];\n      let pageToken = \"\";\n      do {\n        const resp = await this.rpcClient.listWorkspaceSnapshots(\n          create(ListWorkspaceSnapshotsRequestSchema, {\n            workspaceId: options?.workspaceId,\n            pageSize: automaticPageSize(),\n            pageToken,\n          }),\n        );\n        snapshots.push(...(resp.snapshots ?? []).map(snapshotFromProto));\n        pageToken = advancePageToken(pageToken, resp.nextPageToken);\n      } while (pageToken);\n      return snapshots;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listSessionSnapshots(sessionId: string): Promise<Snapshot[]> {\n    try {\n      const snapshots: Snapshot[] = [];\n      let pageToken = \"\";\n      do {\n        const resp = await this.rpcClient.listSessionSnapshots(\n          create(ListSessionSnapshotsRequestSchema, {\n            sessionId: sessionId.trim(),\n            pageSize: automaticPageSize(),\n            pageToken,\n          }),\n        );\n        snapshots.push(...(resp.snapshots ?? []).map(snapshotFromProto));\n        pageToken = advancePageToken(pageToken, resp.nextPageToken);\n      } while (pageToken);\n      return snapshots;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listDanglingSnapshots(): Promise<Snapshot[]> {\n    try {\n      const snapshots: Snapshot[] = [];\n      let pageToken = \"\";\n      do {\n        const resp = await this.rpcClient.listDanglingSnapshots(\n          create(ListDanglingSnapshotsRequestSchema, { pageSize: automaticPageSize(), pageToken }),\n        );\n        snapshots.push(...(resp.snapshots ?? []).map(snapshotFromProto));\n        pageToken = advancePageToken(pageToken, resp.nextPageToken);\n      } while (pageToken);\n      return snapshots;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async deleteSnapshot(snapshotId: string): Promise<Snapshot> {\n    try {\n      const resp = await this.rpcClient.deleteSnapshot(create(DeleteSnapshotRequestSchema, { snapshotId }));\n      return snapshotFromProto(resp.snapshot!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async updateSnapshot(snapshotId: string, options: UpdateSnapshotOptions): Promise<Snapshot> {\n    const req = create(UpdateSnapshotRequestSchema, { snapshotId: snapshotId.trim() });\n    if (options.name !== undefined) req.name = options.name;\n    if (options.clearExpiresAt) req.clearExpiresAt = true;\n    if (options.expiresAt) req.expiresAt = timestampFromDate(options.expiresAt);\n    if (options.tags !== undefined) {\n      const normalized = normalizeTags(options.tags);\n      if (normalized.length === 0) {\n        req.clearTags = true;\n      } else {\n        req.tags = normalized;\n      }\n    }\n    try {\n      const resp = await this.rpcClient.updateSnapshot(req);\n      return snapshotFromProto(resp.snapshot!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async waitSnapshotReady(snapshotId: string, timeoutMs?: number, signal?: AbortSignal): Promise<Snapshot> {\n    const started = Date.now();\n    const deadline = started + (timeoutMs ?? DEFAULT_SNAPSHOT_CREATE_TIMEOUT_MS);\n    let attempt = 0;\n    while (Date.now() < deadline) {\n      signal?.throwIfAborted();\n      const snap = await this.getSnapshot(snapshotId).catch((err: unknown) => {\n        const retryable = err instanceof SnapshotNotFoundError && Date.now() - started < SNAPSHOT_NOT_FOUND_GRACE_MS;\n        if (!retryable) throw err;\n        return undefined;\n      });\n      if (snap && snapshotIsReady(snap.state)) return snap;\n      if (snap?.state === \"FAILED\") {\n        const reason = snap.failureReason ? `: ${snap.failureReason}` : \"\";\n        throw new SnapshotFailedError(`snapshot entered terminal state: FAILED${reason}`, {\n          failureReason: snap.failureReason,\n        });\n      }\n      if (snap && snapshotIsTerminal(snap.state)) {\n        throw new Error(`snapshot entered terminal state: ${snap.state}`);\n      }\n      await sleep(pollBackoffMs(attempt), signal);\n      attempt++;\n    }\n    throw new SnapshotWaitTimeoutError(\n      `timeout waiting for snapshot ${snapshotId} to become ready; it is still being created, call waitSnapshotReady(\"${snapshotId}\") to keep waiting`,\n    );\n  }\n\n  /** Credentials go to Luxor Secrets (s3_storage scope); the connection keeps only their names. */\n  async createStorageConnection(options: {\n    /** Defaults to the workspace of a workspace API key. */\n    workspaceId?: string;\n    name: string;\n    provider: StorageProvider;\n    /** May be empty for AWS_S3 (derived from region) and GCS. */\n    endpoint?: string;\n    bucket: string;\n    region?: string;\n    authMethod: StorageAuthMethod;\n    defaultAccess: StorageAccess;\n    credentials: StorageConnectionCredentials;\n  }): Promise<StorageConnection> {\n    try {\n      const resp = await this.rpcClient.createStorageConnection(\n        create(CreateStorageConnectionRequestSchema, {\n          workspaceId: options.workspaceId?.trim() ?? \"\",\n          name: options.name.trim(),\n          provider: storageProviderToProto(options.provider),\n          endpoint: options.endpoint?.trim() ?? \"\",\n          bucket: options.bucket.trim(),\n          region: options.region?.trim() ?? \"\",\n          authMethod: storageAuthMethodToProto(options.authMethod),\n          defaultAccess: storageAccessToProto(options.defaultAccess),\n          credentials: storageCredentialsToProto(options.credentials),\n        }),\n      );\n      return storageConnectionFromProto(resp.connection!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /** Lists the connections of `workspaceId`, or of the API key's workspace when omitted. */\n  async listStorageConnections(workspaceId = \"\"): Promise<StorageConnectionList> {\n    try {\n      const resp = await this.rpcClient.listStorageConnections(\n        create(ListStorageConnectionsRequestSchema, { workspaceId: workspaceId.trim() }),\n      );\n      return {\n        connections: (resp.connections ?? []).map(storageConnectionFromProto),\n        oidcIssuer: resp.oidcIssuer,\n        oidcAudience: resp.oidcAudience,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async updateStorageConnection(\n    connectionId: string,\n    options: {\n      expectedRevision: bigint;\n      name?: string;\n      endpoint?: string;\n      region?: string;\n      defaultAccess?: StorageAccess;\n      credentials?: StorageConnectionCredentials;\n    },\n  ): Promise<StorageConnection> {\n    try {\n      const resp = await this.rpcClient.updateStorageConnection(\n        create(UpdateStorageConnectionRequestSchema, {\n          connectionId,\n          name: options.name?.trim(),\n          endpoint: options.endpoint?.trim(),\n          region: options.region?.trim(),\n          defaultAccess: options.defaultAccess ? storageAccessToProto(options.defaultAccess) : undefined,\n          credentials: storageCredentialsToProto(options.credentials),\n          expectedRevision: options.expectedRevision,\n        }),\n      );\n      return storageConnectionFromProto(resp.connection!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async deleteStorageConnection(connectionId: string, expectedRevision: bigint): Promise<void> {\n    try {\n      await this.rpcClient.deleteStorageConnection(\n        create(DeleteStorageConnectionRequestSchema, { connectionId, expectedRevision }),\n      );\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async testStorageConnection(connectionId: string): Promise<StorageConnectionTest> {\n    try {\n      const resp = await this.rpcClient.testStorageConnection(\n        create(TestStorageConnectionRequestSchema, { connectionId }),\n      );\n      return {\n        reachable: resp.reachable,\n        reason: storageTestReasonFromProto(resp.reason),\n        message: resp.errorMessage,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async getStorageDefaults(workspaceId = \"\"): Promise<StorageDefaults> {\n    try {\n      const resp = await this.rpcClient.getStorageDefaults(\n        create(GetStorageDefaultsRequestSchema, { workspaceId: workspaceId.trim() }),\n      );\n      return storageDefaultsFromProto(resp.defaults);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /** Replaces the workspace's default mounts; pass the revision you read (0 before the first save). */\n  async saveStorageDefaults(defaults: StorageDefaults, expectedRevision: number): Promise<StorageDefaults> {\n    try {\n      const resp = await this.rpcClient.saveStorageDefaults(\n        create(SaveStorageDefaultsRequestSchema, {\n          defaults: create(StorageDefaultsSchema, {\n            workspaceId: defaults.workspaceId.trim(),\n            mounts: defaults.mounts.map(storageDefaultMountToProto),\n          }),\n          expectedRevision,\n        }),\n      );\n      return storageDefaultsFromProto(resp.defaults);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  // -- Egress policies --\n\n  /** Saves spec under name in the workspace; the server checks it like an inline session policy. */\n  async createEgressPolicy(\n    name: string,\n    spec: EgressPolicySpec,\n    options?: WorkspaceScopeOptions,\n  ): Promise<EgressPolicy> {\n    const egress = egressPolicySpecToProto(spec);\n    try {\n      const resp = await this.rpcClient.createEgressPolicy(\n        create(CreateEgressPolicyRequestSchema, { workspaceId: workspaceScope(options), name, egress }),\n      );\n      return egressPolicyFromMessage(resp.policy);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /** Replaces the policy body when expectedRevision is current; existing sessions keep the policy they were created with. */\n  async updateEgressPolicy(\n    nameOrId: string,\n    expectedRevision: number,\n    spec: EgressPolicySpec,\n    options?: WorkspaceScopeOptions,\n  ): Promise<EgressPolicy> {\n    const egress = egressPolicySpecToProto(spec);\n    try {\n      const resp = await this.rpcClient.updateEgressPolicy(\n        create(UpdateEgressPolicyRequestSchema, {\n          workspaceId: workspaceScope(options),\n          policyId: nameOrId,\n          expectedRevision,\n          egress,\n        }),\n      );\n      return egressPolicyFromMessage(resp.policy);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async getEgressPolicy(nameOrId: string, options?: WorkspaceScopeOptions): Promise<EgressPolicy> {\n    try {\n      const resp = await this.rpcClient.getEgressPolicy(\n        create(GetEgressPolicyRequestSchema, { workspaceId: workspaceScope(options), policyId: nameOrId }),\n      );\n      return egressPolicyFromMessage(resp.policy);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /** Returns every live policy in the workspace, ordered by name. */\n  async listEgressPolicies(options?: WorkspaceScopeOptions): Promise<EgressPolicy[]> {\n    try {\n      const policies: EgressPolicy[] = [];\n      let cursor = \"\";\n      do {\n        const resp = await this.rpcClient.listEgressPolicies(\n          create(ListEgressPoliciesRequestSchema, {\n            workspaceId: workspaceScope(options),\n            pageSize: automaticPageSize(),\n            cursor,\n          }),\n        );\n        policies.push(...resp.policies.map(egressPolicyFromMessage));\n        cursor = advancePageToken(cursor, resp.nextCursor);\n      } while (cursor);\n      return policies;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /** Soft-deletes the policy when expectedRevision is current; sessions that pinned it keep their merged policy. */\n  async deleteEgressPolicy(\n    nameOrId: string,\n    expectedRevision: number,\n    options?: WorkspaceScopeOptions,\n  ): Promise<EgressPolicy> {\n    try {\n      const resp = await this.rpcClient.deleteEgressPolicy(\n        create(DeleteEgressPolicyRequestSchema, {\n          workspaceId: workspaceScope(options),\n          policyId: nameOrId,\n          expectedRevision,\n        }),\n      );\n      return egressPolicyFromMessage(resp.policy);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  // -- Volumes --\n\n  async createVolume(options: CreateVolumeOptions): Promise<Volume> {\n    const req = create(CreateVolumeRequestSchema, {\n      name: options.name,\n      sizeBytes: BigInt(options.sizeBytes),\n    });\n    if (options.workspaceId?.trim()) req.workspaceId = options.workspaceId.trim();\n    try {\n      const resp = await this.rpcClient.createVolume(req);\n      return volumeFromProto(resp.volume!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async getVolume(volumeId: string): Promise<Volume> {\n    try {\n      const resp = await this.rpcClient.getVolume(create(GetVolumeRequestSchema, { volumeId }));\n      return volumeFromProto(resp.volume!, resp.activeAttachments);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listVolumes(options?: WorkspaceScopeOptions): Promise<Volume[]> {\n    try {\n      const volumes: Volume[] = [];\n      let pageToken = \"\";\n      do {\n        const resp = await this.rpcClient.listVolumes(\n          create(ListVolumesRequestSchema, {\n            workspaceId: options?.workspaceId,\n            pageSize: automaticPageSize(),\n            pageToken,\n          }),\n        );\n        volumes.push(...(resp.volumes ?? []).map((v) => volumeFromProto(v)));\n        pageToken = advancePageToken(pageToken, resp.nextPageToken);\n      } while (pageToken);\n      return volumes;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async deleteVolume(volumeId: string, signal?: AbortSignal): Promise<void> {\n    const maxElapsedMs = 60_000;\n    const start = Date.now();\n    let backoffMs = 1_000;\n\n    for (;;) {\n      signal?.throwIfAborted();\n      try {\n        await this.rpcClient.deleteVolume(create(DeleteVolumeRequestSchema, { volumeId }));\n        return;\n      } catch (err) {\n        const mapped = mapError(err);\n        if (!(mapped instanceof VolumeSyncPendingError) || Date.now() - start >= maxElapsedMs) {\n          throw mapped;\n        }\n        await sleep(backoffMs, signal);\n        if (backoffMs < 10_000) backoffMs *= 2;\n      }\n    }\n  }\n\n  async resizeVolume(volumeId: string, newSizeBytes: number): Promise<Volume> {\n    try {\n      const resp = await this.rpcClient.resizeVolume(\n        create(ResizeVolumeRequestSchema, {\n          volumeId,\n          newSizeBytes: BigInt(newSizeBytes),\n        }),\n      );\n      return volumeFromProto(resp.volume!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async updateVolume(volumeId: string, options: UpdateVolumeOptions): Promise<Volume> {\n    const req = create(UpdateVolumeRequestSchema, { volumeId: volumeId.trim() });\n    if (options.name !== undefined) req.name = options.name;\n    if (options.tags !== undefined) {\n      const normalized = normalizeTags(options.tags);\n      if (normalized.length === 0) {\n        req.clearTags = true;\n      } else {\n        req.tags = normalized;\n      }\n    }\n    try {\n      const resp = await this.rpcClient.updateVolume(req);\n      return volumeFromProto(resp.volume!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async waitVolumeReady(volumeId: string, timeoutMs?: number, signal?: AbortSignal): Promise<Volume> {\n    const deadline = Date.now() + (timeoutMs ?? 60_000);\n    let attempt = 0;\n    while (Date.now() < deadline) {\n      signal?.throwIfAborted();\n      const vol = await this.getVolume(volumeId);\n      if (volumeIsReady(vol.state)) return vol;\n      if (volumeIsTerminal(vol.state)) {\n        throw new Error(`volume entered terminal state: ${vol.state}`);\n      }\n      await sleep(pollBackoffMs(attempt), signal);\n      attempt++;\n    }\n    throw new Error(`timeout waiting for volume ${volumeId} to become ready`);\n  }\n\n  // -- Registry --\n\n  async listRegistryImages(options?: RegistryListOptions): Promise<RegistryListResult> {\n    const req = create(ListRegistryImagesRequestSchema, {\n      labels: cleanStrings(options?.labels ?? []),\n    });\n    if (options?.workspace?.trim()) req.workspaceSlug = options.workspace.trim();\n    if (options?.nameSubstring?.trim()) req.nameSubstring = options.nameSubstring.trim();\n    if (options?.kind) req.kind = registryKindToProto(options.kind);\n    if (options?.sort) req.sortBy = registrySortToProto(options.sort);\n    if (options?.pageSize && options.pageSize > 0) req.pageSize = options.pageSize;\n    if (options?.cursor?.trim()) req.cursor = options.cursor.trim();\n\n    try {\n      const resp = await this.rpcClient.listRegistryImages(req);\n      return {\n        images: (resp.images ?? []).map(registryImageSummaryFromProto),\n        nextCursor: resp.nextCursor,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async getRegistryImage(imageOrId: string, options?: RegistryLookupOptions): Promise<RegistryImageDetail> {\n    const value = imageOrId.trim();\n    const req = create(GetRegistryImageRequestSchema, {});\n    if (options?.workspaceId?.trim()) req.workspaceId = options.workspaceId.trim();\n    if (looksLikeUUID(value)) {\n      req.imageId = value;\n    } else {\n      req.ref = value;\n    }\n\n    try {\n      const resp = await this.rpcClient.getRegistryImage(req);\n      return registryImageDetailFromProto(resp.detail);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async resolveRegistryRef(image: string, options?: RegistryLookupOptions): Promise<ResolvedRegistryRef> {\n    const ref = image.trim();\n    try {\n      const resp = await this.rpcClient.resolveRegistryRef(\n        create(ResolveRegistryRefRequestSchema, { ref, workspaceId: options?.workspaceId?.trim() }),\n      );\n      return resolvedRegistryRefFromProto(resp.resolved);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async publishRegistryImage(options: RegistryPublishOptions): Promise<RegistryPublishResult> {\n    const req = create(PublishRegistryImageRequestSchema, {\n      labels: cleanStrings(options.labels ?? []),\n    });\n    if (options.imageId?.trim()) req.imageId = options.imageId.trim();\n    if (options.image?.trim()) req.ref = options.image.trim();\n    if (options.workspaceId?.trim()) req.workspaceId = options.workspaceId.trim();\n    if (options.name?.trim()) req.name = options.name.trim();\n    if (options.fromTemplateId?.trim()) {\n      req.kind = registryKindToProto(\"template\");\n      req.sourceTemplateId = options.fromTemplateId.trim();\n    } else if (options.fromSnapshotId?.trim()) {\n      req.kind = registryKindToProto(\"snapshot\");\n      req.snapshotId = options.fromSnapshotId.trim();\n    }\n    if (options.tag?.trim()) req.tag = options.tag.trim();\n    if (options.visibility) req.visibility = registryVisibilityToProto(options.visibility);\n    if (options.title?.trim()) req.title = options.title.trim();\n    if (options.description?.trim()) req.description = options.description.trim();\n\n    try {\n      const resp = await this.rpcClient.publishRegistryImage(req);\n      return {\n        image: resp.image ? registryImageFromProto(resp.image) : undefined,\n        tag: registryTagFromProto(resp.tag),\n        snapshotId: resp.snapshotId,\n        digestRef: resp.digestRef,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async unpublishRegistryImage(imageOrId: string): Promise<RegistryImage> {\n    const value = stripRegistryTag(imageOrId.trim());\n    const req = create(SetRegistryImageVisibilityRequestSchema, {\n      visibility: registryVisibilityToProto(\"private\"),\n    });\n    if (looksLikeUUID(value)) {\n      req.imageId = value;\n    } else {\n      req.ref = value;\n    }\n\n    try {\n      const resp = await this.rpcClient.setRegistryImageVisibility(req);\n      return registryImageFromProto(resp.image!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async deleteRegistryImage(imageOrId: string, reason?: string): Promise<RegistryDeleteResult> {\n    const value = imageOrId.trim();\n    const req = create(DeleteRegistryImageRequestSchema, {});\n    if (looksLikeUUID(value)) req.imageId = value;\n    else req.ref = value;\n    if (reason?.trim()) req.reason = reason.trim();\n\n    try {\n      const resp = await this.rpcClient.deleteRegistryImage(req);\n      return {\n        image: resp.image ? registryImageFromProto(resp.image) : undefined,\n        revokedTokenCount: resp.revokedTokenCount,\n        revokedGrantCount: resp.revokedGrantCount,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async deleteRegistryImageVersion(imageId: string, snapshotId: string): Promise<RegistryVersionDeleteResult> {\n    const req = create(DeleteRegistryImageVersionRequestSchema, {\n      imageId: imageId.trim(),\n      snapshotId: snapshotId.trim(),\n    });\n\n    try {\n      const resp = await this.rpcClient.deleteRegistryImageVersion(req);\n      return {\n        imageId: resp.imageId,\n        snapshotId: resp.snapshotId,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async shareImage(imageOrId: string, options: RegistryShareOptions): Promise<RegistryShareResult> {\n    const value = imageOrId.trim();\n    const req = create(ShareImageRequestSchema, {\n      targetWorkspaceId: options.targetWorkspaceId?.trim() ?? \"\",\n    });\n    if (looksLikeUUID(value)) req.imageId = value;\n    else req.imageRef = value;\n    if (options.tag?.trim()) req.tag = options.tag.trim();\n    if (options.snapshotId?.trim()) req.snapshotId = options.snapshotId.trim();\n    try {\n      const resp = await this.rpcClient.shareImage(req);\n      return {\n        image: resp.image ? registryImageFromProto(resp.image) : undefined,\n        currentSnapshotId: resp.currentSnapshotId,\n        digestRef: resp.digestRef,\n        grant: registryShareGrantFromProto(resp.grant),\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async revokeRegistryShareGrant(grantId: string, reason?: string): Promise<RegistryShareGrant | undefined> {\n    const req = create(RevokeRegistryShareGrantRequestSchema, { grantId: grantId.trim() });\n    if (reason?.trim()) req.reason = reason.trim();\n    try {\n      const resp = await this.rpcClient.revokeRegistryShareGrant(req);\n      return registryShareGrantFromProto(resp.grant);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listRegistryShareGrants(imageOrId: string): Promise<RegistryShareGrant[]> {\n    const value = imageOrId.trim();\n    const req = create(ListRegistryShareGrantsRequestSchema, {});\n    if (looksLikeUUID(value)) req.imageId = value;\n    else req.ref = value;\n    try {\n      const resp = await this.rpcClient.listRegistryShareGrants(req);\n      return (resp.grants ?? []).map((grant) => registryShareGrantFromProto(grant)!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async unshareRegistryImage(imageOrId: string, reason?: string): Promise<RegistryUnshareResult> {\n    const value = imageOrId.trim();\n    const req = create(UnshareRegistryImageRequestSchema, {});\n    if (looksLikeUUID(value)) req.imageId = value;\n    else req.ref = value;\n    if (reason?.trim()) req.reason = reason.trim();\n    try {\n      const resp = await this.rpcClient.unshareRegistryImage(req);\n      return {\n        image: resp.image ? registryImageFromProto(resp.image) : undefined,\n        revokedTokenCount: resp.revokedTokenCount,\n        revokedGrantCount: resp.revokedGrantCount,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  // -- Templates --\n\n  async createTemplate(options: CreateTemplateOptions): Promise<Template> {\n    if (options.spec) {\n      assertNoLegacyTemplateFields(options, [\n        \"baseImageId\",\n        \"setupScript\",\n        \"startCmd\",\n        \"env\",\n        \"resources\",\n        \"parentTemplateId\",\n        \"parentImage\",\n      ]);\n      assertValidTemplateSpec(options.spec);\n    }\n    const req = create(CreateTemplateRequestSchema, {\n      name: options.name,\n      baseImageId: options.baseImageId ?? \"\",\n      setupScript: options.setupScript ?? \"\",\n      envVars: options.env ?? {},\n      tags: normalizeTags(options.tags ?? []),\n    });\n    if (options.workspaceId?.trim()) req.workspaceId = options.workspaceId.trim();\n    if (options.spec) req.builderSpec = options.spec.toProto();\n    if (options.parentTemplateId?.trim()) {\n      req.parentTemplateId = options.parentTemplateId.trim();\n    }\n    if (options.parentImage?.trim()) {\n      req.parentImage = options.parentImage.trim();\n    }\n    if (options.startCmd != null) req.startCmd = options.startCmd;\n    if (options.resources) {\n      validateTemplateResources(options.resources);\n      req.resources = create(TemplateResourcesSchema, {\n        cpuCores: options.resources.cpuCores ?? 0,\n        memoryMb: options.resources.memoryMb ?? 0,\n        diskSizeGb: options.resources.diskSizeGb ?? 0,\n      });\n    }\n    try {\n      const resp = await this.rpcClient.createTemplate(req);\n      const warnings = templateWarningsFromProto(resp.warnings);\n      emitWarnings(this.warningHandler, warnings);\n      return { ...templateFromProto(resp.template!), warnings };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async getTemplate(template: Template | string): Promise<Template> {\n    try {\n      const resp = await this.rpcClient.getTemplate(\n        create(GetTemplateRequestSchema, { templateId: resourceIdOf(template) }),\n      );\n      return templateFromProto(resp.template!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listTemplates(options?: ListOptions): Promise<Template[]> {\n    try {\n      const templates: Template[] = [];\n      let pageToken = \"\";\n      do {\n        const resp = await this.rpcClient.listTemplates(\n          create(ListTemplatesRequestSchema, {\n            workspaceId: options?.workspaceId,\n            pageSize: automaticPageSize(),\n            pageToken,\n            tags: normalizeTags(options?.tags ?? []),\n          }),\n        );\n        templates.push(...(resp.templates ?? []).map(templateFromProto));\n        pageToken = advancePageToken(pageToken, resp.nextPageToken);\n      } while (pageToken);\n      return templates;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async updateTemplate(template: Template | string, options: UpdateTemplateOptions): Promise<Template> {\n    if (options.spec) {\n      assertNoLegacyTemplateFields(options, [\"baseImageId\", \"setupScript\", \"startCmd\", \"env\", \"resources\"]);\n      assertValidTemplateSpec(options.spec);\n    }\n    const req = create(UpdateTemplateRequestSchema, {\n      templateId: resourceIdOf(template),\n    });\n    if (options.spec) req.builderSpec = options.spec.toProto();\n    if (options.name != null) req.name = options.name;\n    if (options.baseImageId != null) req.baseImageId = options.baseImageId;\n    if (options.setupScript != null) req.setupScript = options.setupScript;\n    if (options.startCmd != null) req.startCmd = options.startCmd;\n    if (options.env != null) req.envVars = { ...options.env };\n    if (options.tags != null) {\n      const normalized = normalizeTags(options.tags);\n      if (normalized.length === 0) {\n        req.clearTags = true;\n      } else {\n        req.tags = normalized;\n      }\n    }\n    if (options.resources) {\n      validateTemplateResources(options.resources);\n      req.resources = create(TemplateResourcesSchema, {\n        cpuCores: options.resources.cpuCores ?? 0,\n        memoryMb: options.resources.memoryMb ?? 0,\n        diskSizeGb: options.resources.diskSizeGb ?? 0,\n      });\n    }\n    try {\n      const resp = await this.rpcClient.updateTemplate(req);\n      const warnings = templateWarningsFromProto(resp.warnings);\n      emitWarnings(this.warningHandler, warnings);\n      return { ...templateFromProto(resp.template!), warnings };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async deleteTemplate(template: Template | string): Promise<Template> {\n    try {\n      const resp = await this.rpcClient.deleteTemplate(\n        create(DeleteTemplateRequestSchema, { templateId: resourceIdOf(template) }),\n      );\n      return templateFromProto(resp.template!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async buildTemplate(template: Template | string, options?: TemplateBuildOptions): Promise<TemplateBuild> {\n    let build: TemplateBuild;\n    try {\n      const resp = await this.rpcClient.buildTemplate(\n        create(BuildTemplateRequestSchema, {\n          templateId: resourceIdOf(template),\n          ...(options?.buildEnv !== undefined ? { buildEnv: { ...options.buildEnv } } : {}),\n          ...(options?.buildSecrets !== undefined ? { buildSecrets: { ...options.buildSecrets } } : {}),\n          ...(options?.publishRawImage !== undefined ? { publishRawImage: options.publishRawImage } : {}),\n        }),\n      );\n      build = { ...templateBuildFromProto(resp.build)!, warnings: templateWarningsFromProto(resp.warnings) };\n    } catch (err) {\n      throw mapError(err);\n    }\n    emitWarnings(this.warningHandler, build.warnings ?? []);\n    if (options?.waitForCompletion) {\n      // Outside the RPC error mapping: handler or abort failures must surface as-is.\n      const completed = await this.waitForTemplateBuild(build, { signal: options.signal, onEvent: options.onEvent });\n      return { ...completed, warnings: build.warnings };\n    }\n    return build;\n  }\n\n  async getTemplateBuild(build: TemplateBuild | string): Promise<TemplateBuild> {\n    try {\n      const resp = await this.rpcClient.getTemplateBuild(\n        create(GetTemplateBuildRequestSchema, { buildId: resourceIdOf(build) }),\n      );\n      return templateBuildFromProto(resp.build)!;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listActiveTemplateBuilds(template: Template | string): Promise<TemplateBuild[]> {\n    try {\n      const resp = await this.rpcClient.listActiveTemplateBuilds(\n        create(ListActiveTemplateBuildsRequestSchema, { templateId: resourceIdOf(template) }),\n      );\n      return resp.builds.map((build) => templateBuildFromProto(build)!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /** Waits for or reconnects to a build; handler/signal failure stops local observation only. */\n  async waitForTemplateBuild(\n    build: TemplateBuild | string,\n    signalOrOptions?: AbortSignal | TemplateBuildWaitOptions,\n  ): Promise<TemplateBuild> {\n    const options: TemplateBuildWaitOptions =\n      signalOrOptions && \"throwIfAborted\" in signalOrOptions ? { signal: signalOrOptions } : (signalOrOptions ?? {});\n    const buildId = resourceIdOf(build);\n    const seenEvents = { count: 0 };\n    let attempt = 0;\n    while (true) {\n      options.signal?.throwIfAborted();\n      const current = await this.getTemplateBuild(buildId);\n      if (options.onEvent) {\n        for (; seenEvents.count < current.events.length; seenEvents.count++) {\n          await options.onEvent(current.events[seenEvents.count]!);\n        }\n      }\n      if (current.state === \"READY\") return current;\n      if (current.state === \"FAILED\") {\n        throw new TemplateBuildFailedError(\n          current.failure?.message || current.error || \"template build failed\",\n          current,\n        );\n      }\n      await sleep(pollBackoffMs(attempt), options.signal);\n      attempt++;\n    }\n  }\n\n  /** Explicitly cancels the remote build; disconnecting an observer never does. */\n  async cancelTemplateBuild(build: TemplateBuild | string): Promise<TemplateBuild> {\n    try {\n      const resp = await this.rpcClient.cancelTemplateBuild(\n        create(CancelTemplateBuildRequestSchema, { buildId: resourceIdOf(build) }),\n      );\n      return templateBuildFromProto(resp.build)!;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  // -- Identity --\n\n  async whoAmI(): Promise<Identity> {\n    try {\n      const resp = await this.rpcClient.whoAmI(create(WhoAmIRequestSchema, {}));\n      return {\n        ownerType: resp.ownerType,\n        ownerId: resp.ownerId,\n        workspaces: (resp.workspaces ?? []).map((ws) => ({\n          id: ws.workspaceId,\n          name: ws.name,\n        })),\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /** Luxor CI runner sizes for the API key's workspace, within its job-size limits, smallest first. */\n  async listCIRunnerSizes(): Promise<CIRunnerSizes> {\n    try {\n      const resp = await this.rpcClient.listCIRunnerSizes(create(ListCIRunnerSizesRequestSchema, {}));\n      return {\n        sizes: (resp.sizes ?? []).map((size) => ({\n          runsOnLabel: size.runsOnLabel,\n          cpu: size.cpu,\n          memoryGiB: size.memory,\n        })),\n        defaultRunsOnLabel: resp.defaultRunsOnLabel,\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  // -- SSH --\n\n  async ssh(sessionId: string): Promise<SSHConnection> {\n    return connectSSH(this.gatewayAddress, sessionId, this.#authToken, this.sshOptions);\n  }\n\n  /**\n   * Mint a short-lived OpenSSH user certificate for the session. Authenticate\n   * an SSH implementation over the raw `ssh()` transport with the matching\n   * private key and returned certificate. OpenSSH auto-loads `sshCert` when it\n   * is saved beside the private key as `<key>-cert.pub`.\n   */\n  async issueSandboxSSHCert(sessionId: string, publicKey: string, options?: { ttlMs?: number }): Promise<SSHCert> {\n    try {\n      return await issueSandboxSSHCert(this.sshGatewayClient, sessionId, publicKey, options?.ttlMs);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  // -- Cleanup --\n\n  close(): void {\n    this.sessionManager?.abort();\n    this.sessionManager = undefined;\n  }\n\n  async [Symbol.asyncDispose](): Promise<void> {\n    this.close();\n  }\n}\n\nlet idleTimeoutDeprecationWarned = false;\n\nfunction warnIdleTimeoutDeprecated(): void {\n  if (idleTimeoutDeprecationWarned) return;\n  idleTimeoutDeprecationWarned = true;\n  console.warn(\n    \"luxor sandbox: idleTimeoutMinutes is deprecated and ignored; sandboxes do not auto-pause on idle. Use maxDurationMs to bound a session's lifetime.\",\n  );\n}\n\nfunction normalizeTags(tags: string[]): string[] {\n  return tags.map((tag) => tag.trim().toLowerCase()).filter((tag) => tag.length > 0);\n}\n\nfunction cleanStrings(values: string[]): string[] {\n  return values.map((value) => value.trim()).filter((value) => value.length > 0);\n}\n\nfunction resourceIdOf(value: string | { id: string }): string {\n  return (typeof value === \"string\" ? value : value.id).trim();\n}\n\nfunction registryRefOf(image: string | TemplateImageRef | undefined): string {\n  if (!image) return \"\";\n  if (typeof image === \"string\") return image.trim();\n  return image.digestRef?.trim() || image.ref?.trim() || \"\";\n}\n\nfunction assertNoLegacyTemplateFields<T extends object>(options: T, legacyFields: (keyof T & string)[]): void {\n  const set = legacyFields.filter((field) => options[field] !== undefined);\n  if (set.length > 0) {\n    throw new InvalidTemplateSpecError(`spec cannot be combined with legacy template fields: ${set.join(\", \")}`);\n  }\n}\n\nfunction assertValidTemplateSpec(spec: TemplateSpec): void {\n  const violations = spec.validate();\n  if (violations.length === 0) return;\n  throw new InvalidTemplateSpecError(\n    `invalid template spec: ${violations.map(formatTemplateSpecViolation).join(\"; \")}`,\n  );\n}\n\nfunction formatTemplateSpecViolation(violation: TemplateSpecViolation): string {\n  return `${violation.field}: ${violation.message}`;\n}\n\nfunction looksLikeUUID(value: string): boolean {\n  return value.length === 36 && (value.match(/-/g)?.length ?? 0) === 4;\n}\n\nfunction stripRegistryTag(value: string): string {\n  const slash = value.lastIndexOf(\"/\");\n  const colon = value.lastIndexOf(\":\");\n  if (slash >= 0 && colon > slash) return value.slice(0, colon);\n  return value;\n}\n\nfunction sleep(ms: number, signal?: AbortSignal): Promise<void> {\n  return new Promise((resolve, reject) => {\n    if (signal?.aborted) {\n      reject(signal.reason);\n      return;\n    }\n    const timer = setTimeout(resolve, ms);\n    signal?.addEventListener(\n      \"abort\",\n      () => {\n        clearTimeout(timer);\n        reject(signal.reason);\n      },\n      { once: true },\n    );\n  });\n}\n\n/** Luxor Sandbox client; the same class as {@link TenkiSandbox}. */\nexport const LuxorSandbox = TenkiSandbox;\nexport type LuxorSandbox = TenkiSandbox;\n","declare const __TENKI_SDK_VERSION__: string;\n\nconst CLIENT_GENERATION = \"1\";\n\nfunction runtime(): string {\n  const deno = (globalThis as { Deno?: { version?: { deno?: string } } }).Deno?.version?.deno;\n  if (deno) return `deno/${deno}`;\n  if (typeof process === \"undefined\") return \"unknown/unknown\";\n  if (process.versions?.bun) return `bun/${process.versions.bun}`;\n  return `node/${process.versions?.node ?? \"unknown\"}`;\n}\n\nconst clientMetadata: ReadonlyArray<readonly [string, string]> = [\n  [\"x-luxor-client-family\", \"typescript\"],\n  [\"x-luxor-client-version\", __TENKI_SDK_VERSION__],\n  [\"x-luxor-client-generation\", CLIENT_GENERATION],\n  [\"x-luxor-client-runtime\", runtime()],\n];\n\nexport function setClientMetadataHeaders(headers: Headers): void {\n  for (const [name, value] of clientMetadata) headers.set(name, value);\n}\n","export const ENV_LUXOR_AUTH_TOKEN = \"LUXOR_AUTH_TOKEN\";\nexport const ENV_LUXOR_API_KEY = \"LUXOR_API_KEY\";\nexport const ENV_LUXOR_API_ENDPOINT = \"LUXOR_API_ENDPOINT\";\nexport const ENV_LUXOR_API_URL = \"LUXOR_API_URL\";\nexport const ENV_LUXOR_GATEWAY_URL = \"LUXOR_SANDBOX_GATEWAY_URL\";\nexport const ENV_LUXOR_CLOUD_API_URL = \"LUXOR_CLOUD_API_URL\";\nexport const ENV_LUXOR_RUN_TRACE_TIMING = \"LUXOR_SDK_RUN_TRACE_TIMING\";\n\nexport const ENV_AUTH_TOKEN = \"TENKI_AUTH_TOKEN\";\nexport const ENV_API_KEY = \"TENKI_API_KEY\";\nexport const ENV_API_ENDPOINT = \"TENKI_API_ENDPOINT\";\nexport const ENV_API_URL = \"TENKI_API_URL\";\nexport const ENV_GATEWAY_URL = \"TENKI_SANDBOX_GATEWAY_URL\";\nexport const ENV_CLOUD_API_URL = \"TENKI_CLOUD_API_URL\";\nexport const ENV_RUN_TRACE_TIMING = \"TENKI_SDK_RUN_TRACE_TIMING\";\n\n// Precedence order: every LUXOR_* name before its TENKI_* fallback.\nexport const AUTH_TOKEN_ENVS = [ENV_LUXOR_AUTH_TOKEN, ENV_LUXOR_API_KEY, ENV_AUTH_TOKEN, ENV_API_KEY] as const;\nexport const BASE_URL_ENVS = [ENV_LUXOR_API_ENDPOINT, ENV_LUXOR_API_URL, ENV_API_ENDPOINT, ENV_API_URL] as const;\nexport const GATEWAY_URL_ENVS = [ENV_LUXOR_GATEWAY_URL, ENV_GATEWAY_URL] as const;\nexport const CLOUD_API_URL_ENVS = [ENV_LUXOR_CLOUD_API_URL, ENV_CLOUD_API_URL] as const;\nexport const RUN_TRACE_TIMING_ENVS = [ENV_LUXOR_RUN_TRACE_TIMING, ENV_RUN_TRACE_TIMING] as const;\n\nexport const API_KEY_PREFIXES = [\"lx_\", \"tk_\"] as const;\n\nexport const DEFAULT_BASE_URL = \"https://api.luxor.ai\";\n\ndeclare const __SDK_VERSION__: string | undefined;\nexport const SDK_VERSION = typeof __SDK_VERSION__ === \"string\" ? __SDK_VERSION__ : \"unknown\";\nexport const SDK_USER_AGENT = `luxor-sandbox-typescript/${SDK_VERSION}`;\nexport const DEFAULT_TIMEOUT_MS = 30_000;\nexport const DEFAULT_DATA_PLANE_READY_TIMEOUT_MS = 60_000;\n\nexport const DEFAULT_SESSION_CREATE_TIMEOUT_MS = 3 * 60_000;\nexport const DEFAULT_TEMPLATE_SPEC_CREATE_TIMEOUT_MS = 2 * 60 * 60_000;\nexport const DEFAULT_SNAPSHOT_CREATE_TIMEOUT_MS = 5 * 60_000;\n/** Snapshot waits retry \"not found\" this long: a lagging read replica may not have a just-created snapshot yet. */\nexport const SNAPSHOT_NOT_FOUND_GRACE_MS = 10_000;\nexport const DEFAULT_RESTORE_TIMEOUT_MS = 5 * 60_000;\nexport const DEFAULT_EXEC_TIMEOUT_MS = 30_000;\nexport const DEFAULT_VOLUME_DETACH_TIMEOUT_MS = 2 * 60_000;\n\nexport const DEFAULT_CPU_CORES = 2;\nexport const DEFAULT_MEMORY_MB = 4096;\nexport const DEFAULT_DISK_SIZE_GB = 5;\n\nexport const POLL_INTERVAL_MS = 2_000;\n\n// pollBackoffMs returns the delay before the next poll attempt.\n// Starts at 100ms and ramps to a 2s steady state so fast operations\n// (snapshot restore ~1.5s) are observed promptly without hammering\n// the server on long-running ones.\nexport function pollBackoffMs(attempt: number): number {\n  if (attempt <= 0) return 100;\n  if (attempt === 1) return 250;\n  if (attempt === 2) return 500;\n  if (attempt === 3) return 1_000;\n  return 2_000;\n}\n\n// Size helpers\nexport const Byte = 1;\nexport const KB = 1_000;\nexport const MB = 1_000_000;\nexport const GB = 1_000_000_000;\nexport const TB = 1_000_000_000_000;\nexport const KiB = 1_024;\nexport const MiB = 1_048_576;\nexport const GiB = 1_073_741_824;\nexport const TiB = 1_099_511_627_776;\n","import { API_KEY_PREFIXES, ENV_LUXOR_API_KEY } from \"./constants.js\";\n\n/** Returns the first usable environment value among names, trimmed, in order. */\nexport function readEnv(names: readonly string[]): string {\n  if (typeof process === \"undefined\") return \"\";\n  for (const name of names) {\n    const value = process.env?.[name]?.trim();\n    if (!value) continue;\n    // LUXOR_API_KEY may hold a non-sandbox key, so it only counts with a known prefix.\n    if (name === ENV_LUXOR_API_KEY && !API_KEY_PREFIXES.some((prefix) => value.startsWith(prefix))) continue;\n    return value;\n  }\n  return \"\";\n}\n","import { Code, ConnectError } from \"@connectrpc/connect\";\n\nexport class SandboxError extends Error {\n  constructor(message: string, options?: ErrorOptions) {\n    super(message, options);\n    this.name = \"SandboxError\";\n  }\n}\n\nexport class PaginationStalledError extends SandboxError {\n  name = \"PaginationStalledError\";\n}\n\nexport class MissingAuthTokenError extends SandboxError {\n  constructor() {\n    super(\n      \"missing auth token - set LUXOR_AUTH_TOKEN or LUXOR_API_KEY (or TENKI_AUTH_TOKEN or TENKI_API_KEY) or use authToken option\",\n    );\n    this.name = \"MissingAuthTokenError\";\n  }\n}\n\nexport class InvalidAuthTokenError extends SandboxError {\n  constructor() {\n    super(\"invalid auth token - API keys and service tokens must start with lx_ or tk_\");\n    this.name = \"InvalidAuthTokenError\";\n  }\n}\n\nexport class SessionNotFoundError extends SandboxError {\n  name = \"SessionNotFoundError\";\n}\nexport class SessionExpiredError extends SandboxError {\n  name = \"SessionExpiredError\";\n}\nexport class SessionTerminatedError extends SandboxError {\n  name = \"SessionTerminatedError\";\n  readonly retryable = true;\n  readonly terminationCause?: string;\n\n  constructor(message: string, options?: ErrorOptions & { terminationCause?: string }) {\n    super(message, options);\n    this.terminationCause = options?.terminationCause;\n  }\n}\nexport class FileNotFoundError extends SandboxError {\n  name = \"FileNotFoundError\";\n}\n// FileTooLargeError means a unary readFile or writeFile refused a file above maxBytes; use readFileStream\n// or writeFileStream instead. operation is \"ReadFile\" or \"WriteFile\". sizeBytes is a lower bound when the\n// guest could not stat the file's size.\nexport class FileTooLargeError extends SandboxError {\n  name = \"FileTooLargeError\";\n  constructor(\n    message: string,\n    readonly operation: \"ReadFile\" | \"WriteFile\",\n    readonly sizeBytes: bigint,\n    readonly maxBytes: bigint,\n    options?: ErrorOptions,\n  ) {\n    super(message, options);\n  }\n}\nexport class InvalidStateError extends SandboxError {\n  name = \"InvalidStateError\";\n}\nexport class CommandTimeoutError extends SandboxError {\n  name = \"CommandTimeoutError\";\n}\nexport class UnauthorizedError extends SandboxError {\n  name = \"UnauthorizedError\";\n}\nexport class PermissionDeniedError extends SandboxError {\n  name = \"PermissionDeniedError\";\n}\nexport class QuotaExceededError extends SandboxError {\n  name = \"QuotaExceededError\";\n}\nexport class CapacityUnavailableError extends SandboxError {\n  name = \"CapacityUnavailableError\";\n}\nexport class PortLimitExceededError extends SandboxError {\n  name = \"PortLimitExceededError\";\n}\nexport class InboundDisabledError extends SandboxError {\n  name = \"InboundDisabledError\";\n}\nexport class SSHUnavailableError extends SandboxError {\n  name = \"SSHUnavailableError\";\n}\nexport class RateLimitedError extends SandboxError {\n  name = \"RateLimitedError\";\n}\nexport class VolumeNotFoundError extends SandboxError {\n  name = \"VolumeNotFoundError\";\n}\nexport class VolumeInUseError extends SandboxError {\n  name = \"VolumeInUseError\";\n}\nexport class VolumeSyncPendingError extends SandboxError {\n  name = \"VolumeSyncPendingError\";\n}\nexport class VolumeLimitExceededError extends SandboxError {\n  name = \"VolumeLimitExceededError\";\n}\n// GitOperationFailedError classifies an in-guest git failure surfaced by\n// node-agent as FailedPrecondition.\nexport class GitOperationFailedError extends SandboxError {\n  name = \"GitOperationFailedError\";\n  constructor(\n    message: string,\n    readonly stderr: string = \"\",\n    readonly exitCode: number | undefined = undefined,\n    readonly retryable: boolean = false,\n    options?: ErrorOptions,\n  ) {\n    super(message, options);\n  }\n}\nexport class StreamClosedError extends SandboxError {\n  name = \"StreamClosedError\";\n}\nexport class InvalidResourceConfigError extends SandboxError {\n  name = \"InvalidResourceConfigError\";\n}\nexport class SnapshotNotFoundError extends SandboxError {\n  name = \"SnapshotNotFoundError\";\n}\nexport class SnapshotFailedError extends SandboxError {\n  name = \"SnapshotFailedError\";\n  readonly failureReason?: string;\n\n  constructor(message: string, options?: ErrorOptions & { failureReason?: string }) {\n    super(message, options);\n    this.failureReason = options?.failureReason;\n  }\n}\nexport class SnapshotWaitTimeoutError extends SandboxError {\n  name = \"SnapshotWaitTimeoutError\";\n}\nexport class SnapshotNotDurableError extends SandboxError {\n  name = \"SnapshotNotDurableError\";\n}\nexport class ResumeFailedError extends SandboxError {\n  name = \"ResumeFailedError\";\n}\nexport class ResumeWaitTimeoutError extends SandboxError {\n  name = \"ResumeWaitTimeoutError\";\n}\nexport class PauseFailedError extends SandboxError {\n  name = \"PauseFailedError\";\n}\nexport class TemplateNotFoundError extends SandboxError {\n  name = \"TemplateNotFoundError\";\n}\nexport class EgressPolicyNotFoundError extends SandboxError {\n  name = \"EgressPolicyNotFoundError\";\n}\nexport class StorageConnectionNotFoundError extends SandboxError {\n  name = \"StorageConnectionNotFoundError\";\n}\nexport class StorageMountNotFoundError extends SandboxError {\n  name = \"StorageMountNotFoundError\";\n}\n/** A detach of the same mount landed before the attach finished. */\nexport class StorageMountAttachCancelledError extends SandboxError {\n  name = \"StorageMountAttachCancelledError\";\n}\n/** Luxor disabled the storage connection; contact support to restore it. */\nexport class StorageConnectionDisabledError extends SandboxError {\n  name = \"StorageConnectionDisabledError\";\n}\nexport class RegistryImageNotFoundError extends SandboxError {\n  name = \"RegistryImageNotFoundError\";\n}\nexport class TemplateExistsError extends SandboxError {\n  name = \"TemplateExistsError\";\n}\nexport class TemplateBuildNotFoundError extends SandboxError {\n  name = \"TemplateBuildNotFoundError\";\n}\nexport class TemplateBuildFailedError extends SandboxError {\n  name = \"TemplateBuildFailedError\";\n  readonly build?: import(\"./template.js\").TemplateBuild;\n\n  constructor(message: string, options?: ErrorOptions);\n  constructor(message: string, build?: import(\"./template.js\").TemplateBuild, options?: ErrorOptions);\n  constructor(\n    message: string,\n    buildOrOptions?: import(\"./template.js\").TemplateBuild | ErrorOptions,\n    options?: ErrorOptions,\n  ) {\n    const build = buildOrOptions && \"state\" in buildOrOptions ? buildOrOptions : undefined;\n    const errorOptions = build ? options : (buildOrOptions as ErrorOptions | undefined);\n    super(message, errorOptions);\n    this.build = build;\n  }\n}\nexport class TemplateBuildInProgressError extends SandboxError {\n  name = \"TemplateBuildInProgressError\";\n}\n\nexport class InvalidTemplateSpecError extends SandboxError {\n  name = \"InvalidTemplateSpecError\";\n}\n\nexport class TemplateRuntimeFailedError extends SandboxError {\n  name = \"TemplateRuntimeFailedError\";\n\n  constructor(\n    message: string,\n    public readonly session: import(\"./session.js\").Session,\n    options?: ErrorOptions,\n  ) {\n    super(message, options);\n  }\n}\n\n/** A readiness wait failed after the server admitted the session. */\nexport class WaitReadyFailedError extends SandboxError {\n  name = \"WaitReadyFailedError\";\n\n  constructor(\n    message: string,\n    public readonly session: import(\"./session.js\").Session,\n    options?: ErrorOptions,\n  ) {\n    super(message, options);\n  }\n}\n\n/** A fork failed after its snapshot was created; `sessions` were created before the failure and keep running. */\nexport class ForkFailedError extends SandboxError {\n  name = \"ForkFailedError\";\n\n  constructor(\n    message: string,\n    public readonly snapshotId: string,\n    public readonly sessions: import(\"./session.js\").Session[],\n    options?: ErrorOptions,\n  ) {\n    super(message, options);\n  }\n}\n\nexport class CapabilityUnavailableError extends SandboxError {\n  name = \"CapabilityUnavailableError\";\n\n  constructor(\n    public readonly primitive: string,\n    message = `sandbox capability unavailable: ${primitive}`,\n    options?: ErrorOptions,\n  ) {\n    super(message, options);\n  }\n}\n\nexport class DataPlaneNotReadyError extends SandboxError {\n  name = \"DataPlaneNotReadyError\";\n  readonly retryable: boolean;\n\n  constructor(message = \"sandbox: data-plane edge route not ready\", options?: ErrorOptions & { terminal?: boolean }) {\n    super(message, options);\n    this.terminal = options?.terminal ?? false;\n    this.retryable = !this.terminal;\n  }\n\n  readonly terminal: boolean;\n}\n\nexport function isDataPlaneEdgeNotReady(err: unknown): boolean {\n  return err instanceof ConnectError && err.code === Code.Unimplemented && /\\b404\\b/.test(err.message ?? \"\");\n}\n\nexport function isPausedSessionStateError(err: unknown): boolean {\n  if (!(err instanceof InvalidStateError)) return false;\n  return /\\bstate\\s*=\\s*PAUSED\\b/i.test(err.message);\n}\n\nexport function dataPlaneNotReadyError(err: unknown): DataPlaneNotReadyError {\n  return new DataPlaneNotReadyError(\"sandbox: data-plane edge route not ready\", {\n    cause: err instanceof Error ? err : undefined,\n  });\n}\n\nexport function terminalDataPlaneNotReadyError(err?: unknown): DataPlaneNotReadyError {\n  return new DataPlaneNotReadyError(\"sandbox: data-plane route verification failed\", {\n    cause: err instanceof Error ? err : undefined,\n    terminal: true,\n  });\n}\n\nexport class PrimitiveTimeoutError extends CapabilityUnavailableError {\n  name = \"PrimitiveTimeoutError\";\n\n  constructor(\n    primitive: string,\n    message = `sandbox ${primitive} timed out waiting for guest-agent reply`,\n    options?: ErrorOptions,\n  ) {\n    super(primitive, message, options);\n  }\n}\n\n// Platform-teardown exit reasons, formatted `session_terminated:<cause>[: detail]`\n// by node-agent — see the matching block in errors.py / run.go.\nexport const SESSION_TERMINATED_REASON_PREFIX = \"session_terminated\";\n\nexport function isSessionTerminatedReason(reason: string): boolean {\n  return reason.startsWith(SESSION_TERMINATED_REASON_PREFIX);\n}\n\n/** Extracts the cause token from a `session_terminated:<cause>[: detail]` reason. */\nexport function sessionTerminationCause(reason: string): string {\n  if (!reason.startsWith(`${SESSION_TERMINATED_REASON_PREFIX}:`)) return \"\";\n  return reason\n    .slice(SESSION_TERMINATED_REASON_PREFIX.length + 1)\n    .split(\":\", 1)[0]!\n    .trim();\n}\n\n// Same pattern as fileTooLargeRe in errors.go and _FILE_TOO_LARGE in errors.py.\nconst FILE_TOO_LARGE = /file too large for (ReadFile|WriteFile): size_bytes=(\\d{1,18}) max_bytes=(\\d{1,18})/;\n\nfunction fileTooLargeError(err: ConnectError): FileTooLargeError | undefined {\n  const match = FILE_TOO_LARGE.exec(err.message);\n  if (!match) return undefined;\n  const operation = match[1] as \"ReadFile\" | \"WriteFile\";\n  return new FileTooLargeError(err.message, operation, BigInt(match[2]!), BigInt(match[3]!), { cause: err });\n}\n\n// A guest agent without a primitive answers with this text; older node agents relay it as Internal, newer as Unimplemented.\n// Same pattern as legacyGuestUnknownRequestRe in errors.go and _LEGACY_GUEST_UNKNOWN_REQUEST in errors.py.\nconst LEGACY_GUEST_UNKNOWN_REQUEST = /unknown request type: \\*sandboxv1\\.GuestRequest_(\\w+)/;\n\n// Git failure classification — see the matching block in errors.go / errors.py.\nconst GIT_FAILURE = /git .*failed \\(exit_code=/i;\nconst GIT_EXIT_CODE = /\\(exit_code=(\\d+)\\)/;\nconst GIT_STDERR = /; check the repository, ref and access token: ([\\s\\S]+)/;\nconst TRANSIENT_GIT =\n  /Recv failure|Connection reset by peer|Could not resolve host|Failed to connect|Connection timed out|TLS|gnutls_handshake|SSL_ERROR|RPC failed|HTTP 5\\d\\d|\\b(429|503)\\b|early EOF|remote end hung up unexpectedly|unexpected disconnect/i;\nconst TERMINAL_GIT =\n  /Authentication failed|could not read Username|terminal prompts disabled|Repository not found|fatal: repository .* not found|Permission denied|\\b403\\b|invalid credentials|pathspec|did not match any/i;\n\nexport function mapError(err: unknown): SandboxError {\n  if (err instanceof SandboxError) return err;\n\n  const connectErr =\n    err instanceof ConnectError ? err : ConnectError.from(err) instanceof ConnectError ? ConnectError.from(err) : null;\n\n  if (!connectErr || !(connectErr instanceof ConnectError)) {\n    return new SandboxError(err instanceof Error ? err.message : String(err), {\n      cause: err instanceof Error ? err : undefined,\n    });\n  }\n  if (isDataPlaneEdgeNotReady(connectErr)) {\n    return dataPlaneNotReadyError(connectErr);\n  }\n  const legacyGuest = LEGACY_GUEST_UNKNOWN_REQUEST.exec(connectErr.message);\n  if (legacyGuest) {\n    return new CapabilityUnavailableError(legacyGuest[1]!, connectErr.message, { cause: connectErr });\n  }\n\n  const msg = connectErr.message.toLowerCase();\n  const cause = connectErr;\n\n  switch (connectErr.code) {\n    case Code.Unauthenticated:\n      return new UnauthorizedError(connectErr.message, { cause });\n    case Code.PermissionDenied:\n      return new PermissionDeniedError(connectErr.message, { cause });\n    case Code.NotFound:\n      // Matched as a prefix first: the message ends with caller-chosen policy names.\n      if (connectErr.rawMessage.toLowerCase().startsWith(\"egress polic\"))\n        return new EgressPolicyNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"storage connection\")) return new StorageConnectionNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"storage mount\")) return new StorageMountNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"template build\")) return new TemplateBuildNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"template\")) return new TemplateNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"registry image\")) return new RegistryImageNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"snapshot\")) return new SnapshotNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"volume\")) return new VolumeNotFoundError(connectErr.message, { cause });\n      if (msg.includes(\"artifact\")) return new SessionExpiredError(connectErr.message, { cause });\n      if (msg.includes(\"no such file or directory\")) return new FileNotFoundError(connectErr.message, { cause });\n      return new SessionNotFoundError(connectErr.message, { cause });\n    case Code.AlreadyExists:\n      if (msg.includes(\"template\")) return new TemplateExistsError(connectErr.message, { cause });\n      return new SandboxError(connectErr.message, { cause });\n    case Code.DeadlineExceeded:\n      return new CommandTimeoutError(connectErr.message, { cause });\n    case Code.ResourceExhausted: {\n      const tooLarge = fileTooLargeError(connectErr);\n      if (tooLarge) return tooLarge;\n      if (msg.includes(\"maximum exposed ports\")) return new PortLimitExceededError(connectErr.message, { cause });\n      if (msg.includes(\"volume\")) return new VolumeLimitExceededError(connectErr.message, { cause });\n      if (msg.includes(\"rate limit\")) return new RateLimitedError(connectErr.message, { cause });\n      if (msg.includes(\"capacity\")) return new CapacityUnavailableError(connectErr.message, { cause });\n      return new QuotaExceededError(connectErr.message, { cause });\n    }\n    case Code.FailedPrecondition:\n      if (msg.includes(\"disabled by luxor\") || msg.includes(\"disabled by tenki\"))\n        return new StorageConnectionDisabledError(connectErr.message, { cause });\n      if (msg.includes(\"snapshot not yet durable\")) {\n        return new SnapshotNotDurableError(connectErr.message, { cause });\n      }\n      if (msg.includes(\"template build already in progress\") || msg.includes(\"build in progress\"))\n        return new TemplateBuildInProgressError(connectErr.message, { cause });\n      if (msg.includes(\"terminated\")) return new SessionTerminatedError(connectErr.message, { cause });\n      if (GIT_FAILURE.test(connectErr.message)) {\n        const fullMessage = connectErr.message;\n        const exitMatch = GIT_EXIT_CODE.exec(fullMessage);\n        const exitCode = exitMatch ? Number.parseInt(exitMatch[1], 10) : undefined;\n        const stderrMatch = GIT_STDERR.exec(fullMessage);\n        const stderr = stderrMatch ? stderrMatch[1] : \"\";\n        const retryable = TRANSIENT_GIT.test(fullMessage) && !TERMINAL_GIT.test(fullMessage);\n        return new GitOperationFailedError(fullMessage, stderr, exitCode, retryable, { cause });\n      }\n      if (msg.includes(\"sync_pending\") || msg.includes(\"sync pending\"))\n        return new VolumeSyncPendingError(connectErr.message, { cause });\n      if (msg.includes(\"volume is attached\") || msg.includes(\"volume is in use\"))\n        return new VolumeInUseError(connectErr.message, { cause });\n      if (msg.includes(\"inbound access is disabled\")) return new InboundDisabledError(connectErr.message, { cause });\n      if (msg.includes(\"ssh\")) return new SSHUnavailableError(connectErr.message, { cause });\n      return new InvalidStateError(connectErr.message, { cause });\n    case Code.Aborted:\n      if (msg.includes(\"cancelled by a detach\"))\n        return new StorageMountAttachCancelledError(connectErr.message, { cause });\n      if (connectErr.rawMessage.toLowerCase().startsWith(\"resume failed\"))\n        return new ResumeFailedError(connectErr.message, { cause });\n      return new SandboxError(connectErr.message, { cause });\n    case Code.Unavailable:\n      if (msg.includes(\"ssh\")) return new SSHUnavailableError(connectErr.message, { cause });\n      return new SandboxError(connectErr.message, { cause });\n    default:\n      return new SandboxError(connectErr.message, { cause });\n  }\n}\n","import type { Interceptor } from \"@connectrpc/connect\";\n\nimport { setClientMetadataHeaders } from \"./client-metadata.js\";\nimport { API_KEY_PREFIXES, AUTH_TOKEN_ENVS, SDK_USER_AGENT } from \"./constants.js\";\nimport { readEnv } from \"./env.js\";\nimport { InvalidAuthTokenError, MissingAuthTokenError } from \"./errors.js\";\n\nexport function validateAuthToken(token: string): string {\n  const trimmed = token.trim();\n  if (!trimmed) throw new MissingAuthTokenError();\n  if (!API_KEY_PREFIXES.some((prefix) => trimmed.startsWith(prefix))) throw new InvalidAuthTokenError();\n  return trimmed;\n}\n\n/** apiKey is an alias for authToken; an explicit authToken wins, then the environment. */\nexport function resolveAuthToken(authToken?: string, apiKey?: string): string {\n  const explicit = authToken?.trim() || \"\";\n  const alias = apiKey?.trim() || \"\";\n  return validateAuthToken(explicit || alias || readEnv(AUTH_TOKEN_ENVS));\n}\n\nexport function createAuthInterceptor(token: string): Interceptor {\n  const authToken = validateAuthToken(token);\n  return (next) => async (req) => {\n    setAuthHeaders(req.header, authToken);\n    return next(req);\n  };\n}\n\nexport function setAuthHeaders(headers: Headers, token: string): void {\n  const authToken = validateAuthToken(token);\n  headers.set(\"Authorization\", `Bearer ${authToken}`);\n  setSdkIdentityHeaders(headers);\n  setClientMetadataHeaders(headers);\n}\n\n/** Leads the User-Agent with the SDK product, keeping any existing value. */\nexport function setSdkIdentityHeaders(headers: Headers): void {\n  const existing = headers.get(\"User-Agent\");\n  if (!existing) headers.set(\"User-Agent\", SDK_USER_AGENT);\n  else if (!existing.startsWith(SDK_USER_AGENT)) headers.set(\"User-Agent\", `${SDK_USER_AGENT} ${existing}`);\n}\n","import { create } from \"@bufbuild/protobuf\";\nimport { timestampDate } from \"@bufbuild/protobuf/wkt\";\n\nimport {\n  SessionEgressPolicySchema,\n  type EgressPolicy as EgressPolicyMessage,\n  type SessionEgressPolicy as SessionEgressPolicyMessage,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport type { EgressHttpRule, WorkspaceScopeOptions } from \"./options.js\";\nimport { egressHttpRuleToProto, egressPolicyFromProto, type SessionEgressPolicy } from \"./session.js\";\n\n/** The body of a named egress policy, checked by the server like an inline session policy. */\nexport interface EgressPolicySpec {\n  allowDomains?: string[];\n  allowCidrs?: string[];\n  interceptHttps?: boolean;\n  /** Extra public TCP ports bypass HTTP inspection and still require an allowed destination. */\n  allowedPorts?: number[];\n  httpRules?: EgressHttpRule[];\n}\n\n/** A named workspace egress policy that sessions pin with `egressPolicies`. */\nexport interface EgressPolicy {\n  id: string;\n  workspaceId: string;\n  name: string;\n  revision: number;\n  /** The stored policy; its policyNames is always empty. */\n  egress: SessionEgressPolicy;\n  /** Sessions not yet terminated that pinned this policy. */\n  activeSessionCount: number;\n  createdAt?: Date;\n  updatedAt?: Date;\n  deletedAt?: Date;\n}\n\nexport function egressPolicySpecToProto(spec: EgressPolicySpec): SessionEgressPolicyMessage {\n  return create(SessionEgressPolicySchema, {\n    allowDomains: [...(spec.allowDomains ?? [])],\n    allowCidrs: [...(spec.allowCidrs ?? [])],\n    interceptHttps: spec.interceptHttps ?? false,\n    allowedPorts: [...(spec.allowedPorts ?? [])],\n    httpRules: (spec.httpRules ?? []).map(egressHttpRuleToProto),\n  });\n}\n\nexport function egressPolicyFromMessage(policy: EgressPolicyMessage | undefined): EgressPolicy {\n  if (!policy) throw new Error(\"Missing egress policy\");\n  return {\n    id: policy.id,\n    workspaceId: policy.workspaceId,\n    name: policy.name,\n    revision: policy.revision,\n    egress: egressPolicyFromProto(policy.egress),\n    activeSessionCount: policy.activeSessionCount,\n    createdAt: policy.createdAt && timestampDate(policy.createdAt),\n    updatedAt: policy.updatedAt && timestampDate(policy.updatedAt),\n    deletedAt: policy.deletedAt && timestampDate(policy.deletedAt),\n  };\n}\n\nexport function workspaceScope(options?: WorkspaceScopeOptions): string | undefined {\n  return options?.workspaceId?.trim() || undefined;\n}\n","// Agent Sandbox Service - Public API\n// Feature: Agent Sandbox (010)\n//\n// Main SDK-facing gRPC service for sandbox session management.\n\n// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file tenki/sandbox/v1/sandbox.proto (package tenki.sandbox.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_buf_validate_validate } from \"../../../buf/validate/validate_pb\";\nimport type { Duration, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_duration, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { DeleteRegistryImageRequestSchema, DeleteRegistryImageResponseSchema, DeleteRegistryImageVersionRequestSchema, DeleteRegistryImageVersionResponseSchema, GetRegistryImageRequestSchema, GetRegistryImageResponseSchema, ListRegistryImagesRequestSchema, ListRegistryImagesResponseSchema, ListRegistryShareGrantsRequestSchema, ListRegistryShareGrantsResponseSchema, PublishRegistryImageRequestSchema, PublishRegistryImageResponseSchema, ResolveRegistryRefRequestSchema, ResolveRegistryRefResponseSchema, RevokeRegistryShareGrantRequestSchema, RevokeRegistryShareGrantResponseSchema, SetRegistryImageVisibilityRequestSchema, SetRegistryImageVisibilityResponseSchema, ShareImageRequestSchema, ShareImageResponseSchema, UnshareRegistryImageRequestSchema, UnshareRegistryImageResponseSchema } from \"./registry_pb\";\nimport { file_tenki_sandbox_v1_registry } from \"./registry_pb\";\nimport type { RuntimeSecretFile } from \"./secret_file_pb\";\nimport { file_tenki_sandbox_v1_secret_file } from \"./secret_file_pb\";\nimport type { GetTailnetDefaultsRequestSchema, GetTailnetDefaultsResponseSchema, ListTailnetConnectionsRequestSchema, ListTailnetConnectionsResponseSchema, ListTailnetRunnerConfigurationsRequestSchema, ListTailnetRunnerConfigurationsResponseSchema, ListTailnetRunnerStatusesRequestSchema, ListTailnetRunnerStatusesResponseSchema, SaveTailnetConnectionRequestSchema, SaveTailnetConnectionResponseSchema, SaveTailnetDefaultsRequestSchema, SaveTailnetDefaultsResponseSchema, SaveTailnetRunnerConfigurationRequestSchema, SaveTailnetRunnerConfigurationResponseSchema, TestTailnetConnectionRequestSchema, TestTailnetConnectionResponseSchema } from \"./tailnet_connection_pb\";\nimport { file_tenki_sandbox_v1_tailnet_connection } from \"./tailnet_connection_pb\";\nimport type { BuildTemplateRequestSchema, BuildTemplateResponseSchema, CancelTemplateBuildRequestSchema, CancelTemplateBuildResponseSchema, CreateTemplateRequestSchema, CreateTemplateResponseSchema, DeleteTemplateBuildRequestSchema, DeleteTemplateBuildResponseSchema, DeleteTemplateRequestSchema, DeleteTemplateResponseSchema, GetTemplateBuildRequestSchema, GetTemplateBuildResponseSchema, GetTemplateRequestSchema, GetTemplateResponseSchema, ListActiveTemplateBuildsRequestSchema, ListActiveTemplateBuildsResponseSchema, ListTemplateBuildsRequestSchema, ListTemplateBuildsResponseSchema, ListTemplatesRequestSchema, ListTemplatesResponseSchema, TemplateRuntime, TemplateRuntimeState, UpdateTemplateRequestSchema, UpdateTemplateResponseSchema } from \"./template_pb\";\nimport { file_tenki_sandbox_v1_template } from \"./template_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tenki/sandbox/v1/sandbox.proto.\n */\nexport const file_tenki_sandbox_v1_sandbox: GenFile = /*@__PURE__*/\n  fileDesc(\"Ch50ZW5raS9zYW5kYm94L3YxL3NhbmRib3gucHJvdG8SEHRlbmtpLnNhbmRib3gudjEi9QEKBlZvbHVtZRIKCgJpZBgBIAEoCRIeCgx3b3Jrc3BhY2VfaWQYAiABKAlCCLpIBXIDsAEBEgwKBG5hbWUYAyABKAkSEgoKc2l6ZV9ieXRlcxgEIAEoAxIsCgVzdGF0ZRgFIAEoDjIdLnRlbmtpLnNhbmRib3gudjEuVm9sdW1lU3RhdGUSEgoKY3JlYXRlZF9hdBgGIAEoCRISCgp1cGRhdGVkX2F0GAcgASgJEjUKBHRhZ3MYCSADKAlCJ7pIJJIBIRAUIh1yGxggMhdeW2EtejAtOV1bYS16MC05XzouLV0qJEoECAgQCVIKcHJvamVjdF9pZCJZCgtWb2x1bWVNb3VudBIbCgl2b2x1bWVfaWQYASABKAlCCLpIBXIDsAEBEhsKCm1vdW50X3BhdGgYAiABKAlCB7pIBHICEAESEAoIcmVhZG9ubHkYAyABKAgiXwoSU3RvcmFnZVNlY3JldFZhbHVlEiEKC3NlY3JldF9uYW1lGAEgASgJQgq6SAdyBRABGIABSAASHAoFdmFsdWUYAiABKAlCC7pICHIGEAEYgIABSABCCAoGc291cmNlIrQCChxTdG9yYWdlQ29ubmVjdGlvbkNyZWRlbnRpYWxzEjsKDWFjY2Vzc19rZXlfaWQYASABKAsyJC50ZW5raS5zYW5kYm94LnYxLlN0b3JhZ2VTZWNyZXRWYWx1ZRI/ChFzZWNyZXRfYWNjZXNzX2tleRgCIAEoCzIkLnRlbmtpLnNhbmRib3gudjEuU3RvcmFnZVNlY3JldFZhbHVlEjsKDXNlc3Npb25fdG9rZW4YAyABKAsyJC50ZW5raS5zYW5kYm94LnYxLlN0b3JhZ2VTZWNyZXRWYWx1ZRI9Cg9yMl9wYXJlbnRfdG9r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nNlKAESgQEKBFN0YXQSOy50ZW5raS5zYW5kYm94LnYxLlNhbmRib3hTZXNzaW9uRGF0YVBsYW5lU2VydmljZVN0YXRSZXF1ZXN0GjwudGVua2kuc2FuZGJveC52MS5TYW5kYm94U2Vzc2lvbkRhdGFQbGFuZVNlcnZpY2VTdGF0UmVzcG9uc2UShAEKBU1rZGlyEjwudGVua2kuc2FuZGJveC52MS5TYW5kYm94U2Vzc2lvbkRhdGFQbGFuZVNlcnZpY2VNa2RpclJlcXVlc3QaPS50ZW5raS5zYW5kYm94LnYxLlNhbmRib3hTZXNzaW9uRGF0YVBsYW5lU2VydmljZU1rZGlyUmVzcG9uc2UShwEKBlJlbW92ZRI9LnRlbmtpLnNhbmRib3gudjEuU2FuZGJveFNlc3Npb25EYXRhUGxhbmVTZXJ2aWNlUmVtb3ZlUmVxdWVzdBo+LnRlbmtpLnNhbmRib3gudjEuU2FuZGJveFNlc3Npb25EYXRhUGxhbmVTZXJ2aWNlUmVtb3ZlUmVzcG9uc2USgQEKBExpc3QSOy50ZW5raS5zYW5kYm94LnYxLlNhbmRib3hTZXNzaW9uRGF0YVBsYW5lU2VydmljZUxpc3RSZXF1ZXN0GjwudGVua2kuc2FuZGJveC52MS5TYW5kYm94U2Vzc2lvbkRhdGFQbGFuZVNlcnZpY2VMaXN0UmVzcG9uc2VCxQEKFGNvbS50ZW5raS5zYW5kYm94LnYxQgxTYW5kYm94UHJvdG9QAVo9Z28ubHV4b3IuYWkvc2FuZGJveC9pbnRlcm5hbC9wcm90by90ZW5raS9zYW5kYm94L3YxO3NhbmRib3h2MaICA1RTWKoCEFRlbmtpLlNhbmRib3guVjHKAhBUZW5raVxTYW5kYm94XFYx4gIcVGVua2lcU2FuZGJveFxWMVxHUEJNZXRhZGF0YeoCElRlbmtpOjpTYW5kYm94OjpWMWIGcHJvdG8z\", [file_buf_validate_validate, file_google_protobuf_duration, file_google_protobuf_timestamp, file_tenki_sandbox_v1_registry, file_tenki_sandbox_v1_secret_file, file_tenki_sandbox_v1_tailnet_connection, file_tenki_sandbox_v1_template]);\n\n/**\n * @generated from message tenki.sandbox.v1.Volume\n */\nexport type Volume = Message<\"tenki.sandbox.v1.Volume\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 3;\n   */\n  name: string;\n\n  /**\n   * @generated from field: int64 size_bytes = 4;\n   */\n  sizeBytes: bigint;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.VolumeState state = 5;\n   */\n  state: VolumeState;\n\n  /**\n   * @generated from field: string created_at = 6;\n   */\n  createdAt: string;\n\n  /**\n   * @generated from field: string updated_at = 7;\n   */\n  updatedAt: string;\n\n  /**\n   * @generated from field: repeated string tags = 9;\n   */\n  tags: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.Volume.\n * Use `create(VolumeSchema)` to create a new message.\n */\nexport const VolumeSchema: GenMessage<Volume> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.VolumeMount\n */\nexport type VolumeMount = Message<\"tenki.sandbox.v1.VolumeMount\"> & {\n  /**\n   * @generated from field: string volume_id = 1;\n   */\n  volumeId: string;\n\n  /**\n   * @generated from field: string mount_path = 2;\n   */\n  mountPath: string;\n\n  /**\n   * @generated from field: bool readonly = 3;\n   */\n  readonly: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.VolumeMount.\n * Use `create(VolumeMountSchema)` to create a new message.\n */\nexport const VolumeMountSchema: GenMessage<VolumeMount> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 1);\n\n/**\n * A credential field: the name of an existing Tenki Secret, or a value Tenki stores as a new secret.\n *\n * @generated from message tenki.sandbox.v1.StorageSecretValue\n */\nexport type StorageSecretValue = Message<\"tenki.sandbox.v1.StorageSecretValue\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.StorageSecretValue.source\n   */\n  source: {\n    /**\n     * @generated from field: string secret_name = 1;\n     */\n    value: string;\n    case: \"secretName\";\n  } | {\n    /**\n     * @generated from field: string value = 2;\n     */\n    value: string;\n    case: \"value\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageSecretValue.\n * Use `create(StorageSecretValueSchema)` to create a new message.\n */\nexport const StorageSecretValueSchema: GenMessage<StorageSecretValue> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 2);\n\n/**\n * @generated from message tenki.sandbox.v1.StorageConnectionCredentials\n */\nexport type StorageConnectionCredentials = Message<\"tenki.sandbox.v1.StorageConnectionCredentials\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageSecretValue access_key_id = 1;\n   */\n  accessKeyId?: StorageSecretValue;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageSecretValue secret_access_key = 2;\n   */\n  secretAccessKey?: StorageSecretValue;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageSecretValue session_token = 3;\n   */\n  sessionToken?: StorageSecretValue;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageSecretValue r2_parent_token = 4;\n   */\n  r2ParentToken?: StorageSecretValue;\n\n  /**\n   * @generated from field: string role_arn = 5;\n   */\n  roleArn: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageConnectionCredentials.\n * Use `create(StorageConnectionCredentialsSchema)` to create a new message.\n */\nexport const StorageConnectionCredentialsSchema: GenMessage<StorageConnectionCredentials> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 3);\n\n/**\n * Names of the Tenki Secrets a connection reads; empty when unused.\n *\n * @generated from message tenki.sandbox.v1.StorageConnectionSecrets\n */\nexport type StorageConnectionSecrets = Message<\"tenki.sandbox.v1.StorageConnectionSecrets\"> & {\n  /**\n   * @generated from field: string access_key_id = 1;\n   */\n  accessKeyId: string;\n\n  /**\n   * @generated from field: string secret_access_key = 2;\n   */\n  secretAccessKey: string;\n\n  /**\n   * @generated from field: string session_token = 3;\n   */\n  sessionToken: string;\n\n  /**\n   * @generated from field: string r2_parent_token = 4;\n   */\n  r2ParentToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageConnectionSecrets.\n * Use `create(StorageConnectionSecretsSchema)` to create a new message.\n */\nexport const StorageConnectionSecretsSchema: GenMessage<StorageConnectionSecrets> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 4);\n\n/**\n * @generated from message tenki.sandbox.v1.StorageConnection\n */\nexport type StorageConnection = Message<\"tenki.sandbox.v1.StorageConnection\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 3;\n   */\n  name: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageProvider provider = 4;\n   */\n  provider: StorageProvider;\n\n  /**\n   * @generated from field: string endpoint = 5;\n   */\n  endpoint: string;\n\n  /**\n   * @generated from field: string bucket = 6;\n   */\n  bucket: string;\n\n  /**\n   * @generated from field: string region = 7;\n   */\n  region: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageAuthMethod auth_method = 8;\n   */\n  authMethod: StorageAuthMethod;\n\n  /**\n   * @generated from field: string role_arn = 9;\n   */\n  roleArn: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageConnectionSecrets secrets = 10;\n   */\n  secrets?: StorageConnectionSecrets;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageAccess default_access = 11;\n   */\n  defaultAccess: StorageAccess;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 12;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 13;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: int64 revision = 14;\n   */\n  revision: bigint;\n\n  /**\n   * OIDC subject an AWS role trust policy must match (StringLike) for keyless access.\n   *\n   * @generated from field: string oidc_subject_pattern = 15;\n   */\n  oidcSubjectPattern: string;\n\n  /**\n   * @generated from field: int32 active_mount_count = 16;\n   */\n  activeMountCount: number;\n\n  /**\n   * @generated from field: int32 default_mount_count = 17;\n   */\n  defaultMountCount: number;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp last_tested_at = 18;\n   */\n  lastTestedAt?: Timestamp;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageTestReason last_test_reason = 19;\n   */\n  lastTestReason: StorageTestReason;\n\n  /**\n   * Tenki disabled this connection; it accepts no new mounts and issues no credentials.\n   *\n   * @generated from field: bool disabled = 20;\n   */\n  disabled: boolean;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp disabled_at = 21;\n   */\n  disabledAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageConnection.\n * Use `create(StorageConnectionSchema)` to create a new message.\n */\nexport const StorageConnectionSchema: GenMessage<StorageConnection> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 5);\n\n/**\n * @generated from message tenki.sandbox.v1.StorageMountSpec\n */\nexport type StorageMountSpec = Message<\"tenki.sandbox.v1.StorageMountSpec\"> & {\n  /**\n   * Required unless default_mount_id is set; the name is matched case-insensitively.\n   *\n   * @generated from oneof tenki.sandbox.v1.StorageMountSpec.connection\n   */\n  connection: {\n    /**\n     * @generated from field: string connection_id = 1;\n     */\n    value: string;\n    case: \"connectionId\";\n  } | {\n    /**\n     * @generated from field: string connection_name = 5;\n     */\n    value: string;\n    case: \"connectionName\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * Unset keeps a default mount's prefix; empty mounts the whole bucket.\n   *\n   * @generated from field: optional string prefix = 2;\n   */\n  prefix?: string;\n\n  /**\n   * Required unless default_mount_id is set.\n   *\n   * @generated from field: string mount_path = 3;\n   */\n  mountPath: string;\n\n  /**\n   * Unset keeps a default mount's access; UNSPECIFIED uses the connection's default access.\n   *\n   * @generated from field: optional tenki.sandbox.v1.StorageAccess access = 4;\n   */\n  access?: StorageAccess;\n\n  /**\n   * Overrides that workspace default: unset or empty fields keep the default's values.\n   *\n   * @generated from field: string default_mount_id = 6;\n   */\n  defaultMountId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageMountSpec.\n * Use `create(StorageMountSpecSchema)` to create a new message.\n */\nexport const StorageMountSpecSchema: GenMessage<StorageMountSpec> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 6);\n\n/**\n * @generated from message tenki.sandbox.v1.StorageMount\n */\nexport type StorageMount = Message<\"tenki.sandbox.v1.StorageMount\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string session_id = 2;\n   */\n  sessionId: string;\n\n  /**\n   * Resolved values: connection_id, effective access and the default it came from, if any.\n   *\n   * @generated from field: tenki.sandbox.v1.StorageMountSpec spec = 3;\n   */\n  spec?: StorageMountSpec;\n\n  /**\n   * @generated from field: string state = 4;\n   */\n  state: string;\n\n  /**\n   * @generated from field: string last_error = 5;\n   */\n  lastError: string;\n\n  /**\n   * @generated from field: string connection_name = 6;\n   */\n  connectionName: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageMount.\n * Use `create(StorageMountSchema)` to create a new message.\n */\nexport const StorageMountSchema: GenMessage<StorageMount> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 7);\n\n/**\n * @generated from message tenki.sandbox.v1.StorageDefaultMount\n */\nexport type StorageDefaultMount = Message<\"tenki.sandbox.v1.StorageDefaultMount\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string connection_id = 2;\n   */\n  connectionId: string;\n\n  /**\n   * @generated from field: string prefix = 3;\n   */\n  prefix: string;\n\n  /**\n   * @generated from field: string mount_path = 4;\n   */\n  mountPath: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageAccess access = 5;\n   */\n  access: StorageAccess;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageDefaultMount.\n * Use `create(StorageDefaultMountSchema)` to create a new message.\n */\nexport const StorageDefaultMountSchema: GenMessage<StorageDefaultMount> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 8);\n\n/**\n * Mounts every new sandbox in the workspace gets unless the create request opts out.\n *\n * @generated from message tenki.sandbox.v1.StorageDefaults\n */\nexport type StorageDefaults = Message<\"tenki.sandbox.v1.StorageDefaults\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.StorageDefaultMount mounts = 2;\n   */\n  mounts: StorageDefaultMount[];\n\n  /**\n   * @generated from field: uint32 revision = 3;\n   */\n  revision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StorageDefaults.\n * Use `create(StorageDefaultsSchema)` to create a new message.\n */\nexport const StorageDefaultsSchema: GenMessage<StorageDefaults> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 9);\n\n/**\n * @generated from message tenki.sandbox.v1.GetStorageDefaultsRequest\n */\nexport type GetStorageDefaultsRequest = Message<\"tenki.sandbox.v1.GetStorageDefaultsRequest\"> & {\n  /**\n   * Empty uses the workspace of a workspace API key.\n   *\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetStorageDefaultsRequest.\n * Use `create(GetStorageDefaultsRequestSchema)` to create a new message.\n */\nexport const GetStorageDefaultsRequestSchema: GenMessage<GetStorageDefaultsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 10);\n\n/**\n * @generated from message tenki.sandbox.v1.GetStorageDefaultsResponse\n */\nexport type GetStorageDefaultsResponse = Message<\"tenki.sandbox.v1.GetStorageDefaultsResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageDefaults defaults = 1;\n   */\n  defaults?: StorageDefaults;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetStorageDefaultsResponse.\n * Use `create(GetStorageDefaultsResponseSchema)` to create a new message.\n */\nexport const GetStorageDefaultsResponseSchema: GenMessage<GetStorageDefaultsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 11);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveStorageDefaultsRequest\n */\nexport type SaveStorageDefaultsRequest = Message<\"tenki.sandbox.v1.SaveStorageDefaultsRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageDefaults defaults = 1;\n   */\n  defaults?: StorageDefaults;\n\n  /**\n   * @generated from field: uint32 expected_revision = 2;\n   */\n  expectedRevision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveStorageDefaultsRequest.\n * Use `create(SaveStorageDefaultsRequestSchema)` to create a new message.\n */\nexport const SaveStorageDefaultsRequestSchema: GenMessage<SaveStorageDefaultsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 12);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveStorageDefaultsResponse\n */\nexport type SaveStorageDefaultsResponse = Message<\"tenki.sandbox.v1.SaveStorageDefaultsResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageDefaults defaults = 1;\n   */\n  defaults?: StorageDefaults;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveStorageDefaultsResponse.\n * Use `create(SaveStorageDefaultsResponseSchema)` to create a new message.\n */\nexport const SaveStorageDefaultsResponseSchema: GenMessage<SaveStorageDefaultsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 13);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateStorageConnectionRequest\n */\nexport type CreateStorageConnectionRequest = Message<\"tenki.sandbox.v1.CreateStorageConnectionRequest\"> & {\n  /**\n   * Empty uses the workspace of a workspace API key.\n   *\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 2;\n   */\n  name: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageProvider provider = 3;\n   */\n  provider: StorageProvider;\n\n  /**\n   * Derived from region for AWS S3 and fixed for GCS when empty.\n   *\n   * @generated from field: string endpoint = 4;\n   */\n  endpoint: string;\n\n  /**\n   * @generated from field: string bucket = 5;\n   */\n  bucket: string;\n\n  /**\n   * @generated from field: string region = 6;\n   */\n  region: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageAuthMethod auth_method = 7;\n   */\n  authMethod: StorageAuthMethod;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageConnectionCredentials credentials = 8;\n   */\n  credentials?: StorageConnectionCredentials;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageAccess default_access = 9;\n   */\n  defaultAccess: StorageAccess;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateStorageConnectionRequest.\n * Use `create(CreateStorageConnectionRequestSchema)` to create a new message.\n */\nexport const CreateStorageConnectionRequestSchema: GenMessage<CreateStorageConnectionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 14);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateStorageConnectionResponse\n */\nexport type CreateStorageConnectionResponse = Message<\"tenki.sandbox.v1.CreateStorageConnectionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageConnection connection = 1;\n   */\n  connection?: StorageConnection;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateStorageConnectionResponse.\n * Use `create(CreateStorageConnectionResponseSchema)` to create a new message.\n */\nexport const CreateStorageConnectionResponseSchema: GenMessage<CreateStorageConnectionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 15);\n\n/**\n * @generated from message tenki.sandbox.v1.TestStorageConnectionRequest\n */\nexport type TestStorageConnectionRequest = Message<\"tenki.sandbox.v1.TestStorageConnectionRequest\"> & {\n  /**\n   * @generated from field: string connection_id = 1;\n   */\n  connectionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TestStorageConnectionRequest.\n * Use `create(TestStorageConnectionRequestSchema)` to create a new message.\n */\nexport const TestStorageConnectionRequestSchema: GenMessage<TestStorageConnectionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 16);\n\n/**\n * @generated from message tenki.sandbox.v1.TestStorageConnectionResponse\n */\nexport type TestStorageConnectionResponse = Message<\"tenki.sandbox.v1.TestStorageConnectionResponse\"> & {\n  /**\n   * @generated from field: bool reachable = 1;\n   */\n  reachable: boolean;\n\n  /**\n   * @generated from field: string error_message = 2;\n   */\n  errorMessage: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageTestReason reason = 3;\n   */\n  reason: StorageTestReason;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TestStorageConnectionResponse.\n * Use `create(TestStorageConnectionResponseSchema)` to create a new message.\n */\nexport const TestStorageConnectionResponseSchema: GenMessage<TestStorageConnectionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 17);\n\n/**\n * @generated from message tenki.sandbox.v1.ListStorageConnectionsRequest\n */\nexport type ListStorageConnectionsRequest = Message<\"tenki.sandbox.v1.ListStorageConnectionsRequest\"> & {\n  /**\n   * Empty uses the workspace of a workspace API key.\n   *\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListStorageConnectionsRequest.\n * Use `create(ListStorageConnectionsRequestSchema)` to create a new message.\n */\nexport const ListStorageConnectionsRequestSchema: GenMessage<ListStorageConnectionsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 18);\n\n/**\n * @generated from message tenki.sandbox.v1.ListStorageConnectionsResponse\n */\nexport type ListStorageConnectionsResponse = Message<\"tenki.sandbox.v1.ListStorageConnectionsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.StorageConnection connections = 1;\n   */\n  connections: StorageConnection[];\n\n  /**\n   * Issuer URL to register as an AWS IAM OIDC identity provider; empty when keyless AWS is unavailable.\n   *\n   * @generated from field: string oidc_issuer = 2;\n   */\n  oidcIssuer: string;\n\n  /**\n   * @generated from field: string oidc_audience = 3;\n   */\n  oidcAudience: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListStorageConnectionsResponse.\n * Use `create(ListStorageConnectionsResponseSchema)` to create a new message.\n */\nexport const ListStorageConnectionsResponseSchema: GenMessage<ListStorageConnectionsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 19);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateStorageConnectionRequest\n */\nexport type UpdateStorageConnectionRequest = Message<\"tenki.sandbox.v1.UpdateStorageConnectionRequest\"> & {\n  /**\n   * @generated from field: string connection_id = 1;\n   */\n  connectionId: string;\n\n  /**\n   * @generated from field: optional string name = 2;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: optional string endpoint = 3;\n   */\n  endpoint?: string;\n\n  /**\n   * @generated from field: optional string region = 4;\n   */\n  region?: string;\n\n  /**\n   * Unset fields keep their current secret.\n   *\n   * @generated from field: tenki.sandbox.v1.StorageConnectionCredentials credentials = 5;\n   */\n  credentials?: StorageConnectionCredentials;\n\n  /**\n   * @generated from field: int64 expected_revision = 6;\n   */\n  expectedRevision: bigint;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.StorageAccess default_access = 7;\n   */\n  defaultAccess?: StorageAccess;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateStorageConnectionRequest.\n * Use `create(UpdateStorageConnectionRequestSchema)` to create a new message.\n */\nexport const UpdateStorageConnectionRequestSchema: GenMessage<UpdateStorageConnectionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 20);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateStorageConnectionResponse\n */\nexport type UpdateStorageConnectionResponse = Message<\"tenki.sandbox.v1.UpdateStorageConnectionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageConnection connection = 1;\n   */\n  connection?: StorageConnection;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateStorageConnectionResponse.\n * Use `create(UpdateStorageConnectionResponseSchema)` to create a new message.\n */\nexport const UpdateStorageConnectionResponseSchema: GenMessage<UpdateStorageConnectionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 21);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteStorageConnectionRequest\n */\nexport type DeleteStorageConnectionRequest = Message<\"tenki.sandbox.v1.DeleteStorageConnectionRequest\"> & {\n  /**\n   * @generated from field: string connection_id = 1;\n   */\n  connectionId: string;\n\n  /**\n   * @generated from field: int64 expected_revision = 2;\n   */\n  expectedRevision: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteStorageConnectionRequest.\n * Use `create(DeleteStorageConnectionRequestSchema)` to create a new message.\n */\nexport const DeleteStorageConnectionRequestSchema: GenMessage<DeleteStorageConnectionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 22);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteStorageConnectionResponse\n */\nexport type DeleteStorageConnectionResponse = Message<\"tenki.sandbox.v1.DeleteStorageConnectionResponse\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteStorageConnectionResponse.\n * Use `create(DeleteStorageConnectionResponseSchema)` to create a new message.\n */\nexport const DeleteStorageConnectionResponseSchema: GenMessage<DeleteStorageConnectionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 23);\n\n/**\n * @generated from message tenki.sandbox.v1.ListStorageMountsRequest\n */\nexport type ListStorageMountsRequest = Message<\"tenki.sandbox.v1.ListStorageMountsRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListStorageMountsRequest.\n * Use `create(ListStorageMountsRequestSchema)` to create a new message.\n */\nexport const ListStorageMountsRequestSchema: GenMessage<ListStorageMountsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 24);\n\n/**\n * @generated from message tenki.sandbox.v1.ListStorageMountsResponse\n */\nexport type ListStorageMountsResponse = Message<\"tenki.sandbox.v1.ListStorageMountsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.StorageMount mounts = 1;\n   */\n  mounts: StorageMount[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListStorageMountsResponse.\n * Use `create(ListStorageMountsResponseSchema)` to create a new message.\n */\nexport const ListStorageMountsResponseSchema: GenMessage<ListStorageMountsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 25);\n\n/**\n * @generated from message tenki.sandbox.v1.AttachStorageMountRequest\n */\nexport type AttachStorageMountRequest = Message<\"tenki.sandbox.v1.AttachStorageMountRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageMountSpec mount = 2;\n   */\n  mount?: StorageMountSpec;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.AttachStorageMountRequest.\n * Use `create(AttachStorageMountRequestSchema)` to create a new message.\n */\nexport const AttachStorageMountRequestSchema: GenMessage<AttachStorageMountRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 26);\n\n/**\n * @generated from message tenki.sandbox.v1.AttachStorageMountResponse\n */\nexport type AttachStorageMountResponse = Message<\"tenki.sandbox.v1.AttachStorageMountResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StorageMount mount = 1;\n   */\n  mount?: StorageMount;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.AttachStorageMountResponse.\n * Use `create(AttachStorageMountResponseSchema)` to create a new message.\n */\nexport const AttachStorageMountResponseSchema: GenMessage<AttachStorageMountResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 27);\n\n/**\n * @generated from message tenki.sandbox.v1.DetachStorageMountRequest\n */\nexport type DetachStorageMountRequest = Message<\"tenki.sandbox.v1.DetachStorageMountRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string mount_id = 2;\n   */\n  mountId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DetachStorageMountRequest.\n * Use `create(DetachStorageMountRequestSchema)` to create a new message.\n */\nexport const DetachStorageMountRequestSchema: GenMessage<DetachStorageMountRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 28);\n\n/**\n * @generated from message tenki.sandbox.v1.DetachStorageMountResponse\n */\nexport type DetachStorageMountResponse = Message<\"tenki.sandbox.v1.DetachStorageMountResponse\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DetachStorageMountResponse.\n * Use `create(DetachStorageMountResponseSchema)` to create a new message.\n */\nexport const DetachStorageMountResponseSchema: GenMessage<DetachStorageMountResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 29);\n\n/**\n * @generated from message tenki.sandbox.v1.VolumeAttachment\n */\nexport type VolumeAttachment = Message<\"tenki.sandbox.v1.VolumeAttachment\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string volume_id = 2;\n   */\n  volumeId: string;\n\n  /**\n   * @generated from field: string session_id = 3;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string mount_path = 4;\n   */\n  mountPath: string;\n\n  /**\n   * @generated from field: bool readonly = 5;\n   */\n  readonly: boolean;\n\n  /**\n   * @generated from field: string state = 6;\n   */\n  state: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.VolumeAttachment.\n * Use `create(VolumeAttachmentSchema)` to create a new message.\n */\nexport const VolumeAttachmentSchema: GenMessage<VolumeAttachment> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 30);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSession\n */\nexport type SandboxSession = Message<\"tenki.sandbox.v1.SandboxSession\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionState state = 2;\n   */\n  state: SessionState;\n\n  /**\n   * SERVICE, USER, or workspace\n   *\n   * @generated from field: string owner_type = 3;\n   */\n  ownerType: string;\n\n  /**\n   * @generated from field: string owner_id = 4;\n   */\n  ownerId: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 5;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp ready_at = 6;\n   */\n  readyAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp terminated_at = 7;\n   */\n  terminatedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp timeout_at = 8;\n   */\n  timeoutAt?: Timestamp;\n\n  /**\n   * @generated from field: bool inbound_enabled = 9;\n   */\n  inboundEnabled: boolean;\n\n  /**\n   * @generated from field: bool outbound_enabled = 10;\n   */\n  outboundEnabled: boolean;\n\n  /**\n   * @generated from field: int32 cpu_cores = 11;\n   */\n  cpuCores: number;\n\n  /**\n   * @generated from field: int32 memory_mb = 12;\n   */\n  memoryMb: number;\n\n  /**\n   * @generated from field: map<string, string> metadata = 13;\n   */\n  metadata: { [key: string]: string };\n\n  /**\n   * @generated from field: string workspace_id = 14;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 15;\n   */\n  name: string;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.VolumeAttachment volume_attachments = 16;\n   */\n  volumeAttachments: VolumeAttachment[];\n\n  /**\n   * @generated from field: optional string snapshot_id = 17;\n   */\n  snapshotId?: string;\n\n  /**\n   * @generated from field: int32 disk_size_gb = 20;\n   */\n  diskSizeGb: number;\n\n  /**\n   * @generated from field: repeated string tags = 21;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: optional int32 idle_timeout_minutes = 22;\n   */\n  idleTimeoutMinutes?: number;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp last_activity_at = 23;\n   */\n  lastActivityAt?: Timestamp;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp paused_at = 24;\n   */\n  pausedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string pause_snapshot_id = 25;\n   */\n  pauseSnapshotId?: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Duration pause_retention = 26;\n   */\n  pauseRetention?: Duration;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.Snapshot pause_snapshot = 27;\n   */\n  pauseSnapshot?: Snapshot;\n\n  /**\n   * @generated from field: bool sticky = 28;\n   */\n  sticky: boolean;\n\n  /**\n   * @generated from field: string last_resume_error = 29;\n   */\n  lastResumeError: string;\n\n  /**\n   * @generated from field: optional string source_registry_image_id = 30;\n   */\n  sourceRegistryImageId?: string;\n\n  /**\n   * @generated from field: optional string source_snapshot_id = 31;\n   */\n  sourceSnapshotId?: string;\n\n  /**\n   * @generated from field: optional string source_registry_workspace_id = 32;\n   */\n  sourceRegistryWorkspaceId?: string;\n\n  /**\n   * @generated from field: optional string source_registry_ref = 33;\n   */\n  sourceRegistryRef?: string;\n\n  /**\n   * @generated from field: string terminal_error = 34;\n   */\n  terminalError: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp pause_expires_at = 35;\n   */\n  pauseExpiresAt?: Timestamp;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateRuntimeState runtime_state = 36;\n   */\n  runtimeState: TemplateRuntimeState;\n\n  /**\n   * @generated from field: optional string runtime_error = 37;\n   */\n  runtimeError?: string;\n\n  /**\n   * Typed template whose frozen spec was executed directly in this session.\n   *\n   * @generated from field: optional string source_template_id = 38;\n   */\n  sourceTemplateId?: string;\n\n  /**\n   * Echo of the requested egress allowlist. Absent means unrestricted.\n   *\n   * @generated from field: optional tenki.sandbox.v1.SessionEgressPolicy egress = 39;\n   */\n  egress?: SessionEgressPolicy;\n\n  /**\n   * Access requires current workspace-edit permission, including for the creator.\n   *\n   * @generated from field: bool has_runtime_secrets = 40;\n   */\n  hasRuntimeSecrets: boolean;\n\n  /**\n   * User snapshots of this sandbox; set by ListWorkspaceSandboxes.\n   *\n   * @generated from field: int64 snapshot_count = 41;\n   */\n  snapshotCount: bigint;\n\n  /**\n   * @generated from field: int64 snapshot_storage_bytes = 42;\n   */\n  snapshotStorageBytes: bigint;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetStatus tailnet_status = 43;\n   */\n  tailnetStatus?: TailnetStatus;\n\n  /**\n   * Named egress policies pinned at create; egress holds their merged expansion.\n   * Set by GetSession, WaitSession and UpdateSession; ListSessions leaves it\n   * empty, as it does volume attachments and the pause snapshot.\n   *\n   * @generated from field: repeated string egress_policies = 44;\n   */\n  egressPolicies: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSession.\n * Use `create(SandboxSessionSchema)` to create a new message.\n */\nexport const SandboxSessionSchema: GenMessage<SandboxSession> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 31);\n\n/**\n * @generated from message tenki.sandbox.v1.Snapshot\n */\nexport type Snapshot = Message<\"tenki.sandbox.v1.Snapshot\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string session_id = 2;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 3;\n   */\n  workspaceId?: string;\n\n  /**\n   * @generated from field: optional string name = 4;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SnapshotState state = 5;\n   */\n  state: SnapshotState;\n\n  /**\n   * @generated from field: int64 size_bytes = 6;\n   */\n  sizeBytes: bigint;\n\n  /**\n   * @generated from field: int64 compressed_bytes = 7;\n   */\n  compressedBytes: bigint;\n\n  /**\n   * @generated from field: string base_image_id = 8;\n   */\n  baseImageId: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 9;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 10;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: int64 memory_bytes = 11;\n   */\n  memoryBytes: bigint;\n\n  /**\n   * @generated from field: repeated string tags = 13;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SnapshotType type = 14;\n   */\n  type: SnapshotType;\n\n  /**\n   * @generated from field: optional string state_uri = 15;\n   */\n  stateUri?: string;\n\n  /**\n   * @generated from field: optional string config_uri = 16;\n   */\n  configUri?: string;\n\n  /**\n   * @generated from field: int32 cpu_cores = 17;\n   */\n  cpuCores: number;\n\n  /**\n   * @generated from field: int32 memory_mb = 18;\n   */\n  memoryMb: number;\n\n  /**\n   * @generated from field: int32 disk_size_gb = 19;\n   */\n  diskSizeGb: number;\n\n  /**\n   * @generated from field: string failure_reason = 20;\n   */\n  failureReason: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp local_ready_at = 21;\n   */\n  localReadyAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string local_ready_host_id = 22;\n   */\n  localReadyHostId?: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp r2_uploaded_at = 23;\n   */\n  r2UploadedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp nfs_uploaded_at = 24;\n   */\n  nfsUploadedAt?: Timestamp;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SnapshotDurabilityState durability_state = 25;\n   */\n  durabilityState: SnapshotDurabilityState;\n\n  /**\n   * @generated from field: string propagation_error = 26;\n   */\n  propagationError: string;\n\n  /**\n   * @generated from field: bool raw_image_available = 27;\n   */\n  rawImageAvailable: boolean;\n\n  /**\n   * @generated from field: string cpu_profile = 28;\n   */\n  cpuProfile: string;\n\n  /**\n   * ceph_ready_at is when the snapshot reached DURABLE_CEPH (cluster-durable\n   * in Ceph). Set independently of r2_uploaded_at.\n   *\n   * @generated from field: optional google.protobuf.Timestamp ceph_ready_at = 29;\n   */\n  cephReadyAt?: Timestamp;\n\n  /**\n   * rbd_rootfs_image is the durable, standalone RBD image holding this\n   * snapshot's rootfs (\"snap-<snapshot_id>\"). Empty for file-backed snapshots.\n   * Non-empty marks the snapshot RBD-backed. Placement requires an RBD-capable\n   * host until the R2 rootfs object is known to be a full bootable rootfs.\n   *\n   * @generated from field: string rbd_rootfs_image = 30;\n   */\n  rbdRootfsImage: string;\n\n  /**\n   * restore_mode controls how a snapshot is launched. MEMORY restores the full\n   * CH memory/state/config snapshot. COLD_BOOT boots only the rootfs disk.\n   *\n   * @generated from field: string restore_mode = 31;\n   */\n  restoreMode: string;\n\n  /**\n   * balance_paused_at marks the snapshot as on billing hold: set when the\n   * workspace balance hit zero. On-hold snapshots stop accruing storage\n   * charges, cannot be restored or launch sessions, and are deleted once the\n   * stamped expires_at passes without the balance recovering.\n   *\n   * @generated from field: optional google.protobuf.Timestamp balance_paused_at = 32;\n   */\n  balancePausedAt?: Timestamp;\n\n  /**\n   * @generated from field: bool has_runtime_secrets = 33;\n   */\n  hasRuntimeSecrets: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.Snapshot.\n * Use `create(SnapshotSchema)` to create a new message.\n */\nexport const SnapshotSchema: GenMessage<Snapshot> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 32);\n\n/**\n * @generated from message tenki.sandbox.v1.WorkspaceSandboxUsageLimit\n */\nexport type WorkspaceSandboxUsageLimit = Message<\"tenki.sandbox.v1.WorkspaceSandboxUsageLimit\"> & {\n  /**\n   * @generated from field: string key = 1;\n   */\n  key: string;\n\n  /**\n   * @generated from field: string label = 2;\n   */\n  label: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxUsageUnit unit = 3;\n   */\n  unit: SandboxUsageUnit;\n\n  /**\n   * @generated from field: int64 current = 4;\n   */\n  current: bigint;\n\n  /**\n   * @generated from field: optional int64 max = 5;\n   */\n  max?: bigint;\n\n  /**\n   * @generated from field: string help_text = 6;\n   */\n  helpText: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WorkspaceSandboxUsageLimit.\n * Use `create(WorkspaceSandboxUsageLimitSchema)` to create a new message.\n */\nexport const WorkspaceSandboxUsageLimitSchema: GenMessage<WorkspaceSandboxUsageLimit> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 33);\n\n/**\n * @generated from message tenki.sandbox.v1.PreviewUrl\n */\nexport type PreviewUrl = Message<\"tenki.sandbox.v1.PreviewUrl\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 3;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string owner_id = 4;\n   */\n  ownerId: string;\n\n  /**\n   * @generated from field: string slug = 5;\n   */\n  slug: string;\n\n  /**\n   * @generated from field: string token = 6;\n   */\n  token: string;\n\n  /**\n   * @generated from field: string preview_url = 7;\n   */\n  previewUrl: string;\n\n  /**\n   * @generated from field: optional string session_id = 8;\n   */\n  sessionId?: string;\n\n  /**\n   * @generated from field: optional int32 port = 9;\n   */\n  port?: number;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 10;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 11;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp last_accessed_at = 12;\n   */\n  lastAccessedAt?: Timestamp;\n\n  /**\n   * Whether this preview URL uses the workspace wildcard domain scheme.\n   *\n   * @generated from field: optional bool wildcard = 13;\n   */\n  wildcard?: boolean;\n\n  /**\n   * Readiness of the backing workspace wildcard domain (see WildcardStatus).\n   *\n   * @generated from field: optional tenki.sandbox.v1.WildcardStatus wildcard_status = 14;\n   */\n  wildcardStatus?: WildcardStatus;\n\n  /**\n   * Human-readable reason accompanying a FAILED wildcard_status.\n   *\n   * @generated from field: optional string wildcard_status_reason = 15;\n   */\n  wildcardStatusReason?: string;\n\n  /**\n   * Absolute deadline after which the URL stops serving; unset means no expiry.\n   *\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 16;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * The bound sandbox, so a row needs no session lookup.\n   *\n   * @generated from field: optional tenki.sandbox.v1.SessionState session_state = 17;\n   */\n  sessionState?: SessionState;\n\n  /**\n   * @generated from field: optional string session_name = 18;\n   */\n  sessionName?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PreviewUrl.\n * Use `create(PreviewUrlSchema)` to create a new message.\n */\nexport const PreviewUrlSchema: GenMessage<PreviewUrl> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 34);\n\n/**\n * @generated from message tenki.sandbox.v1.CommandExecution\n */\nexport type CommandExecution = Message<\"tenki.sandbox.v1.CommandExecution\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string session_id = 2;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string command = 3;\n   */\n  command: string;\n\n  /**\n   * @generated from field: repeated string args = 4;\n   */\n  args: string[];\n\n  /**\n   * @generated from field: tenki.sandbox.v1.CommandStatus status = 5;\n   */\n  status: CommandStatus;\n\n  /**\n   * @generated from field: int32 exit_code = 6;\n   */\n  exitCode: number;\n\n  /**\n   * @generated from field: int64 duration_ms = 7;\n   */\n  durationMs: bigint;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp started_at = 8;\n   */\n  startedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp ended_at = 9;\n   */\n  endedAt?: Timestamp;\n\n  /**\n   * @generated from field: string stdout_artifact_id = 10;\n   */\n  stdoutArtifactId: string;\n\n  /**\n   * @generated from field: string stderr_artifact_id = 11;\n   */\n  stderrArtifactId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CommandExecution.\n * Use `create(CommandExecutionSchema)` to create a new message.\n */\nexport const CommandExecutionSchema: GenMessage<CommandExecution> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 35);\n\n/**\n * @generated from message tenki.sandbox.v1.SessionEgressPolicy\n */\nexport type SessionEgressPolicy = Message<\"tenki.sandbox.v1.SessionEgressPolicy\"> & {\n  /**\n   * Exact names, single-label \"*.example.com\" wildcards, or multi-label\n   * \"**.example.com\" wildcards. Wildcards never match the bare parent.\n   *\n   * @generated from field: repeated string allow_domains = 1;\n   */\n  allowDomains: string[];\n\n  /**\n   * IPv4 prefixes reachable without a name lookup.\n   *\n   * @generated from field: repeated string allow_cidrs = 2;\n   */\n  allowCidrs: string[];\n\n  /**\n   * Terminate port-443 TLS with the session's managed CA so each request's\n   * Host is checked. Requires at least one allow_domains entry.\n   *\n   * @generated from field: bool intercept_https = 3;\n   */\n  interceptHttps: boolean;\n\n  /**\n   * Requires intercept_https. Each HTTP request on ports 80 and 443 must match\n   * one rule or it is refused with 403. Empty allows every request.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.SessionEgressHttpRule http_rules = 4;\n   */\n  httpRules: SessionEgressHttpRule[];\n\n  /**\n   * Additional public TCP ports without HTTP inspection. Requires intercept_https.\n   *\n   * @generated from field: repeated uint32 allowed_ports = 5;\n   */\n  allowedPorts: number[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SessionEgressPolicy.\n * Use `create(SessionEgressPolicySchema)` to create a new message.\n */\nexport const SessionEgressPolicySchema: GenMessage<SessionEgressPolicy> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 36);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateSessionRequest\n */\nexport type CreateSessionRequest = Message<\"tenki.sandbox.v1.CreateSessionRequest\"> & {\n  /**\n   * @generated from field: repeated string secret_policies = 40;\n   */\n  secretPolicies: string[];\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RuntimeSecretFile secret_files = 37;\n   */\n  secretFiles: RuntimeSecretFile[];\n\n  /**\n   * @generated from field: string owner_id = 1;\n   */\n  ownerId: string;\n\n  /**\n   * @generated from field: string owner_type = 2;\n   */\n  ownerType: string;\n\n  /**\n   * @generated from field: optional bool allow_inbound = 3;\n   */\n  allowInbound?: boolean;\n\n  /**\n   * @generated from field: optional bool allow_outbound = 4;\n   */\n  allowOutbound?: boolean;\n\n  /**\n   * @generated from field: google.protobuf.Duration max_duration = 5;\n   */\n  maxDuration?: Duration;\n\n  /**\n   * @generated from field: optional int32 cpu_cores = 6;\n   */\n  cpuCores?: number;\n\n  /**\n   * @generated from field: optional int32 memory_mb = 7;\n   */\n  memoryMb?: number;\n\n  /**\n   * @generated from field: map<string, string> metadata = 8;\n   */\n  metadata: { [key: string]: string };\n\n  /**\n   * @generated from field: map<string, string> env = 9;\n   */\n  env: { [key: string]: string };\n\n  /**\n   * @generated from field: bool enable_opencode = 10;\n   */\n  enableOpencode: boolean;\n\n  /**\n   * @generated from field: string clone_repo_url = 11;\n   */\n  cloneRepoUrl: string;\n\n  /**\n   * @generated from field: repeated string ssh_authorized_keys = 12;\n   */\n  sshAuthorizedKeys: string[];\n\n  /**\n   * @generated from field: string name = 13;\n   */\n  name: string;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.VolumeMount volumes = 14;\n   */\n  volumes: VolumeMount[];\n\n  /**\n   * @generated from field: optional string snapshot_id = 15;\n   */\n  snapshotId?: string;\n\n  /**\n   * @generated from field: optional string registry_ref = 18;\n   */\n  registryRef?: string;\n\n  /**\n   * Optional workspace scope. When set, the session is associated with this\n   * workspace and appears in ListWorkspaceSandboxes. Required for volume\n   * attachments when the caller is a USER (not a WORKSPACE service account).\n   *\n   * @generated from field: optional string workspace_id = 19;\n   */\n  workspaceId?: string;\n\n  /**\n   * @generated from field: optional int32 disk_size_gb = 21;\n   */\n  diskSizeGb?: number;\n\n  /**\n   * @generated from field: repeated string tags = 22;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: optional int32 idle_timeout_minutes = 23;\n   */\n  idleTimeoutMinutes?: number;\n\n  /**\n   * @generated from field: optional google.protobuf.Duration pause_retention = 24;\n   */\n  pauseRetention?: Duration;\n\n  /**\n   * @generated from field: bool sticky = 25;\n   */\n  sticky: boolean;\n\n  /**\n   * Hold the response until the session is RUNNING or terminal (server-bounded wait) with data-plane fields primed;\n   * on expiry the session returns in its current state and clients fall back to WaitSession.\n   *\n   * @generated from field: bool wait_ready = 26;\n   */\n  waitReady: boolean;\n\n  /**\n   * Hold the response until a boot runtime is READY or FAILED. Runtime failure\n   * does not fail or terminate the core sandbox session.\n   *\n   * @generated from field: bool wait_for_runtime = 27;\n   */\n  waitForRuntime: boolean;\n\n  /**\n   * Execute the current typed template spec directly in the new session.\n   * This never selects a template build or publishes an image.\n   *\n   * @generated from field: optional string template_spec_id = 28;\n   */\n  templateSpecId?: string;\n\n  /**\n   * Non-secret request-scoped environment for template setup steps.\n   *\n   * @generated from field: map<string, string> setup_env = 29;\n   */\n  setupEnv: { [key: string]: string };\n\n  /**\n   * Secret request-scoped environment for checkout/setup only. Values are\n   * encrypted before workflow dispatch and never enter Temporal history.\n   *\n   * @generated from field: map<string, string> setup_secrets = 30;\n   */\n  setupSecrets: { [key: string]: string };\n\n  /**\n   * Internal rollout control. Only full-service identities may enable it.\n   *\n   * @generated from field: optional bool nested_virtualization = 31;\n   */\n  nestedVirtualization?: boolean;\n\n  /**\n   * Capacity pool to place onto (\"standard\" or \"fast\"). Only full-service\n   * identities may set it; everyone else is placed as standard.\n   *\n   * @generated from field: optional string tier = 32;\n   */\n  tier?: string;\n\n  /**\n   * Egress allowlist for this session. Absent means unrestricted;\n   * allow_outbound = false blocks all egress regardless of this field.\n   *\n   * @generated from field: optional tenki.sandbox.v1.SessionEgressPolicy egress = 33;\n   */\n  egress?: SessionEgressPolicy;\n\n  /**\n   * Managed runtime for direct creation; cannot replace a template runtime.\n   *\n   * @generated from field: tenki.sandbox.v1.TemplateRuntime runtime = 34;\n   */\n  runtime?: TemplateRuntime;\n\n  /**\n   * Declared secret name to replacement name within the launching workspace.\n   *\n   * @generated from field: map<string, string> secret_overrides = 35;\n   */\n  secretOverrides: { [key: string]: string };\n\n  /**\n   * Operating system the session's VM must boot (\"linux\" or \"macos\"). Empty\n   * means linux, so every caller that predates this field keeps the behaviour\n   * it always had. Only platform services may set it; a customer session is\n   * always placed on the default platform.\n   *\n   * It is a hard placement filter rather than a preference. The base image name\n   * does not change with it; each host maps that name to an image of its own\n   * platform.\n   *\n   * @generated from field: optional string platform = 38;\n   */\n  platform?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetAttachment tailnet = 39;\n   */\n  tailnet?: TailnetAttachment;\n\n  /**\n   * @generated from field: bool disable_tailnet = 42;\n   */\n  disableTailnet: boolean;\n\n  /**\n   * Workspace egress policy names merged with egress at create. Later edits\n   * or deletes of a named policy do not change the session.\n   *\n   * @generated from field: repeated string egress_policies = 41;\n   */\n  egressPolicies: string[];\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.StorageMountSpec storage_mounts = 43;\n   */\n  storageMounts: StorageMountSpec[];\n\n  /**\n   * Skips the workspace's default storage mounts.\n   *\n   * @generated from field: bool disable_storage_defaults = 44;\n   */\n  disableStorageDefaults: boolean;\n\n  /**\n   * Workspace default mounts to leave out of this session.\n   *\n   * @generated from field: repeated string excluded_default_mount_ids = 45;\n   */\n  excludedDefaultMountIds: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateSessionRequest.\n * Use `create(CreateSessionRequestSchema)` to create a new message.\n */\nexport const CreateSessionRequestSchema: GenMessage<CreateSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 37);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateSessionResponse\n */\nexport type CreateSessionResponse = Message<\"tenki.sandbox.v1.CreateSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n\n  /**\n   * @generated from field: string data_plane_endpoint = 2;\n   */\n  dataPlaneEndpoint: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionCredential credential = 3;\n   */\n  credential?: SessionCredential;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.DataPlaneRouteStatus route_status = 4;\n   */\n  routeStatus: DataPlaneRouteStatus;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.SandboxWarning warnings = 5;\n   */\n  warnings: SandboxWarning[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateSessionResponse.\n * Use `create(CreateSessionResponseSchema)` to create a new message.\n */\nexport const CreateSessionResponseSchema: GenMessage<CreateSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 38);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateRuntimeFailure\n */\nexport type TemplateRuntimeFailure = Message<\"tenki.sandbox.v1.TemplateRuntimeFailure\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n\n  /**\n   * @generated from field: string reason = 2;\n   */\n  reason: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateRuntimeFailure.\n * Use `create(TemplateRuntimeFailureSchema)` to create a new message.\n */\nexport const TemplateRuntimeFailureSchema: GenMessage<TemplateRuntimeFailure> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 39);\n\n/**\n * @generated from message tenki.sandbox.v1.SessionCredential\n */\nexport type SessionCredential = Message<\"tenki.sandbox.v1.SessionCredential\"> & {\n  /**\n   * @generated from field: string credential = 1;\n   */\n  credential: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp expires_at = 2;\n   */\n  expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SessionCredential.\n * Use `create(SessionCredentialSchema)` to create a new message.\n */\nexport const SessionCredentialSchema: GenMessage<SessionCredential> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 40);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateSessionCredentialRequest\n */\nexport type CreateSessionCredentialRequest = Message<\"tenki.sandbox.v1.CreateSessionCredentialRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateSessionCredentialRequest.\n * Use `create(CreateSessionCredentialRequestSchema)` to create a new message.\n */\nexport const CreateSessionCredentialRequestSchema: GenMessage<CreateSessionCredentialRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 41);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateSessionCredentialResponse\n */\nexport type CreateSessionCredentialResponse = Message<\"tenki.sandbox.v1.CreateSessionCredentialResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionCredential credential = 1;\n   */\n  credential?: SessionCredential;\n\n  /**\n   * SDK refreshes endpoint post-provision; CreateSessionResponse returns it empty pre-HostID.\n   *\n   * @generated from field: string data_plane_endpoint = 2;\n   */\n  dataPlaneEndpoint: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.DataPlaneRouteStatus route_status = 3;\n   */\n  routeStatus: DataPlaneRouteStatus;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateSessionCredentialResponse.\n * Use `create(CreateSessionCredentialResponseSchema)` to create a new message.\n */\nexport const CreateSessionCredentialResponseSchema: GenMessage<CreateSessionCredentialResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 42);\n\n/**\n * WorkspacePreviewDomain is one (workspace, region) wildcard domain: the unit\n * of certificate issuance and readiness for wildcard preview URLs.\n *\n * @generated from message tenki.sandbox.v1.WorkspacePreviewDomain\n */\nexport type WorkspacePreviewDomain = Message<\"tenki.sandbox.v1.WorkspacePreviewDomain\"> & {\n  /**\n   * @generated from field: string region = 1;\n   */\n  region: string;\n\n  /**\n   * Base domain for the workspace's previews in this region, e.g.\n   * \"<ws-slug>.us.sb.tenki.sh\". The certificate covers \"*.<hostname>\".\n   *\n   * @generated from field: string hostname = 2;\n   */\n  hostname: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.WildcardStatus status = 3;\n   */\n  status: WildcardStatus;\n\n  /**\n   * @generated from field: optional string status_reason = 4;\n   */\n  statusReason?: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp ready_at = 5;\n   */\n  readyAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WorkspacePreviewDomain.\n * Use `create(WorkspacePreviewDomainSchema)` to create a new message.\n */\nexport const WorkspacePreviewDomainSchema: GenMessage<WorkspacePreviewDomain> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 43);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRunRequest\n */\nexport type SandboxSessionDataPlaneServiceRunRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceRunRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RunRequest frame = 1;\n   */\n  frame?: RunRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRunRequest.\n * Use `create(SandboxSessionDataPlaneServiceRunRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceRunRequestSchema: GenMessage<SandboxSessionDataPlaneServiceRunRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 44);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRunResponse\n */\nexport type SandboxSessionDataPlaneServiceRunResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceRunResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RunResponse frame = 1;\n   */\n  frame?: RunResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRunResponse.\n * Use `create(SandboxSessionDataPlaneServiceRunResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceRunResponseSchema: GenMessage<SandboxSessionDataPlaneServiceRunResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 45);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceDialRequest\n */\nexport type SandboxSessionDataPlaneServiceDialRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceDialRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.DialRequest frame = 1;\n   */\n  frame?: DialRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceDialRequest.\n * Use `create(SandboxSessionDataPlaneServiceDialRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceDialRequestSchema: GenMessage<SandboxSessionDataPlaneServiceDialRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 46);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceDialResponse\n */\nexport type SandboxSessionDataPlaneServiceDialResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceDialResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.DialResponse frame = 1;\n   */\n  frame?: DialResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceDialResponse.\n * Use `create(SandboxSessionDataPlaneServiceDialResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceDialResponseSchema: GenMessage<SandboxSessionDataPlaneServiceDialResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 47);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceHostPortTunnelRequest\n */\nexport type SandboxSessionDataPlaneServiceHostPortTunnelRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceHostPortTunnelRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.HostPortTunnelRequest frame = 1;\n   */\n  frame?: HostPortTunnelRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceHostPortTunnelRequest.\n * Use `create(SandboxSessionDataPlaneServiceHostPortTunnelRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceHostPortTunnelRequestSchema: GenMessage<SandboxSessionDataPlaneServiceHostPortTunnelRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 48);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceHostPortTunnelResponse\n */\nexport type SandboxSessionDataPlaneServiceHostPortTunnelResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceHostPortTunnelResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.HostPortTunnelResponse frame = 1;\n   */\n  frame?: HostPortTunnelResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceHostPortTunnelResponse.\n * Use `create(SandboxSessionDataPlaneServiceHostPortTunnelResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceHostPortTunnelResponseSchema: GenMessage<SandboxSessionDataPlaneServiceHostPortTunnelResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 49);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileRequest\n */\nexport type SandboxSessionDataPlaneServiceReadFileRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.ReadFileRequest request = 1;\n   */\n  request?: ReadFileRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileRequest.\n * Use `create(SandboxSessionDataPlaneServiceReadFileRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceReadFileRequestSchema: GenMessage<SandboxSessionDataPlaneServiceReadFileRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 50);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileResponse\n */\nexport type SandboxSessionDataPlaneServiceReadFileResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.ReadFileResponse response = 1;\n   */\n  response?: ReadFileResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileResponse.\n * Use `create(SandboxSessionDataPlaneServiceReadFileResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceReadFileResponseSchema: GenMessage<SandboxSessionDataPlaneServiceReadFileResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 51);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileRequest\n */\nexport type SandboxSessionDataPlaneServiceWriteFileRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.WriteFileRequest request = 1;\n   */\n  request?: WriteFileRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileRequest.\n * Use `create(SandboxSessionDataPlaneServiceWriteFileRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceWriteFileRequestSchema: GenMessage<SandboxSessionDataPlaneServiceWriteFileRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 52);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileResponse\n */\nexport type SandboxSessionDataPlaneServiceWriteFileResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.WriteFileResponse response = 1;\n   */\n  response?: WriteFileResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileResponse.\n * Use `create(SandboxSessionDataPlaneServiceWriteFileResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceWriteFileResponseSchema: GenMessage<SandboxSessionDataPlaneServiceWriteFileResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 53);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileStreamRequest\n */\nexport type SandboxSessionDataPlaneServiceReadFileStreamRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileStreamRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.ReadFileStreamRequest request = 1;\n   */\n  request?: ReadFileStreamRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileStreamRequest.\n * Use `create(SandboxSessionDataPlaneServiceReadFileStreamRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceReadFileStreamRequestSchema: GenMessage<SandboxSessionDataPlaneServiceReadFileStreamRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 54);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileStreamResponse\n */\nexport type SandboxSessionDataPlaneServiceReadFileStreamResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileStreamResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.ReadFileStreamResponse response = 1;\n   */\n  response?: ReadFileStreamResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceReadFileStreamResponse.\n * Use `create(SandboxSessionDataPlaneServiceReadFileStreamResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceReadFileStreamResponseSchema: GenMessage<SandboxSessionDataPlaneServiceReadFileStreamResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 55);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileStreamRequest\n */\nexport type SandboxSessionDataPlaneServiceWriteFileStreamRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileStreamRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.WriteFileStreamRequest frame = 1;\n   */\n  frame?: WriteFileStreamRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileStreamRequest.\n * Use `create(SandboxSessionDataPlaneServiceWriteFileStreamRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceWriteFileStreamRequestSchema: GenMessage<SandboxSessionDataPlaneServiceWriteFileStreamRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 56);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileStreamResponse\n */\nexport type SandboxSessionDataPlaneServiceWriteFileStreamResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileStreamResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.WriteFileStreamResponse response = 1;\n   */\n  response?: WriteFileStreamResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceWriteFileStreamResponse.\n * Use `create(SandboxSessionDataPlaneServiceWriteFileStreamResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceWriteFileStreamResponseSchema: GenMessage<SandboxSessionDataPlaneServiceWriteFileStreamResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 57);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceStatRequest\n */\nexport type SandboxSessionDataPlaneServiceStatRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceStatRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StatRequest request = 1;\n   */\n  request?: StatRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceStatRequest.\n * Use `create(SandboxSessionDataPlaneServiceStatRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceStatRequestSchema: GenMessage<SandboxSessionDataPlaneServiceStatRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 58);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceStatResponse\n */\nexport type SandboxSessionDataPlaneServiceStatResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceStatResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.StatResponse response = 1;\n   */\n  response?: StatResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceStatResponse.\n * Use `create(SandboxSessionDataPlaneServiceStatResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceStatResponseSchema: GenMessage<SandboxSessionDataPlaneServiceStatResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 59);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceMkdirRequest\n */\nexport type SandboxSessionDataPlaneServiceMkdirRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceMkdirRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.MkdirRequest request = 1;\n   */\n  request?: MkdirRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceMkdirRequest.\n * Use `create(SandboxSessionDataPlaneServiceMkdirRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceMkdirRequestSchema: GenMessage<SandboxSessionDataPlaneServiceMkdirRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 60);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceMkdirResponse\n */\nexport type SandboxSessionDataPlaneServiceMkdirResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceMkdirResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.MkdirResponse response = 1;\n   */\n  response?: MkdirResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceMkdirResponse.\n * Use `create(SandboxSessionDataPlaneServiceMkdirResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceMkdirResponseSchema: GenMessage<SandboxSessionDataPlaneServiceMkdirResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 61);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRemoveRequest\n */\nexport type SandboxSessionDataPlaneServiceRemoveRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceRemoveRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RemoveRequest request = 1;\n   */\n  request?: RemoveRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRemoveRequest.\n * Use `create(SandboxSessionDataPlaneServiceRemoveRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceRemoveRequestSchema: GenMessage<SandboxSessionDataPlaneServiceRemoveRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 62);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRemoveResponse\n */\nexport type SandboxSessionDataPlaneServiceRemoveResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceRemoveResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RemoveResponse response = 1;\n   */\n  response?: RemoveResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceRemoveResponse.\n * Use `create(SandboxSessionDataPlaneServiceRemoveResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceRemoveResponseSchema: GenMessage<SandboxSessionDataPlaneServiceRemoveResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 63);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceListRequest\n */\nexport type SandboxSessionDataPlaneServiceListRequest = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceListRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.ListRequest request = 1;\n   */\n  request?: ListRequest;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceListRequest.\n * Use `create(SandboxSessionDataPlaneServiceListRequestSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceListRequestSchema: GenMessage<SandboxSessionDataPlaneServiceListRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 64);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSessionDataPlaneServiceListResponse\n */\nexport type SandboxSessionDataPlaneServiceListResponse = Message<\"tenki.sandbox.v1.SandboxSessionDataPlaneServiceListResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.ListResponse response = 1;\n   */\n  response?: ListResponse;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSessionDataPlaneServiceListResponse.\n * Use `create(SandboxSessionDataPlaneServiceListResponseSchema)` to create a new message.\n */\nexport const SandboxSessionDataPlaneServiceListResponseSchema: GenMessage<SandboxSessionDataPlaneServiceListResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 65);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSessionRequest\n */\nexport type GetSessionRequest = Message<\"tenki.sandbox.v1.GetSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSessionRequest.\n * Use `create(GetSessionRequestSchema)` to create a new message.\n */\nexport const GetSessionRequestSchema: GenMessage<GetSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 66);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSessionResponse\n */\nexport type GetSessionResponse = Message<\"tenki.sandbox.v1.GetSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSessionResponse.\n * Use `create(GetSessionResponseSchema)` to create a new message.\n */\nexport const GetSessionResponseSchema: GenMessage<GetSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 67);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSessionMetricsRequest\n */\nexport type GetSessionMetricsRequest = Message<\"tenki.sandbox.v1.GetSessionMetricsRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: google.protobuf.Duration window = 2;\n   */\n  window?: Duration;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSessionMetricsRequest.\n * Use `create(GetSessionMetricsRequestSchema)` to create a new message.\n */\nexport const GetSessionMetricsRequestSchema: GenMessage<GetSessionMetricsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 68);\n\n/**\n * @generated from message tenki.sandbox.v1.SessionCPUUsageAverage\n */\nexport type SessionCPUUsageAverage = Message<\"tenki.sandbox.v1.SessionCPUUsageAverage\"> & {\n  /**\n   * @generated from field: optional double average_cores = 1;\n   */\n  averageCores?: number;\n\n  /**\n   * @generated from field: optional double average_percent = 2;\n   */\n  averagePercent?: number;\n\n  /**\n   * @generated from field: double limit_cores = 3;\n   */\n  limitCores: number;\n\n  /**\n   * @generated from field: uint64 sample_count = 4;\n   */\n  sampleCount: bigint;\n\n  /**\n   * @generated from field: google.protobuf.Duration observed_duration = 5;\n   */\n  observedDuration?: Duration;\n\n  /**\n   * @generated from field: double coverage_percent = 6;\n   */\n  coveragePercent: number;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp first_sample_at = 7;\n   */\n  firstSampleAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp last_sample_at = 8;\n   */\n  lastSampleAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SessionCPUUsageAverage.\n * Use `create(SessionCPUUsageAverageSchema)` to create a new message.\n */\nexport const SessionCPUUsageAverageSchema: GenMessage<SessionCPUUsageAverage> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 69);\n\n/**\n * @generated from message tenki.sandbox.v1.SessionMemoryUsageAverage\n */\nexport type SessionMemoryUsageAverage = Message<\"tenki.sandbox.v1.SessionMemoryUsageAverage\"> & {\n  /**\n   * @generated from field: optional double average_bytes = 1;\n   */\n  averageBytes?: number;\n\n  /**\n   * @generated from field: optional double average_percent = 2;\n   */\n  averagePercent?: number;\n\n  /**\n   * @generated from field: uint64 limit_bytes = 3;\n   */\n  limitBytes: bigint;\n\n  /**\n   * @generated from field: uint64 sample_count = 4;\n   */\n  sampleCount: bigint;\n\n  /**\n   * @generated from field: google.protobuf.Duration observed_duration = 5;\n   */\n  observedDuration?: Duration;\n\n  /**\n   * @generated from field: double coverage_percent = 6;\n   */\n  coveragePercent: number;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp first_sample_at = 7;\n   */\n  firstSampleAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp last_sample_at = 8;\n   */\n  lastSampleAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SessionMemoryUsageAverage.\n * Use `create(SessionMemoryUsageAverageSchema)` to create a new message.\n */\nexport const SessionMemoryUsageAverageSchema: GenMessage<SessionMemoryUsageAverage> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 70);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSessionMetricsResponse\n */\nexport type GetSessionMetricsResponse = Message<\"tenki.sandbox.v1.GetSessionMetricsResponse\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: google.protobuf.Duration requested_window = 2;\n   */\n  requestedWindow?: Duration;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp window_start = 3;\n   */\n  windowStart?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp window_end = 4;\n   */\n  windowEnd?: Timestamp;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionCPUUsageAverage cpu = 5;\n   */\n  cpu?: SessionCPUUsageAverage;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionMemoryUsageAverage memory = 6;\n   */\n  memory?: SessionMemoryUsageAverage;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSessionMetricsResponse.\n * Use `create(GetSessionMetricsResponseSchema)` to create a new message.\n */\nexport const GetSessionMetricsResponseSchema: GenMessage<GetSessionMetricsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 71);\n\n/**\n * @generated from message tenki.sandbox.v1.WaitSessionRequest\n */\nexport type WaitSessionRequest = Message<\"tenki.sandbox.v1.WaitSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WaitSessionRequest.\n * Use `create(WaitSessionRequestSchema)` to create a new message.\n */\nexport const WaitSessionRequestSchema: GenMessage<WaitSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 72);\n\n/**\n * @generated from message tenki.sandbox.v1.WaitSessionResponse\n */\nexport type WaitSessionResponse = Message<\"tenki.sandbox.v1.WaitSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n\n  /**\n   * @generated from field: string data_plane_endpoint = 2;\n   */\n  dataPlaneEndpoint: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionCredential credential = 3;\n   */\n  credential?: SessionCredential;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.DataPlaneRouteStatus route_status = 4;\n   */\n  routeStatus: DataPlaneRouteStatus;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WaitSessionResponse.\n * Use `create(WaitSessionResponseSchema)` to create a new message.\n */\nexport const WaitSessionResponseSchema: GenMessage<WaitSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 73);\n\n/**\n * @generated from message tenki.sandbox.v1.ListSessionsRequest\n */\nexport type ListSessionsRequest = Message<\"tenki.sandbox.v1.ListSessionsRequest\"> & {\n  /**\n   * @generated from field: string owner_id = 1;\n   */\n  ownerId: string;\n\n  /**\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n\n  /**\n   * @generated from field: bool include_terminated = 4;\n   */\n  includeTerminated: boolean;\n\n  /**\n   * @generated from field: repeated string tags = 5;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: optional bool sticky = 6;\n   */\n  sticky?: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListSessionsRequest.\n * Use `create(ListSessionsRequestSchema)` to create a new message.\n */\nexport const ListSessionsRequestSchema: GenMessage<ListSessionsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 74);\n\n/**\n * @generated from message tenki.sandbox.v1.ListSessionsResponse\n */\nexport type ListSessionsResponse = Message<\"tenki.sandbox.v1.ListSessionsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.SandboxSession sessions = 1;\n   */\n  sessions: SandboxSession[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListSessionsResponse.\n * Use `create(ListSessionsResponseSchema)` to create a new message.\n */\nexport const ListSessionsResponseSchema: GenMessage<ListSessionsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 75);\n\n/**\n * @generated from message tenki.sandbox.v1.ListWorkspaceSandboxesRequest\n */\nexport type ListWorkspaceSandboxesRequest = Message<\"tenki.sandbox.v1.ListWorkspaceSandboxesRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n\n  /**\n   * @generated from field: bool include_terminated = 4;\n   */\n  includeTerminated: boolean;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionState state = 5;\n   */\n  state: SessionState;\n\n  /**\n   * @generated from field: repeated string tags = 6;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: optional bool sticky = 7;\n   */\n  sticky?: boolean;\n\n  /**\n   * Matches name, id, snapshot names and ids, and published image refs.\n   *\n   * @generated from field: string search = 8;\n   */\n  search: string;\n\n  /**\n   * Any of these; empty means no filter. Combines with `state`.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.SessionState states = 9;\n   */\n  states: SessionState[];\n\n  /**\n   * @generated from field: optional int32 min_cpu_cores = 10;\n   */\n  minCpuCores?: number;\n\n  /**\n   * @generated from field: optional int64 min_memory_mb = 11;\n   */\n  minMemoryMb?: bigint;\n\n  /**\n   * @generated from field: optional int32 min_disk_gb = 12;\n   */\n  minDiskGb?: number;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxListOrder order = 13;\n   */\n  order: SandboxListOrder;\n\n  /**\n   * Also return facets for the same scope.\n   *\n   * @generated from field: bool include_facets = 14;\n   */\n  includeFacets: boolean;\n\n  /**\n   * A column sort; unspecified keeps `order`.\n   *\n   * @generated from field: tenki.sandbox.v1.SandboxSortField sort_by = 15;\n   */\n  sortBy: SandboxSortField;\n\n  /**\n   * @generated from field: bool sort_desc = 16;\n   */\n  sortDesc: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListWorkspaceSandboxesRequest.\n * Use `create(ListWorkspaceSandboxesRequestSchema)` to create a new message.\n */\nexport const ListWorkspaceSandboxesRequestSchema: GenMessage<ListWorkspaceSandboxesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 76);\n\n/**\n * @generated from message tenki.sandbox.v1.ListWorkspaceSandboxesResponse\n */\nexport type ListWorkspaceSandboxesResponse = Message<\"tenki.sandbox.v1.ListWorkspaceSandboxesResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.SandboxSession sessions = 1;\n   */\n  sessions: SandboxSession[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.SandboxListFacets facets = 3;\n   */\n  facets?: SandboxListFacets;\n\n  /**\n   * Why a row matched `search` through a snapshot; one per session on this page.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.SandboxSearchHit search_hits = 4;\n   */\n  searchHits: SandboxSearchHit[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListWorkspaceSandboxesResponse.\n * Use `create(ListWorkspaceSandboxesResponseSchema)` to create a new message.\n */\nexport const ListWorkspaceSandboxesResponseSchema: GenMessage<ListWorkspaceSandboxesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 77);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxSearchHit\n */\nexport type SandboxSearchHit = Message<\"tenki.sandbox.v1.SandboxSearchHit\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * The matching snapshot's name, or its id when unnamed.\n   *\n   * @generated from field: string snapshot = 2;\n   */\n  snapshot: string;\n\n  /**\n   * The published ref that matched, when the hit came through an image.\n   *\n   * @generated from field: optional string published = 3;\n   */\n  published?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxSearchHit.\n * Use `create(SandboxSearchHitSchema)` to create a new message.\n */\nexport const SandboxSearchHitSchema: GenMessage<SandboxSearchHit> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 78);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxStateCount\n */\nexport type SandboxStateCount = Message<\"tenki.sandbox.v1.SandboxStateCount\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionState state = 1;\n   */\n  state: SessionState;\n\n  /**\n   * @generated from field: int64 count = 2;\n   */\n  count: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxStateCount.\n * Use `create(SandboxStateCountSchema)` to create a new message.\n */\nexport const SandboxStateCountSchema: GenMessage<SandboxStateCount> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 79);\n\n/**\n * Counts ignore the state filters and resource options ignore every filter, so each option shows what it would yield.\n *\n * @generated from message tenki.sandbox.v1.SandboxListFacets\n */\nexport type SandboxListFacets = Message<\"tenki.sandbox.v1.SandboxListFacets\"> & {\n  /**\n   * @generated from field: int64 total = 1;\n   */\n  total: bigint;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.SandboxStateCount state_counts = 2;\n   */\n  stateCounts: SandboxStateCount[];\n\n  /**\n   * @generated from field: repeated int32 cpu_cores_options = 3;\n   */\n  cpuCoresOptions: number[];\n\n  /**\n   * @generated from field: repeated int64 memory_mb_options = 4;\n   */\n  memoryMbOptions: bigint[];\n\n  /**\n   * @generated from field: repeated int32 disk_gb_options = 5;\n   */\n  diskGbOptions: number[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxListFacets.\n * Use `create(SandboxListFacetsSchema)` to create a new message.\n */\nexport const SandboxListFacetsSchema: GenMessage<SandboxListFacets> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 80);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateSessionRequest\n */\nexport type UpdateSessionRequest = Message<\"tenki.sandbox.v1.UpdateSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: optional string name = 2;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: repeated string tags = 3;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: bool clear_tags = 4;\n   */\n  clearTags: boolean;\n\n  /**\n   * @generated from field: optional bool sticky = 5;\n   */\n  sticky?: boolean;\n\n  /**\n   * Desired lifetime when setting sticky = false. Requires an explicit sticky\n   * value; sticky = true discards this duration and returns a warning.\n   *\n   * @generated from field: google.protobuf.Duration max_duration = 6;\n   */\n  maxDuration?: Duration;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateSessionRequest.\n * Use `create(UpdateSessionRequestSchema)` to create a new message.\n */\nexport const UpdateSessionRequestSchema: GenMessage<UpdateSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 81);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateSessionResponse\n */\nexport type UpdateSessionResponse = Message<\"tenki.sandbox.v1.UpdateSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.SandboxWarning warnings = 2;\n   */\n  warnings: SandboxWarning[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateSessionResponse.\n * Use `create(UpdateSessionResponseSchema)` to create a new message.\n */\nexport const UpdateSessionResponseSchema: GenMessage<UpdateSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 82);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateVolumeRequest\n */\nexport type CreateVolumeRequest = Message<\"tenki.sandbox.v1.CreateVolumeRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 2;\n   */\n  name: string;\n\n  /**\n   * @generated from field: int64 size_bytes = 3;\n   */\n  sizeBytes: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateVolumeRequest.\n * Use `create(CreateVolumeRequestSchema)` to create a new message.\n */\nexport const CreateVolumeRequestSchema: GenMessage<CreateVolumeRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 83);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateVolumeResponse\n */\nexport type CreateVolumeResponse = Message<\"tenki.sandbox.v1.CreateVolumeResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Volume volume = 1;\n   */\n  volume?: Volume;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateVolumeResponse.\n * Use `create(CreateVolumeResponseSchema)` to create a new message.\n */\nexport const CreateVolumeResponseSchema: GenMessage<CreateVolumeResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 84);\n\n/**\n * @generated from message tenki.sandbox.v1.GetVolumeRequest\n */\nexport type GetVolumeRequest = Message<\"tenki.sandbox.v1.GetVolumeRequest\"> & {\n  /**\n   * @generated from field: string volume_id = 1;\n   */\n  volumeId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetVolumeRequest.\n * Use `create(GetVolumeRequestSchema)` to create a new message.\n */\nexport const GetVolumeRequestSchema: GenMessage<GetVolumeRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 85);\n\n/**\n * @generated from message tenki.sandbox.v1.GetVolumeResponse\n */\nexport type GetVolumeResponse = Message<\"tenki.sandbox.v1.GetVolumeResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Volume volume = 1;\n   */\n  volume?: Volume;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.VolumeAttachment active_attachments = 2;\n   */\n  activeAttachments: VolumeAttachment[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetVolumeResponse.\n * Use `create(GetVolumeResponseSchema)` to create a new message.\n */\nexport const GetVolumeResponseSchema: GenMessage<GetVolumeResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 86);\n\n/**\n * @generated from message tenki.sandbox.v1.ListVolumesRequest\n */\nexport type ListVolumesRequest = Message<\"tenki.sandbox.v1.ListVolumesRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n\n  /**\n   * Matches name, id and tags.\n   *\n   * @generated from field: string search = 4;\n   */\n  search: string;\n\n  /**\n   * Any of these; empty means no filter.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.VolumeState states = 5;\n   */\n  states: VolumeState[];\n\n  /**\n   * Also return facets for the same search.\n   *\n   * @generated from field: bool include_facets = 6;\n   */\n  includeFacets: boolean;\n\n  /**\n   * A column sort; unspecified means newest first.\n   *\n   * @generated from field: tenki.sandbox.v1.VolumeSortField sort_by = 7;\n   */\n  sortBy: VolumeSortField;\n\n  /**\n   * @generated from field: bool sort_desc = 8;\n   */\n  sortDesc: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListVolumesRequest.\n * Use `create(ListVolumesRequestSchema)` to create a new message.\n */\nexport const ListVolumesRequestSchema: GenMessage<ListVolumesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 87);\n\n/**\n * @generated from message tenki.sandbox.v1.ListVolumesResponse\n */\nexport type ListVolumesResponse = Message<\"tenki.sandbox.v1.ListVolumesResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.Volume volumes = 1;\n   */\n  volumes: Volume[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.VolumeListFacets facets = 3;\n   */\n  facets?: VolumeListFacets;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListVolumesResponse.\n * Use `create(ListVolumesResponseSchema)` to create a new message.\n */\nexport const ListVolumesResponseSchema: GenMessage<ListVolumesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 88);\n\n/**\n * @generated from message tenki.sandbox.v1.VolumeStateCount\n */\nexport type VolumeStateCount = Message<\"tenki.sandbox.v1.VolumeStateCount\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.VolumeState state = 1;\n   */\n  state: VolumeState;\n\n  /**\n   * @generated from field: int64 count = 2;\n   */\n  count: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.VolumeStateCount.\n * Use `create(VolumeStateCountSchema)` to create a new message.\n */\nexport const VolumeStateCountSchema: GenMessage<VolumeStateCount> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 89);\n\n/**\n * Counts ignore `states`, so each option shows what it would yield.\n *\n * @generated from message tenki.sandbox.v1.VolumeListFacets\n */\nexport type VolumeListFacets = Message<\"tenki.sandbox.v1.VolumeListFacets\"> & {\n  /**\n   * @generated from field: int64 total = 1;\n   */\n  total: bigint;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.VolumeStateCount state_counts = 2;\n   */\n  stateCounts: VolumeStateCount[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.VolumeListFacets.\n * Use `create(VolumeListFacetsSchema)` to create a new message.\n */\nexport const VolumeListFacetsSchema: GenMessage<VolumeListFacets> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 90);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteVolumeRequest\n */\nexport type DeleteVolumeRequest = Message<\"tenki.sandbox.v1.DeleteVolumeRequest\"> & {\n  /**\n   * @generated from field: string volume_id = 1;\n   */\n  volumeId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteVolumeRequest.\n * Use `create(DeleteVolumeRequestSchema)` to create a new message.\n */\nexport const DeleteVolumeRequestSchema: GenMessage<DeleteVolumeRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 91);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteVolumeResponse\n */\nexport type DeleteVolumeResponse = Message<\"tenki.sandbox.v1.DeleteVolumeResponse\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteVolumeResponse.\n * Use `create(DeleteVolumeResponseSchema)` to create a new message.\n */\nexport const DeleteVolumeResponseSchema: GenMessage<DeleteVolumeResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 92);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateVolumeRequest\n */\nexport type UpdateVolumeRequest = Message<\"tenki.sandbox.v1.UpdateVolumeRequest\"> & {\n  /**\n   * @generated from field: string volume_id = 1;\n   */\n  volumeId: string;\n\n  /**\n   * @generated from field: optional string name = 2;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: repeated string tags = 3;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: bool clear_tags = 4;\n   */\n  clearTags: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateVolumeRequest.\n * Use `create(UpdateVolumeRequestSchema)` to create a new message.\n */\nexport const UpdateVolumeRequestSchema: GenMessage<UpdateVolumeRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 93);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateVolumeResponse\n */\nexport type UpdateVolumeResponse = Message<\"tenki.sandbox.v1.UpdateVolumeResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Volume volume = 1;\n   */\n  volume?: Volume;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateVolumeResponse.\n * Use `create(UpdateVolumeResponseSchema)` to create a new message.\n */\nexport const UpdateVolumeResponseSchema: GenMessage<UpdateVolumeResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 94);\n\n/**\n * @generated from message tenki.sandbox.v1.ResizeVolumeRequest\n */\nexport type ResizeVolumeRequest = Message<\"tenki.sandbox.v1.ResizeVolumeRequest\"> & {\n  /**\n   * @generated from field: string volume_id = 1;\n   */\n  volumeId: string;\n\n  /**\n   * @generated from field: int64 new_size_bytes = 2;\n   */\n  newSizeBytes: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResizeVolumeRequest.\n * Use `create(ResizeVolumeRequestSchema)` to create a new message.\n */\nexport const ResizeVolumeRequestSchema: GenMessage<ResizeVolumeRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 95);\n\n/**\n * @generated from message tenki.sandbox.v1.ResizeVolumeResponse\n */\nexport type ResizeVolumeResponse = Message<\"tenki.sandbox.v1.ResizeVolumeResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Volume volume = 1;\n   */\n  volume?: Volume;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResizeVolumeResponse.\n * Use `create(ResizeVolumeResponseSchema)` to create a new message.\n */\nexport const ResizeVolumeResponseSchema: GenMessage<ResizeVolumeResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 96);\n\n/**\n * @generated from message tenki.sandbox.v1.AttachVolumeRequest\n */\nexport type AttachVolumeRequest = Message<\"tenki.sandbox.v1.AttachVolumeRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.VolumeMount volume = 2;\n   */\n  volume?: VolumeMount;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.AttachVolumeRequest.\n * Use `create(AttachVolumeRequestSchema)` to create a new message.\n */\nexport const AttachVolumeRequestSchema: GenMessage<AttachVolumeRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 97);\n\n/**\n * @generated from message tenki.sandbox.v1.AttachVolumeResponse\n */\nexport type AttachVolumeResponse = Message<\"tenki.sandbox.v1.AttachVolumeResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.VolumeAttachment attachment = 1;\n   */\n  attachment?: VolumeAttachment;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.AttachVolumeResponse.\n * Use `create(AttachVolumeResponseSchema)` to create a new message.\n */\nexport const AttachVolumeResponseSchema: GenMessage<AttachVolumeResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 98);\n\n/**\n * @generated from message tenki.sandbox.v1.DetachVolumeRequest\n */\nexport type DetachVolumeRequest = Message<\"tenki.sandbox.v1.DetachVolumeRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string volume_id = 2;\n   */\n  volumeId: string;\n\n  /**\n   * Unplugs an attached volume the guest cannot unmount; writes the guest has\n   * not flushed are lost. Never releases a SYNC_PENDING attachment: wait for\n   * sync back to finish or request operator recovery.\n   *\n   * @generated from field: bool force_detach = 3;\n   */\n  forceDetach: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DetachVolumeRequest.\n * Use `create(DetachVolumeRequestSchema)` to create a new message.\n */\nexport const DetachVolumeRequestSchema: GenMessage<DetachVolumeRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 99);\n\n/**\n * @generated from message tenki.sandbox.v1.DetachVolumeResponse\n */\nexport type DetachVolumeResponse = Message<\"tenki.sandbox.v1.DetachVolumeResponse\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DetachVolumeResponse.\n * Use `create(DetachVolumeResponseSchema)` to create a new message.\n */\nexport const DetachVolumeResponseSchema: GenMessage<DetachVolumeResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 100);\n\n/**\n * @generated from message tenki.sandbox.v1.ExecuteCommandRequest\n */\nexport type ExecuteCommandRequest = Message<\"tenki.sandbox.v1.ExecuteCommandRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string command = 2;\n   */\n  command: string;\n\n  /**\n   * @generated from field: repeated string args = 3;\n   */\n  args: string[];\n\n  /**\n   * @generated from field: google.protobuf.Duration timeout = 4;\n   */\n  timeout?: Duration;\n\n  /**\n   * @generated from field: map<string, string> env = 5;\n   */\n  env: { [key: string]: string };\n\n  /**\n   * if true, return immediately with RUNNING status; use StreamCommandOutput for output\n   *\n   * @generated from field: bool stream_output = 6;\n   */\n  streamOutput: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ExecuteCommandRequest.\n * Use `create(ExecuteCommandRequestSchema)` to create a new message.\n */\nexport const ExecuteCommandRequestSchema: GenMessage<ExecuteCommandRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 101);\n\n/**\n * @generated from message tenki.sandbox.v1.ExecuteCommandResponse\n */\nexport type ExecuteCommandResponse = Message<\"tenki.sandbox.v1.ExecuteCommandResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.CommandExecution execution = 1;\n   */\n  execution?: CommandExecution;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ExecuteCommandResponse.\n * Use `create(ExecuteCommandResponseSchema)` to create a new message.\n */\nexport const ExecuteCommandResponseSchema: GenMessage<ExecuteCommandResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 102);\n\n/**\n * @generated from message tenki.sandbox.v1.StreamCommandOutputRequest\n */\nexport type StreamCommandOutputRequest = Message<\"tenki.sandbox.v1.StreamCommandOutputRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string execution_id = 2;\n   */\n  executionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StreamCommandOutputRequest.\n * Use `create(StreamCommandOutputRequestSchema)` to create a new message.\n */\nexport const StreamCommandOutputRequestSchema: GenMessage<StreamCommandOutputRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 103);\n\n/**\n * @generated from message tenki.sandbox.v1.StreamCommandOutputResponse\n */\nexport type StreamCommandOutputResponse = Message<\"tenki.sandbox.v1.StreamCommandOutputResponse\"> & {\n  /**\n   * @generated from field: string execution_id = 1;\n   */\n  executionId: string;\n\n  /**\n   * @generated from field: bytes data = 2;\n   */\n  data: Uint8Array;\n\n  /**\n   * @generated from field: bool is_stderr = 3;\n   */\n  isStderr: boolean;\n\n  /**\n   * @generated from field: bool is_final = 4;\n   */\n  isFinal: boolean;\n\n  /**\n   * Set on the final chunk only (when is_final=true):\n   *\n   * @generated from field: int32 exit_code = 5;\n   */\n  exitCode: number;\n\n  /**\n   * @generated from field: int64 duration_ms = 6;\n   */\n  durationMs: bigint;\n\n  /**\n   * @generated from field: bool timed_out = 7;\n   */\n  timedOut: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StreamCommandOutputResponse.\n * Use `create(StreamCommandOutputResponseSchema)` to create a new message.\n */\nexport const StreamCommandOutputResponseSchema: GenMessage<StreamCommandOutputResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 104);\n\n/**\n * @generated from message tenki.sandbox.v1.DialRequest\n */\nexport type DialRequest = Message<\"tenki.sandbox.v1.DialRequest\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.DialRequest.payload\n   */\n  payload: {\n    /**\n     * @generated from field: tenki.sandbox.v1.DialOpen open = 1;\n     */\n    value: DialOpen;\n    case: \"open\";\n  } | {\n    /**\n     * @generated from field: bytes data = 2;\n     */\n    value: Uint8Array;\n    case: \"data\";\n  } | {\n    /**\n     * @generated from field: bool half_close = 3;\n     */\n    value: boolean;\n    case: \"halfClose\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DialRequest.\n * Use `create(DialRequestSchema)` to create a new message.\n */\nexport const DialRequestSchema: GenMessage<DialRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 105);\n\n/**\n * @generated from message tenki.sandbox.v1.DialOpen\n */\nexport type DialOpen = Message<\"tenki.sandbox.v1.DialOpen\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from oneof tenki.sandbox.v1.DialOpen.target\n   */\n  target: {\n    /**\n     * @generated from field: string unix_socket_path = 2;\n     */\n    value: string;\n    case: \"unixSocketPath\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from field: uint32 connect_timeout_ms = 4;\n   */\n  connectTimeoutMs: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DialOpen.\n * Use `create(DialOpenSchema)` to create a new message.\n */\nexport const DialOpenSchema: GenMessage<DialOpen> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 106);\n\n/**\n * @generated from message tenki.sandbox.v1.DialResponse\n */\nexport type DialResponse = Message<\"tenki.sandbox.v1.DialResponse\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.DialResponse.payload\n   */\n  payload: {\n    /**\n     * @generated from field: tenki.sandbox.v1.DialOpened opened = 1;\n     */\n    value: DialOpened;\n    case: \"opened\";\n  } | {\n    /**\n     * @generated from field: bytes data = 2;\n     */\n    value: Uint8Array;\n    case: \"data\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.DialClosed closed = 3;\n     */\n    value: DialClosed;\n    case: \"closed\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DialResponse.\n * Use `create(DialResponseSchema)` to create a new message.\n */\nexport const DialResponseSchema: GenMessage<DialResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 107);\n\n/**\n * @generated from message tenki.sandbox.v1.DialOpened\n */\nexport type DialOpened = Message<\"tenki.sandbox.v1.DialOpened\"> & {\n  /**\n   * @generated from field: string sandbox_address = 1;\n   */\n  sandboxAddress: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DialOpened.\n * Use `create(DialOpenedSchema)` to create a new message.\n */\nexport const DialOpenedSchema: GenMessage<DialOpened> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 108);\n\n/**\n * @generated from message tenki.sandbox.v1.DialClosed\n */\nexport type DialClosed = Message<\"tenki.sandbox.v1.DialClosed\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.DialClosed.Reason reason = 1;\n   */\n  reason: DialClosed_Reason;\n\n  /**\n   * @generated from field: string detail = 2;\n   */\n  detail: string;\n\n  /**\n   * @generated from field: int32 errno = 3;\n   */\n  errno: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DialClosed.\n * Use `create(DialClosedSchema)` to create a new message.\n */\nexport const DialClosedSchema: GenMessage<DialClosed> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 109);\n\n/**\n * @generated from enum tenki.sandbox.v1.DialClosed.Reason\n */\nexport enum DialClosed_Reason {\n  /**\n   * @generated from enum value: REASON_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: REASON_CLEAN = 1;\n   */\n  CLEAN = 1,\n\n  /**\n   * @generated from enum value: REASON_REFUSED = 2;\n   */\n  REFUSED = 2,\n\n  /**\n   * @generated from enum value: REASON_TIMEOUT = 3;\n   */\n  TIMEOUT = 3,\n\n  /**\n   * @generated from enum value: REASON_PEER_RESET = 4;\n   */\n  PEER_RESET = 4,\n\n  /**\n   * @generated from enum value: REASON_PATH_DENIED = 5;\n   */\n  PATH_DENIED = 5,\n\n  /**\n   * @generated from enum value: REASON_PLATFORM_ERROR = 6;\n   */\n  PLATFORM_ERROR = 6,\n\n  /**\n   * @generated from enum value: REASON_CAPABILITY_UNAVAILABLE = 7;\n   */\n  CAPABILITY_UNAVAILABLE = 7,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.DialClosed.Reason.\n */\nexport const DialClosed_ReasonSchema: GenEnum<DialClosed_Reason> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 109, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.RunRequest\n */\nexport type RunRequest = Message<\"tenki.sandbox.v1.RunRequest\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.RunRequest.payload\n   */\n  payload: {\n    /**\n     * @generated from field: tenki.sandbox.v1.RunStart start = 1;\n     */\n    value: RunStart;\n    case: \"start\";\n  } | {\n    /**\n     * @generated from field: bytes stdin = 2;\n     */\n    value: Uint8Array;\n    case: \"stdin\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.RunSignal signal = 3;\n     */\n    value: RunSignal;\n    case: \"signal\";\n  } | {\n    /**\n     * @generated from field: bool stdin_close = 4;\n     */\n    value: boolean;\n    case: \"stdinClose\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RunRequest.\n * Use `create(RunRequestSchema)` to create a new message.\n */\nexport const RunRequestSchema: GenMessage<RunRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 110);\n\n/**\n * @generated from message tenki.sandbox.v1.RunStart\n */\nexport type RunStart = Message<\"tenki.sandbox.v1.RunStart\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: repeated string cmd = 2;\n   */\n  cmd: string[];\n\n  /**\n   * @generated from field: string cwd = 3;\n   */\n  cwd: string;\n\n  /**\n   * @generated from field: map<string, string> env = 4;\n   */\n  env: { [key: string]: string };\n\n  /**\n   * @generated from field: bool pty = 5;\n   */\n  pty: boolean;\n\n  /**\n   * @generated from field: bool stream_stdin = 6;\n   */\n  streamStdin: boolean;\n\n  /**\n   * @generated from field: uint32 timeout_ms = 7;\n   */\n  timeoutMs: number;\n\n  /**\n   * @generated from field: bool privileged = 8;\n   */\n  privileged: boolean;\n\n  /**\n   * Adds the session's delivered runtime secret environment; the caller's env still wins.\n   *\n   * @generated from field: bool with_secrets = 9;\n   */\n  withSecrets: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RunStart.\n * Use `create(RunStartSchema)` to create a new message.\n */\nexport const RunStartSchema: GenMessage<RunStart> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 111);\n\n/**\n * @generated from message tenki.sandbox.v1.RunSignal\n */\nexport type RunSignal = Message<\"tenki.sandbox.v1.RunSignal\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RunSignal.Sig signal = 1;\n   */\n  signal: RunSignal_Sig;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RunSignal.\n * Use `create(RunSignalSchema)` to create a new message.\n */\nexport const RunSignalSchema: GenMessage<RunSignal> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 112);\n\n/**\n * @generated from enum tenki.sandbox.v1.RunSignal.Sig\n */\nexport enum RunSignal_Sig {\n  /**\n   * @generated from enum value: SIG_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SIG_TERM = 1;\n   */\n  TERM = 1,\n\n  /**\n   * @generated from enum value: SIG_KILL = 2;\n   */\n  KILL = 2,\n\n  /**\n   * @generated from enum value: SIG_INT = 3;\n   */\n  INT = 3,\n\n  /**\n   * @generated from enum value: SIG_HUP = 4;\n   */\n  HUP = 4,\n\n  /**\n   * @generated from enum value: SIG_USR1 = 5;\n   */\n  USR1 = 5,\n\n  /**\n   * @generated from enum value: SIG_USR2 = 6;\n   */\n  USR2 = 6,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.RunSignal.Sig.\n */\nexport const RunSignal_SigSchema: GenEnum<RunSignal_Sig> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 112, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.RunResponse\n */\nexport type RunResponse = Message<\"tenki.sandbox.v1.RunResponse\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.RunResponse.payload\n   */\n  payload: {\n    /**\n     * @generated from field: tenki.sandbox.v1.RunStarted started = 1;\n     */\n    value: RunStarted;\n    case: \"started\";\n  } | {\n    /**\n     * @generated from field: bytes stdout = 2;\n     */\n    value: Uint8Array;\n    case: \"stdout\";\n  } | {\n    /**\n     * @generated from field: bytes stderr = 3;\n     */\n    value: Uint8Array;\n    case: \"stderr\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.RunExit exit = 4;\n     */\n    value: RunExit;\n    case: \"exit\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.RunFlowControl flow = 5;\n     */\n    value: RunFlowControl;\n    case: \"flow\";\n  } | {\n    /**\n     * Sent after started so quiet runs keep their response stream active.\n     *\n     * @generated from field: bool keepalive = 6;\n     */\n    value: boolean;\n    case: \"keepalive\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RunResponse.\n * Use `create(RunResponseSchema)` to create a new message.\n */\nexport const RunResponseSchema: GenMessage<RunResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 113);\n\n/**\n * @generated from message tenki.sandbox.v1.RunStarted\n */\nexport type RunStarted = Message<\"tenki.sandbox.v1.RunStarted\"> & {\n  /**\n   * @generated from field: uint64 pid = 1;\n   */\n  pid: bigint;\n\n  /**\n   * @generated from field: uint32 stdin_window_bytes = 2;\n   */\n  stdinWindowBytes: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RunStarted.\n * Use `create(RunStartedSchema)` to create a new message.\n */\nexport const RunStartedSchema: GenMessage<RunStarted> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 114);\n\n/**\n * @generated from message tenki.sandbox.v1.RunExit\n */\nexport type RunExit = Message<\"tenki.sandbox.v1.RunExit\"> & {\n  /**\n   * @generated from field: int32 exit_code = 1;\n   */\n  exitCode: number;\n\n  /**\n   * @generated from field: string signal = 2;\n   */\n  signal: string;\n\n  /**\n   * @generated from field: bool timed_out = 3;\n   */\n  timedOut: boolean;\n\n  /**\n   * @generated from field: uint64 duration_ms = 4;\n   */\n  durationMs: bigint;\n\n  /**\n   * @generated from field: string reason = 5;\n   */\n  reason: string;\n\n  /**\n   * @generated from field: int32 errno = 6;\n   */\n  errno: number;\n\n  /**\n   * Sandbox filesystem state sampled across the run. min_available is the\n   * low-water mark: a tool that hits ENOSPC then removes its own temp files\n   * (pip, containerd) leaves the disk looking healthy at exit, so the exit-time\n   * sample alone cannot tell a caller the run ran out of space. Zero when the\n   * guest could not stat the filesystem.\n   *\n   * @generated from field: int64 disk_total_bytes = 7;\n   */\n  diskTotalBytes: bigint;\n\n  /**\n   * @generated from field: int64 disk_available_bytes = 8;\n   */\n  diskAvailableBytes: bigint;\n\n  /**\n   * @generated from field: int64 disk_min_available_bytes = 9;\n   */\n  diskMinAvailableBytes: bigint;\n\n  /**\n   * disk_free_bytes counts the filesystem reserve that disk_available_bytes\n   * excludes. Both are needed to report usage the way df does.\n   *\n   * @generated from field: int64 disk_free_bytes = 10;\n   */\n  diskFreeBytes: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RunExit.\n * Use `create(RunExitSchema)` to create a new message.\n */\nexport const RunExitSchema: GenMessage<RunExit> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 115);\n\n/**\n * @generated from message tenki.sandbox.v1.RunFlowControl\n */\nexport type RunFlowControl = Message<\"tenki.sandbox.v1.RunFlowControl\"> & {\n  /**\n   * @generated from field: uint32 stdin_grant_bytes = 1;\n   */\n  stdinGrantBytes: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RunFlowControl.\n * Use `create(RunFlowControlSchema)` to create a new message.\n */\nexport const RunFlowControlSchema: GenMessage<RunFlowControl> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 116);\n\n/**\n * OpenCodeProviderConfig holds non-secret provider configuration (npm package, base URL).\n * API keys are injected separately via /etc/environment.\n *\n * @generated from message tenki.sandbox.v1.OpenCodeProviderConfig\n */\nexport type OpenCodeProviderConfig = Message<\"tenki.sandbox.v1.OpenCodeProviderConfig\"> & {\n  /**\n   * @generated from field: string base_url = 1;\n   */\n  baseUrl: string;\n\n  /**\n   * @generated from field: string npm = 2;\n   */\n  npm: string;\n\n  /**\n   * model_prices keys a model id (without the provider prefix) to its rates, so\n   * the guest's opencode config can report per-message cost. Non-secret.\n   *\n   * @generated from field: map<string, tenki.sandbox.v1.OpenCodeModelPrice> model_prices = 3;\n   */\n  modelPrices: { [key: string]: OpenCodeModelPrice };\n\n  /**\n   * headers are sent on every request to this provider (e.g. x-luxor-review-id).\n   *\n   * @generated from field: map<string, string> headers = 4;\n   */\n  headers: { [key: string]: string };\n\n  /**\n   * model_fallbacks keys a model id (without the provider prefix) to its ordered gateway fallbacks.\n   *\n   * @generated from field: map<string, tenki.sandbox.v1.OpenCodeModelFallbacks> model_fallbacks = 5;\n   */\n  modelFallbacks: { [key: string]: OpenCodeModelFallbacks };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.OpenCodeProviderConfig.\n * Use `create(OpenCodeProviderConfigSchema)` to create a new message.\n */\nexport const OpenCodeProviderConfigSchema: GenMessage<OpenCodeProviderConfig> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 117);\n\n/**\n * OpenCodeModelPrice is one model's token rates, per 1,000,000 tokens — the unit\n * opencode's provider config expects. Optional rates are absent rather than zero\n * when unset: zero asserts \"free\", absent means \"unknown\".\n *\n * @generated from message tenki.sandbox.v1.OpenCodeModelPrice\n */\nexport type OpenCodeModelPrice = Message<\"tenki.sandbox.v1.OpenCodeModelPrice\"> & {\n  /**\n   * @generated from field: double input = 1;\n   */\n  input: number;\n\n  /**\n   * @generated from field: double output = 2;\n   */\n  output: number;\n\n  /**\n   * @generated from field: optional double cache_read = 3;\n   */\n  cacheRead?: number;\n\n  /**\n   * @generated from field: optional double cache_write = 4;\n   */\n  cacheWrite?: number;\n\n  /**\n   * Long-context tier, all-or-nothing on threshold+input+output.\n   *\n   * @generated from field: optional tenki.sandbox.v1.OpenCodeModelPriceTier tier = 5;\n   */\n  tier?: OpenCodeModelPriceTier;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.OpenCodeModelPrice.\n * Use `create(OpenCodeModelPriceSchema)` to create a new message.\n */\nexport const OpenCodeModelPriceSchema: GenMessage<OpenCodeModelPrice> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 118);\n\n/**\n * OpenCodeModelPriceTier is a long-context rate override applying past\n * threshold_tokens. The threshold travels as data; the emit side maps it onto the\n * property name opencode's config uses (today only 200000 is expressible).\n *\n * @generated from message tenki.sandbox.v1.OpenCodeModelPriceTier\n */\nexport type OpenCodeModelPriceTier = Message<\"tenki.sandbox.v1.OpenCodeModelPriceTier\"> & {\n  /**\n   * @generated from field: int32 threshold_tokens = 1;\n   */\n  thresholdTokens: number;\n\n  /**\n   * @generated from field: double input = 2;\n   */\n  input: number;\n\n  /**\n   * @generated from field: double output = 3;\n   */\n  output: number;\n\n  /**\n   * @generated from field: optional double cache_read = 4;\n   */\n  cacheRead?: number;\n\n  /**\n   * @generated from field: optional double cache_write = 5;\n   */\n  cacheWrite?: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.OpenCodeModelPriceTier.\n * Use `create(OpenCodeModelPriceTierSchema)` to create a new message.\n */\nexport const OpenCodeModelPriceTierSchema: GenMessage<OpenCodeModelPriceTier> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 119);\n\n/**\n * OpenCodeModelFallbacks lists \"<gateway provider>/<model>\" ids the gateway tries in order.\n *\n * @generated from message tenki.sandbox.v1.OpenCodeModelFallbacks\n */\nexport type OpenCodeModelFallbacks = Message<\"tenki.sandbox.v1.OpenCodeModelFallbacks\"> & {\n  /**\n   * @generated from field: repeated string models = 1;\n   */\n  models: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.OpenCodeModelFallbacks.\n * Use `create(OpenCodeModelFallbacksSchema)` to create a new message.\n */\nexport const OpenCodeModelFallbacksSchema: GenMessage<OpenCodeModelFallbacks> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 120);\n\n/**\n * @generated from message tenki.sandbox.v1.CostBreakdownEntry\n */\nexport type CostBreakdownEntry = Message<\"tenki.sandbox.v1.CostBreakdownEntry\"> & {\n  /**\n   * @generated from field: string agent = 1;\n   */\n  agent: string;\n\n  /**\n   * @generated from field: string model = 2;\n   */\n  model: string;\n\n  /**\n   * @generated from field: int32 input_tokens = 3;\n   */\n  inputTokens: number;\n\n  /**\n   * @generated from field: int32 output_tokens = 4;\n   */\n  outputTokens: number;\n\n  /**\n   * @generated from field: int32 cache_read_tokens = 5;\n   */\n  cacheReadTokens: number;\n\n  /**\n   * @generated from field: int32 cache_write_tokens = 6;\n   */\n  cacheWriteTokens: number;\n\n  /**\n   * @generated from field: int32 reasoning_tokens = 7;\n   */\n  reasoningTokens: number;\n\n  /**\n   * @generated from field: double total_cost = 8;\n   */\n  totalCost: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CostBreakdownEntry.\n * Use `create(CostBreakdownEntrySchema)` to create a new message.\n */\nexport const CostBreakdownEntrySchema: GenMessage<CostBreakdownEntry> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 121);\n\n/**\n * @generated from message tenki.sandbox.v1.GitOperationRequest\n */\nexport type GitOperationRequest = Message<\"tenki.sandbox.v1.GitOperationRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string operation = 2;\n   */\n  operation: string;\n\n  /**\n   * @generated from field: map<string, string> args = 3;\n   */\n  args: { [key: string]: string };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GitOperationRequest.\n * Use `create(GitOperationRequestSchema)` to create a new message.\n */\nexport const GitOperationRequestSchema: GenMessage<GitOperationRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 122);\n\n/**\n * @generated from message tenki.sandbox.v1.GitOperationResponse\n */\nexport type GitOperationResponse = Message<\"tenki.sandbox.v1.GitOperationResponse\"> & {\n  /**\n   * @generated from field: string output = 1;\n   */\n  output: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GitOperationResponse.\n * Use `create(GitOperationResponseSchema)` to create a new message.\n */\nexport const GitOperationResponseSchema: GenMessage<GitOperationResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 123);\n\n/**\n * @generated from message tenki.sandbox.v1.WriteFileRequest\n */\nexport type WriteFileRequest = Message<\"tenki.sandbox.v1.WriteFileRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n\n  /**\n   * @generated from field: bytes content = 3;\n   */\n  content: Uint8Array;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WriteFileRequest.\n * Use `create(WriteFileRequestSchema)` to create a new message.\n */\nexport const WriteFileRequestSchema: GenMessage<WriteFileRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 124);\n\n/**\n * @generated from message tenki.sandbox.v1.WriteFileResponse\n */\nexport type WriteFileResponse = Message<\"tenki.sandbox.v1.WriteFileResponse\"> & {\n  /**\n   * @generated from field: string path = 1;\n   */\n  path: string;\n\n  /**\n   * @generated from field: int64 size_bytes = 2;\n   */\n  sizeBytes: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WriteFileResponse.\n * Use `create(WriteFileResponseSchema)` to create a new message.\n */\nexport const WriteFileResponseSchema: GenMessage<WriteFileResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 125);\n\n/**\n * @generated from message tenki.sandbox.v1.ReadFileRequest\n */\nexport type ReadFileRequest = Message<\"tenki.sandbox.v1.ReadFileRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ReadFileRequest.\n * Use `create(ReadFileRequestSchema)` to create a new message.\n */\nexport const ReadFileRequestSchema: GenMessage<ReadFileRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 126);\n\n/**\n * @generated from message tenki.sandbox.v1.ReadFileResponse\n */\nexport type ReadFileResponse = Message<\"tenki.sandbox.v1.ReadFileResponse\"> & {\n  /**\n   * @generated from field: string path = 1;\n   */\n  path: string;\n\n  /**\n   * @generated from field: bytes content = 2;\n   */\n  content: Uint8Array;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ReadFileResponse.\n * Use `create(ReadFileResponseSchema)` to create a new message.\n */\nexport const ReadFileResponseSchema: GenMessage<ReadFileResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 127);\n\n/**\n * @generated from message tenki.sandbox.v1.ReadFileStreamRequest\n */\nexport type ReadFileStreamRequest = Message<\"tenki.sandbox.v1.ReadFileStreamRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n\n  /**\n   * @generated from field: int64 offset = 3;\n   */\n  offset: bigint;\n\n  /**\n   * @generated from field: int64 length = 4;\n   */\n  length: bigint;\n\n  /**\n   * @generated from field: uint32 chunk_bytes = 5;\n   */\n  chunkBytes: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ReadFileStreamRequest.\n * Use `create(ReadFileStreamRequestSchema)` to create a new message.\n */\nexport const ReadFileStreamRequestSchema: GenMessage<ReadFileStreamRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 128);\n\n/**\n * @generated from message tenki.sandbox.v1.ReadFileStreamResponse\n */\nexport type ReadFileStreamResponse = Message<\"tenki.sandbox.v1.ReadFileStreamResponse\"> & {\n  /**\n   * @generated from field: bytes data = 1;\n   */\n  data: Uint8Array;\n\n  /**\n   * @generated from field: bool eof = 2;\n   */\n  eof: boolean;\n\n  /**\n   * @generated from field: int64 total_size = 3;\n   */\n  totalSize: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ReadFileStreamResponse.\n * Use `create(ReadFileStreamResponseSchema)` to create a new message.\n */\nexport const ReadFileStreamResponseSchema: GenMessage<ReadFileStreamResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 129);\n\n/**\n * @generated from message tenki.sandbox.v1.WriteFileStreamRequest\n */\nexport type WriteFileStreamRequest = Message<\"tenki.sandbox.v1.WriteFileStreamRequest\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.WriteFileStreamRequest.payload\n   */\n  payload: {\n    /**\n     * @generated from field: tenki.sandbox.v1.WriteFileStreamStart start = 1;\n     */\n    value: WriteFileStreamStart;\n    case: \"start\";\n  } | {\n    /**\n     * @generated from field: bytes data = 2;\n     */\n    value: Uint8Array;\n    case: \"data\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WriteFileStreamRequest.\n * Use `create(WriteFileStreamRequestSchema)` to create a new message.\n */\nexport const WriteFileStreamRequestSchema: GenMessage<WriteFileStreamRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 130);\n\n/**\n * @generated from message tenki.sandbox.v1.WriteFileStreamStart\n */\nexport type WriteFileStreamStart = Message<\"tenki.sandbox.v1.WriteFileStreamStart\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n\n  /**\n   * @generated from field: uint32 mode = 3;\n   */\n  mode: number;\n\n  /**\n   * @generated from field: bool truncate = 4;\n   */\n  truncate: boolean;\n\n  /**\n   * @generated from field: bool sync = 5;\n   */\n  sync: boolean;\n\n  /**\n   * Writes outside the guest workdir, as root; the session user already has passwordless sudo.\n   *\n   * @generated from field: bool privileged = 6;\n   */\n  privileged: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WriteFileStreamStart.\n * Use `create(WriteFileStreamStartSchema)` to create a new message.\n */\nexport const WriteFileStreamStartSchema: GenMessage<WriteFileStreamStart> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 131);\n\n/**\n * @generated from message tenki.sandbox.v1.WriteFileStreamResponse\n */\nexport type WriteFileStreamResponse = Message<\"tenki.sandbox.v1.WriteFileStreamResponse\"> & {\n  /**\n   * @generated from field: int64 bytes_written = 1;\n   */\n  bytesWritten: bigint;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WriteFileStreamResponse.\n * Use `create(WriteFileStreamResponseSchema)` to create a new message.\n */\nexport const WriteFileStreamResponseSchema: GenMessage<WriteFileStreamResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 132);\n\n/**\n * @generated from message tenki.sandbox.v1.StatRequest\n */\nexport type StatRequest = Message<\"tenki.sandbox.v1.StatRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StatRequest.\n * Use `create(StatRequestSchema)` to create a new message.\n */\nexport const StatRequestSchema: GenMessage<StatRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 133);\n\n/**\n * @generated from message tenki.sandbox.v1.StatResponse\n */\nexport type StatResponse = Message<\"tenki.sandbox.v1.StatResponse\"> & {\n  /**\n   * @generated from field: bool exists = 1;\n   */\n  exists: boolean;\n\n  /**\n   * @generated from field: int64 size = 2;\n   */\n  size: bigint;\n\n  /**\n   * @generated from field: uint32 mode = 3;\n   */\n  mode: number;\n\n  /**\n   * @generated from field: int64 modified_unix_ns = 4;\n   */\n  modifiedUnixNs: bigint;\n\n  /**\n   * @generated from field: bool is_dir = 5;\n   */\n  isDir: boolean;\n\n  /**\n   * @generated from field: bool is_symlink = 6;\n   */\n  isSymlink: boolean;\n\n  /**\n   * @generated from field: string symlink_target = 7;\n   */\n  symlinkTarget: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.StatResponse.\n * Use `create(StatResponseSchema)` to create a new message.\n */\nexport const StatResponseSchema: GenMessage<StatResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 134);\n\n/**\n * @generated from message tenki.sandbox.v1.MkdirRequest\n */\nexport type MkdirRequest = Message<\"tenki.sandbox.v1.MkdirRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n\n  /**\n   * @generated from field: uint32 mode = 3;\n   */\n  mode: number;\n\n  /**\n   * @generated from field: bool recursive = 4;\n   */\n  recursive: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.MkdirRequest.\n * Use `create(MkdirRequestSchema)` to create a new message.\n */\nexport const MkdirRequestSchema: GenMessage<MkdirRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 135);\n\n/**\n * @generated from message tenki.sandbox.v1.MkdirResponse\n */\nexport type MkdirResponse = Message<\"tenki.sandbox.v1.MkdirResponse\"> & {\n  /**\n   * @generated from field: int64 modified_unix_ns = 1;\n   */\n  modifiedUnixNs: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.MkdirResponse.\n * Use `create(MkdirResponseSchema)` to create a new message.\n */\nexport const MkdirResponseSchema: GenMessage<MkdirResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 136);\n\n/**\n * @generated from message tenki.sandbox.v1.RemoveRequest\n */\nexport type RemoveRequest = Message<\"tenki.sandbox.v1.RemoveRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n\n  /**\n   * @generated from field: bool recursive = 3;\n   */\n  recursive: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RemoveRequest.\n * Use `create(RemoveRequestSchema)` to create a new message.\n */\nexport const RemoveRequestSchema: GenMessage<RemoveRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 137);\n\n/**\n * @generated from message tenki.sandbox.v1.RemoveResponse\n */\nexport type RemoveResponse = Message<\"tenki.sandbox.v1.RemoveResponse\"> & {\n  /**\n   * @generated from field: bool removed = 1;\n   */\n  removed: boolean;\n\n  /**\n   * @generated from field: int64 entries_removed = 2;\n   */\n  entriesRemoved: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RemoveResponse.\n * Use `create(RemoveResponseSchema)` to create a new message.\n */\nexport const RemoveResponseSchema: GenMessage<RemoveResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 138);\n\n/**\n * @generated from message tenki.sandbox.v1.ListRequest\n */\nexport type ListRequest = Message<\"tenki.sandbox.v1.ListRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n\n  /**\n   * @generated from field: bool include_hidden = 3;\n   */\n  includeHidden: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListRequest.\n * Use `create(ListRequestSchema)` to create a new message.\n */\nexport const ListRequestSchema: GenMessage<ListRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 139);\n\n/**\n * @generated from message tenki.sandbox.v1.ListResponse\n */\nexport type ListResponse = Message<\"tenki.sandbox.v1.ListResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.ListEntry entries = 1;\n   */\n  entries: ListEntry[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListResponse.\n * Use `create(ListResponseSchema)` to create a new message.\n */\nexport const ListResponseSchema: GenMessage<ListResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 140);\n\n/**\n * @generated from message tenki.sandbox.v1.ListEntry\n */\nexport type ListEntry = Message<\"tenki.sandbox.v1.ListEntry\"> & {\n  /**\n   * @generated from field: string name = 1;\n   */\n  name: string;\n\n  /**\n   * @generated from field: bool is_dir = 2;\n   */\n  isDir: boolean;\n\n  /**\n   * @generated from field: int64 size = 3;\n   */\n  size: bigint;\n\n  /**\n   * @generated from field: uint32 mode = 4;\n   */\n  mode: number;\n\n  /**\n   * @generated from field: int64 modified_unix_ns = 5;\n   */\n  modifiedUnixNs: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListEntry.\n * Use `create(ListEntrySchema)` to create a new message.\n */\nexport const ListEntrySchema: GenMessage<ListEntry> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 141);\n\n/**\n * @generated from message tenki.sandbox.v1.PauseSessionRequest\n */\nexport type PauseSessionRequest = Message<\"tenki.sandbox.v1.PauseSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * async returns after durable pause work is accepted. Default false preserves legacy completion semantics.\n   *\n   * @generated from field: bool async = 2;\n   */\n  async: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PauseSessionRequest.\n * Use `create(PauseSessionRequestSchema)` to create a new message.\n */\nexport const PauseSessionRequestSchema: GenMessage<PauseSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 142);\n\n/**\n * @generated from message tenki.sandbox.v1.PauseSessionResponse\n */\nexport type PauseSessionResponse = Message<\"tenki.sandbox.v1.PauseSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PauseSessionResponse.\n * Use `create(PauseSessionResponseSchema)` to create a new message.\n */\nexport const PauseSessionResponseSchema: GenMessage<PauseSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 143);\n\n/**\n * @generated from message tenki.sandbox.v1.ResumeSessionRequest\n */\nexport type ResumeSessionRequest = Message<\"tenki.sandbox.v1.ResumeSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * async returns once the resume is accepted. Default false waits until the session is RUNNING or the resume fails.\n   *\n   * @generated from field: bool async = 2;\n   */\n  async: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResumeSessionRequest.\n * Use `create(ResumeSessionRequestSchema)` to create a new message.\n */\nexport const ResumeSessionRequestSchema: GenMessage<ResumeSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 144);\n\n/**\n * @generated from message tenki.sandbox.v1.ResumeSessionResponse\n */\nexport type ResumeSessionResponse = Message<\"tenki.sandbox.v1.ResumeSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResumeSessionResponse.\n * Use `create(ResumeSessionResponseSchema)` to create a new message.\n */\nexport const ResumeSessionResponseSchema: GenMessage<ResumeSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 145);\n\n/**\n * @generated from message tenki.sandbox.v1.TerminateSessionRequest\n */\nexport type TerminateSessionRequest = Message<\"tenki.sandbox.v1.TerminateSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TerminateSessionRequest.\n * Use `create(TerminateSessionRequestSchema)` to create a new message.\n */\nexport const TerminateSessionRequestSchema: GenMessage<TerminateSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 146);\n\n/**\n * @generated from message tenki.sandbox.v1.TerminateSessionResponse\n */\nexport type TerminateSessionResponse = Message<\"tenki.sandbox.v1.TerminateSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TerminateSessionResponse.\n * Use `create(TerminateSessionResponseSchema)` to create a new message.\n */\nexport const TerminateSessionResponseSchema: GenMessage<TerminateSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 147);\n\n/**\n * @generated from message tenki.sandbox.v1.TerminateSessionsRequest\n */\nexport type TerminateSessionsRequest = Message<\"tenki.sandbox.v1.TerminateSessionsRequest\"> & {\n  /**\n   * @generated from field: repeated string session_ids = 1;\n   */\n  sessionIds: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TerminateSessionsRequest.\n * Use `create(TerminateSessionsRequestSchema)` to create a new message.\n */\nexport const TerminateSessionsRequestSchema: GenMessage<TerminateSessionsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 148);\n\n/**\n * @generated from message tenki.sandbox.v1.TerminateSessionsResponse\n */\nexport type TerminateSessionsResponse = Message<\"tenki.sandbox.v1.TerminateSessionsResponse\"> & {\n  /**\n   * sessions contains the updated SandboxSession for every successfully terminated session.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.SandboxSession sessions = 1;\n   */\n  sessions: SandboxSession[];\n\n  /**\n   * failures contains an entry per session that could not be terminated, with the reason.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.TerminateSessionFailure failures = 2;\n   */\n  failures: TerminateSessionFailure[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TerminateSessionsResponse.\n * Use `create(TerminateSessionsResponseSchema)` to create a new message.\n */\nexport const TerminateSessionsResponseSchema: GenMessage<TerminateSessionsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 149);\n\n/**\n * @generated from message tenki.sandbox.v1.TerminateSessionFailure\n */\nexport type TerminateSessionFailure = Message<\"tenki.sandbox.v1.TerminateSessionFailure\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string message = 2;\n   */\n  message: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TerminateSessionFailure.\n * Use `create(TerminateSessionFailureSchema)` to create a new message.\n */\nexport const TerminateSessionFailureSchema: GenMessage<TerminateSessionFailure> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 150);\n\n/**\n * @generated from message tenki.sandbox.v1.ExtendSessionRequest\n */\nexport type ExtendSessionRequest = Message<\"tenki.sandbox.v1.ExtendSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: google.protobuf.Duration additional_duration = 2;\n   */\n  additionalDuration?: Duration;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ExtendSessionRequest.\n * Use `create(ExtendSessionRequestSchema)` to create a new message.\n */\nexport const ExtendSessionRequestSchema: GenMessage<ExtendSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 151);\n\n/**\n * @generated from message tenki.sandbox.v1.ExtendSessionResponse\n */\nexport type ExtendSessionResponse = Message<\"tenki.sandbox.v1.ExtendSessionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxSession session = 1;\n   */\n  session?: SandboxSession;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ExtendSessionResponse.\n * Use `create(ExtendSessionResponseSchema)` to create a new message.\n */\nexport const ExtendSessionResponseSchema: GenMessage<ExtendSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 152);\n\n/**\n * @generated from message tenki.sandbox.v1.GetArtifactUploadUrlRequest\n */\nexport type GetArtifactUploadUrlRequest = Message<\"tenki.sandbox.v1.GetArtifactUploadUrlRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n\n  /**\n   * @generated from field: string content_type = 3;\n   */\n  contentType: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetArtifactUploadUrlRequest.\n * Use `create(GetArtifactUploadUrlRequestSchema)` to create a new message.\n */\nexport const GetArtifactUploadUrlRequestSchema: GenMessage<GetArtifactUploadUrlRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 153);\n\n/**\n * @generated from message tenki.sandbox.v1.GetArtifactUploadUrlResponse\n */\nexport type GetArtifactUploadUrlResponse = Message<\"tenki.sandbox.v1.GetArtifactUploadUrlResponse\"> & {\n  /**\n   * @generated from field: string artifact_id = 1;\n   */\n  artifactId: string;\n\n  /**\n   * @generated from field: string upload_url = 2;\n   */\n  uploadUrl: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetArtifactUploadUrlResponse.\n * Use `create(GetArtifactUploadUrlResponseSchema)` to create a new message.\n */\nexport const GetArtifactUploadUrlResponseSchema: GenMessage<GetArtifactUploadUrlResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 154);\n\n/**\n * @generated from message tenki.sandbox.v1.GetArtifactDownloadUrlRequest\n */\nexport type GetArtifactDownloadUrlRequest = Message<\"tenki.sandbox.v1.GetArtifactDownloadUrlRequest\"> & {\n  /**\n   * @generated from field: string artifact_id = 1;\n   */\n  artifactId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetArtifactDownloadUrlRequest.\n * Use `create(GetArtifactDownloadUrlRequestSchema)` to create a new message.\n */\nexport const GetArtifactDownloadUrlRequestSchema: GenMessage<GetArtifactDownloadUrlRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 155);\n\n/**\n * @generated from message tenki.sandbox.v1.GetArtifactDownloadUrlResponse\n */\nexport type GetArtifactDownloadUrlResponse = Message<\"tenki.sandbox.v1.GetArtifactDownloadUrlResponse\"> & {\n  /**\n   * @generated from field: string download_url = 1;\n   */\n  downloadUrl: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp expires_at = 2;\n   */\n  expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetArtifactDownloadUrlResponse.\n * Use `create(GetArtifactDownloadUrlResponseSchema)` to create a new message.\n */\nexport const GetArtifactDownloadUrlResponseSchema: GenMessage<GetArtifactDownloadUrlResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 156);\n\n/**\n * @generated from message tenki.sandbox.v1.ExposePortRequest\n */\nexport type ExposePortRequest = Message<\"tenki.sandbox.v1.ExposePortRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: int32 port = 2;\n   */\n  port: number;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string slug = 4;\n   */\n  slug?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ExposePortRequest.\n * Use `create(ExposePortRequestSchema)` to create a new message.\n */\nexport const ExposePortRequestSchema: GenMessage<ExposePortRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 157);\n\n/**\n * @generated from message tenki.sandbox.v1.ExposePortResponse\n */\nexport type ExposePortResponse = Message<\"tenki.sandbox.v1.ExposePortResponse\"> & {\n  /**\n   * Deprecated: legacy host:port exposure response.\n   *\n   * @generated from field: string host_address = 1;\n   */\n  hostAddress: string;\n\n  /**\n   * @generated from field: int32 port = 2;\n   */\n  port: number;\n\n  /**\n   * @generated from field: string preview_url = 3;\n   */\n  previewUrl: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 4;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string preview_url_id = 5;\n   */\n  previewUrlId?: string;\n\n  /**\n   * @generated from field: optional string slug = 6;\n   */\n  slug?: string;\n\n  /**\n   * Whether this exposure uses the workspace wildcard domain scheme.\n   *\n   * @generated from field: optional bool wildcard = 7;\n   */\n  wildcard?: boolean;\n\n  /**\n   * Readiness of the backing workspace wildcard domain at creation time.\n   *\n   * @generated from field: optional tenki.sandbox.v1.WildcardStatus wildcard_status = 8;\n   */\n  wildcardStatus?: WildcardStatus;\n\n  /**\n   * Human-readable reason accompanying a FAILED wildcard_status.\n   *\n   * @generated from field: optional string wildcard_status_reason = 9;\n   */\n  wildcardStatusReason?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ExposePortResponse.\n * Use `create(ExposePortResponseSchema)` to create a new message.\n */\nexport const ExposePortResponseSchema: GenMessage<ExposePortResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 158);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelRequest\n */\nexport type HostPortTunnelRequest = Message<\"tenki.sandbox.v1.HostPortTunnelRequest\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.HostPortTunnelRequest.payload\n   */\n  payload: {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelOpen open = 1;\n     */\n    value: HostPortTunnelOpen;\n    case: \"open\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelData data = 2;\n     */\n    value: HostPortTunnelData;\n    case: \"data\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelHalfClose half_close = 3;\n     */\n    value: HostPortTunnelHalfClose;\n    case: \"halfClose\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelClose close = 4;\n     */\n    value: HostPortTunnelClose;\n    case: \"close\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelKeepalivePong pong = 5;\n     */\n    value: HostPortTunnelKeepalivePong;\n    case: \"pong\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelRequest.\n * Use `create(HostPortTunnelRequestSchema)` to create a new message.\n */\nexport const HostPortTunnelRequestSchema: GenMessage<HostPortTunnelRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 159);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelOpen\n */\nexport type HostPortTunnelOpen = Message<\"tenki.sandbox.v1.HostPortTunnelOpen\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string sandbox_bind_address = 2;\n   */\n  sandboxBindAddress: string;\n\n  /**\n   * @generated from field: uint32 sandbox_port = 3;\n   */\n  sandboxPort: number;\n\n  /**\n   * @generated from field: string host_dial_target_label = 4;\n   */\n  hostDialTargetLabel: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelOpen.\n * Use `create(HostPortTunnelOpenSchema)` to create a new message.\n */\nexport const HostPortTunnelOpenSchema: GenMessage<HostPortTunnelOpen> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 160);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelData\n */\nexport type HostPortTunnelData = Message<\"tenki.sandbox.v1.HostPortTunnelData\"> & {\n  /**\n   * @generated from field: uint64 sub_stream_id = 1;\n   */\n  subStreamId: bigint;\n\n  /**\n   * @generated from field: bytes payload = 2;\n   */\n  payload: Uint8Array;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelData.\n * Use `create(HostPortTunnelDataSchema)` to create a new message.\n */\nexport const HostPortTunnelDataSchema: GenMessage<HostPortTunnelData> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 161);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelHalfClose\n */\nexport type HostPortTunnelHalfClose = Message<\"tenki.sandbox.v1.HostPortTunnelHalfClose\"> & {\n  /**\n   * @generated from field: uint64 sub_stream_id = 1;\n   */\n  subStreamId: bigint;\n\n  /**\n   * @generated from field: bool client_to_server = 2;\n   */\n  clientToServer: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelHalfClose.\n * Use `create(HostPortTunnelHalfCloseSchema)` to create a new message.\n */\nexport const HostPortTunnelHalfCloseSchema: GenMessage<HostPortTunnelHalfClose> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 162);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelClose\n */\nexport type HostPortTunnelClose = Message<\"tenki.sandbox.v1.HostPortTunnelClose\"> & {\n  /**\n   * @generated from field: uint64 sub_stream_id = 1;\n   */\n  subStreamId: bigint;\n\n  /**\n   * @generated from field: string reason = 2;\n   */\n  reason: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelClose.\n * Use `create(HostPortTunnelCloseSchema)` to create a new message.\n */\nexport const HostPortTunnelCloseSchema: GenMessage<HostPortTunnelClose> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 163);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelKeepalivePong\n */\nexport type HostPortTunnelKeepalivePong = Message<\"tenki.sandbox.v1.HostPortTunnelKeepalivePong\"> & {\n  /**\n   * @generated from field: int64 ping_id = 1;\n   */\n  pingId: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelKeepalivePong.\n * Use `create(HostPortTunnelKeepalivePongSchema)` to create a new message.\n */\nexport const HostPortTunnelKeepalivePongSchema: GenMessage<HostPortTunnelKeepalivePong> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 164);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelResponse\n */\nexport type HostPortTunnelResponse = Message<\"tenki.sandbox.v1.HostPortTunnelResponse\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.HostPortTunnelResponse.payload\n   */\n  payload: {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelOpened opened = 1;\n     */\n    value: HostPortTunnelOpened;\n    case: \"opened\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelAccept accept = 2;\n     */\n    value: HostPortTunnelAccept;\n    case: \"accept\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelData data = 3;\n     */\n    value: HostPortTunnelData;\n    case: \"data\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelHalfClose half_close = 4;\n     */\n    value: HostPortTunnelHalfClose;\n    case: \"halfClose\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelClose close = 5;\n     */\n    value: HostPortTunnelClose;\n    case: \"close\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelKeepalivePing ping = 6;\n     */\n    value: HostPortTunnelKeepalivePing;\n    case: \"ping\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.HostPortTunnelTerminated terminated = 7;\n     */\n    value: HostPortTunnelTerminated;\n    case: \"terminated\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelResponse.\n * Use `create(HostPortTunnelResponseSchema)` to create a new message.\n */\nexport const HostPortTunnelResponseSchema: GenMessage<HostPortTunnelResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 165);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelOpened\n */\nexport type HostPortTunnelOpened = Message<\"tenki.sandbox.v1.HostPortTunnelOpened\"> & {\n  /**\n   * @generated from field: uint32 sandbox_port = 1;\n   */\n  sandboxPort: number;\n\n  /**\n   * @generated from field: string sandbox_address = 2;\n   */\n  sandboxAddress: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelOpened.\n * Use `create(HostPortTunnelOpenedSchema)` to create a new message.\n */\nexport const HostPortTunnelOpenedSchema: GenMessage<HostPortTunnelOpened> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 166);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelAccept\n */\nexport type HostPortTunnelAccept = Message<\"tenki.sandbox.v1.HostPortTunnelAccept\"> & {\n  /**\n   * @generated from field: uint64 sub_stream_id = 1;\n   */\n  subStreamId: bigint;\n\n  /**\n   * @generated from field: string source_address = 2;\n   */\n  sourceAddress: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelAccept.\n * Use `create(HostPortTunnelAcceptSchema)` to create a new message.\n */\nexport const HostPortTunnelAcceptSchema: GenMessage<HostPortTunnelAccept> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 167);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelKeepalivePing\n */\nexport type HostPortTunnelKeepalivePing = Message<\"tenki.sandbox.v1.HostPortTunnelKeepalivePing\"> & {\n  /**\n   * @generated from field: int64 ping_id = 1;\n   */\n  pingId: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelKeepalivePing.\n * Use `create(HostPortTunnelKeepalivePingSchema)` to create a new message.\n */\nexport const HostPortTunnelKeepalivePingSchema: GenMessage<HostPortTunnelKeepalivePing> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 168);\n\n/**\n * @generated from message tenki.sandbox.v1.HostPortTunnelTerminated\n */\nexport type HostPortTunnelTerminated = Message<\"tenki.sandbox.v1.HostPortTunnelTerminated\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.HostPortTunnelTerminated.Reason reason = 1;\n   */\n  reason: HostPortTunnelTerminated_Reason;\n\n  /**\n   * @generated from field: string detail = 2;\n   */\n  detail: string;\n\n  /**\n   * @generated from field: int32 errno = 3;\n   */\n  errno: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.HostPortTunnelTerminated.\n * Use `create(HostPortTunnelTerminatedSchema)` to create a new message.\n */\nexport const HostPortTunnelTerminatedSchema: GenMessage<HostPortTunnelTerminated> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 169);\n\n/**\n * @generated from enum tenki.sandbox.v1.HostPortTunnelTerminated.Reason\n */\nexport enum HostPortTunnelTerminated_Reason {\n  /**\n   * @generated from enum value: REASON_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: REASON_BIND_FAILED = 1;\n   */\n  BIND_FAILED = 1,\n\n  /**\n   * @generated from enum value: REASON_KEEPALIVE_TIMEOUT = 2;\n   */\n  KEEPALIVE_TIMEOUT = 2,\n\n  /**\n   * @generated from enum value: REASON_SESSION_LOST = 3;\n   */\n  SESSION_LOST = 3,\n\n  /**\n   * @generated from enum value: REASON_PLATFORM_ERROR = 4;\n   */\n  PLATFORM_ERROR = 4,\n\n  /**\n   * @generated from enum value: REASON_CAPABILITY_UNAVAILABLE = 5;\n   */\n  CAPABILITY_UNAVAILABLE = 5,\n\n  /**\n   * @generated from enum value: REASON_ENGINE_DRAINING = 6;\n   */\n  ENGINE_DRAINING = 6,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.HostPortTunnelTerminated.Reason.\n */\nexport const HostPortTunnelTerminated_ReasonSchema: GenEnum<HostPortTunnelTerminated_Reason> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 169, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.OpenPreviewRequest\n */\nexport type OpenPreviewRequest = Message<\"tenki.sandbox.v1.OpenPreviewRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: int32 port = 2;\n   */\n  port: number;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.OpenPreviewRequest.\n * Use `create(OpenPreviewRequestSchema)` to create a new message.\n */\nexport const OpenPreviewRequestSchema: GenMessage<OpenPreviewRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 170);\n\n/**\n * @generated from message tenki.sandbox.v1.OpenPreviewResponse\n */\nexport type OpenPreviewResponse = Message<\"tenki.sandbox.v1.OpenPreviewResponse\"> & {\n  /**\n   * @generated from field: int32 port = 1;\n   */\n  port: number;\n\n  /**\n   * @generated from field: string preview_url = 2;\n   */\n  previewUrl: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: string viewer_token = 4;\n   */\n  viewerToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.OpenPreviewResponse.\n * Use `create(OpenPreviewResponseSchema)` to create a new message.\n */\nexport const OpenPreviewResponseSchema: GenMessage<OpenPreviewResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 171);\n\n/**\n * @generated from message tenki.sandbox.v1.TouchPreviewRequest\n */\nexport type TouchPreviewRequest = Message<\"tenki.sandbox.v1.TouchPreviewRequest\"> & {\n  /**\n   * @generated from field: string preview_token = 1;\n   */\n  previewToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TouchPreviewRequest.\n * Use `create(TouchPreviewRequestSchema)` to create a new message.\n */\nexport const TouchPreviewRequestSchema: GenMessage<TouchPreviewRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 172);\n\n/**\n * @generated from message tenki.sandbox.v1.TouchPreviewResponse\n */\nexport type TouchPreviewResponse = Message<\"tenki.sandbox.v1.TouchPreviewResponse\"> & {\n  /**\n   * @generated from field: google.protobuf.Timestamp last_accessed_at = 1;\n   */\n  lastAccessedAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TouchPreviewResponse.\n * Use `create(TouchPreviewResponseSchema)` to create a new message.\n */\nexport const TouchPreviewResponseSchema: GenMessage<TouchPreviewResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 173);\n\n/**\n * @generated from message tenki.sandbox.v1.ReportSessionActivityRequest\n */\nexport type ReportSessionActivityRequest = Message<\"tenki.sandbox.v1.ReportSessionActivityRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ReportSessionActivityRequest.\n * Use `create(ReportSessionActivityRequestSchema)` to create a new message.\n */\nexport const ReportSessionActivityRequestSchema: GenMessage<ReportSessionActivityRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 174);\n\n/**\n * @generated from message tenki.sandbox.v1.ReportSessionActivityResponse\n */\nexport type ReportSessionActivityResponse = Message<\"tenki.sandbox.v1.ReportSessionActivityResponse\"> & {\n  /**\n   * @generated from field: google.protobuf.Timestamp last_activity_at = 1;\n   */\n  lastActivityAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ReportSessionActivityResponse.\n * Use `create(ReportSessionActivityResponseSchema)` to create a new message.\n */\nexport const ReportSessionActivityResponseSchema: GenMessage<ReportSessionActivityResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 175);\n\n/**\n * @generated from message tenki.sandbox.v1.UnexposePortRequest\n */\nexport type UnexposePortRequest = Message<\"tenki.sandbox.v1.UnexposePortRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: int32 port = 2;\n   */\n  port: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UnexposePortRequest.\n * Use `create(UnexposePortRequestSchema)` to create a new message.\n */\nexport const UnexposePortRequestSchema: GenMessage<UnexposePortRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 176);\n\n/**\n * @generated from message tenki.sandbox.v1.UnexposePortResponse\n */\nexport type UnexposePortResponse = Message<\"tenki.sandbox.v1.UnexposePortResponse\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UnexposePortResponse.\n * Use `create(UnexposePortResponseSchema)` to create a new message.\n */\nexport const UnexposePortResponseSchema: GenMessage<UnexposePortResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 177);\n\n/**\n * @generated from message tenki.sandbox.v1.ListExposedPortsRequest\n */\nexport type ListExposedPortsRequest = Message<\"tenki.sandbox.v1.ListExposedPortsRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListExposedPortsRequest.\n * Use `create(ListExposedPortsRequestSchema)` to create a new message.\n */\nexport const ListExposedPortsRequestSchema: GenMessage<ListExposedPortsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 178);\n\n/**\n * @generated from message tenki.sandbox.v1.PortExposure\n */\nexport type PortExposure = Message<\"tenki.sandbox.v1.PortExposure\"> & {\n  /**\n   * @generated from field: int32 port = 1;\n   */\n  port: number;\n\n  /**\n   * @generated from field: string preview_url = 2;\n   */\n  previewUrl: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string preview_url_id = 4;\n   */\n  previewUrlId?: string;\n\n  /**\n   * @generated from field: optional string slug = 5;\n   */\n  slug?: string;\n\n  /**\n   * Whether this exposure uses the workspace wildcard domain scheme.\n   *\n   * @generated from field: optional bool wildcard = 6;\n   */\n  wildcard?: boolean;\n\n  /**\n   * Readiness of the backing workspace wildcard domain (see WildcardStatus).\n   *\n   * @generated from field: optional tenki.sandbox.v1.WildcardStatus wildcard_status = 7;\n   */\n  wildcardStatus?: WildcardStatus;\n\n  /**\n   * Human-readable reason accompanying a FAILED wildcard_status.\n   *\n   * @generated from field: optional string wildcard_status_reason = 8;\n   */\n  wildcardStatusReason?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PortExposure.\n * Use `create(PortExposureSchema)` to create a new message.\n */\nexport const PortExposureSchema: GenMessage<PortExposure> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 179);\n\n/**\n * @generated from message tenki.sandbox.v1.ListExposedPortsResponse\n */\nexport type ListExposedPortsResponse = Message<\"tenki.sandbox.v1.ListExposedPortsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.PortExposure ports = 1;\n   */\n  ports: PortExposure[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListExposedPortsResponse.\n * Use `create(ListExposedPortsResponseSchema)` to create a new message.\n */\nexport const ListExposedPortsResponseSchema: GenMessage<ListExposedPortsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 180);\n\n/**\n * @generated from message tenki.sandbox.v1.CreatePreviewUrlRequest\n */\nexport type CreatePreviewUrlRequest = Message<\"tenki.sandbox.v1.CreatePreviewUrlRequest\"> & {\n  /**\n   * @generated from field: string slug = 2;\n   */\n  slug: string;\n\n  /**\n   * @generated from field: optional string session_id = 3;\n   */\n  sessionId?: string;\n\n  /**\n   * @generated from field: optional int32 port = 4;\n   */\n  port?: number;\n\n  /**\n   * @generated from field: optional string workspace_id = 5;\n   */\n  workspaceId?: string;\n\n  /**\n   * Absolute deadline after which the URL stops serving and is swept.\n   *\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 6;\n   */\n  expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreatePreviewUrlRequest.\n * Use `create(CreatePreviewUrlRequestSchema)` to create a new message.\n */\nexport const CreatePreviewUrlRequestSchema: GenMessage<CreatePreviewUrlRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 181);\n\n/**\n * @generated from message tenki.sandbox.v1.CreatePreviewUrlResponse\n */\nexport type CreatePreviewUrlResponse = Message<\"tenki.sandbox.v1.CreatePreviewUrlResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.PreviewUrl preview_url = 1;\n   */\n  previewUrl?: PreviewUrl;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreatePreviewUrlResponse.\n * Use `create(CreatePreviewUrlResponseSchema)` to create a new message.\n */\nexport const CreatePreviewUrlResponseSchema: GenMessage<CreatePreviewUrlResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 182);\n\n/**\n * @generated from message tenki.sandbox.v1.DeletePreviewUrlRequest\n */\nexport type DeletePreviewUrlRequest = Message<\"tenki.sandbox.v1.DeletePreviewUrlRequest\"> & {\n  /**\n   * @generated from field: string preview_url_id = 1;\n   */\n  previewUrlId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeletePreviewUrlRequest.\n * Use `create(DeletePreviewUrlRequestSchema)` to create a new message.\n */\nexport const DeletePreviewUrlRequestSchema: GenMessage<DeletePreviewUrlRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 183);\n\n/**\n * @generated from message tenki.sandbox.v1.DeletePreviewUrlResponse\n */\nexport type DeletePreviewUrlResponse = Message<\"tenki.sandbox.v1.DeletePreviewUrlResponse\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeletePreviewUrlResponse.\n * Use `create(DeletePreviewUrlResponseSchema)` to create a new message.\n */\nexport const DeletePreviewUrlResponseSchema: GenMessage<DeletePreviewUrlResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 184);\n\n/**\n * @generated from message tenki.sandbox.v1.BindPreviewUrlRequest\n */\nexport type BindPreviewUrlRequest = Message<\"tenki.sandbox.v1.BindPreviewUrlRequest\"> & {\n  /**\n   * @generated from field: string preview_url_id = 1;\n   */\n  previewUrlId: string;\n\n  /**\n   * @generated from field: string session_id = 2;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: int32 port = 3;\n   */\n  port: number;\n\n  /**\n   * Replaces the deadline on the row. Required to bind one that has lapsed.\n   *\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 4;\n   */\n  expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.BindPreviewUrlRequest.\n * Use `create(BindPreviewUrlRequestSchema)` to create a new message.\n */\nexport const BindPreviewUrlRequestSchema: GenMessage<BindPreviewUrlRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 185);\n\n/**\n * @generated from message tenki.sandbox.v1.BindPreviewUrlResponse\n */\nexport type BindPreviewUrlResponse = Message<\"tenki.sandbox.v1.BindPreviewUrlResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.PreviewUrl preview_url = 1;\n   */\n  previewUrl?: PreviewUrl;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.BindPreviewUrlResponse.\n * Use `create(BindPreviewUrlResponseSchema)` to create a new message.\n */\nexport const BindPreviewUrlResponseSchema: GenMessage<BindPreviewUrlResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 186);\n\n/**\n * @generated from message tenki.sandbox.v1.UnbindPreviewUrlRequest\n */\nexport type UnbindPreviewUrlRequest = Message<\"tenki.sandbox.v1.UnbindPreviewUrlRequest\"> & {\n  /**\n   * @generated from field: string preview_url_id = 1;\n   */\n  previewUrlId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UnbindPreviewUrlRequest.\n * Use `create(UnbindPreviewUrlRequestSchema)` to create a new message.\n */\nexport const UnbindPreviewUrlRequestSchema: GenMessage<UnbindPreviewUrlRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 187);\n\n/**\n * @generated from message tenki.sandbox.v1.UnbindPreviewUrlResponse\n */\nexport type UnbindPreviewUrlResponse = Message<\"tenki.sandbox.v1.UnbindPreviewUrlResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.PreviewUrl preview_url = 1;\n   */\n  previewUrl?: PreviewUrl;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UnbindPreviewUrlResponse.\n * Use `create(UnbindPreviewUrlResponseSchema)` to create a new message.\n */\nexport const UnbindPreviewUrlResponseSchema: GenMessage<UnbindPreviewUrlResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 188);\n\n/**\n * @generated from message tenki.sandbox.v1.ListPreviewUrlsRequest\n */\nexport type ListPreviewUrlsRequest = Message<\"tenki.sandbox.v1.ListPreviewUrlsRequest\"> & {\n  /**\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 4;\n   */\n  workspaceId?: string;\n\n  /**\n   * Restrict the page to the preview URLs bound to one session.\n   *\n   * @generated from field: optional string session_id = 5;\n   */\n  sessionId?: string;\n\n  /**\n   * Matches slug and URL.\n   *\n   * @generated from field: string search = 6;\n   */\n  search: string;\n\n  /**\n   * Any of these; empty means no filter.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.PreviewUrlBindingState states = 7;\n   */\n  states: PreviewUrlBindingState[];\n\n  /**\n   * Also return facets for the same search.\n   *\n   * @generated from field: bool include_facets = 8;\n   */\n  includeFacets: boolean;\n\n  /**\n   * A column sort; unspecified means newest first.\n   *\n   * @generated from field: tenki.sandbox.v1.PreviewUrlSortField sort_by = 9;\n   */\n  sortBy: PreviewUrlSortField;\n\n  /**\n   * @generated from field: bool sort_desc = 10;\n   */\n  sortDesc: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListPreviewUrlsRequest.\n * Use `create(ListPreviewUrlsRequestSchema)` to create a new message.\n */\nexport const ListPreviewUrlsRequestSchema: GenMessage<ListPreviewUrlsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 189);\n\n/**\n * @generated from message tenki.sandbox.v1.ListPreviewUrlsResponse\n */\nexport type ListPreviewUrlsResponse = Message<\"tenki.sandbox.v1.ListPreviewUrlsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.PreviewUrl preview_urls = 1;\n   */\n  previewUrls: PreviewUrl[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.PreviewUrlListFacets facets = 3;\n   */\n  facets?: PreviewUrlListFacets;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListPreviewUrlsResponse.\n * Use `create(ListPreviewUrlsResponseSchema)` to create a new message.\n */\nexport const ListPreviewUrlsResponseSchema: GenMessage<ListPreviewUrlsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 190);\n\n/**\n * @generated from message tenki.sandbox.v1.PreviewUrlBindingCount\n */\nexport type PreviewUrlBindingCount = Message<\"tenki.sandbox.v1.PreviewUrlBindingCount\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.PreviewUrlBindingState state = 1;\n   */\n  state: PreviewUrlBindingState;\n\n  /**\n   * @generated from field: int64 count = 2;\n   */\n  count: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PreviewUrlBindingCount.\n * Use `create(PreviewUrlBindingCountSchema)` to create a new message.\n */\nexport const PreviewUrlBindingCountSchema: GenMessage<PreviewUrlBindingCount> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 191);\n\n/**\n * Counts ignore `states`, so each option shows what it would yield.\n *\n * @generated from message tenki.sandbox.v1.PreviewUrlListFacets\n */\nexport type PreviewUrlListFacets = Message<\"tenki.sandbox.v1.PreviewUrlListFacets\"> & {\n  /**\n   * @generated from field: int64 total = 1;\n   */\n  total: bigint;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.PreviewUrlBindingCount state_counts = 2;\n   */\n  stateCounts: PreviewUrlBindingCount[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PreviewUrlListFacets.\n * Use `create(PreviewUrlListFacetsSchema)` to create a new message.\n */\nexport const PreviewUrlListFacetsSchema: GenMessage<PreviewUrlListFacets> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 192);\n\n/**\n * @generated from message tenki.sandbox.v1.GetPreviewUrlRequest\n */\nexport type GetPreviewUrlRequest = Message<\"tenki.sandbox.v1.GetPreviewUrlRequest\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.GetPreviewUrlRequest.lookup\n   */\n  lookup: {\n    /**\n     * @generated from field: string preview_url_id = 1;\n     */\n    value: string;\n    case: \"previewUrlId\";\n  } | {\n    /**\n     * @generated from field: string slug = 2;\n     */\n    value: string;\n    case: \"slug\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetPreviewUrlRequest.\n * Use `create(GetPreviewUrlRequestSchema)` to create a new message.\n */\nexport const GetPreviewUrlRequestSchema: GenMessage<GetPreviewUrlRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 193);\n\n/**\n * @generated from message tenki.sandbox.v1.GetPreviewUrlResponse\n */\nexport type GetPreviewUrlResponse = Message<\"tenki.sandbox.v1.GetPreviewUrlResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.PreviewUrl preview_url = 1;\n   */\n  previewUrl?: PreviewUrl;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetPreviewUrlResponse.\n * Use `create(GetPreviewUrlResponseSchema)` to create a new message.\n */\nexport const GetPreviewUrlResponseSchema: GenMessage<GetPreviewUrlResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 194);\n\n/**\n * @generated from message tenki.sandbox.v1.ResolvePreviewTokenRequest\n */\nexport type ResolvePreviewTokenRequest = Message<\"tenki.sandbox.v1.ResolvePreviewTokenRequest\"> & {\n  /**\n   * @generated from field: string token = 1;\n   */\n  token: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResolvePreviewTokenRequest.\n * Use `create(ResolvePreviewTokenRequestSchema)` to create a new message.\n */\nexport const ResolvePreviewTokenRequestSchema: GenMessage<ResolvePreviewTokenRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 195);\n\n/**\n * @generated from message tenki.sandbox.v1.ResolvePreviewTokenResponse\n */\nexport type ResolvePreviewTokenResponse = Message<\"tenki.sandbox.v1.ResolvePreviewTokenResponse\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string host_id = 2;\n   */\n  hostId: string;\n\n  /**\n   * @generated from field: int32 port = 3;\n   */\n  port: number;\n\n  /**\n   * @generated from field: string mode = 4;\n   */\n  mode: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 5;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: bool is_offline = 6;\n   */\n  isOffline: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResolvePreviewTokenResponse.\n * Use `create(ResolvePreviewTokenResponseSchema)` to create a new message.\n */\nexport const ResolvePreviewTokenResponseSchema: GenMessage<ResolvePreviewTokenResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 196);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateSSHAuthorizedKeysRequest\n */\nexport type UpdateSSHAuthorizedKeysRequest = Message<\"tenki.sandbox.v1.UpdateSSHAuthorizedKeysRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: repeated string ssh_authorized_keys = 2;\n   */\n  sshAuthorizedKeys: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateSSHAuthorizedKeysRequest.\n * Use `create(UpdateSSHAuthorizedKeysRequestSchema)` to create a new message.\n */\nexport const UpdateSSHAuthorizedKeysRequestSchema: GenMessage<UpdateSSHAuthorizedKeysRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 197);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateSSHAuthorizedKeysResponse\n */\nexport type UpdateSSHAuthorizedKeysResponse = Message<\"tenki.sandbox.v1.UpdateSSHAuthorizedKeysResponse\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateSSHAuthorizedKeysResponse.\n * Use `create(UpdateSSHAuthorizedKeysResponseSchema)` to create a new message.\n */\nexport const UpdateSSHAuthorizedKeysResponseSchema: GenMessage<UpdateSSHAuthorizedKeysResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 198);\n\n/**\n * @generated from message tenki.sandbox.v1.RefreshSessionSecretsRequest\n */\nexport type RefreshSessionSecretsRequest = Message<\"tenki.sandbox.v1.RefreshSessionSecretsRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string request_id = 2;\n   */\n  requestId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RefreshSessionSecretsRequest.\n * Use `create(RefreshSessionSecretsRequestSchema)` to create a new message.\n */\nexport const RefreshSessionSecretsRequestSchema: GenMessage<RefreshSessionSecretsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 199);\n\n/**\n * @generated from message tenki.sandbox.v1.RefreshSessionSecretsResponse\n */\nexport type RefreshSessionSecretsResponse = Message<\"tenki.sandbox.v1.RefreshSessionSecretsResponse\"> & {\n  /**\n   * False when every binding already used the current version; the runtime environment is re-delivered either way.\n   *\n   * @generated from field: bool changed = 1;\n   */\n  changed: boolean;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RuntimeSecretVersionRef versions = 2;\n   */\n  versions: RuntimeSecretVersionRef[];\n\n  /**\n   * @generated from field: string workflow_id = 3;\n   */\n  workflowId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RefreshSessionSecretsResponse.\n * Use `create(RefreshSessionSecretsResponseSchema)` to create a new message.\n */\nexport const RefreshSessionSecretsResponseSchema: GenMessage<RefreshSessionSecretsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 200);\n\n/**\n * Names and version numbers only; values never leave the engine.\n *\n * @generated from message tenki.sandbox.v1.RuntimeSecretVersionRef\n */\nexport type RuntimeSecretVersionRef = Message<\"tenki.sandbox.v1.RuntimeSecretVersionRef\"> & {\n  /**\n   * @generated from field: string secret_name = 1;\n   */\n  secretName: string;\n\n  /**\n   * @generated from field: uint32 version = 2;\n   */\n  version: number;\n\n  /**\n   * @generated from field: string environment_key = 3;\n   */\n  environmentKey: string;\n\n  /**\n   * @generated from field: string file_path = 4;\n   */\n  filePath: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RuntimeSecretVersionRef.\n * Use `create(RuntimeSecretVersionRefSchema)` to create a new message.\n */\nexport const RuntimeSecretVersionRefSchema: GenMessage<RuntimeSecretVersionRef> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 201);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateSnapshotRequest\n */\nexport type CreateSnapshotRequest = Message<\"tenki.sandbox.v1.CreateSnapshotRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: optional string name = 2;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * store_raw_image additionally uploads the snapshot's raw rootfs disk image\n   * as a standalone artifact alongside the restore pair, so a clean\n   * cold-boot/base-image path exists when memory restore is impossible (for\n   * example a CPU-incompatible snapshot). Default false.\n   *\n   * @generated from field: optional bool store_raw_image = 4;\n   */\n  storeRawImage?: boolean;\n\n  /**\n   * async returns after the snapshot row is created and dispatches the host\n   * operation in the background. The snapshot can be polled with GetSnapshot.\n   *\n   * @generated from field: bool async = 5;\n   */\n  async: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateSnapshotRequest.\n * Use `create(CreateSnapshotRequestSchema)` to create a new message.\n */\nexport const CreateSnapshotRequestSchema: GenMessage<CreateSnapshotRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 202);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateSnapshotResponse\n */\nexport type CreateSnapshotResponse = Message<\"tenki.sandbox.v1.CreateSnapshotResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Snapshot snapshot = 1;\n   */\n  snapshot?: Snapshot;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateSnapshotResponse.\n * Use `create(CreateSnapshotResponseSchema)` to create a new message.\n */\nexport const CreateSnapshotResponseSchema: GenMessage<CreateSnapshotResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 203);\n\n/**\n * @generated from message tenki.sandbox.v1.ForkSessionRequest\n */\nexport type ForkSessionRequest = Message<\"tenki.sandbox.v1.ForkSessionRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * Number of children to create. Zero means 1.\n   *\n   * @generated from field: int32 count = 2;\n   */\n  count: number;\n\n  /**\n   * Children are named <name_prefix>-1 .. <name_prefix>-<count>. Empty derives the prefix from the source name.\n   *\n   * @generated from field: string name_prefix = 3;\n   */\n  namePrefix: string;\n\n  /**\n   * Hold the response until every child is RUNNING or terminal.\n   *\n   * @generated from field: bool wait = 4;\n   */\n  wait: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ForkSessionRequest.\n * Use `create(ForkSessionRequestSchema)` to create a new message.\n */\nexport const ForkSessionRequestSchema: GenMessage<ForkSessionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 204);\n\n/**\n * Also attached as an error detail when a child fails, listing the snapshot and the children created before it.\n *\n * @generated from message tenki.sandbox.v1.ForkSessionResponse\n */\nexport type ForkSessionResponse = Message<\"tenki.sandbox.v1.ForkSessionResponse\"> & {\n  /**\n   * @generated from field: string snapshot_id = 1;\n   */\n  snapshotId: string;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.SandboxSession sessions = 2;\n   */\n  sessions: SandboxSession[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ForkSessionResponse.\n * Use `create(ForkSessionResponseSchema)` to create a new message.\n */\nexport const ForkSessionResponseSchema: GenMessage<ForkSessionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 205);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSnapshotRequest\n */\nexport type GetSnapshotRequest = Message<\"tenki.sandbox.v1.GetSnapshotRequest\"> & {\n  /**\n   * @generated from field: string snapshot_id = 1;\n   */\n  snapshotId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSnapshotRequest.\n * Use `create(GetSnapshotRequestSchema)` to create a new message.\n */\nexport const GetSnapshotRequestSchema: GenMessage<GetSnapshotRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 206);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSnapshotResponse\n */\nexport type GetSnapshotResponse = Message<\"tenki.sandbox.v1.GetSnapshotResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Snapshot snapshot = 1;\n   */\n  snapshot?: Snapshot;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSnapshotResponse.\n * Use `create(GetSnapshotResponseSchema)` to create a new message.\n */\nexport const GetSnapshotResponseSchema: GenMessage<GetSnapshotResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 207);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSnapshotDownloadURLRequest\n */\nexport type GetSnapshotDownloadURLRequest = Message<\"tenki.sandbox.v1.GetSnapshotDownloadURLRequest\"> & {\n  /**\n   * @generated from field: string snapshot_id = 1;\n   */\n  snapshotId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSnapshotDownloadURLRequest.\n * Use `create(GetSnapshotDownloadURLRequestSchema)` to create a new message.\n */\nexport const GetSnapshotDownloadURLRequestSchema: GenMessage<GetSnapshotDownloadURLRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 208);\n\n/**\n * @generated from message tenki.sandbox.v1.GetSnapshotDownloadURLResponse\n */\nexport type GetSnapshotDownloadURLResponse = Message<\"tenki.sandbox.v1.GetSnapshotDownloadURLResponse\"> & {\n  /**\n   * @generated from field: string url = 1;\n   */\n  url: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp expires_at = 2;\n   */\n  expiresAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetSnapshotDownloadURLResponse.\n * Use `create(GetSnapshotDownloadURLResponseSchema)` to create a new message.\n */\nexport const GetSnapshotDownloadURLResponseSchema: GenMessage<GetSnapshotDownloadURLResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 209);\n\n/**\n * @generated from message tenki.sandbox.v1.ListSnapshotsRequest\n */\nexport type ListSnapshotsRequest = Message<\"tenki.sandbox.v1.ListSnapshotsRequest\"> & {\n  /**\n   * @generated from field: int32 page_size = 1;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 2;\n   */\n  pageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListSnapshotsRequest.\n * Use `create(ListSnapshotsRequestSchema)` to create a new message.\n */\nexport const ListSnapshotsRequestSchema: GenMessage<ListSnapshotsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 210);\n\n/**\n * @generated from message tenki.sandbox.v1.ListSnapshotsResponse\n */\nexport type ListSnapshotsResponse = Message<\"tenki.sandbox.v1.ListSnapshotsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.Snapshot snapshots = 1;\n   */\n  snapshots: Snapshot[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListSnapshotsResponse.\n * Use `create(ListSnapshotsResponseSchema)` to create a new message.\n */\nexport const ListSnapshotsResponseSchema: GenMessage<ListSnapshotsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 211);\n\n/**\n * @generated from message tenki.sandbox.v1.ListSessionSnapshotsRequest\n */\nexport type ListSessionSnapshotsRequest = Message<\"tenki.sandbox.v1.ListSessionSnapshotsRequest\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListSessionSnapshotsRequest.\n * Use `create(ListSessionSnapshotsRequestSchema)` to create a new message.\n */\nexport const ListSessionSnapshotsRequestSchema: GenMessage<ListSessionSnapshotsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 212);\n\n/**\n * @generated from message tenki.sandbox.v1.ListSessionSnapshotsResponse\n */\nexport type ListSessionSnapshotsResponse = Message<\"tenki.sandbox.v1.ListSessionSnapshotsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.Snapshot snapshots = 1;\n   */\n  snapshots: Snapshot[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListSessionSnapshotsResponse.\n * Use `create(ListSessionSnapshotsResponseSchema)` to create a new message.\n */\nexport const ListSessionSnapshotsResponseSchema: GenMessage<ListSessionSnapshotsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 213);\n\n/**\n * @generated from message tenki.sandbox.v1.ListDanglingSnapshotsRequest\n */\nexport type ListDanglingSnapshotsRequest = Message<\"tenki.sandbox.v1.ListDanglingSnapshotsRequest\"> & {\n  /**\n   * @generated from field: int32 page_size = 1;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 2;\n   */\n  pageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListDanglingSnapshotsRequest.\n * Use `create(ListDanglingSnapshotsRequestSchema)` to create a new message.\n */\nexport const ListDanglingSnapshotsRequestSchema: GenMessage<ListDanglingSnapshotsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 214);\n\n/**\n * @generated from message tenki.sandbox.v1.ListDanglingSnapshotsResponse\n */\nexport type ListDanglingSnapshotsResponse = Message<\"tenki.sandbox.v1.ListDanglingSnapshotsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.Snapshot snapshots = 1;\n   */\n  snapshots: Snapshot[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListDanglingSnapshotsResponse.\n * Use `create(ListDanglingSnapshotsResponseSchema)` to create a new message.\n */\nexport const ListDanglingSnapshotsResponseSchema: GenMessage<ListDanglingSnapshotsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 215);\n\n/**\n * @generated from message tenki.sandbox.v1.ListWorkspaceSnapshotsRequest\n */\nexport type ListWorkspaceSnapshotsRequest = Message<\"tenki.sandbox.v1.ListWorkspaceSnapshotsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListWorkspaceSnapshotsRequest.\n * Use `create(ListWorkspaceSnapshotsRequestSchema)` to create a new message.\n */\nexport const ListWorkspaceSnapshotsRequestSchema: GenMessage<ListWorkspaceSnapshotsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 216);\n\n/**\n * @generated from message tenki.sandbox.v1.ListWorkspaceSnapshotsResponse\n */\nexport type ListWorkspaceSnapshotsResponse = Message<\"tenki.sandbox.v1.ListWorkspaceSnapshotsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.Snapshot snapshots = 1;\n   */\n  snapshots: Snapshot[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListWorkspaceSnapshotsResponse.\n * Use `create(ListWorkspaceSnapshotsResponseSchema)` to create a new message.\n */\nexport const ListWorkspaceSnapshotsResponseSchema: GenMessage<ListWorkspaceSnapshotsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 217);\n\n/**\n * @generated from message tenki.sandbox.v1.GetWorkspaceSandboxUsageRequest\n */\nexport type GetWorkspaceSandboxUsageRequest = Message<\"tenki.sandbox.v1.GetWorkspaceSandboxUsageRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetWorkspaceSandboxUsageRequest.\n * Use `create(GetWorkspaceSandboxUsageRequestSchema)` to create a new message.\n */\nexport const GetWorkspaceSandboxUsageRequestSchema: GenMessage<GetWorkspaceSandboxUsageRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 218);\n\n/**\n * @generated from message tenki.sandbox.v1.GetWorkspaceSandboxUsageResponse\n */\nexport type GetWorkspaceSandboxUsageResponse = Message<\"tenki.sandbox.v1.GetWorkspaceSandboxUsageResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.WorkspaceSandboxUsageLimit limits = 1;\n   */\n  limits: WorkspaceSandboxUsageLimit[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetWorkspaceSandboxUsageResponse.\n * Use `create(GetWorkspaceSandboxUsageResponseSchema)` to create a new message.\n */\nexport const GetWorkspaceSandboxUsageResponseSchema: GenMessage<GetWorkspaceSandboxUsageResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 219);\n\n/**\n * @generated from message tenki.sandbox.v1.GetWorkspacePreviewDomainsRequest\n */\nexport type GetWorkspacePreviewDomainsRequest = Message<\"tenki.sandbox.v1.GetWorkspacePreviewDomainsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetWorkspacePreviewDomainsRequest.\n * Use `create(GetWorkspacePreviewDomainsRequestSchema)` to create a new message.\n */\nexport const GetWorkspacePreviewDomainsRequestSchema: GenMessage<GetWorkspacePreviewDomainsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 220);\n\n/**\n * @generated from message tenki.sandbox.v1.GetWorkspacePreviewDomainsResponse\n */\nexport type GetWorkspacePreviewDomainsResponse = Message<\"tenki.sandbox.v1.GetWorkspacePreviewDomainsResponse\"> & {\n  /**\n   * Whether wildcard preview domains are enabled for the workspace.\n   *\n   * @generated from field: bool enabled = 1;\n   */\n  enabled: boolean;\n\n  /**\n   * Per-region wildcard domains and their certificate readiness. Empty when\n   * the feature was never enabled.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.WorkspacePreviewDomain domains = 2;\n   */\n  domains: WorkspacePreviewDomain[];\n\n  /**\n   * How many existing preview URLs use the wildcard scheme. Disabling releases\n   * the wildcard certificates, and these hostnames sit two labels under the\n   * regional suffix, so the suffix certificate cannot cover them — they stop\n   * resolving to a valid certificate. Surface this before confirming a disable.\n   *\n   * @generated from field: int32 wildcard_preview_url_count = 3;\n   */\n  wildcardPreviewUrlCount: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetWorkspacePreviewDomainsResponse.\n * Use `create(GetWorkspacePreviewDomainsResponseSchema)` to create a new message.\n */\nexport const GetWorkspacePreviewDomainsResponseSchema: GenMessage<GetWorkspacePreviewDomainsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 221);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateWorkspacePreviewDomainsRequest\n */\nexport type UpdateWorkspacePreviewDomainsRequest = Message<\"tenki.sandbox.v1.UpdateWorkspacePreviewDomainsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * Enabling provisions one wildcard certificate per configured region and is\n   * limited to Pro-tier workspaces; disabling releases the certificates.\n   * Existing preview URLs keep the format they were created with.\n   *\n   * @generated from field: bool enabled = 2;\n   */\n  enabled: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateWorkspacePreviewDomainsRequest.\n * Use `create(UpdateWorkspacePreviewDomainsRequestSchema)` to create a new message.\n */\nexport const UpdateWorkspacePreviewDomainsRequestSchema: GenMessage<UpdateWorkspacePreviewDomainsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 222);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateWorkspacePreviewDomainsResponse\n */\nexport type UpdateWorkspacePreviewDomainsResponse = Message<\"tenki.sandbox.v1.UpdateWorkspacePreviewDomainsResponse\"> & {\n  /**\n   * @generated from field: bool enabled = 1;\n   */\n  enabled: boolean;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.WorkspacePreviewDomain domains = 2;\n   */\n  domains: WorkspacePreviewDomain[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateWorkspacePreviewDomainsResponse.\n * Use `create(UpdateWorkspacePreviewDomainsResponseSchema)` to create a new message.\n */\nexport const UpdateWorkspacePreviewDomainsResponseSchema: GenMessage<UpdateWorkspacePreviewDomainsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 223);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteSnapshotRequest\n */\nexport type DeleteSnapshotRequest = Message<\"tenki.sandbox.v1.DeleteSnapshotRequest\"> & {\n  /**\n   * @generated from field: string snapshot_id = 1;\n   */\n  snapshotId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteSnapshotRequest.\n * Use `create(DeleteSnapshotRequestSchema)` to create a new message.\n */\nexport const DeleteSnapshotRequestSchema: GenMessage<DeleteSnapshotRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 224);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteSnapshotResponse\n */\nexport type DeleteSnapshotResponse = Message<\"tenki.sandbox.v1.DeleteSnapshotResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Snapshot snapshot = 1;\n   */\n  snapshot?: Snapshot;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteSnapshotResponse.\n * Use `create(DeleteSnapshotResponseSchema)` to create a new message.\n */\nexport const DeleteSnapshotResponseSchema: GenMessage<DeleteSnapshotResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 225);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateSnapshotRequest\n */\nexport type UpdateSnapshotRequest = Message<\"tenki.sandbox.v1.UpdateSnapshotRequest\"> & {\n  /**\n   * @generated from field: string snapshot_id = 1;\n   */\n  snapshotId: string;\n\n  /**\n   * @generated from field: optional string name = 2;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: repeated string tags = 4;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: bool clear_tags = 5;\n   */\n  clearTags: boolean;\n\n  /**\n   * @generated from field: bool clear_expires_at = 6;\n   */\n  clearExpiresAt: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateSnapshotRequest.\n * Use `create(UpdateSnapshotRequestSchema)` to create a new message.\n */\nexport const UpdateSnapshotRequestSchema: GenMessage<UpdateSnapshotRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 226);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateSnapshotResponse\n */\nexport type UpdateSnapshotResponse = Message<\"tenki.sandbox.v1.UpdateSnapshotResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Snapshot snapshot = 1;\n   */\n  snapshot?: Snapshot;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateSnapshotResponse.\n * Use `create(UpdateSnapshotResponseSchema)` to create a new message.\n */\nexport const UpdateSnapshotResponseSchema: GenMessage<UpdateSnapshotResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 227);\n\n/**\n * @generated from message tenki.sandbox.v1.WhoAmIRequest\n */\nexport type WhoAmIRequest = Message<\"tenki.sandbox.v1.WhoAmIRequest\"> & {\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WhoAmIRequest.\n * Use `create(WhoAmIRequestSchema)` to create a new message.\n */\nexport const WhoAmIRequestSchema: GenMessage<WhoAmIRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 228);\n\n/**\n * @generated from message tenki.sandbox.v1.WhoAmIResponse\n */\nexport type WhoAmIResponse = Message<\"tenki.sandbox.v1.WhoAmIResponse\"> & {\n  /**\n   * Owner type: \"USER\", \"WORKSPACE\", or \"SERVICE\".\n   *\n   * @generated from field: string owner_type = 1;\n   */\n  ownerType: string;\n\n  /**\n   * Owner ID (e.g. user UUID or workspace UUID).\n   *\n   * @generated from field: string owner_id = 2;\n   */\n  ownerId: string;\n\n  /**\n   * Workspaces accessible to the caller.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.WhoAmIWorkspace workspaces = 3;\n   */\n  workspaces: WhoAmIWorkspace[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WhoAmIResponse.\n * Use `create(WhoAmIResponseSchema)` to create a new message.\n */\nexport const WhoAmIResponseSchema: GenMessage<WhoAmIResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 229);\n\n/**\n * @generated from message tenki.sandbox.v1.WhoAmIWorkspace\n */\nexport type WhoAmIWorkspace = Message<\"tenki.sandbox.v1.WhoAmIWorkspace\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 2;\n   */\n  name: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.WhoAmIWorkspace.\n * Use `create(WhoAmIWorkspaceSchema)` to create a new message.\n */\nexport const WhoAmIWorkspaceSchema: GenMessage<WhoAmIWorkspace> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 230);\n\n/**\n * @generated from message tenki.sandbox.v1.ListCIRunnerSizesRequest\n */\nexport type ListCIRunnerSizesRequest = Message<\"tenki.sandbox.v1.ListCIRunnerSizesRequest\"> & {\n  /**\n   * Defaults to the API key's workspace.\n   *\n   * @generated from field: optional string workspace_id = 1;\n   */\n  workspaceId?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListCIRunnerSizesRequest.\n * Use `create(ListCIRunnerSizesRequestSchema)` to create a new message.\n */\nexport const ListCIRunnerSizesRequestSchema: GenMessage<ListCIRunnerSizesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 231);\n\n/**\n * @generated from message tenki.sandbox.v1.ListCIRunnerSizesResponse\n */\nexport type ListCIRunnerSizesResponse = Message<\"tenki.sandbox.v1.ListCIRunnerSizesResponse\"> & {\n  /**\n   * Smallest first.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.CIRunnerSize sizes = 1;\n   */\n  sizes: CIRunnerSize[];\n\n  /**\n   * The size for a job whose runs-on names none: recommended, else 2 vCPU / 4 GiB, else the smallest.\n   *\n   * @generated from field: string default_runs_on_label = 2;\n   */\n  defaultRunsOnLabel: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListCIRunnerSizesResponse.\n * Use `create(ListCIRunnerSizesResponseSchema)` to create a new message.\n */\nexport const ListCIRunnerSizesResponseSchema: GenMessage<ListCIRunnerSizesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 232);\n\n/**\n * @generated from message tenki.sandbox.v1.CIRunnerSize\n */\nexport type CIRunnerSize = Message<\"tenki.sandbox.v1.CIRunnerSize\"> & {\n  /**\n   * @generated from field: string runs_on_label = 1;\n   */\n  runsOnLabel: string;\n\n  /**\n   * @generated from field: int32 cpu = 2;\n   */\n  cpu: number;\n\n  /**\n   * GiB.\n   *\n   * @generated from field: int32 memory = 3;\n   */\n  memory: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CIRunnerSize.\n * Use `create(CIRunnerSizeSchema)` to create a new message.\n */\nexport const CIRunnerSizeSchema: GenMessage<CIRunnerSize> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 233);\n\n/**\n * @generated from message tenki.sandbox.v1.SandboxWarning\n */\nexport type SandboxWarning = Message<\"tenki.sandbox.v1.SandboxWarning\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.SandboxWarningCode code = 1;\n   */\n  code: SandboxWarningCode;\n\n  /**\n   * @generated from field: string message = 2;\n   */\n  message: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SandboxWarning.\n * Use `create(SandboxWarningSchema)` to create a new message.\n */\nexport const SandboxWarningSchema: GenMessage<SandboxWarning> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 234);\n\n/**\n * Credentials are write-only and never copied into provisioning commands.\n *\n * @generated from message tenki.sandbox.v1.TailnetAttachment\n */\nexport type TailnetAttachment = Message<\"tenki.sandbox.v1.TailnetAttachment\"> & {\n  /**\n   * @generated from field: string hostname = 1;\n   */\n  hostname: string;\n\n  /**\n   * @generated from field: repeated string tags = 2;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: bool ephemeral = 3;\n   */\n  ephemeral: boolean;\n\n  /**\n   * @generated from field: string control_url = 4;\n   */\n  controlUrl: string;\n\n  /**\n   * @generated from field: string exit_node = 5;\n   */\n  exitNode: string;\n\n  /**\n   * @generated from field: bool accept_routes = 6;\n   */\n  acceptRoutes: boolean;\n\n  /**\n   * @generated from field: bool wake_on_connect = 7;\n   */\n  wakeOnConnect: boolean;\n\n  /**\n   * @generated from field: repeated uint32 expose_ports = 8;\n   */\n  exposePorts: number[];\n\n  /**\n   * @generated from field: bool wait_for_online = 9;\n   */\n  waitForOnline: boolean;\n\n  /**\n   * @generated from oneof tenki.sandbox.v1.TailnetAttachment.credential\n   */\n  credential: {\n    /**\n     * @generated from field: string auth_key = 10;\n     */\n    value: string;\n    case: \"authKey\";\n  } | {\n    /**\n     * @generated from field: string profile_id = 11;\n     */\n    value: string;\n    case: \"profileId\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TailnetFederatedCredential federated = 12;\n     */\n    value: TailnetFederatedCredential;\n    case: \"federated\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetExitPolicy exit_policy = 13;\n   */\n  exitPolicy: TailnetExitPolicy;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetEphemeralPausePolicy ephemeral_pause_policy = 14;\n   */\n  ephemeralPausePolicy: TailnetEphemeralPausePolicy;\n\n  /**\n   * @generated from field: string provider = 15;\n   */\n  provider: string;\n\n  /**\n   * @generated from field: uint32 profile_revision = 16;\n   */\n  profileRevision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TailnetAttachment.\n * Use `create(TailnetAttachmentSchema)` to create a new message.\n */\nexport const TailnetAttachmentSchema: GenMessage<TailnetAttachment> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 235);\n\n/**\n * @generated from message tenki.sandbox.v1.TailnetFederatedCredential\n */\nexport type TailnetFederatedCredential = Message<\"tenki.sandbox.v1.TailnetFederatedCredential\"> & {\n  /**\n   * @generated from field: string profile_id = 1;\n   */\n  profileId: string;\n\n  /**\n   * @generated from field: string id_token = 2;\n   */\n  idToken: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TailnetFederatedCredential.\n * Use `create(TailnetFederatedCredentialSchema)` to create a new message.\n */\nexport const TailnetFederatedCredentialSchema: GenMessage<TailnetFederatedCredential> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 236);\n\n/**\n * @generated from message tenki.sandbox.v1.TailnetStatus\n */\nexport type TailnetStatus = Message<\"tenki.sandbox.v1.TailnetStatus\"> & {\n  /**\n   * @generated from field: string state = 1;\n   */\n  state: string;\n\n  /**\n   * @generated from field: string node_id = 2;\n   */\n  nodeId: string;\n\n  /**\n   * @generated from field: string fqdn = 3;\n   */\n  fqdn: string;\n\n  /**\n   * Actual node addresses do not imply guest IPv6 connectivity.\n   *\n   * @generated from field: repeated string ips = 4;\n   */\n  ips: string[];\n\n  /**\n   * @generated from field: repeated string tags = 5;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: string owner = 6;\n   */\n  owner: string;\n\n  /**\n   * @generated from field: string error = 7;\n   */\n  error: string;\n\n  /**\n   * @generated from field: bool device_retained = 8;\n   */\n  deviceRetained: boolean;\n\n  /**\n   * @generated from field: string provider = 9;\n   */\n  provider: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TailnetStatus.\n * Use `create(TailnetStatusSchema)` to create a new message.\n */\nexport const TailnetStatusSchema: GenMessage<TailnetStatus> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 237);\n\n/**\n * @generated from message tenki.sandbox.v1.SessionEgressHttpRule\n */\nexport type SessionEgressHttpRule = Message<\"tenki.sandbox.v1.SessionEgressHttpRule\"> & {\n  /**\n   * Exact names, single-label \"*.example.com\" wildcards, multi-label\n   * \"**.example.com\" wildcards, or \"*\" for every allowed domain.\n   *\n   * @generated from field: repeated string domains = 1;\n   */\n  domains: string[];\n\n  /**\n   * Uppercase request methods. Empty matches every method.\n   *\n   * @generated from field: repeated string methods = 2;\n   */\n  methods: string[];\n\n  /**\n   * Matched against the escaped request path, without the query. Unset\n   * matches every path.\n   *\n   * @generated from oneof tenki.sandbox.v1.SessionEgressHttpRule.path\n   */\n  path: {\n    /**\n     * @generated from field: string exact = 3;\n     */\n    value: string;\n    case: \"exact\";\n  } | {\n    /**\n     * @generated from field: string prefix = 4;\n     */\n    value: string;\n    case: \"prefix\";\n  } | {\n    /**\n     * RE2 syntax; must match the whole path.\n     *\n     * @generated from field: string regex = 5;\n     */\n    value: string;\n    case: \"regex\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SessionEgressHttpRule.\n * Use `create(SessionEgressHttpRuleSchema)` to create a new message.\n */\nexport const SessionEgressHttpRuleSchema: GenMessage<SessionEgressHttpRule> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 238);\n\n/**\n * @generated from message tenki.sandbox.v1.EgressPolicy\n */\nexport type EgressPolicy = Message<\"tenki.sandbox.v1.EgressPolicy\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 3;\n   */\n  name: string;\n\n  /**\n   * @generated from field: uint32 revision = 4;\n   */\n  revision: number;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionEgressPolicy egress = 5;\n   */\n  egress?: SessionEgressPolicy;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 6;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 7;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp deleted_at = 8;\n   */\n  deletedAt?: Timestamp;\n\n  /**\n   * Sessions not yet terminated that pinned this policy.\n   *\n   * @generated from field: uint32 active_session_count = 9;\n   */\n  activeSessionCount: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.EgressPolicy.\n * Use `create(EgressPolicySchema)` to create a new message.\n */\nexport const EgressPolicySchema: GenMessage<EgressPolicy> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 239);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateEgressPolicyRequest\n */\nexport type CreateEgressPolicyRequest = Message<\"tenki.sandbox.v1.CreateEgressPolicyRequest\"> & {\n  /**\n   * Defaults to the caller's workspace for workspace-scoped credentials.\n   *\n   * @generated from field: optional string workspace_id = 1;\n   */\n  workspaceId?: string;\n\n  /**\n   * Exact, never trimmed, and not a UUID string, so a policy_id lookup by name\n   * can never match another policy's ID.\n   *\n   * @generated from field: string name = 2;\n   */\n  name: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionEgressPolicy egress = 3;\n   */\n  egress?: SessionEgressPolicy;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateEgressPolicyRequest.\n * Use `create(CreateEgressPolicyRequestSchema)` to create a new message.\n */\nexport const CreateEgressPolicyRequestSchema: GenMessage<CreateEgressPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 240);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateEgressPolicyResponse\n */\nexport type CreateEgressPolicyResponse = Message<\"tenki.sandbox.v1.CreateEgressPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.EgressPolicy policy = 1;\n   */\n  policy?: EgressPolicy;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateEgressPolicyResponse.\n * Use `create(CreateEgressPolicyResponseSchema)` to create a new message.\n */\nexport const CreateEgressPolicyResponseSchema: GenMessage<CreateEgressPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 241);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateEgressPolicyRequest\n */\nexport type UpdateEgressPolicyRequest = Message<\"tenki.sandbox.v1.UpdateEgressPolicyRequest\"> & {\n  /**\n   * @generated from field: optional string workspace_id = 1;\n   */\n  workspaceId?: string;\n\n  /**\n   * Policy ID or name.\n   *\n   * @generated from field: string policy_id = 2;\n   */\n  policyId: string;\n\n  /**\n   * Refused with ABORTED unless it equals the stored revision.\n   *\n   * @generated from field: uint32 expected_revision = 3;\n   */\n  expectedRevision: number;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.SessionEgressPolicy egress = 4;\n   */\n  egress?: SessionEgressPolicy;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateEgressPolicyRequest.\n * Use `create(UpdateEgressPolicyRequestSchema)` to create a new message.\n */\nexport const UpdateEgressPolicyRequestSchema: GenMessage<UpdateEgressPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 242);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateEgressPolicyResponse\n */\nexport type UpdateEgressPolicyResponse = Message<\"tenki.sandbox.v1.UpdateEgressPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.EgressPolicy policy = 1;\n   */\n  policy?: EgressPolicy;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateEgressPolicyResponse.\n * Use `create(UpdateEgressPolicyResponseSchema)` to create a new message.\n */\nexport const UpdateEgressPolicyResponseSchema: GenMessage<UpdateEgressPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 243);\n\n/**\n * @generated from message tenki.sandbox.v1.GetEgressPolicyRequest\n */\nexport type GetEgressPolicyRequest = Message<\"tenki.sandbox.v1.GetEgressPolicyRequest\"> & {\n  /**\n   * @generated from field: optional string workspace_id = 1;\n   */\n  workspaceId?: string;\n\n  /**\n   * Policy ID or name.\n   *\n   * @generated from field: string policy_id = 2;\n   */\n  policyId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetEgressPolicyRequest.\n * Use `create(GetEgressPolicyRequestSchema)` to create a new message.\n */\nexport const GetEgressPolicyRequestSchema: GenMessage<GetEgressPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 244);\n\n/**\n * @generated from message tenki.sandbox.v1.GetEgressPolicyResponse\n */\nexport type GetEgressPolicyResponse = Message<\"tenki.sandbox.v1.GetEgressPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.EgressPolicy policy = 1;\n   */\n  policy?: EgressPolicy;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetEgressPolicyResponse.\n * Use `create(GetEgressPolicyResponseSchema)` to create a new message.\n */\nexport const GetEgressPolicyResponseSchema: GenMessage<GetEgressPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 245);\n\n/**\n * @generated from message tenki.sandbox.v1.ListEgressPoliciesRequest\n */\nexport type ListEgressPoliciesRequest = Message<\"tenki.sandbox.v1.ListEgressPoliciesRequest\"> & {\n  /**\n   * @generated from field: optional string workspace_id = 1;\n   */\n  workspaceId?: string;\n\n  /**\n   * Defaults to 50.\n   *\n   * @generated from field: uint32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string cursor = 3;\n   */\n  cursor: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListEgressPoliciesRequest.\n * Use `create(ListEgressPoliciesRequestSchema)` to create a new message.\n */\nexport const ListEgressPoliciesRequestSchema: GenMessage<ListEgressPoliciesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 246);\n\n/**\n * @generated from message tenki.sandbox.v1.ListEgressPoliciesResponse\n */\nexport type ListEgressPoliciesResponse = Message<\"tenki.sandbox.v1.ListEgressPoliciesResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.EgressPolicy policies = 1;\n   */\n  policies: EgressPolicy[];\n\n  /**\n   * @generated from field: string next_cursor = 2;\n   */\n  nextCursor: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListEgressPoliciesResponse.\n * Use `create(ListEgressPoliciesResponseSchema)` to create a new message.\n */\nexport const ListEgressPoliciesResponseSchema: GenMessage<ListEgressPoliciesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 247);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteEgressPolicyRequest\n */\nexport type DeleteEgressPolicyRequest = Message<\"tenki.sandbox.v1.DeleteEgressPolicyRequest\"> & {\n  /**\n   * @generated from field: optional string workspace_id = 1;\n   */\n  workspaceId?: string;\n\n  /**\n   * Policy ID or name.\n   *\n   * @generated from field: string policy_id = 2;\n   */\n  policyId: string;\n\n  /**\n   * @generated from field: uint32 expected_revision = 3;\n   */\n  expectedRevision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteEgressPolicyRequest.\n * Use `create(DeleteEgressPolicyRequestSchema)` to create a new message.\n */\nexport const DeleteEgressPolicyRequestSchema: GenMessage<DeleteEgressPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 248);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteEgressPolicyResponse\n */\nexport type DeleteEgressPolicyResponse = Message<\"tenki.sandbox.v1.DeleteEgressPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.EgressPolicy policy = 1;\n   */\n  policy?: EgressPolicy;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteEgressPolicyResponse.\n * Use `create(DeleteEgressPolicyResponseSchema)` to create a new message.\n */\nexport const DeleteEgressPolicyResponseSchema: GenMessage<DeleteEgressPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_sandbox, 249);\n\n/**\n * @generated from enum tenki.sandbox.v1.SessionState\n */\nexport enum SessionState {\n  /**\n   * @generated from enum value: SESSION_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SESSION_STATE_CREATING = 1;\n   */\n  CREATING = 1,\n\n  /**\n   * @generated from enum value: SESSION_STATE_RUNNING = 3;\n   */\n  RUNNING = 3,\n\n  /**\n   * @generated from enum value: SESSION_STATE_PAUSED = 4;\n   */\n  PAUSED = 4,\n\n  /**\n   * @generated from enum value: SESSION_STATE_TERMINATING = 5;\n   */\n  TERMINATING = 5,\n\n  /**\n   * @generated from enum value: SESSION_STATE_TERMINATED = 6;\n   */\n  TERMINATED = 6,\n\n  /**\n   * @generated from enum value: SESSION_STATE_PAUSING = 7;\n   */\n  PAUSING = 7,\n\n  /**\n   * @generated from enum value: SESSION_STATE_RESUMING = 8;\n   */\n  RESUMING = 8,\n\n  /**\n   * @generated from enum value: SESSION_STATE_USER_SHUTDOWN = 9;\n   */\n  USER_SHUTDOWN = 9,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SessionState.\n */\nexport const SessionStateSchema: GenEnum<SessionState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 0);\n\n/**\n * @generated from enum tenki.sandbox.v1.CommandStatus\n */\nexport enum CommandStatus {\n  /**\n   * @generated from enum value: COMMAND_STATUS_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: COMMAND_STATUS_QUEUED = 1;\n   */\n  QUEUED = 1,\n\n  /**\n   * @generated from enum value: COMMAND_STATUS_RUNNING = 2;\n   */\n  RUNNING = 2,\n\n  /**\n   * @generated from enum value: COMMAND_STATUS_SUCCEEDED = 3;\n   */\n  SUCCEEDED = 3,\n\n  /**\n   * @generated from enum value: COMMAND_STATUS_FAILED = 4;\n   */\n  FAILED = 4,\n\n  /**\n   * @generated from enum value: COMMAND_STATUS_TIMED_OUT = 5;\n   */\n  TIMED_OUT = 5,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.CommandStatus.\n */\nexport const CommandStatusSchema: GenEnum<CommandStatus> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 1);\n\n/**\n * @generated from enum tenki.sandbox.v1.VolumeState\n */\nexport enum VolumeState {\n  /**\n   * @generated from enum value: VOLUME_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: VOLUME_STATE_AVAILABLE = 1;\n   */\n  AVAILABLE = 1,\n\n  /**\n   * @generated from enum value: VOLUME_STATE_DELETING = 2;\n   */\n  DELETING = 2,\n\n  /**\n   * @generated from enum value: VOLUME_STATE_DELETED = 3;\n   */\n  DELETED = 3,\n\n  /**\n   * @generated from enum value: VOLUME_STATE_IN_USE = 4;\n   */\n  IN_USE = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.VolumeState.\n */\nexport const VolumeStateSchema: GenEnum<VolumeState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 2);\n\n/**\n * @generated from enum tenki.sandbox.v1.SnapshotState\n */\nexport enum SnapshotState {\n  /**\n   * @generated from enum value: SNAPSHOT_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SNAPSHOT_STATE_CREATING = 1;\n   */\n  CREATING = 1,\n\n  /**\n   * @generated from enum value: SNAPSHOT_STATE_READY = 2;\n   */\n  READY = 2,\n\n  /**\n   * @generated from enum value: SNAPSHOT_STATE_FAILED = 3;\n   */\n  FAILED = 3,\n\n  /**\n   * @generated from enum value: SNAPSHOT_STATE_DELETING = 4;\n   */\n  DELETING = 4,\n\n  /**\n   * @generated from enum value: SNAPSHOT_STATE_DELETED = 5;\n   */\n  DELETED = 5,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SnapshotState.\n */\nexport const SnapshotStateSchema: GenEnum<SnapshotState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 3);\n\n/**\n * @generated from enum tenki.sandbox.v1.SnapshotType\n */\nexport enum SnapshotType {\n  /**\n   * @generated from enum value: SNAPSHOT_TYPE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SNAPSHOT_TYPE_USER = 1;\n   */\n  USER = 1,\n\n  /**\n   * @generated from enum value: SNAPSHOT_TYPE_PAUSE = 2;\n   */\n  PAUSE = 2,\n\n  /**\n   * @generated from enum value: SNAPSHOT_TYPE_TEMPLATE = 3;\n   */\n  TEMPLATE = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SnapshotType.\n */\nexport const SnapshotTypeSchema: GenEnum<SnapshotType> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 4);\n\n/**\n * @generated from enum tenki.sandbox.v1.SnapshotDurabilityState\n */\nexport enum SnapshotDurabilityState {\n  /**\n   * @generated from enum value: SNAPSHOT_DURABILITY_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SNAPSHOT_DURABILITY_STATE_LOCAL_READY = 1;\n   */\n  LOCAL_READY = 1,\n\n  /**\n   * @generated from enum value: SNAPSHOT_DURABILITY_STATE_DURABLE = 2;\n   */\n  DURABLE = 2,\n\n  /**\n   * @generated from enum value: SNAPSHOT_DURABILITY_STATE_PROPAGATION_FAILED = 3;\n   */\n  PROPAGATION_FAILED = 3,\n\n  /**\n   * DURABLE_CEPH: the snapshot is cluster-durable in Ceph (rootfs as an RBD\n   * snapshot and/or memory+state on the CephFS shared tier) but not yet\n   * uploaded to R2. Restorable cross-node on any same-DC, capability-matched\n   * host without waiting for R2. Never demotes; R2 completion advances it to\n   * DURABLE.\n   *\n   * @generated from enum value: SNAPSHOT_DURABILITY_STATE_DURABLE_CEPH = 4;\n   */\n  DURABLE_CEPH = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SnapshotDurabilityState.\n */\nexport const SnapshotDurabilityStateSchema: GenEnum<SnapshotDurabilityState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 5);\n\n/**\n * @generated from enum tenki.sandbox.v1.StorageProvider\n */\nexport enum StorageProvider {\n  /**\n   * @generated from enum value: STORAGE_PROVIDER_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: STORAGE_PROVIDER_AWS_S3 = 1;\n   */\n  AWS_S3 = 1,\n\n  /**\n   * @generated from enum value: STORAGE_PROVIDER_GCS = 2;\n   */\n  GCS = 2,\n\n  /**\n   * @generated from enum value: STORAGE_PROVIDER_R2 = 3;\n   */\n  R2 = 3,\n\n  /**\n   * @generated from enum value: STORAGE_PROVIDER_S3_COMPATIBLE = 4;\n   */\n  S3_COMPATIBLE = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.StorageProvider.\n */\nexport const StorageProviderSchema: GenEnum<StorageProvider> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 6);\n\n/**\n * @generated from enum tenki.sandbox.v1.StorageAuthMethod\n */\nexport enum StorageAuthMethod {\n  /**\n   * @generated from enum value: STORAGE_AUTH_METHOD_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * Access key pair held in Tenki Secrets; GCS uses HMAC keys.\n   *\n   * @generated from enum value: STORAGE_AUTH_METHOD_ACCESS_KEY = 1;\n   */\n  ACCESS_KEY = 1,\n\n  /**\n   * Keyless: Tenki's OIDC token assumes the connection's AWS IAM role.\n   *\n   * @generated from enum value: STORAGE_AUTH_METHOD_AWS_OIDC_ROLE = 2;\n   */\n  AWS_OIDC_ROLE = 2,\n\n  /**\n   * A Cloudflare API token in Tenki Secrets mints scoped short-lived R2 keys.\n   *\n   * @generated from enum value: STORAGE_AUTH_METHOD_R2_TEMPORARY = 3;\n   */\n  R2_TEMPORARY = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.StorageAuthMethod.\n */\nexport const StorageAuthMethodSchema: GenEnum<StorageAuthMethod> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 7);\n\n/**\n * @generated from enum tenki.sandbox.v1.StorageAccess\n */\nexport enum StorageAccess {\n  /**\n   * On a mount: use the connection's default access.\n   *\n   * @generated from enum value: STORAGE_ACCESS_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: STORAGE_ACCESS_READ_ONLY = 1;\n   */\n  READ_ONLY = 1,\n\n  /**\n   * @generated from enum value: STORAGE_ACCESS_READ_WRITE = 2;\n   */\n  READ_WRITE = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.StorageAccess.\n */\nexport const StorageAccessSchema: GenEnum<StorageAccess> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 8);\n\n/**\n * @generated from enum tenki.sandbox.v1.StorageTestReason\n */\nexport enum StorageTestReason {\n  /**\n   * Never tested.\n   *\n   * @generated from enum value: STORAGE_TEST_REASON_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_OK = 1;\n   */\n  OK = 1,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_DNS_FAILED = 2;\n   */\n  DNS_FAILED = 2,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_TLS_FAILED = 3;\n   */\n  TLS_FAILED = 3,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_ACCESS_DENIED = 4;\n   */\n  ACCESS_DENIED = 4,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_BUCKET_NOT_FOUND = 5;\n   */\n  BUCKET_NOT_FOUND = 5,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_REGION_MISMATCH = 6;\n   */\n  REGION_MISMATCH = 6,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_SECRET_UNAVAILABLE = 7;\n   */\n  SECRET_UNAVAILABLE = 7,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_CREDENTIALS_UNAVAILABLE = 8;\n   */\n  CREDENTIALS_UNAVAILABLE = 8,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_ENDPOINT_BLOCKED = 9;\n   */\n  ENDPOINT_BLOCKED = 9,\n\n  /**\n   * @generated from enum value: STORAGE_TEST_REASON_UNREACHABLE = 10;\n   */\n  UNREACHABLE = 10,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.StorageTestReason.\n */\nexport const StorageTestReasonSchema: GenEnum<StorageTestReason> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 9);\n\n/**\n * @generated from enum tenki.sandbox.v1.SandboxUsageUnit\n */\nexport enum SandboxUsageUnit {\n  /**\n   * @generated from enum value: SANDBOX_USAGE_UNIT_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SANDBOX_USAGE_UNIT_COUNT = 1;\n   */\n  COUNT = 1,\n\n  /**\n   * @generated from enum value: SANDBOX_USAGE_UNIT_BYTES = 2;\n   */\n  BYTES = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SandboxUsageUnit.\n */\nexport const SandboxUsageUnitSchema: GenEnum<SandboxUsageUnit> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 10);\n\n/**\n * @generated from enum tenki.sandbox.v1.DataPlaneRouteStatus\n */\nexport enum DataPlaneRouteStatus {\n  /**\n   * @generated from enum value: DATA_PLANE_ROUTE_STATUS_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: DATA_PLANE_ROUTE_STATUS_VERIFIED = 1;\n   */\n  VERIFIED = 1,\n\n  /**\n   * @generated from enum value: DATA_PLANE_ROUTE_STATUS_NOT_READY = 2;\n   */\n  NOT_READY = 2,\n\n  /**\n   * @generated from enum value: DATA_PLANE_ROUTE_STATUS_FAILED = 3;\n   */\n  FAILED = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.DataPlaneRouteStatus.\n */\nexport const DataPlaneRouteStatusSchema: GenEnum<DataPlaneRouteStatus> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 11);\n\n/**\n * WildcardStatus reports the readiness of the workspace wildcard domain\n * backing a wildcard-scheme preview: the workspace's per-region wildcard\n * certificate, issued and renewed at the regional edge. A wildcard-scheme\n * preview URL exists immediately but only starts serving once its workspace\n * domain is READY.\n *\n * @generated from enum tenki.sandbox.v1.WildcardStatus\n */\nexport enum WildcardStatus {\n  /**\n   * @generated from enum value: WILDCARD_STATUS_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * Certificate issuance is in flight; the preview URL is not yet servable.\n   *\n   * @generated from enum value: WILDCARD_STATUS_PENDING = 1;\n   */\n  PENDING = 1,\n\n  /**\n   * The workspace certificate is live; the preview URL serves.\n   *\n   * @generated from enum value: WILDCARD_STATUS_READY = 2;\n   */\n  READY = 2,\n\n  /**\n   * Issuance failed; wildcard_status_reason carries an actionable reason.\n   * The reconciler keeps retrying.\n   *\n   * @generated from enum value: WILDCARD_STATUS_FAILED = 3;\n   */\n  FAILED = 3,\n\n  /**\n   * The workspace disabled wildcard preview domains.\n   *\n   * @generated from enum value: WILDCARD_STATUS_DISABLED = 4;\n   */\n  DISABLED = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.WildcardStatus.\n */\nexport const WildcardStatusSchema: GenEnum<WildcardStatus> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 12);\n\n/**\n * @generated from enum tenki.sandbox.v1.SandboxListOrder\n */\nexport enum SandboxListOrder {\n  /**\n   * Newest first.\n   *\n   * @generated from enum value: SANDBOX_LIST_ORDER_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * Running, then paused, then terminated; newest first within each group.\n   *\n   * @generated from enum value: SANDBOX_LIST_ORDER_STATE_THEN_CREATED = 1;\n   */\n  STATE_THEN_CREATED = 1,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SandboxListOrder.\n */\nexport const SandboxListOrderSchema: GenEnum<SandboxListOrder> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 13);\n\n/**\n * @generated from enum tenki.sandbox.v1.SandboxSortField\n */\nexport enum SandboxSortField {\n  /**\n   * @generated from enum value: SANDBOX_SORT_FIELD_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SANDBOX_SORT_FIELD_NAME = 1;\n   */\n  NAME = 1,\n\n  /**\n   * Running, paused, terminated.\n   *\n   * @generated from enum value: SANDBOX_SORT_FIELD_STATE = 2;\n   */\n  STATE = 2,\n\n  /**\n   * @generated from enum value: SANDBOX_SORT_FIELD_CREATED_AT = 3;\n   */\n  CREATED_AT = 3,\n\n  /**\n   * @generated from enum value: SANDBOX_SORT_FIELD_CPU_CORES = 4;\n   */\n  CPU_CORES = 4,\n\n  /**\n   * @generated from enum value: SANDBOX_SORT_FIELD_MEMORY_MB = 5;\n   */\n  MEMORY_MB = 5,\n\n  /**\n   * @generated from enum value: SANDBOX_SORT_FIELD_DISK_SIZE_GB = 6;\n   */\n  DISK_SIZE_GB = 6,\n\n  /**\n   * Pause retention while parked, idle timeout while running; none sorts last.\n   *\n   * @generated from enum value: SANDBOX_SORT_FIELD_EXPIRATION = 7;\n   */\n  EXPIRATION = 7,\n\n  /**\n   * @generated from enum value: SANDBOX_SORT_FIELD_SNAPSHOT_STORAGE = 8;\n   */\n  SNAPSHOT_STORAGE = 8,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SandboxSortField.\n */\nexport const SandboxSortFieldSchema: GenEnum<SandboxSortField> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 14);\n\n/**\n * @generated from enum tenki.sandbox.v1.VolumeSortField\n */\nexport enum VolumeSortField {\n  /**\n   * @generated from enum value: VOLUME_SORT_FIELD_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: VOLUME_SORT_FIELD_NAME = 1;\n   */\n  NAME = 1,\n\n  /**\n   * In use, available, deleting.\n   *\n   * @generated from enum value: VOLUME_SORT_FIELD_STATE = 2;\n   */\n  STATE = 2,\n\n  /**\n   * @generated from enum value: VOLUME_SORT_FIELD_SIZE_BYTES = 3;\n   */\n  SIZE_BYTES = 3,\n\n  /**\n   * @generated from enum value: VOLUME_SORT_FIELD_CREATED_AT = 4;\n   */\n  CREATED_AT = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.VolumeSortField.\n */\nexport const VolumeSortFieldSchema: GenEnum<VolumeSortField> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 15);\n\n/**\n * Unbound, serving, bound to a paused sandbox, or bound to a terminated one.\n *\n * @generated from enum tenki.sandbox.v1.PreviewUrlBindingState\n */\nexport enum PreviewUrlBindingState {\n  /**\n   * @generated from enum value: PREVIEW_URL_BINDING_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: PREVIEW_URL_BINDING_STATE_UNBOUND = 1;\n   */\n  UNBOUND = 1,\n\n  /**\n   * @generated from enum value: PREVIEW_URL_BINDING_STATE_BOUND = 2;\n   */\n  BOUND = 2,\n\n  /**\n   * @generated from enum value: PREVIEW_URL_BINDING_STATE_OFFLINE = 3;\n   */\n  OFFLINE = 3,\n\n  /**\n   * @generated from enum value: PREVIEW_URL_BINDING_STATE_ORPHANED = 4;\n   */\n  ORPHANED = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.PreviewUrlBindingState.\n */\nexport const PreviewUrlBindingStateSchema: GenEnum<PreviewUrlBindingState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 16);\n\n/**\n * @generated from enum tenki.sandbox.v1.PreviewUrlSortField\n */\nexport enum PreviewUrlSortField {\n  /**\n   * @generated from enum value: PREVIEW_URL_SORT_FIELD_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: PREVIEW_URL_SORT_FIELD_SLUG = 1;\n   */\n  SLUG = 1,\n\n  /**\n   * Bound, offline, orphaned, unbound.\n   *\n   * @generated from enum value: PREVIEW_URL_SORT_FIELD_STATE = 2;\n   */\n  STATE = 2,\n\n  /**\n   * @generated from enum value: PREVIEW_URL_SORT_FIELD_CREATED_AT = 3;\n   */\n  CREATED_AT = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.PreviewUrlSortField.\n */\nexport const PreviewUrlSortFieldSchema: GenEnum<PreviewUrlSortField> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 17);\n\n/**\n * @generated from enum tenki.sandbox.v1.SandboxWarningCode\n */\nexport enum SandboxWarningCode {\n  /**\n   * @generated from enum value: SANDBOX_WARNING_CODE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SANDBOX_WARNING_CODE_STICKY_OVERRIDES_MAX_DURATION = 1;\n   */\n  STICKY_OVERRIDES_MAX_DURATION = 1,\n\n  /**\n   * @generated from enum value: SANDBOX_WARNING_CODE_STICKY_OVERRIDES_IDLE_TIMEOUT = 2;\n   */\n  STICKY_OVERRIDES_IDLE_TIMEOUT = 2,\n\n  /**\n   * @generated from enum value: SANDBOX_WARNING_CODE_MAX_DURATION_CAPPED = 3;\n   */\n  MAX_DURATION_CAPPED = 3,\n\n  /**\n   * A restore skipped secret bindings from its snapshot whose workspace secrets no longer exist.\n   *\n   * @generated from enum value: SANDBOX_WARNING_CODE_RESTORE_SECRETS_SKIPPED = 4;\n   */\n  RESTORE_SECRETS_SKIPPED = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.SandboxWarningCode.\n */\nexport const SandboxWarningCodeSchema: GenEnum<SandboxWarningCode> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 18);\n\n/**\n * @generated from enum tenki.sandbox.v1.TailnetExitPolicy\n */\nexport enum TailnetExitPolicy {\n  /**\n   * @generated from enum value: TAILNET_EXIT_POLICY_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TAILNET_EXIT_POLICY_TENKI_ALLOWLIST = 1;\n   */\n  TENKI_ALLOWLIST = 1,\n\n  /**\n   * @generated from enum value: TAILNET_EXIT_POLICY_EXIT_NODE_MANAGED = 2;\n   */\n  EXIT_NODE_MANAGED = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TailnetExitPolicy.\n */\nexport const TailnetExitPolicySchema: GenEnum<TailnetExitPolicy> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 19);\n\n/**\n * @generated from enum tenki.sandbox.v1.TailnetEphemeralPausePolicy\n */\nexport enum TailnetEphemeralPausePolicy {\n  /**\n   * @generated from enum value: TAILNET_EPHEMERAL_PAUSE_POLICY_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TAILNET_EPHEMERAL_PAUSE_POLICY_REJECT = 1;\n   */\n  REJECT = 1,\n\n  /**\n   * @generated from enum value: TAILNET_EPHEMERAL_PAUSE_POLICY_RECREATE_ON_RESUME = 2;\n   */\n  RECREATE_ON_RESUME = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TailnetEphemeralPausePolicy.\n */\nexport const TailnetEphemeralPausePolicySchema: GenEnum<TailnetEphemeralPausePolicy> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_sandbox, 20);\n\n/**\n * @generated from service tenki.sandbox.v1.SandboxService\n */\nexport const SandboxService: GenService<{\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetTailnetDefaults\n   */\n  getTailnetDefaults: {\n    methodKind: \"unary\";\n    input: typeof GetTailnetDefaultsRequestSchema;\n    output: typeof GetTailnetDefaultsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.SaveTailnetDefaults\n   */\n  saveTailnetDefaults: {\n    methodKind: \"unary\";\n    input: typeof SaveTailnetDefaultsRequestSchema;\n    output: typeof SaveTailnetDefaultsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListTailnetRunnerStatuses\n   */\n  listTailnetRunnerStatuses: {\n    methodKind: \"unary\";\n    input: typeof ListTailnetRunnerStatusesRequestSchema;\n    output: typeof ListTailnetRunnerStatusesResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.SaveTailnetRunnerConfiguration\n   */\n  saveTailnetRunnerConfiguration: {\n    methodKind: \"unary\";\n    input: typeof SaveTailnetRunnerConfigurationRequestSchema;\n    output: typeof SaveTailnetRunnerConfigurationResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListTailnetRunnerConfigurations\n   */\n  listTailnetRunnerConfigurations: {\n    methodKind: \"unary\";\n    input: typeof ListTailnetRunnerConfigurationsRequestSchema;\n    output: typeof ListTailnetRunnerConfigurationsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.SaveTailnetConnection\n   */\n  saveTailnetConnection: {\n    methodKind: \"unary\";\n    input: typeof SaveTailnetConnectionRequestSchema;\n    output: typeof SaveTailnetConnectionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListTailnetConnections\n   */\n  listTailnetConnections: {\n    methodKind: \"unary\";\n    input: typeof ListTailnetConnectionsRequestSchema;\n    output: typeof ListTailnetConnectionsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.TestTailnetConnection\n   */\n  testTailnetConnection: {\n    methodKind: \"unary\";\n    input: typeof TestTailnetConnectionRequestSchema;\n    output: typeof TestTailnetConnectionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreateSession\n   */\n  createSession: {\n    methodKind: \"unary\";\n    input: typeof CreateSessionRequestSchema;\n    output: typeof CreateSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreateSessionCredential\n   */\n  createSessionCredential: {\n    methodKind: \"unary\";\n    input: typeof CreateSessionCredentialRequestSchema;\n    output: typeof CreateSessionCredentialResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetSession\n   */\n  getSession: {\n    methodKind: \"unary\";\n    input: typeof GetSessionRequestSchema;\n    output: typeof GetSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetSessionMetrics\n   */\n  getSessionMetrics: {\n    methodKind: \"unary\";\n    input: typeof GetSessionMetricsRequestSchema;\n    output: typeof GetSessionMetricsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.WaitSession\n   */\n  waitSession: {\n    methodKind: \"server_streaming\";\n    input: typeof WaitSessionRequestSchema;\n    output: typeof WaitSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListSessions\n   */\n  listSessions: {\n    methodKind: \"unary\";\n    input: typeof ListSessionsRequestSchema;\n    output: typeof ListSessionsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListWorkspaceSandboxes\n   * @deprecated\n   */\n  listWorkspaceSandboxes: {\n    methodKind: \"unary\";\n    input: typeof ListWorkspaceSandboxesRequestSchema;\n    output: typeof ListWorkspaceSandboxesResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateSession\n   */\n  updateSession: {\n    methodKind: \"unary\";\n    input: typeof UpdateSessionRequestSchema;\n    output: typeof UpdateSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreateVolume\n   */\n  createVolume: {\n    methodKind: \"unary\";\n    input: typeof CreateVolumeRequestSchema;\n    output: typeof CreateVolumeResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetVolume\n   */\n  getVolume: {\n    methodKind: \"unary\";\n    input: typeof GetVolumeRequestSchema;\n    output: typeof GetVolumeResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListVolumes\n   */\n  listVolumes: {\n    methodKind: \"unary\";\n    input: typeof ListVolumesRequestSchema;\n    output: typeof ListVolumesResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateVolume\n   */\n  updateVolume: {\n    methodKind: \"unary\";\n    input: typeof UpdateVolumeRequestSchema;\n    output: typeof UpdateVolumeResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteVolume\n   */\n  deleteVolume: {\n    methodKind: \"unary\";\n    input: typeof DeleteVolumeRequestSchema;\n    output: typeof DeleteVolumeResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ResizeVolume\n   */\n  resizeVolume: {\n    methodKind: \"unary\";\n    input: typeof ResizeVolumeRequestSchema;\n    output: typeof ResizeVolumeResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.AttachVolume\n   */\n  attachVolume: {\n    methodKind: \"unary\";\n    input: typeof AttachVolumeRequestSchema;\n    output: typeof AttachVolumeResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DetachVolume\n   */\n  detachVolume: {\n    methodKind: \"unary\";\n    input: typeof DetachVolumeRequestSchema;\n    output: typeof DetachVolumeResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreateStorageConnection\n   */\n  createStorageConnection: {\n    methodKind: \"unary\";\n    input: typeof CreateStorageConnectionRequestSchema;\n    output: typeof CreateStorageConnectionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.TestStorageConnection\n   */\n  testStorageConnection: {\n    methodKind: \"unary\";\n    input: typeof TestStorageConnectionRequestSchema;\n    output: typeof TestStorageConnectionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListStorageConnections\n   */\n  listStorageConnections: {\n    methodKind: \"unary\";\n    input: typeof ListStorageConnectionsRequestSchema;\n    output: typeof ListStorageConnectionsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateStorageConnection\n   */\n  updateStorageConnection: {\n    methodKind: \"unary\";\n    input: typeof UpdateStorageConnectionRequestSchema;\n    output: typeof UpdateStorageConnectionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteStorageConnection\n   */\n  deleteStorageConnection: {\n    methodKind: \"unary\";\n    input: typeof DeleteStorageConnectionRequestSchema;\n    output: typeof DeleteStorageConnectionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListStorageMounts\n   */\n  listStorageMounts: {\n    methodKind: \"unary\";\n    input: typeof ListStorageMountsRequestSchema;\n    output: typeof ListStorageMountsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.AttachStorageMount\n   */\n  attachStorageMount: {\n    methodKind: \"unary\";\n    input: typeof AttachStorageMountRequestSchema;\n    output: typeof AttachStorageMountResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DetachStorageMount\n   */\n  detachStorageMount: {\n    methodKind: \"unary\";\n    input: typeof DetachStorageMountRequestSchema;\n    output: typeof DetachStorageMountResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetStorageDefaults\n   */\n  getStorageDefaults: {\n    methodKind: \"unary\";\n    input: typeof GetStorageDefaultsRequestSchema;\n    output: typeof GetStorageDefaultsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.SaveStorageDefaults\n   */\n  saveStorageDefaults: {\n    methodKind: \"unary\";\n    input: typeof SaveStorageDefaultsRequestSchema;\n    output: typeof SaveStorageDefaultsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ExecuteCommand\n   * @deprecated\n   */\n  executeCommand: {\n    methodKind: \"unary\";\n    input: typeof ExecuteCommandRequestSchema;\n    output: typeof ExecuteCommandResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.StreamCommandOutput\n   * @deprecated\n   */\n  streamCommandOutput: {\n    methodKind: \"server_streaming\";\n    input: typeof StreamCommandOutputRequestSchema;\n    output: typeof StreamCommandOutputResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GitOperation\n   */\n  gitOperation: {\n    methodKind: \"unary\";\n    input: typeof GitOperationRequestSchema;\n    output: typeof GitOperationResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.PauseSession\n   */\n  pauseSession: {\n    methodKind: \"unary\";\n    input: typeof PauseSessionRequestSchema;\n    output: typeof PauseSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ResumeSession\n   */\n  resumeSession: {\n    methodKind: \"unary\";\n    input: typeof ResumeSessionRequestSchema;\n    output: typeof ResumeSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.TerminateSession\n   */\n  terminateSession: {\n    methodKind: \"unary\";\n    input: typeof TerminateSessionRequestSchema;\n    output: typeof TerminateSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.TerminateSessions\n   */\n  terminateSessions: {\n    methodKind: \"unary\";\n    input: typeof TerminateSessionsRequestSchema;\n    output: typeof TerminateSessionsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ExtendSession\n   */\n  extendSession: {\n    methodKind: \"unary\";\n    input: typeof ExtendSessionRequestSchema;\n    output: typeof ExtendSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetArtifactUploadUrl\n   */\n  getArtifactUploadUrl: {\n    methodKind: \"unary\";\n    input: typeof GetArtifactUploadUrlRequestSchema;\n    output: typeof GetArtifactUploadUrlResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetArtifactDownloadUrl\n   */\n  getArtifactDownloadUrl: {\n    methodKind: \"unary\";\n    input: typeof GetArtifactDownloadUrlRequestSchema;\n    output: typeof GetArtifactDownloadUrlResponseSchema;\n  },\n  /**\n   * Deprecated: creates a preview URL; use CreatePreviewUrl instead.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ExposePort\n   * @deprecated\n   */\n  exposePort: {\n    methodKind: \"unary\";\n    input: typeof ExposePortRequestSchema;\n    output: typeof ExposePortResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.OpenPreview\n   */\n  openPreview: {\n    methodKind: \"unary\";\n    input: typeof OpenPreviewRequestSchema;\n    output: typeof OpenPreviewResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.TouchPreview\n   */\n  touchPreview: {\n    methodKind: \"unary\";\n    input: typeof TouchPreviewRequestSchema;\n    output: typeof TouchPreviewResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ReportSessionActivity\n   */\n  reportSessionActivity: {\n    methodKind: \"unary\";\n    input: typeof ReportSessionActivityRequestSchema;\n    output: typeof ReportSessionActivityResponseSchema;\n  },\n  /**\n   * Deprecated: unbinds every preview URL on the port; use UnbindPreviewUrl.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UnexposePort\n   * @deprecated\n   */\n  unexposePort: {\n    methodKind: \"unary\";\n    input: typeof UnexposePortRequestSchema;\n    output: typeof UnexposePortResponseSchema;\n  },\n  /**\n   * Deprecated: use ListPreviewUrls.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListExposedPorts\n   * @deprecated\n   */\n  listExposedPorts: {\n    methodKind: \"unary\";\n    input: typeof ListExposedPortsRequestSchema;\n    output: typeof ListExposedPortsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreatePreviewUrl\n   */\n  createPreviewUrl: {\n    methodKind: \"unary\";\n    input: typeof CreatePreviewUrlRequestSchema;\n    output: typeof CreatePreviewUrlResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeletePreviewUrl\n   */\n  deletePreviewUrl: {\n    methodKind: \"unary\";\n    input: typeof DeletePreviewUrlRequestSchema;\n    output: typeof DeletePreviewUrlResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.BindPreviewUrl\n   */\n  bindPreviewUrl: {\n    methodKind: \"unary\";\n    input: typeof BindPreviewUrlRequestSchema;\n    output: typeof BindPreviewUrlResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UnbindPreviewUrl\n   */\n  unbindPreviewUrl: {\n    methodKind: \"unary\";\n    input: typeof UnbindPreviewUrlRequestSchema;\n    output: typeof UnbindPreviewUrlResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListPreviewUrls\n   */\n  listPreviewUrls: {\n    methodKind: \"unary\";\n    input: typeof ListPreviewUrlsRequestSchema;\n    output: typeof ListPreviewUrlsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetPreviewUrl\n   */\n  getPreviewUrl: {\n    methodKind: \"unary\";\n    input: typeof GetPreviewUrlRequestSchema;\n    output: typeof GetPreviewUrlResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ResolvePreviewToken\n   */\n  resolvePreviewToken: {\n    methodKind: \"unary\";\n    input: typeof ResolvePreviewTokenRequestSchema;\n    output: typeof ResolvePreviewTokenResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateSSHAuthorizedKeys\n   */\n  updateSSHAuthorizedKeys: {\n    methodKind: \"unary\";\n    input: typeof UpdateSSHAuthorizedKeysRequestSchema;\n    output: typeof UpdateSSHAuthorizedKeysResponseSchema;\n  },\n  /**\n   * Re-delivers a RUNNING session's secret bindings at the workspace's current versions and restarts its managed runtime.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.RefreshSessionSecrets\n   */\n  refreshSessionSecrets: {\n    methodKind: \"unary\";\n    input: typeof RefreshSessionSecretsRequestSchema;\n    output: typeof RefreshSessionSecretsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreateSnapshot\n   */\n  createSnapshot: {\n    methodKind: \"unary\";\n    input: typeof CreateSnapshotRequestSchema;\n    output: typeof CreateSnapshotResponseSchema;\n  },\n  /**\n   * Snapshots a RUNNING session and starts children from it while the source keeps running.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ForkSession\n   */\n  forkSession: {\n    methodKind: \"unary\";\n    input: typeof ForkSessionRequestSchema;\n    output: typeof ForkSessionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetSnapshot\n   */\n  getSnapshot: {\n    methodKind: \"unary\";\n    input: typeof GetSnapshotRequestSchema;\n    output: typeof GetSnapshotResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetSnapshotDownloadURL\n   */\n  getSnapshotDownloadURL: {\n    methodKind: \"unary\";\n    input: typeof GetSnapshotDownloadURLRequestSchema;\n    output: typeof GetSnapshotDownloadURLResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListSnapshots\n   */\n  listSnapshots: {\n    methodKind: \"unary\";\n    input: typeof ListSnapshotsRequestSchema;\n    output: typeof ListSnapshotsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListSessionSnapshots\n   */\n  listSessionSnapshots: {\n    methodKind: \"unary\";\n    input: typeof ListSessionSnapshotsRequestSchema;\n    output: typeof ListSessionSnapshotsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListDanglingSnapshots\n   */\n  listDanglingSnapshots: {\n    methodKind: \"unary\";\n    input: typeof ListDanglingSnapshotsRequestSchema;\n    output: typeof ListDanglingSnapshotsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListWorkspaceSnapshots\n   * @deprecated\n   */\n  listWorkspaceSnapshots: {\n    methodKind: \"unary\";\n    input: typeof ListWorkspaceSnapshotsRequestSchema;\n    output: typeof ListWorkspaceSnapshotsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetWorkspaceSandboxUsage\n   */\n  getWorkspaceSandboxUsage: {\n    methodKind: \"unary\";\n    input: typeof GetWorkspaceSandboxUsageRequestSchema;\n    output: typeof GetWorkspaceSandboxUsageResponseSchema;\n  },\n  /**\n   * Workspace wildcard preview domains (one wildcard certificate per\n   * workspace per region, self-managed at the regional edge). Enabling is\n   * limited to Pro-tier workspaces and triggers certificate issuance.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetWorkspacePreviewDomains\n   */\n  getWorkspacePreviewDomains: {\n    methodKind: \"unary\";\n    input: typeof GetWorkspacePreviewDomainsRequestSchema;\n    output: typeof GetWorkspacePreviewDomainsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateWorkspacePreviewDomains\n   */\n  updateWorkspacePreviewDomains: {\n    methodKind: \"unary\";\n    input: typeof UpdateWorkspacePreviewDomainsRequestSchema;\n    output: typeof UpdateWorkspacePreviewDomainsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateSnapshot\n   */\n  updateSnapshot: {\n    methodKind: \"unary\";\n    input: typeof UpdateSnapshotRequestSchema;\n    output: typeof UpdateSnapshotResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteSnapshot\n   */\n  deleteSnapshot: {\n    methodKind: \"unary\";\n    input: typeof DeleteSnapshotRequestSchema;\n    output: typeof DeleteSnapshotResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreateTemplate\n   */\n  createTemplate: {\n    methodKind: \"unary\";\n    input: typeof CreateTemplateRequestSchema;\n    output: typeof CreateTemplateResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetTemplate\n   */\n  getTemplate: {\n    methodKind: \"unary\";\n    input: typeof GetTemplateRequestSchema;\n    output: typeof GetTemplateResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListTemplates\n   */\n  listTemplates: {\n    methodKind: \"unary\";\n    input: typeof ListTemplatesRequestSchema;\n    output: typeof ListTemplatesResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateTemplate\n   */\n  updateTemplate: {\n    methodKind: \"unary\";\n    input: typeof UpdateTemplateRequestSchema;\n    output: typeof UpdateTemplateResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteTemplate\n   */\n  deleteTemplate: {\n    methodKind: \"unary\";\n    input: typeof DeleteTemplateRequestSchema;\n    output: typeof DeleteTemplateResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.BuildTemplate\n   */\n  buildTemplate: {\n    methodKind: \"unary\";\n    input: typeof BuildTemplateRequestSchema;\n    output: typeof BuildTemplateResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CancelTemplateBuild\n   */\n  cancelTemplateBuild: {\n    methodKind: \"unary\";\n    input: typeof CancelTemplateBuildRequestSchema;\n    output: typeof CancelTemplateBuildResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetTemplateBuild\n   */\n  getTemplateBuild: {\n    methodKind: \"unary\";\n    input: typeof GetTemplateBuildRequestSchema;\n    output: typeof GetTemplateBuildResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListActiveTemplateBuilds\n   */\n  listActiveTemplateBuilds: {\n    methodKind: \"unary\";\n    input: typeof ListActiveTemplateBuildsRequestSchema;\n    output: typeof ListActiveTemplateBuildsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListTemplateBuilds\n   */\n  listTemplateBuilds: {\n    methodKind: \"unary\";\n    input: typeof ListTemplateBuildsRequestSchema;\n    output: typeof ListTemplateBuildsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteTemplateBuild\n   */\n  deleteTemplateBuild: {\n    methodKind: \"unary\";\n    input: typeof DeleteTemplateBuildRequestSchema;\n    output: typeof DeleteTemplateBuildResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.PublishRegistryImage\n   */\n  publishRegistryImage: {\n    methodKind: \"unary\";\n    input: typeof PublishRegistryImageRequestSchema;\n    output: typeof PublishRegistryImageResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.SetRegistryImageVisibility\n   */\n  setRegistryImageVisibility: {\n    methodKind: \"unary\";\n    input: typeof SetRegistryImageVisibilityRequestSchema;\n    output: typeof SetRegistryImageVisibilityResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteRegistryImage\n   */\n  deleteRegistryImage: {\n    methodKind: \"unary\";\n    input: typeof DeleteRegistryImageRequestSchema;\n    output: typeof DeleteRegistryImageResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteRegistryImageVersion\n   */\n  deleteRegistryImageVersion: {\n    methodKind: \"unary\";\n    input: typeof DeleteRegistryImageVersionRequestSchema;\n    output: typeof DeleteRegistryImageVersionResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListRegistryImages\n   */\n  listRegistryImages: {\n    methodKind: \"unary\";\n    input: typeof ListRegistryImagesRequestSchema;\n    output: typeof ListRegistryImagesResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetRegistryImage\n   */\n  getRegistryImage: {\n    methodKind: \"unary\";\n    input: typeof GetRegistryImageRequestSchema;\n    output: typeof GetRegistryImageResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ResolveRegistryRef\n   */\n  resolveRegistryRef: {\n    methodKind: \"unary\";\n    input: typeof ResolveRegistryRefRequestSchema;\n    output: typeof ResolveRegistryRefResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ShareImage\n   */\n  shareImage: {\n    methodKind: \"unary\";\n    input: typeof ShareImageRequestSchema;\n    output: typeof ShareImageResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.RevokeRegistryShareGrant\n   */\n  revokeRegistryShareGrant: {\n    methodKind: \"unary\";\n    input: typeof RevokeRegistryShareGrantRequestSchema;\n    output: typeof RevokeRegistryShareGrantResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListRegistryShareGrants\n   */\n  listRegistryShareGrants: {\n    methodKind: \"unary\";\n    input: typeof ListRegistryShareGrantsRequestSchema;\n    output: typeof ListRegistryShareGrantsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UnshareRegistryImage\n   */\n  unshareRegistryImage: {\n    methodKind: \"unary\";\n    input: typeof UnshareRegistryImageRequestSchema;\n    output: typeof UnshareRegistryImageResponseSchema;\n  },\n  /**\n   * Named workspace egress policies that sessions pin by name at create.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.CreateEgressPolicy\n   */\n  createEgressPolicy: {\n    methodKind: \"unary\";\n    input: typeof CreateEgressPolicyRequestSchema;\n    output: typeof CreateEgressPolicyResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.UpdateEgressPolicy\n   */\n  updateEgressPolicy: {\n    methodKind: \"unary\";\n    input: typeof UpdateEgressPolicyRequestSchema;\n    output: typeof UpdateEgressPolicyResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.GetEgressPolicy\n   */\n  getEgressPolicy: {\n    methodKind: \"unary\";\n    input: typeof GetEgressPolicyRequestSchema;\n    output: typeof GetEgressPolicyResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListEgressPolicies\n   */\n  listEgressPolicies: {\n    methodKind: \"unary\";\n    input: typeof ListEgressPoliciesRequestSchema;\n    output: typeof ListEgressPoliciesResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxService.DeleteEgressPolicy\n   */\n  deleteEgressPolicy: {\n    methodKind: \"unary\";\n    input: typeof DeleteEgressPolicyRequestSchema;\n    output: typeof DeleteEgressPolicyResponseSchema;\n  },\n  /**\n   * Returns the authenticated caller's identity (owner type, owner ID).\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.WhoAmI\n   */\n  whoAmI: {\n    methodKind: \"unary\";\n    input: typeof WhoAmIRequestSchema;\n    output: typeof WhoAmIResponseSchema;\n  },\n  /**\n   * Linux x64 runner sizes Tenki CI can run for the workspace, within its job-size limits.\n   *\n   * @generated from rpc tenki.sandbox.v1.SandboxService.ListCIRunnerSizes\n   */\n  listCIRunnerSizes: {\n    methodKind: \"unary\";\n    input: typeof ListCIRunnerSizesRequestSchema;\n    output: typeof ListCIRunnerSizesResponseSchema;\n  },\n}> = /*@__PURE__*/\n  serviceDesc(file_tenki_sandbox_v1_sandbox, 0);\n\n/**\n * SandboxSessionDataPlaneService is served by the node-agent for SDK session traffic.\n *\n * @generated from service tenki.sandbox.v1.SandboxSessionDataPlaneService\n */\nexport const SandboxSessionDataPlaneService: GenService<{\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.Run\n   */\n  run: {\n    methodKind: \"bidi_streaming\";\n    input: typeof SandboxSessionDataPlaneServiceRunRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceRunResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.Dial\n   */\n  dial: {\n    methodKind: \"bidi_streaming\";\n    input: typeof SandboxSessionDataPlaneServiceDialRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceDialResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.HostPortTunnel\n   */\n  hostPortTunnel: {\n    methodKind: \"bidi_streaming\";\n    input: typeof SandboxSessionDataPlaneServiceHostPortTunnelRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceHostPortTunnelResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.ReadFile\n   */\n  readFile: {\n    methodKind: \"unary\";\n    input: typeof SandboxSessionDataPlaneServiceReadFileRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceReadFileResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.WriteFile\n   */\n  writeFile: {\n    methodKind: \"unary\";\n    input: typeof SandboxSessionDataPlaneServiceWriteFileRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceWriteFileResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.ReadFileStream\n   */\n  readFileStream: {\n    methodKind: \"server_streaming\";\n    input: typeof SandboxSessionDataPlaneServiceReadFileStreamRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceReadFileStreamResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.WriteFileStream\n   */\n  writeFileStream: {\n    methodKind: \"client_streaming\";\n    input: typeof SandboxSessionDataPlaneServiceWriteFileStreamRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceWriteFileStreamResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.Stat\n   */\n  stat: {\n    methodKind: \"unary\";\n    input: typeof SandboxSessionDataPlaneServiceStatRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceStatResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.Mkdir\n   */\n  mkdir: {\n    methodKind: \"unary\";\n    input: typeof SandboxSessionDataPlaneServiceMkdirRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceMkdirResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.Remove\n   */\n  remove: {\n    methodKind: \"unary\";\n    input: typeof SandboxSessionDataPlaneServiceRemoveRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceRemoveResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.sandbox.v1.SandboxSessionDataPlaneService.List\n   */\n  list: {\n    methodKind: \"unary\";\n    input: typeof SandboxSessionDataPlaneServiceListRequestSchema;\n    output: typeof SandboxSessionDataPlaneServiceListResponseSchema;\n  },\n}> = /*@__PURE__*/\n  serviceDesc(file_tenki_sandbox_v1_sandbox, 1);\n\n","// Copyright 2023-2025 Buf Technologies, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file buf/validate/validate.proto (package buf.validate, syntax proto2)\n/* eslint-disable */\n\nimport type { GenEnum, GenExtension, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, extDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Duration, FieldDescriptorProto_Type, FieldOptions, MessageOptions, OneofOptions, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_descriptor, file_google_protobuf_duration, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file buf/validate/validate.proto.\n */\nexport const file_buf_validate_validate: GenFile = /*@__PURE__*/\n  fileDesc(\"ChtidWYvdmFsaWRhdGUvdmFsaWRhdGUucHJvdG8SDGJ1Zi52YWxpZGF0ZSI3CgRSdWxlEgoKAmlkGAEgASgJEg8KB21lc3NhZ2UYAiABKAkSEgoKZXhwcmVzc2lvbhgDIAEoCSJuCgxNZXNzYWdlUnVsZXMSHwoDY2VsGAMgAygLMhIuYnVmLnZhbGlkYXRlLlJ1bGUSLQoFb25lb2YYBCADKAsyHi5idWYudmFsaWRhdGUuTWVzc2FnZU9uZW9mUnVsZUoECAEQAlIIZGlzYWJsZW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CTWV0YWRhdGHqAg1CdWY6OlZhbGlkYXRl\", [file_google_protobuf_descriptor, file_google_protobuf_duration, file_google_protobuf_timestamp]);\n\n/**\n * `Rule` represents a validation rule written in the Common Expression\n * Language (CEL) syntax. Each Rule includes a unique identifier, an\n * optional error message, and the CEL expression to evaluate. For more\n * information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).\n *\n * ```proto\n * message Foo {\n *   option (buf.validate.message).cel = {\n *     id: \"foo.bar\"\n *     message: \"bar must be greater than 0\"\n *     expression: \"this.bar > 0\"\n *   };\n *   int32 bar = 1;\n * }\n * ```\n *\n * @generated from message buf.validate.Rule\n */\nexport type Rule = Message<\"buf.validate.Rule\"> & {\n  /**\n   * `id` is a string that serves as a machine-readable name for this Rule.\n   * It should be unique within its scope, which could be either a message or a field.\n   *\n   * @generated from field: optional string id = 1;\n   */\n  id: string;\n\n  /**\n   * `message` is an optional field that provides a human-readable error message\n   * for this Rule when the CEL expression evaluates to false. If a\n   * non-empty message is provided, any strings resulting from the CEL\n   * expression evaluation are ignored.\n   *\n   * @generated from field: optional string message = 2;\n   */\n  message: string;\n\n  /**\n   * `expression` is the actual CEL expression that will be evaluated for\n   * validation. This string must resolve to either a boolean or a string\n   * value. If the expression evaluates to false or a non-empty string, the\n   * validation is considered failed, and the message is rejected.\n   *\n   * @generated from field: optional string expression = 3;\n   */\n  expression: string;\n};\n\n/**\n * Describes the message buf.validate.Rule.\n * Use `create(RuleSchema)` to create a new message.\n */\nexport const RuleSchema: GenMessage<Rule> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 0);\n\n/**\n * MessageRules represents validation rules that are applied to the entire message.\n * It includes disabling options and a list of Rule messages representing Common Expression Language (CEL) validation rules.\n *\n * @generated from message buf.validate.MessageRules\n */\nexport type MessageRules = Message<\"buf.validate.MessageRules\"> & {\n  /**\n   * `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message.\n   * These rules are written in Common Expression Language (CEL) syntax. For more information,\n   * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).\n   *\n   *\n   * ```proto\n   * message MyMessage {\n   *   // The field `foo` must be greater than 42.\n   *   option (buf.validate.message).cel = {\n   *     id: \"my_message.value\",\n   *     message: \"value must be greater than 42\",\n   *     expression: \"this.foo > 42\",\n   *   };\n   *   optional int32 foo = 1;\n   * }\n   * ```\n   *\n   * @generated from field: repeated buf.validate.Rule cel = 3;\n   */\n  cel: Rule[];\n\n  /**\n   * `oneof` is a repeated field of type MessageOneofRule that specifies a list of fields\n   * of which at most one can be present. If `required` is also specified, then exactly one\n   * of the specified fields _must_ be present.\n   *\n   * This will enforce oneof-like constraints with a few features not provided by\n   * actual Protobuf oneof declarations:\n   *   1. Repeated and map fields are allowed in this validation. In a Protobuf oneof,\n   *      only scalar fields are allowed.\n   *   2. Fields with implicit presence are allowed. In a Protobuf oneof, all member\n   *      fields have explicit presence. This means that, for the purpose of determining\n   *      how many fields are set, explicitly setting such a field to its zero value is\n   *      effectively the same as not setting it at all.\n   *   3. This will always generate validation errors for a message unmarshalled from\n   *      serialized data that sets more than one field. With a Protobuf oneof, when\n   *      multiple fields are present in the serialized form, earlier values are usually\n   *      silently ignored when unmarshalling, with only the last field being set when\n   *      unmarshalling completes.\n   *\n   * Note that adding a field to a `oneof` will also set the IGNORE_IF_ZERO_VALUE on the fields. This means\n   * only the field that is set will be validated and the unset fields are not validated according to the field rules.\n   * This behavior can be overridden by setting `ignore` against a field.\n   *\n   * ```proto\n   * message MyMessage {\n   *   // Only one of `field1` or `field2` _can_ be present in this message.\n   *   option (buf.validate.message).oneof = { fields: [\"field1\", \"field2\"] };\n   *   // Exactly one of `field3` or `field4` _must_ be present in this message.\n   *   option (buf.validate.message).oneof = { fields: [\"field3\", \"field4\"], required: true };\n   *   string field1 = 1;\n   *   bytes field2 = 2;\n   *   bool field3 = 3;\n   *   int32 field4 = 4;\n   * }\n   * ```\n   *\n   * @generated from field: repeated buf.validate.MessageOneofRule oneof = 4;\n   */\n  oneof: MessageOneofRule[];\n};\n\n/**\n * Describes the message buf.validate.MessageRules.\n * Use `create(MessageRulesSchema)` to create a new message.\n */\nexport const MessageRulesSchema: GenMessage<MessageRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 1);\n\n/**\n * @generated from message buf.validate.MessageOneofRule\n */\nexport type MessageOneofRule = Message<\"buf.validate.MessageOneofRule\"> & {\n  /**\n   * A list of field names to include in the oneof. All field names must be\n   * defined in the message. At least one field must be specified, and\n   * duplicates are not permitted.\n   *\n   * @generated from field: repeated string fields = 1;\n   */\n  fields: string[];\n\n  /**\n   * If true, one of the fields specified _must_ be set.\n   *\n   * @generated from field: optional bool required = 2;\n   */\n  required: boolean;\n};\n\n/**\n * Describes the message buf.validate.MessageOneofRule.\n * Use `create(MessageOneofRuleSchema)` to create a new message.\n */\nexport const MessageOneofRuleSchema: GenMessage<MessageOneofRule> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 2);\n\n/**\n * The `OneofRules` message type enables you to manage rules for\n * oneof fields in your protobuf messages.\n *\n * @generated from message buf.validate.OneofRules\n */\nexport type OneofRules = Message<\"buf.validate.OneofRules\"> & {\n  /**\n   * If `required` is true, exactly one field of the oneof must be set. A\n   * validation error is returned if no fields in the oneof are set. Further rules\n   * should be placed on the fields themselves to ensure they are valid values,\n   * such as `min_len` or `gt`.\n   *\n   * ```proto\n   * message MyMessage {\n   *   oneof value {\n   *     // Either `a` or `b` must be set. If `a` is set, it must also be\n   *     // non-empty; whereas if `b` is set, it can still be an empty string.\n   *     option (buf.validate.oneof).required = true;\n   *     string a = 1 [(buf.validate.field).string.min_len = 1];\n   *     string b = 2;\n   *   }\n   * }\n   * ```\n   *\n   * @generated from field: optional bool required = 1;\n   */\n  required: boolean;\n};\n\n/**\n * Describes the message buf.validate.OneofRules.\n * Use `create(OneofRulesSchema)` to create a new message.\n */\nexport const OneofRulesSchema: GenMessage<OneofRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 3);\n\n/**\n * FieldRules encapsulates the rules for each type of field. Depending on\n * the field, the correct set should be used to ensure proper validations.\n *\n * @generated from message buf.validate.FieldRules\n */\nexport type FieldRules = Message<\"buf.validate.FieldRules\"> & {\n  /**\n   * `cel` is a repeated field used to represent a textual expression\n   * in the Common Expression Language (CEL) syntax. For more information,\n   * [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/).\n   *\n   * ```proto\n   * message MyMessage {\n   *   // The field `value` must be greater than 42.\n   *   optional int32 value = 1 [(buf.validate.field).cel = {\n   *     id: \"my_message.value\",\n   *     message: \"value must be greater than 42\",\n   *     expression: \"this > 42\",\n   *   }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated buf.validate.Rule cel = 23;\n   */\n  cel: Rule[];\n\n  /**\n   * If `required` is true, the field must be set. A validation error is returned\n   * if the field is not set.\n   *\n   * ```proto\n   * syntax=\"proto3\";\n   *\n   * message FieldsWithPresence {\n   *   // Requires any string to be set, including the empty string.\n   *   optional string link = 1 [\n   *     (buf.validate.field).required = true\n   *   ];\n   *   // Requires true or false to be set.\n   *   optional bool disabled = 2 [\n   *     (buf.validate.field).required = true\n   *   ];\n   *   // Requires a message to be set, including the empty message.\n   *   SomeMessage msg = 4 [\n   *     (buf.validate.field).required = true\n   *   ];\n   * }\n   * ```\n   *\n   * All fields in the example above track presence. By default, Protovalidate\n   * ignores rules on those fields if no value is set. `required` ensures that\n   * the fields are set and valid.\n   *\n   * Fields that don't track presence are always validated by Protovalidate,\n   * whether they are set or not. It is not necessary to add `required`:\n   *\n   * ```proto\n   * syntax=\"proto3\";\n   *\n   * message FieldsWithoutPresence {\n   *   // `string.email` always applies, even to an empty string.\n   *   string link = 1 [\n   *     (buf.validate.field).string.email = true\n   *   ];\n   *   // `repeated.min_items` always applies, even to an empty list.\n   *   repeated string labels = 4 [\n   *     (buf.validate.field).repeated.min_items = 1\n   *   ];\n   * }\n   * ```\n   *\n   * To learn which fields track presence, see the\n   * [Field Presence cheat sheet](https://protobuf.dev/programming-guides/field_presence/#cheat).\n   *\n   * Note: While field rules can be applied to repeated items, map keys, and map\n   * values, the elements are always considered to be set. Consequently,\n   * specifying `repeated.items.required` is redundant.\n   *\n   * @generated from field: optional bool required = 25;\n   */\n  required: boolean;\n\n  /**\n   * Ignore validation rules on the field if its value matches the specified\n   * criteria. See the `Ignore` enum for details.\n   *\n   * ```proto\n   * message UpdateRequest {\n   *   // The uri rule only applies if the field is not an empty string.\n   *   string url = 1 [\n   *     (buf.validate.field).ignore = IGNORE_IF_UNPOPULATED,\n   *     (buf.validate.field).string.uri = true\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: optional buf.validate.Ignore ignore = 27;\n   */\n  ignore: Ignore;\n\n  /**\n   * @generated from oneof buf.validate.FieldRules.type\n   */\n  type: {\n    /**\n     * Scalar Field Types\n     *\n     * @generated from field: buf.validate.FloatRules float = 1;\n     */\n    value: FloatRules;\n    case: \"float\";\n  } | {\n    /**\n     * @generated from field: buf.validate.DoubleRules double = 2;\n     */\n    value: DoubleRules;\n    case: \"double\";\n  } | {\n    /**\n     * @generated from field: buf.validate.Int32Rules int32 = 3;\n     */\n    value: Int32Rules;\n    case: \"int32\";\n  } | {\n    /**\n     * @generated from field: buf.validate.Int64Rules int64 = 4;\n     */\n    value: Int64Rules;\n    case: \"int64\";\n  } | {\n    /**\n     * @generated from field: buf.validate.UInt32Rules uint32 = 5;\n     */\n    value: UInt32Rules;\n    case: \"uint32\";\n  } | {\n    /**\n     * @generated from field: buf.validate.UInt64Rules uint64 = 6;\n     */\n    value: UInt64Rules;\n    case: \"uint64\";\n  } | {\n    /**\n     * @generated from field: buf.validate.SInt32Rules sint32 = 7;\n     */\n    value: SInt32Rules;\n    case: \"sint32\";\n  } | {\n    /**\n     * @generated from field: buf.validate.SInt64Rules sint64 = 8;\n     */\n    value: SInt64Rules;\n    case: \"sint64\";\n  } | {\n    /**\n     * @generated from field: buf.validate.Fixed32Rules fixed32 = 9;\n     */\n    value: Fixed32Rules;\n    case: \"fixed32\";\n  } | {\n    /**\n     * @generated from field: buf.validate.Fixed64Rules fixed64 = 10;\n     */\n    value: Fixed64Rules;\n    case: \"fixed64\";\n  } | {\n    /**\n     * @generated from field: buf.validate.SFixed32Rules sfixed32 = 11;\n     */\n    value: SFixed32Rules;\n    case: \"sfixed32\";\n  } | {\n    /**\n     * @generated from field: buf.validate.SFixed64Rules sfixed64 = 12;\n     */\n    value: SFixed64Rules;\n    case: \"sfixed64\";\n  } | {\n    /**\n     * @generated from field: buf.validate.BoolRules bool = 13;\n     */\n    value: BoolRules;\n    case: \"bool\";\n  } | {\n    /**\n     * @generated from field: buf.validate.StringRules string = 14;\n     */\n    value: StringRules;\n    case: \"string\";\n  } | {\n    /**\n     * @generated from field: buf.validate.BytesRules bytes = 15;\n     */\n    value: BytesRules;\n    case: \"bytes\";\n  } | {\n    /**\n     * Complex Field Types\n     *\n     * @generated from field: buf.validate.EnumRules enum = 16;\n     */\n    value: EnumRules;\n    case: \"enum\";\n  } | {\n    /**\n     * @generated from field: buf.validate.RepeatedRules repeated = 18;\n     */\n    value: RepeatedRules;\n    case: \"repeated\";\n  } | {\n    /**\n     * @generated from field: buf.validate.MapRules map = 19;\n     */\n    value: MapRules;\n    case: \"map\";\n  } | {\n    /**\n     * Well-Known Field Types\n     *\n     * @generated from field: buf.validate.AnyRules any = 20;\n     */\n    value: AnyRules;\n    case: \"any\";\n  } | {\n    /**\n     * @generated from field: buf.validate.DurationRules duration = 21;\n     */\n    value: DurationRules;\n    case: \"duration\";\n  } | {\n    /**\n     * @generated from field: buf.validate.TimestampRules timestamp = 22;\n     */\n    value: TimestampRules;\n    case: \"timestamp\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message buf.validate.FieldRules.\n * Use `create(FieldRulesSchema)` to create a new message.\n */\nexport const FieldRulesSchema: GenMessage<FieldRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 4);\n\n/**\n * PredefinedRules are custom rules that can be re-used with\n * multiple fields.\n *\n * @generated from message buf.validate.PredefinedRules\n */\nexport type PredefinedRules = Message<\"buf.validate.PredefinedRules\"> & {\n  /**\n   * `cel` is a repeated field used to represent a textual expression\n   * in the Common Expression Language (CEL) syntax. For more information,\n   * [see our documentation](https://buf.build/docs/protovalidate/schemas/predefined-rules/).\n   *\n   * ```proto\n   * message MyMessage {\n   *   // The field `value` must be greater than 42.\n   *   optional int32 value = 1 [(buf.validate.predefined).cel = {\n   *     id: \"my_message.value\",\n   *     message: \"value must be greater than 42\",\n   *     expression: \"this > 42\",\n   *   }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated buf.validate.Rule cel = 1;\n   */\n  cel: Rule[];\n};\n\n/**\n * Describes the message buf.validate.PredefinedRules.\n * Use `create(PredefinedRulesSchema)` to create a new message.\n */\nexport const PredefinedRulesSchema: GenMessage<PredefinedRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 5);\n\n/**\n * FloatRules describes the rules applied to `float` values. These\n * rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type.\n *\n * @generated from message buf.validate.FloatRules\n */\nexport type FloatRules = Message<\"buf.validate.FloatRules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyFloat {\n   *   // value must equal 42.0\n   *   float value = 1 [(buf.validate.field).float.const = 42.0];\n   * }\n   * ```\n   *\n   * @generated from field: optional float const = 1;\n   */\n  const: number;\n\n  /**\n   * @generated from oneof buf.validate.FloatRules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFloat {\n     *   // value must be less than 10.0\n     *   float value = 1 [(buf.validate.field).float.lt = 10.0];\n     * }\n     * ```\n     *\n     * @generated from field: float lt = 2;\n     */\n    value: number;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyFloat {\n     *   // value must be less than or equal to 10.0\n     *   float value = 1 [(buf.validate.field).float.lte = 10.0];\n     * }\n     * ```\n     *\n     * @generated from field: float lte = 3;\n     */\n    value: number;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.FloatRules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFloat {\n     *   // value must be greater than 5.0 [float.gt]\n     *   float value = 1 [(buf.validate.field).float.gt = 5.0];\n     *\n     *   // value must be greater than 5 and less than 10.0 [float.gt_lt]\n     *   float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }];\n     *\n     *   // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive]\n     *   float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }];\n     * }\n     * ```\n     *\n     * @generated from field: float gt = 4;\n     */\n    value: number;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFloat {\n     *   // value must be greater than or equal to 5.0 [float.gte]\n     *   float value = 1 [(buf.validate.field).float.gte = 5.0];\n     *\n     *   // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt]\n     *   float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }];\n     *\n     *   // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive]\n     *   float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }];\n     * }\n     * ```\n     *\n     * @generated from field: float gte = 5;\n     */\n    value: number;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message\n   * is generated.\n   *\n   * ```proto\n   * message MyFloat {\n   *   // value must be in list [1.0, 2.0, 3.0]\n   *   float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated float in = 6;\n   */\n  in: number[];\n\n  /**\n   * `in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyFloat {\n   *   // value must not be in list [1.0, 2.0, 3.0]\n   *   float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated float not_in = 7;\n   */\n  notIn: number[];\n\n  /**\n   * `finite` requires the field value to be finite. If the field value is\n   * infinite or NaN, an error message is generated.\n   *\n   * @generated from field: optional bool finite = 8;\n   */\n  finite: boolean;\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyFloat {\n   *   float value = 1 [\n   *     (buf.validate.field).float.example = 1.0,\n   *     (buf.validate.field).float.example = inf\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated float example = 9;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.FloatRules.\n * Use `create(FloatRulesSchema)` to create a new message.\n */\nexport const FloatRulesSchema: GenMessage<FloatRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 6);\n\n/**\n * DoubleRules describes the rules applied to `double` values. These\n * rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type.\n *\n * @generated from message buf.validate.DoubleRules\n */\nexport type DoubleRules = Message<\"buf.validate.DoubleRules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyDouble {\n   *   // value must equal 42.0\n   *   double value = 1 [(buf.validate.field).double.const = 42.0];\n   * }\n   * ```\n   *\n   * @generated from field: optional double const = 1;\n   */\n  const: number;\n\n  /**\n   * @generated from oneof buf.validate.DoubleRules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyDouble {\n     *   // value must be less than 10.0\n     *   double value = 1 [(buf.validate.field).double.lt = 10.0];\n     * }\n     * ```\n     *\n     * @generated from field: double lt = 2;\n     */\n    value: number;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified value\n     * (field <= value). If the field value is greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyDouble {\n     *   // value must be less than or equal to 10.0\n     *   double value = 1 [(buf.validate.field).double.lte = 10.0];\n     * }\n     * ```\n     *\n     * @generated from field: double lte = 3;\n     */\n    value: number;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.DoubleRules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`,\n     * the range is reversed, and the field value must be outside the specified\n     * range. If the field value doesn't meet the required conditions, an error\n     * message is generated.\n     *\n     * ```proto\n     * message MyDouble {\n     *   // value must be greater than 5.0 [double.gt]\n     *   double value = 1 [(buf.validate.field).double.gt = 5.0];\n     *\n     *   // value must be greater than 5 and less than 10.0 [double.gt_lt]\n     *   double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }];\n     *\n     *   // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive]\n     *   double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }];\n     * }\n     * ```\n     *\n     * @generated from field: double gt = 4;\n     */\n    value: number;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyDouble {\n     *   // value must be greater than or equal to 5.0 [double.gte]\n     *   double value = 1 [(buf.validate.field).double.gte = 5.0];\n     *\n     *   // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt]\n     *   double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }];\n     *\n     *   // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive]\n     *   double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }];\n     * }\n     * ```\n     *\n     * @generated from field: double gte = 5;\n     */\n    value: number;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MyDouble {\n   *   // value must be in list [1.0, 2.0, 3.0]\n   *   double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated double in = 6;\n   */\n  in: number[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyDouble {\n   *   // value must not be in list [1.0, 2.0, 3.0]\n   *   double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated double not_in = 7;\n   */\n  notIn: number[];\n\n  /**\n   * `finite` requires the field value to be finite. If the field value is\n   * infinite or NaN, an error message is generated.\n   *\n   * @generated from field: optional bool finite = 8;\n   */\n  finite: boolean;\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyDouble {\n   *   double value = 1 [\n   *     (buf.validate.field).double.example = 1.0,\n   *     (buf.validate.field).double.example = inf\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated double example = 9;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.DoubleRules.\n * Use `create(DoubleRulesSchema)` to create a new message.\n */\nexport const DoubleRulesSchema: GenMessage<DoubleRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 7);\n\n/**\n * Int32Rules describes the rules applied to `int32` values. These\n * rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type.\n *\n * @generated from message buf.validate.Int32Rules\n */\nexport type Int32Rules = Message<\"buf.validate.Int32Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyInt32 {\n   *   // value must equal 42\n   *   int32 value = 1 [(buf.validate.field).int32.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional int32 const = 1;\n   */\n  const: number;\n\n  /**\n   * @generated from oneof buf.validate.Int32Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field\n     * < value). If the field value is equal to or greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyInt32 {\n     *   // value must be less than 10\n     *   int32 value = 1 [(buf.validate.field).int32.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: int32 lt = 2;\n     */\n    value: number;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyInt32 {\n     *   // value must be less than or equal to 10\n     *   int32 value = 1 [(buf.validate.field).int32.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: int32 lte = 3;\n     */\n    value: number;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.Int32Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyInt32 {\n     *   // value must be greater than 5 [int32.gt]\n     *   int32 value = 1 [(buf.validate.field).int32.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [int32.gt_lt]\n     *   int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive]\n     *   int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: int32 gt = 4;\n     */\n    value: number;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified value\n     * (exclusive). If the value of `gte` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyInt32 {\n     *   // value must be greater than or equal to 5 [int32.gte]\n     *   int32 value = 1 [(buf.validate.field).int32.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [int32.gte_lt]\n     *   int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive]\n     *   int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: int32 gte = 5;\n     */\n    value: number;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MyInt32 {\n   *   // value must be in list [1, 2, 3]\n   *   int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int32 in = 6;\n   */\n  in: number[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error message\n   * is generated.\n   *\n   * ```proto\n   * message MyInt32 {\n   *   // value must not be in list [1, 2, 3]\n   *   int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int32 not_in = 7;\n   */\n  notIn: number[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyInt32 {\n   *   int32 value = 1 [\n   *     (buf.validate.field).int32.example = 1,\n   *     (buf.validate.field).int32.example = -10\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int32 example = 8;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.Int32Rules.\n * Use `create(Int32RulesSchema)` to create a new message.\n */\nexport const Int32RulesSchema: GenMessage<Int32Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 8);\n\n/**\n * Int64Rules describes the rules applied to `int64` values. These\n * rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type.\n *\n * @generated from message buf.validate.Int64Rules\n */\nexport type Int64Rules = Message<\"buf.validate.Int64Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyInt64 {\n   *   // value must equal 42\n   *   int64 value = 1 [(buf.validate.field).int64.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional int64 const = 1;\n   */\n  const: bigint;\n\n  /**\n   * @generated from oneof buf.validate.Int64Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyInt64 {\n     *   // value must be less than 10\n     *   int64 value = 1 [(buf.validate.field).int64.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: int64 lt = 2;\n     */\n    value: bigint;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyInt64 {\n     *   // value must be less than or equal to 10\n     *   int64 value = 1 [(buf.validate.field).int64.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: int64 lte = 3;\n     */\n    value: bigint;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.Int64Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyInt64 {\n     *   // value must be greater than 5 [int64.gt]\n     *   int64 value = 1 [(buf.validate.field).int64.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [int64.gt_lt]\n     *   int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive]\n     *   int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: int64 gt = 4;\n     */\n    value: bigint;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyInt64 {\n     *   // value must be greater than or equal to 5 [int64.gte]\n     *   int64 value = 1 [(buf.validate.field).int64.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [int64.gte_lt]\n     *   int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive]\n     *   int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: int64 gte = 5;\n     */\n    value: bigint;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MyInt64 {\n   *   // value must be in list [1, 2, 3]\n   *   int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int64 in = 6;\n   */\n  in: bigint[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyInt64 {\n   *   // value must not be in list [1, 2, 3]\n   *   int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int64 not_in = 7;\n   */\n  notIn: bigint[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyInt64 {\n   *   int64 value = 1 [\n   *     (buf.validate.field).int64.example = 1,\n   *     (buf.validate.field).int64.example = -10\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int64 example = 9;\n   */\n  example: bigint[];\n};\n\n/**\n * Describes the message buf.validate.Int64Rules.\n * Use `create(Int64RulesSchema)` to create a new message.\n */\nexport const Int64RulesSchema: GenMessage<Int64Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 9);\n\n/**\n * UInt32Rules describes the rules applied to `uint32` values. These\n * rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type.\n *\n * @generated from message buf.validate.UInt32Rules\n */\nexport type UInt32Rules = Message<\"buf.validate.UInt32Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyUInt32 {\n   *   // value must equal 42\n   *   uint32 value = 1 [(buf.validate.field).uint32.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint32 const = 1;\n   */\n  const: number;\n\n  /**\n   * @generated from oneof buf.validate.UInt32Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyUInt32 {\n     *   // value must be less than 10\n     *   uint32 value = 1 [(buf.validate.field).uint32.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: uint32 lt = 2;\n     */\n    value: number;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyUInt32 {\n     *   // value must be less than or equal to 10\n     *   uint32 value = 1 [(buf.validate.field).uint32.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: uint32 lte = 3;\n     */\n    value: number;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.UInt32Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyUInt32 {\n     *   // value must be greater than 5 [uint32.gt]\n     *   uint32 value = 1 [(buf.validate.field).uint32.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [uint32.gt_lt]\n     *   uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive]\n     *   uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: uint32 gt = 4;\n     */\n    value: number;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyUInt32 {\n     *   // value must be greater than or equal to 5 [uint32.gte]\n     *   uint32 value = 1 [(buf.validate.field).uint32.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt]\n     *   uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive]\n     *   uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: uint32 gte = 5;\n     */\n    value: number;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MyUInt32 {\n   *   // value must be in list [1, 2, 3]\n   *   uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated uint32 in = 6;\n   */\n  in: number[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyUInt32 {\n   *   // value must not be in list [1, 2, 3]\n   *   uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated uint32 not_in = 7;\n   */\n  notIn: number[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyUInt32 {\n   *   uint32 value = 1 [\n   *     (buf.validate.field).uint32.example = 1,\n   *     (buf.validate.field).uint32.example = 10\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated uint32 example = 8;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.UInt32Rules.\n * Use `create(UInt32RulesSchema)` to create a new message.\n */\nexport const UInt32RulesSchema: GenMessage<UInt32Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 10);\n\n/**\n * UInt64Rules describes the rules applied to `uint64` values. These\n * rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type.\n *\n * @generated from message buf.validate.UInt64Rules\n */\nexport type UInt64Rules = Message<\"buf.validate.UInt64Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyUInt64 {\n   *   // value must equal 42\n   *   uint64 value = 1 [(buf.validate.field).uint64.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 const = 1;\n   */\n  const: bigint;\n\n  /**\n   * @generated from oneof buf.validate.UInt64Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyUInt64 {\n     *   // value must be less than 10\n     *   uint64 value = 1 [(buf.validate.field).uint64.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: uint64 lt = 2;\n     */\n    value: bigint;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyUInt64 {\n     *   // value must be less than or equal to 10\n     *   uint64 value = 1 [(buf.validate.field).uint64.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: uint64 lte = 3;\n     */\n    value: bigint;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.UInt64Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyUInt64 {\n     *   // value must be greater than 5 [uint64.gt]\n     *   uint64 value = 1 [(buf.validate.field).uint64.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [uint64.gt_lt]\n     *   uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive]\n     *   uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: uint64 gt = 4;\n     */\n    value: bigint;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyUInt64 {\n     *   // value must be greater than or equal to 5 [uint64.gte]\n     *   uint64 value = 1 [(buf.validate.field).uint64.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt]\n     *   uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive]\n     *   uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: uint64 gte = 5;\n     */\n    value: bigint;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MyUInt64 {\n   *   // value must be in list [1, 2, 3]\n   *   uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated uint64 in = 6;\n   */\n  in: bigint[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyUInt64 {\n   *   // value must not be in list [1, 2, 3]\n   *   uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated uint64 not_in = 7;\n   */\n  notIn: bigint[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyUInt64 {\n   *   uint64 value = 1 [\n   *     (buf.validate.field).uint64.example = 1,\n   *     (buf.validate.field).uint64.example = -10\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated uint64 example = 8;\n   */\n  example: bigint[];\n};\n\n/**\n * Describes the message buf.validate.UInt64Rules.\n * Use `create(UInt64RulesSchema)` to create a new message.\n */\nexport const UInt64RulesSchema: GenMessage<UInt64Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 11);\n\n/**\n * SInt32Rules describes the rules applied to `sint32` values.\n *\n * @generated from message buf.validate.SInt32Rules\n */\nexport type SInt32Rules = Message<\"buf.validate.SInt32Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MySInt32 {\n   *   // value must equal 42\n   *   sint32 value = 1 [(buf.validate.field).sint32.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional sint32 const = 1;\n   */\n  const: number;\n\n  /**\n   * @generated from oneof buf.validate.SInt32Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field\n     * < value). If the field value is equal to or greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MySInt32 {\n     *   // value must be less than 10\n     *   sint32 value = 1 [(buf.validate.field).sint32.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sint32 lt = 2;\n     */\n    value: number;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MySInt32 {\n     *   // value must be less than or equal to 10\n     *   sint32 value = 1 [(buf.validate.field).sint32.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sint32 lte = 3;\n     */\n    value: number;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.SInt32Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySInt32 {\n     *   // value must be greater than 5 [sint32.gt]\n     *   sint32 value = 1 [(buf.validate.field).sint32.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [sint32.gt_lt]\n     *   sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive]\n     *   sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sint32 gt = 4;\n     */\n    value: number;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySInt32 {\n     *  // value must be greater than or equal to 5 [sint32.gte]\n     *  sint32 value = 1 [(buf.validate.field).sint32.gte = 5];\n     *\n     *  // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt]\n     *  sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }];\n     *\n     *  // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive]\n     *  sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sint32 gte = 5;\n     */\n    value: number;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MySInt32 {\n   *   // value must be in list [1, 2, 3]\n   *   sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sint32 in = 6;\n   */\n  in: number[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MySInt32 {\n   *   // value must not be in list [1, 2, 3]\n   *   sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sint32 not_in = 7;\n   */\n  notIn: number[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MySInt32 {\n   *   sint32 value = 1 [\n   *     (buf.validate.field).sint32.example = 1,\n   *     (buf.validate.field).sint32.example = -10\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sint32 example = 8;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.SInt32Rules.\n * Use `create(SInt32RulesSchema)` to create a new message.\n */\nexport const SInt32RulesSchema: GenMessage<SInt32Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 12);\n\n/**\n * SInt64Rules describes the rules applied to `sint64` values.\n *\n * @generated from message buf.validate.SInt64Rules\n */\nexport type SInt64Rules = Message<\"buf.validate.SInt64Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MySInt64 {\n   *   // value must equal 42\n   *   sint64 value = 1 [(buf.validate.field).sint64.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional sint64 const = 1;\n   */\n  const: bigint;\n\n  /**\n   * @generated from oneof buf.validate.SInt64Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field\n     * < value). If the field value is equal to or greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MySInt64 {\n     *   // value must be less than 10\n     *   sint64 value = 1 [(buf.validate.field).sint64.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sint64 lt = 2;\n     */\n    value: bigint;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MySInt64 {\n     *   // value must be less than or equal to 10\n     *   sint64 value = 1 [(buf.validate.field).sint64.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sint64 lte = 3;\n     */\n    value: bigint;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.SInt64Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySInt64 {\n     *   // value must be greater than 5 [sint64.gt]\n     *   sint64 value = 1 [(buf.validate.field).sint64.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [sint64.gt_lt]\n     *   sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive]\n     *   sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sint64 gt = 4;\n     */\n    value: bigint;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySInt64 {\n     *   // value must be greater than or equal to 5 [sint64.gte]\n     *   sint64 value = 1 [(buf.validate.field).sint64.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt]\n     *   sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive]\n     *   sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sint64 gte = 5;\n     */\n    value: bigint;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message\n   * is generated.\n   *\n   * ```proto\n   * message MySInt64 {\n   *   // value must be in list [1, 2, 3]\n   *   sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sint64 in = 6;\n   */\n  in: bigint[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MySInt64 {\n   *   // value must not be in list [1, 2, 3]\n   *   sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sint64 not_in = 7;\n   */\n  notIn: bigint[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MySInt64 {\n   *   sint64 value = 1 [\n   *     (buf.validate.field).sint64.example = 1,\n   *     (buf.validate.field).sint64.example = -10\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sint64 example = 8;\n   */\n  example: bigint[];\n};\n\n/**\n * Describes the message buf.validate.SInt64Rules.\n * Use `create(SInt64RulesSchema)` to create a new message.\n */\nexport const SInt64RulesSchema: GenMessage<SInt64Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 13);\n\n/**\n * Fixed32Rules describes the rules applied to `fixed32` values.\n *\n * @generated from message buf.validate.Fixed32Rules\n */\nexport type Fixed32Rules = Message<\"buf.validate.Fixed32Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value.\n   * If the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyFixed32 {\n   *   // value must equal 42\n   *   fixed32 value = 1 [(buf.validate.field).fixed32.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional fixed32 const = 1;\n   */\n  const: number;\n\n  /**\n   * @generated from oneof buf.validate.Fixed32Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFixed32 {\n     *   // value must be less than 10\n     *   fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: fixed32 lt = 2;\n     */\n    value: number;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyFixed32 {\n     *   // value must be less than or equal to 10\n     *   fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: fixed32 lte = 3;\n     */\n    value: number;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.Fixed32Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFixed32 {\n     *   // value must be greater than 5 [fixed32.gt]\n     *   fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [fixed32.gt_lt]\n     *   fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive]\n     *   fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: fixed32 gt = 4;\n     */\n    value: number;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFixed32 {\n     *   // value must be greater than or equal to 5 [fixed32.gte]\n     *   fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt]\n     *   fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive]\n     *   fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: fixed32 gte = 5;\n     */\n    value: number;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message\n   * is generated.\n   *\n   * ```proto\n   * message MyFixed32 {\n   *   // value must be in list [1, 2, 3]\n   *   fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated fixed32 in = 6;\n   */\n  in: number[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyFixed32 {\n   *   // value must not be in list [1, 2, 3]\n   *   fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated fixed32 not_in = 7;\n   */\n  notIn: number[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyFixed32 {\n   *   fixed32 value = 1 [\n   *     (buf.validate.field).fixed32.example = 1,\n   *     (buf.validate.field).fixed32.example = 2\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated fixed32 example = 8;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.Fixed32Rules.\n * Use `create(Fixed32RulesSchema)` to create a new message.\n */\nexport const Fixed32RulesSchema: GenMessage<Fixed32Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 14);\n\n/**\n * Fixed64Rules describes the rules applied to `fixed64` values.\n *\n * @generated from message buf.validate.Fixed64Rules\n */\nexport type Fixed64Rules = Message<\"buf.validate.Fixed64Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyFixed64 {\n   *   // value must equal 42\n   *   fixed64 value = 1 [(buf.validate.field).fixed64.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional fixed64 const = 1;\n   */\n  const: bigint;\n\n  /**\n   * @generated from oneof buf.validate.Fixed64Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFixed64 {\n     *   // value must be less than 10\n     *   fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: fixed64 lt = 2;\n     */\n    value: bigint;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MyFixed64 {\n     *   // value must be less than or equal to 10\n     *   fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: fixed64 lte = 3;\n     */\n    value: bigint;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.Fixed64Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFixed64 {\n     *   // value must be greater than 5 [fixed64.gt]\n     *   fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [fixed64.gt_lt]\n     *   fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive]\n     *   fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: fixed64 gt = 4;\n     */\n    value: bigint;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyFixed64 {\n     *   // value must be greater than or equal to 5 [fixed64.gte]\n     *   fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt]\n     *   fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive]\n     *   fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: fixed64 gte = 5;\n     */\n    value: bigint;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MyFixed64 {\n   *   // value must be in list [1, 2, 3]\n   *   fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated fixed64 in = 6;\n   */\n  in: bigint[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyFixed64 {\n   *   // value must not be in list [1, 2, 3]\n   *   fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated fixed64 not_in = 7;\n   */\n  notIn: bigint[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyFixed64 {\n   *   fixed64 value = 1 [\n   *     (buf.validate.field).fixed64.example = 1,\n   *     (buf.validate.field).fixed64.example = 2\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated fixed64 example = 8;\n   */\n  example: bigint[];\n};\n\n/**\n * Describes the message buf.validate.Fixed64Rules.\n * Use `create(Fixed64RulesSchema)` to create a new message.\n */\nexport const Fixed64RulesSchema: GenMessage<Fixed64Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 15);\n\n/**\n * SFixed32Rules describes the rules applied to `fixed32` values.\n *\n * @generated from message buf.validate.SFixed32Rules\n */\nexport type SFixed32Rules = Message<\"buf.validate.SFixed32Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MySFixed32 {\n   *   // value must equal 42\n   *   sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional sfixed32 const = 1;\n   */\n  const: number;\n\n  /**\n   * @generated from oneof buf.validate.SFixed32Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySFixed32 {\n     *   // value must be less than 10\n     *   sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed32 lt = 2;\n     */\n    value: number;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MySFixed32 {\n     *   // value must be less than or equal to 10\n     *   sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed32 lte = 3;\n     */\n    value: number;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.SFixed32Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySFixed32 {\n     *   // value must be greater than 5 [sfixed32.gt]\n     *   sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [sfixed32.gt_lt]\n     *   sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive]\n     *   sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed32 gt = 4;\n     */\n    value: number;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySFixed32 {\n     *   // value must be greater than or equal to 5 [sfixed32.gte]\n     *   sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt]\n     *   sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive]\n     *   sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed32 gte = 5;\n     */\n    value: number;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MySFixed32 {\n   *   // value must be in list [1, 2, 3]\n   *   sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sfixed32 in = 6;\n   */\n  in: number[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MySFixed32 {\n   *   // value must not be in list [1, 2, 3]\n   *   sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sfixed32 not_in = 7;\n   */\n  notIn: number[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MySFixed32 {\n   *   sfixed32 value = 1 [\n   *     (buf.validate.field).sfixed32.example = 1,\n   *     (buf.validate.field).sfixed32.example = 2\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sfixed32 example = 8;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.SFixed32Rules.\n * Use `create(SFixed32RulesSchema)` to create a new message.\n */\nexport const SFixed32RulesSchema: GenMessage<SFixed32Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 16);\n\n/**\n * SFixed64Rules describes the rules applied to `fixed64` values.\n *\n * @generated from message buf.validate.SFixed64Rules\n */\nexport type SFixed64Rules = Message<\"buf.validate.SFixed64Rules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MySFixed64 {\n   *   // value must equal 42\n   *   sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42];\n   * }\n   * ```\n   *\n   * @generated from field: optional sfixed64 const = 1;\n   */\n  const: bigint;\n\n  /**\n   * @generated from oneof buf.validate.SFixed64Rules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` requires the field value to be less than the specified value (field <\n     * value). If the field value is equal to or greater than the specified value,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySFixed64 {\n     *   // value must be less than 10\n     *   sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed64 lt = 2;\n     */\n    value: bigint;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` requires the field value to be less than or equal to the specified\n     * value (field <= value). If the field value is greater than the specified\n     * value, an error message is generated.\n     *\n     * ```proto\n     * message MySFixed64 {\n     *   // value must be less than or equal to 10\n     *   sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed64 lte = 3;\n     */\n    value: bigint;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.SFixed64Rules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the field value to be greater than the specified value\n     * (exclusive). If the value of `gt` is larger than a specified `lt` or\n     * `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySFixed64 {\n     *   // value must be greater than 5 [sfixed64.gt]\n     *   sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5];\n     *\n     *   // value must be greater than 5 and less than 10 [sfixed64.gt_lt]\n     *   sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }];\n     *\n     *   // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive]\n     *   sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed64 gt = 4;\n     */\n    value: bigint;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the field value to be greater than or equal to the specified\n     * value (exclusive). If the value of `gte` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MySFixed64 {\n     *   // value must be greater than or equal to 5 [sfixed64.gte]\n     *   sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5];\n     *\n     *   // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt]\n     *   sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }];\n     *\n     *   // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive]\n     *   sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }];\n     * }\n     * ```\n     *\n     * @generated from field: sfixed64 gte = 5;\n     */\n    value: bigint;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` requires the field value to be equal to one of the specified values.\n   * If the field value isn't one of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MySFixed64 {\n   *   // value must be in list [1, 2, 3]\n   *   sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sfixed64 in = 6;\n   */\n  in: bigint[];\n\n  /**\n   * `not_in` requires the field value to not be equal to any of the specified\n   * values. If the field value is one of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MySFixed64 {\n   *   // value must not be in list [1, 2, 3]\n   *   sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sfixed64 not_in = 7;\n   */\n  notIn: bigint[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MySFixed64 {\n   *   sfixed64 value = 1 [\n   *     (buf.validate.field).sfixed64.example = 1,\n   *     (buf.validate.field).sfixed64.example = 2\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated sfixed64 example = 8;\n   */\n  example: bigint[];\n};\n\n/**\n * Describes the message buf.validate.SFixed64Rules.\n * Use `create(SFixed64RulesSchema)` to create a new message.\n */\nexport const SFixed64RulesSchema: GenMessage<SFixed64Rules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 17);\n\n/**\n * BoolRules describes the rules applied to `bool` values. These rules\n * may also be applied to the `google.protobuf.BoolValue` Well-Known-Type.\n *\n * @generated from message buf.validate.BoolRules\n */\nexport type BoolRules = Message<\"buf.validate.BoolRules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified boolean value.\n   * If the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyBool {\n   *   // value must equal true\n   *   bool value = 1 [(buf.validate.field).bool.const = true];\n   * }\n   * ```\n   *\n   * @generated from field: optional bool const = 1;\n   */\n  const: boolean;\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyBool {\n   *   bool value = 1 [\n   *     (buf.validate.field).bool.example = 1,\n   *     (buf.validate.field).bool.example = 2\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated bool example = 2;\n   */\n  example: boolean[];\n};\n\n/**\n * Describes the message buf.validate.BoolRules.\n * Use `create(BoolRulesSchema)` to create a new message.\n */\nexport const BoolRulesSchema: GenMessage<BoolRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 18);\n\n/**\n * StringRules describes the rules applied to `string` values These\n * rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type.\n *\n * @generated from message buf.validate.StringRules\n */\nexport type StringRules = Message<\"buf.validate.StringRules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified value. If\n   * the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value must equal `hello`\n   *   string value = 1 [(buf.validate.field).string.const = \"hello\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional string const = 1;\n   */\n  const: string;\n\n  /**\n   * `len` dictates that the field value must have the specified\n   * number of characters (Unicode code points), which may differ from the number\n   * of bytes in the string. If the field value does not meet the specified\n   * length, an error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value length must be 5 characters\n   *   string value = 1 [(buf.validate.field).string.len = 5];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 len = 19;\n   */\n  len: bigint;\n\n  /**\n   * `min_len` specifies that the field value must have at least the specified\n   * number of characters (Unicode code points), which may differ from the number\n   * of bytes in the string. If the field value contains fewer characters, an error\n   * message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value length must be at least 3 characters\n   *   string value = 1 [(buf.validate.field).string.min_len = 3];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 min_len = 2;\n   */\n  minLen: bigint;\n\n  /**\n   * `max_len` specifies that the field value must have no more than the specified\n   * number of characters (Unicode code points), which may differ from the\n   * number of bytes in the string. If the field value contains more characters,\n   * an error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value length must be at most 10 characters\n   *   string value = 1 [(buf.validate.field).string.max_len = 10];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 max_len = 3;\n   */\n  maxLen: bigint;\n\n  /**\n   * `len_bytes` dictates that the field value must have the specified number of\n   * bytes. If the field value does not match the specified length in bytes,\n   * an error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value length must be 6 bytes\n   *   string value = 1 [(buf.validate.field).string.len_bytes = 6];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 len_bytes = 20;\n   */\n  lenBytes: bigint;\n\n  /**\n   * `min_bytes` specifies that the field value must have at least the specified\n   * number of bytes. If the field value contains fewer bytes, an error message\n   * will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value length must be at least 4 bytes\n   *   string value = 1 [(buf.validate.field).string.min_bytes = 4];\n   * }\n   *\n   * ```\n   *\n   * @generated from field: optional uint64 min_bytes = 4;\n   */\n  minBytes: bigint;\n\n  /**\n   * `max_bytes` specifies that the field value must have no more than the\n   * specified number of bytes. If the field value contains more bytes, an\n   * error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value length must be at most 8 bytes\n   *   string value = 1 [(buf.validate.field).string.max_bytes = 8];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 max_bytes = 5;\n   */\n  maxBytes: bigint;\n\n  /**\n   * `pattern` specifies that the field value must match the specified\n   * regular expression (RE2 syntax), with the expression provided without any\n   * delimiters. If the field value doesn't match the regular expression, an\n   * error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value does not match regex pattern `^[a-zA-Z]//$`\n   *   string value = 1 [(buf.validate.field).string.pattern = \"^[a-zA-Z]//$\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional string pattern = 6;\n   */\n  pattern: string;\n\n  /**\n   * `prefix` specifies that the field value must have the\n   * specified substring at the beginning of the string. If the field value\n   * doesn't start with the specified prefix, an error message will be\n   * generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value does not have prefix `pre`\n   *   string value = 1 [(buf.validate.field).string.prefix = \"pre\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional string prefix = 7;\n   */\n  prefix: string;\n\n  /**\n   * `suffix` specifies that the field value must have the\n   * specified substring at the end of the string. If the field value doesn't\n   * end with the specified suffix, an error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value does not have suffix `post`\n   *   string value = 1 [(buf.validate.field).string.suffix = \"post\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional string suffix = 8;\n   */\n  suffix: string;\n\n  /**\n   * `contains` specifies that the field value must have the\n   * specified substring anywhere in the string. If the field value doesn't\n   * contain the specified substring, an error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value does not contain substring `inside`.\n   *   string value = 1 [(buf.validate.field).string.contains = \"inside\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional string contains = 9;\n   */\n  contains: string;\n\n  /**\n   * `not_contains` specifies that the field value must not have the\n   * specified substring anywhere in the string. If the field value contains\n   * the specified substring, an error message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value contains substring `inside`.\n   *   string value = 1 [(buf.validate.field).string.not_contains = \"inside\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional string not_contains = 23;\n   */\n  notContains: string;\n\n  /**\n   * `in` specifies that the field value must be equal to one of the specified\n   * values. If the field value isn't one of the specified values, an error\n   * message will be generated.\n   *\n   * ```proto\n   * message MyString {\n   *   // value must be in list [\"apple\", \"banana\"]\n   *   string value = 1 [(buf.validate.field).string.in = \"apple\", (buf.validate.field).string.in = \"banana\"];\n   * }\n   * ```\n   *\n   * @generated from field: repeated string in = 10;\n   */\n  in: string[];\n\n  /**\n   * `not_in` specifies that the field value cannot be equal to any\n   * of the specified values. If the field value is one of the specified values,\n   * an error message will be generated.\n   * ```proto\n   * message MyString {\n   *   // value must not be in list [\"orange\", \"grape\"]\n   *   string value = 1 [(buf.validate.field).string.not_in = \"orange\", (buf.validate.field).string.not_in = \"grape\"];\n   * }\n   * ```\n   *\n   * @generated from field: repeated string not_in = 11;\n   */\n  notIn: string[];\n\n  /**\n   * `WellKnown` rules provide advanced rules against common string\n   * patterns.\n   *\n   * @generated from oneof buf.validate.StringRules.well_known\n   */\n  wellKnown: {\n    /**\n     * `email` specifies that the field value must be a valid email address, for\n     * example \"foo@example.com\".\n     *\n     * Conforms to the definition for a valid email address from the [HTML standard](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address).\n     * Note that this standard willfully deviates from [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322),\n     * which allows many unexpected forms of email addresses and will easily match\n     * a typographical error.\n     *\n     * If the field value isn't a valid email address, an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid email address\n     *   string value = 1 [(buf.validate.field).string.email = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool email = 12;\n     */\n    value: boolean;\n    case: \"email\";\n  } | {\n    /**\n     * `hostname` specifies that the field value must be a valid hostname, for\n     * example \"foo.example.com\".\n     *\n     * A valid hostname follows the rules below:\n     * - The name consists of one or more labels, separated by a dot (\".\").\n     * - Each label can be 1 to 63 alphanumeric characters.\n     * - A label can contain hyphens (\"-\"), but must not start or end with a hyphen.\n     * - The right-most label must not be digits only.\n     * - The name can have a trailing dot—for example, \"foo.example.com.\".\n     * - The name can be 253 characters at most, excluding the optional trailing dot.\n     *\n     * If the field value isn't a valid hostname, an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid hostname\n     *   string value = 1 [(buf.validate.field).string.hostname = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool hostname = 13;\n     */\n    value: boolean;\n    case: \"hostname\";\n  } | {\n    /**\n     * `ip` specifies that the field value must be a valid IP (v4 or v6) address.\n     *\n     * IPv4 addresses are expected in the dotted decimal format—for example, \"192.168.5.21\".\n     * IPv6 addresses are expected in their text representation—for example, \"::1\",\n     * or \"2001:0DB8:ABCD:0012::0\".\n     *\n     * Both formats are well-defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986).\n     * Zone identifiers for IPv6 addresses (for example, \"fe80::a%en1\") are supported.\n     *\n     * If the field value isn't a valid IP address, an error message will be\n     * generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IP address\n     *   string value = 1 [(buf.validate.field).string.ip = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ip = 14;\n     */\n    value: boolean;\n    case: \"ip\";\n  } | {\n    /**\n     * `ipv4` specifies that the field value must be a valid IPv4 address—for\n     * example \"192.168.5.21\". If the field value isn't a valid IPv4 address, an\n     * error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IPv4 address\n     *   string value = 1 [(buf.validate.field).string.ipv4 = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv4 = 15;\n     */\n    value: boolean;\n    case: \"ipv4\";\n  } | {\n    /**\n     * `ipv6` specifies that the field value must be a valid IPv6 address—for\n     * example \"::1\", or \"d7a:115c:a1e0:ab12:4843:cd96:626b:430b\". If the field\n     * value is not a valid IPv6 address, an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IPv6 address\n     *   string value = 1 [(buf.validate.field).string.ipv6 = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv6 = 16;\n     */\n    value: boolean;\n    case: \"ipv6\";\n  } | {\n    /**\n     * `uri` specifies that the field value must be a valid URI, for example\n     * \"https://example.com/foo/bar?baz=quux#frag\".\n     *\n     * URI is defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986).\n     * Zone Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)).\n     *\n     * If the field value isn't a valid URI, an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid URI\n     *   string value = 1 [(buf.validate.field).string.uri = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool uri = 17;\n     */\n    value: boolean;\n    case: \"uri\";\n  } | {\n    /**\n     * `uri_ref` specifies that the field value must be a valid URI Reference—either\n     * a URI such as \"https://example.com/foo/bar?baz=quux#frag\", or a Relative\n     * Reference such as \"./foo/bar?query\".\n     *\n     * URI, URI Reference, and Relative Reference are defined in the internet\n     * standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone\n     * Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)).\n     *\n     * If the field value isn't a valid URI Reference, an error message will be\n     * generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid URI Reference\n     *   string value = 1 [(buf.validate.field).string.uri_ref = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool uri_ref = 18;\n     */\n    value: boolean;\n    case: \"uriRef\";\n  } | {\n    /**\n     * `address` specifies that the field value must be either a valid hostname\n     * (for example, \"example.com\"), or a valid IP (v4 or v6) address (for example,\n     * \"192.168.0.1\", or \"::1\"). If the field value isn't a valid hostname or IP,\n     * an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid hostname, or ip address\n     *   string value = 1 [(buf.validate.field).string.address = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool address = 21;\n     */\n    value: boolean;\n    case: \"address\";\n  } | {\n    /**\n     * `uuid` specifies that the field value must be a valid UUID as defined by\n     * [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the\n     * field value isn't a valid UUID, an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid UUID\n     *   string value = 1 [(buf.validate.field).string.uuid = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool uuid = 22;\n     */\n    value: boolean;\n    case: \"uuid\";\n  } | {\n    /**\n     * `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as\n     * defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes\n     * omitted. If the field value isn't a valid UUID without dashes, an error message\n     * will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid trimmed UUID\n     *   string value = 1 [(buf.validate.field).string.tuuid = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool tuuid = 33;\n     */\n    value: boolean;\n    case: \"tuuid\";\n  } | {\n    /**\n     * `ip_with_prefixlen` specifies that the field value must be a valid IP\n     * (v4 or v6) address with prefix length—for example, \"192.168.5.21/16\" or\n     * \"2001:0DB8:ABCD:0012::F1/64\". If the field value isn't a valid IP with\n     * prefix length, an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IP with prefix length\n     *    string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ip_with_prefixlen = 26;\n     */\n    value: boolean;\n    case: \"ipWithPrefixlen\";\n  } | {\n    /**\n     * `ipv4_with_prefixlen` specifies that the field value must be a valid\n     * IPv4 address with prefix length—for example, \"192.168.5.21/16\". If the\n     * field value isn't a valid IPv4 address with prefix length, an error\n     * message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IPv4 address with prefix length\n     *    string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv4_with_prefixlen = 27;\n     */\n    value: boolean;\n    case: \"ipv4WithPrefixlen\";\n  } | {\n    /**\n     * `ipv6_with_prefixlen` specifies that the field value must be a valid\n     * IPv6 address with prefix length—for example, \"2001:0DB8:ABCD:0012::F1/64\".\n     * If the field value is not a valid IPv6 address with prefix length,\n     * an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IPv6 address prefix length\n     *    string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv6_with_prefixlen = 28;\n     */\n    value: boolean;\n    case: \"ipv6WithPrefixlen\";\n  } | {\n    /**\n     * `ip_prefix` specifies that the field value must be a valid IP (v4 or v6)\n     * prefix—for example, \"192.168.0.0/16\" or \"2001:0DB8:ABCD:0012::0/64\".\n     *\n     * The prefix must have all zeros for the unmasked bits. For example,\n     * \"2001:0DB8:ABCD:0012::0/64\" designates the left-most 64 bits for the\n     * prefix, and the remaining 64 bits must be zero.\n     *\n     * If the field value isn't a valid IP prefix, an error message will be\n     * generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IP prefix\n     *    string value = 1 [(buf.validate.field).string.ip_prefix = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ip_prefix = 29;\n     */\n    value: boolean;\n    case: \"ipPrefix\";\n  } | {\n    /**\n     * `ipv4_prefix` specifies that the field value must be a valid IPv4\n     * prefix, for example \"192.168.0.0/16\".\n     *\n     * The prefix must have all zeros for the unmasked bits. For example,\n     * \"192.168.0.0/16\" designates the left-most 16 bits for the prefix,\n     * and the remaining 16 bits must be zero.\n     *\n     * If the field value isn't a valid IPv4 prefix, an error message\n     * will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IPv4 prefix\n     *    string value = 1 [(buf.validate.field).string.ipv4_prefix = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv4_prefix = 30;\n     */\n    value: boolean;\n    case: \"ipv4Prefix\";\n  } | {\n    /**\n     * `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for\n     * example, \"2001:0DB8:ABCD:0012::0/64\".\n     *\n     * The prefix must have all zeros for the unmasked bits. For example,\n     * \"2001:0DB8:ABCD:0012::0/64\" designates the left-most 64 bits for the\n     * prefix, and the remaining 64 bits must be zero.\n     *\n     * If the field value is not a valid IPv6 prefix, an error message will be\n     * generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid IPv6 prefix\n     *    string value = 1 [(buf.validate.field).string.ipv6_prefix = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv6_prefix = 31;\n     */\n    value: boolean;\n    case: \"ipv6Prefix\";\n  } | {\n    /**\n     * `host_and_port` specifies that the field value must be valid host/port\n     * pair—for example, \"example.com:8080\".\n     *\n     * The host can be one of:\n     * - An IPv4 address in dotted decimal format—for example, \"192.168.5.21\".\n     * - An IPv6 address enclosed in square brackets—for example, \"[2001:0DB8:ABCD:0012::F1]\".\n     * - A hostname—for example, \"example.com\".\n     *\n     * The port is separated by a colon. It must be non-empty, with a decimal number\n     * in the range of 0-65535, inclusive.\n     *\n     * @generated from field: bool host_and_port = 32;\n     */\n    value: boolean;\n    case: \"hostAndPort\";\n  } | {\n    /**\n     * `well_known_regex` specifies a common well-known pattern\n     * defined as a regex. If the field value doesn't match the well-known\n     * regex, an error message will be generated.\n     *\n     * ```proto\n     * message MyString {\n     *   // value must be a valid HTTP header value\n     *   string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE];\n     * }\n     * ```\n     *\n     * #### KnownRegex\n     *\n     * `well_known_regex` contains some well-known patterns.\n     *\n     * | Name                          | Number | Description                               |\n     * |-------------------------------|--------|-------------------------------------------|\n     * | KNOWN_REGEX_UNSPECIFIED       | 0      |                                           |\n     * | KNOWN_REGEX_HTTP_HEADER_NAME  | 1      | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2)  |\n     * | KNOWN_REGEX_HTTP_HEADER_VALUE | 2      | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |\n     *\n     * @generated from field: buf.validate.KnownRegex well_known_regex = 24;\n     */\n    value: KnownRegex;\n    case: \"wellKnownRegex\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to\n   * enable strict header validation. By default, this is true, and HTTP header\n   * validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser\n   * validations that only disallow `\\r\\n\\0` characters, which can be used to\n   * bypass header matching rules.\n   *\n   * ```proto\n   * message MyString {\n   *   // The field `value` must have be a valid HTTP headers, but not enforced with strict rules.\n   *   string value = 1 [(buf.validate.field).string.strict = false];\n   * }\n   * ```\n   *\n   * @generated from field: optional bool strict = 25;\n   */\n  strict: boolean;\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyString {\n   *   string value = 1 [\n   *     (buf.validate.field).string.example = \"hello\",\n   *     (buf.validate.field).string.example = \"world\"\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated string example = 34;\n   */\n  example: string[];\n};\n\n/**\n * Describes the message buf.validate.StringRules.\n * Use `create(StringRulesSchema)` to create a new message.\n */\nexport const StringRulesSchema: GenMessage<StringRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 19);\n\n/**\n * BytesRules describe the rules applied to `bytes` values. These rules\n * may also be applied to the `google.protobuf.BytesValue` Well-Known-Type.\n *\n * @generated from message buf.validate.BytesRules\n */\nexport type BytesRules = Message<\"buf.validate.BytesRules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified bytes\n   * value. If the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value must be \"\\x01\\x02\\x03\\x04\"\n   *   bytes value = 1 [(buf.validate.field).bytes.const = \"\\x01\\x02\\x03\\x04\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional bytes const = 1;\n   */\n  const: Uint8Array;\n\n  /**\n   * `len` requires the field value to have the specified length in bytes.\n   * If the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value length must be 4 bytes.\n   *   optional bytes value = 1 [(buf.validate.field).bytes.len = 4];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 len = 13;\n   */\n  len: bigint;\n\n  /**\n   * `min_len` requires the field value to have at least the specified minimum\n   * length in bytes.\n   * If the field value doesn't meet the requirement, an error message is generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value length must be at least 2 bytes.\n   *   optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 min_len = 2;\n   */\n  minLen: bigint;\n\n  /**\n   * `max_len` requires the field value to have at most the specified maximum\n   * length in bytes.\n   * If the field value exceeds the requirement, an error message is generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value must be at most 6 bytes.\n   *   optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 max_len = 3;\n   */\n  maxLen: bigint;\n\n  /**\n   * `pattern` requires the field value to match the specified regular\n   * expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)).\n   * The value of the field must be valid UTF-8 or validation will fail with a\n   * runtime error.\n   * If the field value doesn't match the pattern, an error message is generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value must match regex pattern \"^[a-zA-Z0-9]+$\".\n   *   optional bytes value = 1 [(buf.validate.field).bytes.pattern = \"^[a-zA-Z0-9]+$\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional string pattern = 4;\n   */\n  pattern: string;\n\n  /**\n   * `prefix` requires the field value to have the specified bytes at the\n   * beginning of the string.\n   * If the field value doesn't meet the requirement, an error message is generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value does not have prefix \\x01\\x02\n   *   optional bytes value = 1 [(buf.validate.field).bytes.prefix = \"\\x01\\x02\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional bytes prefix = 5;\n   */\n  prefix: Uint8Array;\n\n  /**\n   * `suffix` requires the field value to have the specified bytes at the end\n   * of the string.\n   * If the field value doesn't meet the requirement, an error message is generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value does not have suffix \\x03\\x04\n   *   optional bytes value = 1 [(buf.validate.field).bytes.suffix = \"\\x03\\x04\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional bytes suffix = 6;\n   */\n  suffix: Uint8Array;\n\n  /**\n   * `contains` requires the field value to have the specified bytes anywhere in\n   * the string.\n   * If the field value doesn't meet the requirement, an error message is generated.\n   *\n   * ```protobuf\n   * message MyBytes {\n   *   // value does not contain \\x02\\x03\n   *   optional bytes value = 1 [(buf.validate.field).bytes.contains = \"\\x02\\x03\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional bytes contains = 7;\n   */\n  contains: Uint8Array;\n\n  /**\n   * `in` requires the field value to be equal to one of the specified\n   * values. If the field value doesn't match any of the specified values, an\n   * error message is generated.\n   *\n   * ```protobuf\n   * message MyBytes {\n   *   // value must in [\"\\x01\\x02\", \"\\x02\\x03\", \"\\x03\\x04\"]\n   *   optional bytes value = 1 [(buf.validate.field).bytes.in = {\"\\x01\\x02\", \"\\x02\\x03\", \"\\x03\\x04\"}];\n   * }\n   * ```\n   *\n   * @generated from field: repeated bytes in = 8;\n   */\n  in: Uint8Array[];\n\n  /**\n   * `not_in` requires the field value to be not equal to any of the specified\n   * values.\n   * If the field value matches any of the specified values, an error message is\n   * generated.\n   *\n   * ```proto\n   * message MyBytes {\n   *   // value must not in [\"\\x01\\x02\", \"\\x02\\x03\", \"\\x03\\x04\"]\n   *   optional bytes value = 1 [(buf.validate.field).bytes.not_in = {\"\\x01\\x02\", \"\\x02\\x03\", \"\\x03\\x04\"}];\n   * }\n   * ```\n   *\n   * @generated from field: repeated bytes not_in = 9;\n   */\n  notIn: Uint8Array[];\n\n  /**\n   * WellKnown rules provide advanced rules against common byte\n   * patterns\n   *\n   * @generated from oneof buf.validate.BytesRules.well_known\n   */\n  wellKnown: {\n    /**\n     * `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format.\n     * If the field value doesn't meet this rule, an error message is generated.\n     *\n     * ```proto\n     * message MyBytes {\n     *   // value must be a valid IP address\n     *   optional bytes value = 1 [(buf.validate.field).bytes.ip = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ip = 10;\n     */\n    value: boolean;\n    case: \"ip\";\n  } | {\n    /**\n     * `ipv4` ensures that the field `value` is a valid IPv4 address in byte format.\n     * If the field value doesn't meet this rule, an error message is generated.\n     *\n     * ```proto\n     * message MyBytes {\n     *   // value must be a valid IPv4 address\n     *   optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv4 = 11;\n     */\n    value: boolean;\n    case: \"ipv4\";\n  } | {\n    /**\n     * `ipv6` ensures that the field `value` is a valid IPv6 address in byte format.\n     * If the field value doesn't meet this rule, an error message is generated.\n     * ```proto\n     * message MyBytes {\n     *   // value must be a valid IPv6 address\n     *   optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool ipv6 = 12;\n     */\n    value: boolean;\n    case: \"ipv6\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyBytes {\n   *   bytes value = 1 [\n   *     (buf.validate.field).bytes.example = \"\\x01\\x02\",\n   *     (buf.validate.field).bytes.example = \"\\x02\\x03\"\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated bytes example = 14;\n   */\n  example: Uint8Array[];\n};\n\n/**\n * Describes the message buf.validate.BytesRules.\n * Use `create(BytesRulesSchema)` to create a new message.\n */\nexport const BytesRulesSchema: GenMessage<BytesRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 20);\n\n/**\n * EnumRules describe the rules applied to `enum` values.\n *\n * @generated from message buf.validate.EnumRules\n */\nexport type EnumRules = Message<\"buf.validate.EnumRules\"> & {\n  /**\n   * `const` requires the field value to exactly match the specified enum value.\n   * If the field value doesn't match, an error message is generated.\n   *\n   * ```proto\n   * enum MyEnum {\n   *   MY_ENUM_UNSPECIFIED = 0;\n   *   MY_ENUM_VALUE1 = 1;\n   *   MY_ENUM_VALUE2 = 2;\n   * }\n   *\n   * message MyMessage {\n   *   // The field `value` must be exactly MY_ENUM_VALUE1.\n   *   MyEnum value = 1 [(buf.validate.field).enum.const = 1];\n   * }\n   * ```\n   *\n   * @generated from field: optional int32 const = 1;\n   */\n  const: number;\n\n  /**\n   * `defined_only` requires the field value to be one of the defined values for\n   * this enum, failing on any undefined value.\n   *\n   * ```proto\n   * enum MyEnum {\n   *   MY_ENUM_UNSPECIFIED = 0;\n   *   MY_ENUM_VALUE1 = 1;\n   *   MY_ENUM_VALUE2 = 2;\n   * }\n   *\n   * message MyMessage {\n   *   // The field `value` must be a defined value of MyEnum.\n   *   MyEnum value = 1 [(buf.validate.field).enum.defined_only = true];\n   * }\n   * ```\n   *\n   * @generated from field: optional bool defined_only = 2;\n   */\n  definedOnly: boolean;\n\n  /**\n   * `in` requires the field value to be equal to one of the\n   * specified enum values. If the field value doesn't match any of the\n   * specified values, an error message is generated.\n   *\n   * ```proto\n   * enum MyEnum {\n   *   MY_ENUM_UNSPECIFIED = 0;\n   *   MY_ENUM_VALUE1 = 1;\n   *   MY_ENUM_VALUE2 = 2;\n   * }\n   *\n   * message MyMessage {\n   *   // The field `value` must be equal to one of the specified values.\n   *   MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int32 in = 3;\n   */\n  in: number[];\n\n  /**\n   * `not_in` requires the field value to be not equal to any of the\n   * specified enum values. If the field value matches one of the specified\n   * values, an error message is generated.\n   *\n   * ```proto\n   * enum MyEnum {\n   *   MY_ENUM_UNSPECIFIED = 0;\n   *   MY_ENUM_VALUE1 = 1;\n   *   MY_ENUM_VALUE2 = 2;\n   * }\n   *\n   * message MyMessage {\n   *   // The field `value` must not be equal to any of the specified values.\n   *   MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}];\n   * }\n   * ```\n   *\n   * @generated from field: repeated int32 not_in = 4;\n   */\n  notIn: number[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * enum MyEnum {\n   *   MY_ENUM_UNSPECIFIED = 0;\n   *   MY_ENUM_VALUE1 = 1;\n   *   MY_ENUM_VALUE2 = 2;\n   * }\n   *\n   * message MyMessage {\n   *     (buf.validate.field).enum.example = 1,\n   *     (buf.validate.field).enum.example = 2\n   * }\n   * ```\n   *\n   * @generated from field: repeated int32 example = 5;\n   */\n  example: number[];\n};\n\n/**\n * Describes the message buf.validate.EnumRules.\n * Use `create(EnumRulesSchema)` to create a new message.\n */\nexport const EnumRulesSchema: GenMessage<EnumRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 21);\n\n/**\n * RepeatedRules describe the rules applied to `repeated` values.\n *\n * @generated from message buf.validate.RepeatedRules\n */\nexport type RepeatedRules = Message<\"buf.validate.RepeatedRules\"> & {\n  /**\n   * `min_items` requires that this field must contain at least the specified\n   * minimum number of items.\n   *\n   * Note that `min_items = 1` is equivalent to setting a field as `required`.\n   *\n   * ```proto\n   * message MyRepeated {\n   *   // value must contain at least  2 items\n   *   repeated string value = 1 [(buf.validate.field).repeated.min_items = 2];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 min_items = 1;\n   */\n  minItems: bigint;\n\n  /**\n   * `max_items` denotes that this field must not exceed a\n   * certain number of items as the upper limit. If the field contains more\n   * items than specified, an error message will be generated, requiring the\n   * field to maintain no more than the specified number of items.\n   *\n   * ```proto\n   * message MyRepeated {\n   *   // value must contain no more than 3 item(s)\n   *   repeated string value = 1 [(buf.validate.field).repeated.max_items = 3];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 max_items = 2;\n   */\n  maxItems: bigint;\n\n  /**\n   * `unique` indicates that all elements in this field must\n   * be unique. This rule is strictly applicable to scalar and enum\n   * types, with message types not being supported.\n   *\n   * ```proto\n   * message MyRepeated {\n   *   // repeated value must contain unique items\n   *   repeated string value = 1 [(buf.validate.field).repeated.unique = true];\n   * }\n   * ```\n   *\n   * @generated from field: optional bool unique = 3;\n   */\n  unique: boolean;\n\n  /**\n   * `items` details the rules to be applied to each item\n   * in the field. Even for repeated message fields, validation is executed\n   * against each item unless `ignore` is specified.\n   *\n   * ```proto\n   * message MyRepeated {\n   *   // The items in the field `value` must follow the specified rules.\n   *   repeated string value = 1 [(buf.validate.field).repeated.items = {\n   *     string: {\n   *       min_len: 3\n   *       max_len: 10\n   *     }\n   *   }];\n   * }\n   * ```\n   *\n   * Note that the `required` rule does not apply. Repeated items\n   * cannot be unset.\n   *\n   * @generated from field: optional buf.validate.FieldRules items = 4;\n   */\n  items?: FieldRules;\n};\n\n/**\n * Describes the message buf.validate.RepeatedRules.\n * Use `create(RepeatedRulesSchema)` to create a new message.\n */\nexport const RepeatedRulesSchema: GenMessage<RepeatedRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 22);\n\n/**\n * MapRules describe the rules applied to `map` values.\n *\n * @generated from message buf.validate.MapRules\n */\nexport type MapRules = Message<\"buf.validate.MapRules\"> & {\n  /**\n   * Specifies the minimum number of key-value pairs allowed. If the field has\n   * fewer key-value pairs than specified, an error message is generated.\n   *\n   * ```proto\n   * message MyMap {\n   *   // The field `value` must have at least 2 key-value pairs.\n   *   map<string, string> value = 1 [(buf.validate.field).map.min_pairs = 2];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 min_pairs = 1;\n   */\n  minPairs: bigint;\n\n  /**\n   * Specifies the maximum number of key-value pairs allowed. If the field has\n   * more key-value pairs than specified, an error message is generated.\n   *\n   * ```proto\n   * message MyMap {\n   *   // The field `value` must have at most 3 key-value pairs.\n   *   map<string, string> value = 1 [(buf.validate.field).map.max_pairs = 3];\n   * }\n   * ```\n   *\n   * @generated from field: optional uint64 max_pairs = 2;\n   */\n  maxPairs: bigint;\n\n  /**\n   * Specifies the rules to be applied to each key in the field.\n   *\n   * ```proto\n   * message MyMap {\n   *   // The keys in the field `value` must follow the specified rules.\n   *   map<string, string> value = 1 [(buf.validate.field).map.keys = {\n   *     string: {\n   *       min_len: 3\n   *       max_len: 10\n   *     }\n   *   }];\n   * }\n   * ```\n   *\n   * Note that the `required` rule does not apply. Map keys cannot be unset.\n   *\n   * @generated from field: optional buf.validate.FieldRules keys = 4;\n   */\n  keys?: FieldRules;\n\n  /**\n   * Specifies the rules to be applied to the value of each key in the\n   * field. Message values will still have their validations evaluated unless\n   * `ignore` is specified.\n   *\n   * ```proto\n   * message MyMap {\n   *   // The values in the field `value` must follow the specified rules.\n   *   map<string, string> value = 1 [(buf.validate.field).map.values = {\n   *     string: {\n   *       min_len: 5\n   *       max_len: 20\n   *     }\n   *   }];\n   * }\n   * ```\n   * Note that the `required` rule does not apply. Map values cannot be unset.\n   *\n   * @generated from field: optional buf.validate.FieldRules values = 5;\n   */\n  values?: FieldRules;\n};\n\n/**\n * Describes the message buf.validate.MapRules.\n * Use `create(MapRulesSchema)` to create a new message.\n */\nexport const MapRulesSchema: GenMessage<MapRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 23);\n\n/**\n * AnyRules describe rules applied exclusively to the `google.protobuf.Any` well-known type.\n *\n * @generated from message buf.validate.AnyRules\n */\nexport type AnyRules = Message<\"buf.validate.AnyRules\"> & {\n  /**\n   * `in` requires the field's `type_url` to be equal to one of the\n   * specified values. If it doesn't match any of the specified values, an error\n   * message is generated.\n   *\n   * ```proto\n   * message MyAny {\n   *   //  The `value` field must have a `type_url` equal to one of the specified values.\n   *   google.protobuf.Any value = 1 [(buf.validate.field).any = {\n   *       in: [\"type.googleapis.com/MyType1\", \"type.googleapis.com/MyType2\"]\n   *   }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated string in = 2;\n   */\n  in: string[];\n\n  /**\n   * requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated.\n   *\n   * ```proto\n   * message MyAny {\n   *   //  The `value` field must not have a `type_url` equal to any of the specified values.\n   *   google.protobuf.Any value = 1 [(buf.validate.field).any = {\n   *       not_in: [\"type.googleapis.com/ForbiddenType1\", \"type.googleapis.com/ForbiddenType2\"]\n   *   }];\n   * }\n   * ```\n   *\n   * @generated from field: repeated string not_in = 3;\n   */\n  notIn: string[];\n};\n\n/**\n * Describes the message buf.validate.AnyRules.\n * Use `create(AnyRulesSchema)` to create a new message.\n */\nexport const AnyRulesSchema: GenMessage<AnyRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 24);\n\n/**\n * DurationRules describe the rules applied exclusively to the `google.protobuf.Duration` well-known type.\n *\n * @generated from message buf.validate.DurationRules\n */\nexport type DurationRules = Message<\"buf.validate.DurationRules\"> & {\n  /**\n   * `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly.\n   * If the field's value deviates from the specified value, an error message\n   * will be generated.\n   *\n   * ```proto\n   * message MyDuration {\n   *   // value must equal 5s\n   *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = \"5s\"];\n   * }\n   * ```\n   *\n   * @generated from field: optional google.protobuf.Duration const = 2;\n   */\n  const?: Duration;\n\n  /**\n   * @generated from oneof buf.validate.DurationRules.less_than\n   */\n  lessThan: {\n    /**\n     * `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,\n     * exclusive. If the field's value is greater than or equal to the specified\n     * value, an error message will be generated.\n     *\n     * ```proto\n     * message MyDuration {\n     *   // value must be less than 5s\n     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = \"5s\"];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Duration lt = 3;\n     */\n    value: Duration;\n    case: \"lt\";\n  } | {\n    /**\n     * `lte` indicates that the field must be less than or equal to the specified\n     * value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value,\n     * an error message will be generated.\n     *\n     * ```proto\n     * message MyDuration {\n     *   // value must be less than or equal to 10s\n     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = \"10s\"];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Duration lte = 4;\n     */\n    value: Duration;\n    case: \"lte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.DurationRules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the duration field value to be greater than the specified\n     * value (exclusive). If the value of `gt` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyDuration {\n     *   // duration must be greater than 5s [duration.gt]\n     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }];\n     *\n     *   // duration must be greater than 5s and less than 10s [duration.gt_lt]\n     *   google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }];\n     *\n     *   // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive]\n     *   google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Duration gt = 5;\n     */\n    value: Duration;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the duration field value to be greater than or equal to the\n     * specified value (exclusive). If the value of `gte` is larger than a\n     * specified `lt` or `lte`, the range is reversed, and the field value must\n     * be outside the specified range. If the field value doesn't meet the\n     * required conditions, an error message is generated.\n     *\n     * ```proto\n     * message MyDuration {\n     *  // duration must be greater than or equal to 5s [duration.gte]\n     *  google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }];\n     *\n     *  // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt]\n     *  google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }];\n     *\n     *  // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive]\n     *  google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Duration gte = 6;\n     */\n    value: Duration;\n    case: \"gte\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type.\n   * If the field's value doesn't correspond to any of the specified values,\n   * an error message will be generated.\n   *\n   * ```proto\n   * message MyDuration {\n   *   // value must be in list [1s, 2s, 3s]\n   *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = [\"1s\", \"2s\", \"3s\"]];\n   * }\n   * ```\n   *\n   * @generated from field: repeated google.protobuf.Duration in = 7;\n   */\n  in: Duration[];\n\n  /**\n   * `not_in` denotes that the field must not be equal to\n   * any of the specified values of the `google.protobuf.Duration` type.\n   * If the field's value matches any of these values, an error message will be\n   * generated.\n   *\n   * ```proto\n   * message MyDuration {\n   *   // value must not be in list [1s, 2s, 3s]\n   *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = [\"1s\", \"2s\", \"3s\"]];\n   * }\n   * ```\n   *\n   * @generated from field: repeated google.protobuf.Duration not_in = 8;\n   */\n  notIn: Duration[];\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyDuration {\n   *   google.protobuf.Duration value = 1 [\n   *     (buf.validate.field).duration.example = { seconds: 1 },\n   *     (buf.validate.field).duration.example = { seconds: 2 },\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated google.protobuf.Duration example = 9;\n   */\n  example: Duration[];\n};\n\n/**\n * Describes the message buf.validate.DurationRules.\n * Use `create(DurationRulesSchema)` to create a new message.\n */\nexport const DurationRulesSchema: GenMessage<DurationRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 25);\n\n/**\n * TimestampRules describe the rules applied exclusively to the `google.protobuf.Timestamp` well-known type.\n *\n * @generated from message buf.validate.TimestampRules\n */\nexport type TimestampRules = Message<\"buf.validate.TimestampRules\"> & {\n  /**\n   * `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated.\n   *\n   * ```proto\n   * message MyTimestamp {\n   *   // value must equal 2023-05-03T10:00:00Z\n   *   google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}];\n   * }\n   * ```\n   *\n   * @generated from field: optional google.protobuf.Timestamp const = 2;\n   */\n  const?: Timestamp;\n\n  /**\n   * @generated from oneof buf.validate.TimestampRules.less_than\n   */\n  lessThan: {\n    /**\n     * requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.\n     *\n     * ```proto\n     * message MyDuration {\n     *   // duration must be less than 'P3D' [duration.lt]\n     *   google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Timestamp lt = 3;\n     */\n    value: Timestamp;\n    case: \"lt\";\n  } | {\n    /**\n     * requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated.\n     *\n     * ```proto\n     * message MyTimestamp {\n     *   // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte]\n     *   google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Timestamp lte = 4;\n     */\n    value: Timestamp;\n    case: \"lte\";\n  } | {\n    /**\n     * `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule.\n     *\n     * ```proto\n     * message MyTimestamp {\n     *  // value must be less than now\n     *   google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool lt_now = 7;\n     */\n    value: boolean;\n    case: \"ltNow\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from oneof buf.validate.TimestampRules.greater_than\n   */\n  greaterThan: {\n    /**\n     * `gt` requires the timestamp field value to be greater than the specified\n     * value (exclusive). If the value of `gt` is larger than a specified `lt`\n     * or `lte`, the range is reversed, and the field value must be outside the\n     * specified range. If the field value doesn't meet the required conditions,\n     * an error message is generated.\n     *\n     * ```proto\n     * message MyTimestamp {\n     *   // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt]\n     *   google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }];\n     *\n     *   // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt]\n     *   google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];\n     *\n     *   // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive]\n     *   google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Timestamp gt = 5;\n     */\n    value: Timestamp;\n    case: \"gt\";\n  } | {\n    /**\n     * `gte` requires the timestamp field value to be greater than or equal to the\n     * specified value (exclusive). If the value of `gte` is larger than a\n     * specified `lt` or `lte`, the range is reversed, and the field value\n     * must be outside the specified range. If the field value doesn't meet\n     * the required conditions, an error message is generated.\n     *\n     * ```proto\n     * message MyTimestamp {\n     *   // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte]\n     *   google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }];\n     *\n     *   // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt]\n     *   google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }];\n     *\n     *   // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive]\n     *   google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }];\n     * }\n     * ```\n     *\n     * @generated from field: google.protobuf.Timestamp gte = 6;\n     */\n    value: Timestamp;\n    case: \"gte\";\n  } | {\n    /**\n     * `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule.\n     *\n     * ```proto\n     * message MyTimestamp {\n     *   // value must be greater than now\n     *   google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true];\n     * }\n     * ```\n     *\n     * @generated from field: bool gt_now = 8;\n     */\n    value: boolean;\n    case: \"gtNow\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated.\n   *\n   * ```proto\n   * message MyTimestamp {\n   *   // value must be within 1 hour of now\n   *   google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}];\n   * }\n   * ```\n   *\n   * @generated from field: optional google.protobuf.Duration within = 9;\n   */\n  within?: Duration;\n\n  /**\n   * `example` specifies values that the field may have. These values SHOULD\n   * conform to other rules. `example` values will not impact validation\n   * but may be used as helpful guidance on how to populate the given field.\n   *\n   * ```proto\n   * message MyTimestamp {\n   *   google.protobuf.Timestamp value = 1 [\n   *     (buf.validate.field).timestamp.example = { seconds: 1672444800 },\n   *     (buf.validate.field).timestamp.example = { seconds: 1672531200 },\n   *   ];\n   * }\n   * ```\n   *\n   * @generated from field: repeated google.protobuf.Timestamp example = 10;\n   */\n  example: Timestamp[];\n};\n\n/**\n * Describes the message buf.validate.TimestampRules.\n * Use `create(TimestampRulesSchema)` to create a new message.\n */\nexport const TimestampRulesSchema: GenMessage<TimestampRules> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 26);\n\n/**\n * `Violations` is a collection of `Violation` messages. This message type is returned by\n * Protovalidate when a proto message fails to meet the requirements set by the `Rule` validation rules.\n * Each individual violation is represented by a `Violation` message.\n *\n * @generated from message buf.validate.Violations\n */\nexport type Violations = Message<\"buf.validate.Violations\"> & {\n  /**\n   * `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected.\n   *\n   * @generated from field: repeated buf.validate.Violation violations = 1;\n   */\n  violations: Violation[];\n};\n\n/**\n * Describes the message buf.validate.Violations.\n * Use `create(ViolationsSchema)` to create a new message.\n */\nexport const ViolationsSchema: GenMessage<Violations> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 27);\n\n/**\n * `Violation` represents a single instance where a validation rule, expressed\n * as a `Rule`, was not met. It provides information about the field that\n * caused the violation, the specific rule that wasn't fulfilled, and a\n * human-readable error message.\n *\n * For example, consider the following message:\n *\n * ```proto\n * message User {\n *     int32 age = 1 [(buf.validate.field).cel = {\n *         id: \"user.age\",\n *         expression: \"this < 18 ? 'User must be at least 18 years old' : ''\",\n *     }];\n * }\n * ```\n *\n * It could produce the following violation:\n *\n * ```json\n * {\n *   \"ruleId\": \"user.age\",\n *   \"message\": \"User must be at least 18 years old\",\n *   \"field\": {\n *     \"elements\": [\n *       {\n *         \"fieldNumber\": 1,\n *         \"fieldName\": \"age\",\n *         \"fieldType\": \"TYPE_INT32\"\n *       }\n *     ]\n *   },\n *   \"rule\": {\n *     \"elements\": [\n *       {\n *         \"fieldNumber\": 23,\n *         \"fieldName\": \"cel\",\n *         \"fieldType\": \"TYPE_MESSAGE\",\n *         \"index\": \"0\"\n *       }\n *     ]\n *   }\n * }\n * ```\n *\n * @generated from message buf.validate.Violation\n */\nexport type Violation = Message<\"buf.validate.Violation\"> & {\n  /**\n   * `field` is a machine-readable path to the field that failed validation.\n   * This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.\n   *\n   * For example, consider the following message:\n   *\n   * ```proto\n   * message Message {\n   *   bool a = 1 [(buf.validate.field).required = true];\n   * }\n   * ```\n   *\n   * It could produce the following violation:\n   *\n   * ```textproto\n   * violation {\n   *   field { element { field_number: 1, field_name: \"a\", field_type: 8 } }\n   *   ...\n   * }\n   * ```\n   *\n   * @generated from field: optional buf.validate.FieldPath field = 5;\n   */\n  field?: FieldPath;\n\n  /**\n   * `rule` is a machine-readable path that points to the specific rule that failed validation.\n   * This will be a nested field starting from the FieldRules of the field that failed validation.\n   * For custom rules, this will provide the path of the rule, e.g. `cel[0]`.\n   *\n   * For example, consider the following message:\n   *\n   * ```proto\n   * message Message {\n   *   bool a = 1 [(buf.validate.field).required = true];\n   *   bool b = 2 [(buf.validate.field).cel = {\n   *     id: \"custom_rule\",\n   *     expression: \"!this ? 'b must be true': ''\"\n   *   }]\n   * }\n   * ```\n   *\n   * It could produce the following violations:\n   *\n   * ```textproto\n   * violation {\n   *   rule { element { field_number: 25, field_name: \"required\", field_type: 8 } }\n   *   ...\n   * }\n   * violation {\n   *   rule { element { field_number: 23, field_name: \"cel\", field_type: 11, index: 0 } }\n   *   ...\n   * }\n   * ```\n   *\n   * @generated from field: optional buf.validate.FieldPath rule = 6;\n   */\n  rule?: FieldPath;\n\n  /**\n   * `rule_id` is the unique identifier of the `Rule` that was not fulfilled.\n   * This is the same `id` that was specified in the `Rule` message, allowing easy tracing of which rule was violated.\n   *\n   * @generated from field: optional string rule_id = 2;\n   */\n  ruleId: string;\n\n  /**\n   * `message` is a human-readable error message that describes the nature of the violation.\n   * This can be the default error message from the violated `Rule`, or it can be a custom message that gives more context about the violation.\n   *\n   * @generated from field: optional string message = 3;\n   */\n  message: string;\n\n  /**\n   * `for_key` indicates whether the violation was caused by a map key, rather than a value.\n   *\n   * @generated from field: optional bool for_key = 4;\n   */\n  forKey: boolean;\n};\n\n/**\n * Describes the message buf.validate.Violation.\n * Use `create(ViolationSchema)` to create a new message.\n */\nexport const ViolationSchema: GenMessage<Violation> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 28);\n\n/**\n * `FieldPath` provides a path to a nested protobuf field.\n *\n * This message provides enough information to render a dotted field path even without protobuf descriptors.\n * It also provides enough information to resolve a nested field through unknown wire data.\n *\n * @generated from message buf.validate.FieldPath\n */\nexport type FieldPath = Message<\"buf.validate.FieldPath\"> & {\n  /**\n   * `elements` contains each element of the path, starting from the root and recursing downward.\n   *\n   * @generated from field: repeated buf.validate.FieldPathElement elements = 1;\n   */\n  elements: FieldPathElement[];\n};\n\n/**\n * Describes the message buf.validate.FieldPath.\n * Use `create(FieldPathSchema)` to create a new message.\n */\nexport const FieldPathSchema: GenMessage<FieldPath> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 29);\n\n/**\n * `FieldPathElement` provides enough information to nest through a single protobuf field.\n *\n * If the selected field is a map or repeated field, the `subscript` value selects a specific element from it.\n * A path that refers to a value nested under a map key or repeated field index will have a `subscript` value.\n * The `field_type` field allows unambiguous resolution of a field even if descriptors are not available.\n *\n * @generated from message buf.validate.FieldPathElement\n */\nexport type FieldPathElement = Message<\"buf.validate.FieldPathElement\"> & {\n  /**\n   * `field_number` is the field number this path element refers to.\n   *\n   * @generated from field: optional int32 field_number = 1;\n   */\n  fieldNumber: number;\n\n  /**\n   * `field_name` contains the field name this path element refers to.\n   * This can be used to display a human-readable path even if the field number is unknown.\n   *\n   * @generated from field: optional string field_name = 2;\n   */\n  fieldName: string;\n\n  /**\n   * `field_type` specifies the type of this field. When using reflection, this value is not needed.\n   *\n   * This value is provided to make it possible to traverse unknown fields through wire data.\n   * When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes.\n   *\n   * [1]: https://protobuf.dev/programming-guides/encoding/#packed\n   * [2]: https://protobuf.dev/programming-guides/encoding/#groups\n   *\n   * N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and\n   * can be explicitly used in Protocol Buffers 2023 Edition.\n   *\n   * @generated from field: optional google.protobuf.FieldDescriptorProto.Type field_type = 3;\n   */\n  fieldType: FieldDescriptorProto_Type;\n\n  /**\n   * `key_type` specifies the map key type of this field. This value is useful when traversing\n   * unknown fields through wire data: specifically, it allows handling the differences between\n   * different integer encodings.\n   *\n   * @generated from field: optional google.protobuf.FieldDescriptorProto.Type key_type = 4;\n   */\n  keyType: FieldDescriptorProto_Type;\n\n  /**\n   * `value_type` specifies map value type of this field. This is useful if you want to display a\n   * value inside unknown fields through wire data.\n   *\n   * @generated from field: optional google.protobuf.FieldDescriptorProto.Type value_type = 5;\n   */\n  valueType: FieldDescriptorProto_Type;\n\n  /**\n   * `subscript` contains a repeated index or map key, if this path element nests into a repeated or map field.\n   *\n   * @generated from oneof buf.validate.FieldPathElement.subscript\n   */\n  subscript: {\n    /**\n     * `index` specifies a 0-based index into a repeated field.\n     *\n     * @generated from field: uint64 index = 6;\n     */\n    value: bigint;\n    case: \"index\";\n  } | {\n    /**\n     * `bool_key` specifies a map key of type bool.\n     *\n     * @generated from field: bool bool_key = 7;\n     */\n    value: boolean;\n    case: \"boolKey\";\n  } | {\n    /**\n     * `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64.\n     *\n     * @generated from field: int64 int_key = 8;\n     */\n    value: bigint;\n    case: \"intKey\";\n  } | {\n    /**\n     * `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64.\n     *\n     * @generated from field: uint64 uint_key = 9;\n     */\n    value: bigint;\n    case: \"uintKey\";\n  } | {\n    /**\n     * `string_key` specifies a map key of type string.\n     *\n     * @generated from field: string string_key = 10;\n     */\n    value: string;\n    case: \"stringKey\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message buf.validate.FieldPathElement.\n * Use `create(FieldPathElementSchema)` to create a new message.\n */\nexport const FieldPathElementSchema: GenMessage<FieldPathElement> = /*@__PURE__*/\n  messageDesc(file_buf_validate_validate, 30);\n\n/**\n * Specifies how `FieldRules.ignore` behaves, depending on the field's value, and\n * whether the field tracks presence.\n *\n * @generated from enum buf.validate.Ignore\n */\nexport enum Ignore {\n  /**\n   * Ignore rules if the field tracks presence and is unset. This is the default\n   * behavior.\n   *\n   * In proto3, only message fields, members of a Protobuf `oneof`, and fields\n   * with the `optional` label track presence. Consequently, the following fields\n   * are always validated, whether a value is set or not:\n   *\n   * ```proto\n   * syntax=\"proto3\";\n   *\n   * message RulesApply {\n   *   string email = 1 [\n   *     (buf.validate.field).string.email = true\n   *   ];\n   *   int32 age = 2 [\n   *     (buf.validate.field).int32.gt = 0\n   *   ];\n   *   repeated string labels = 3 [\n   *     (buf.validate.field).repeated.min_items = 1\n   *   ];\n   * }\n   * ```\n   *\n   * In contrast, the following fields track presence, and are only validated if\n   * a value is set:\n   *\n   * ```proto\n   * syntax=\"proto3\";\n   *\n   * message RulesApplyIfSet {\n   *   optional string email = 1 [\n   *     (buf.validate.field).string.email = true\n   *   ];\n   *   oneof ref {\n   *     string reference = 2 [\n   *       (buf.validate.field).string.uuid = true\n   *     ];\n   *     string name = 3 [\n   *       (buf.validate.field).string.min_len = 4\n   *     ];\n   *   }\n   *   SomeMessage msg = 4 [\n   *     (buf.validate.field).cel = {/* ... *\\/}\n   *   ];\n   * }\n   * ```\n   *\n   * To ensure that such a field is set, add the `required` rule.\n   *\n   * To learn which fields track presence, see the\n   * [Field Presence cheat sheet](https://protobuf.dev/programming-guides/field_presence/#cheat).\n   *\n   * @generated from enum value: IGNORE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * Ignore rules if the field is unset, or set to the zero value.\n   *\n   * The zero value depends on the field type:\n   * - For strings, the zero value is the empty string.\n   * - For bytes, the zero value is empty bytes.\n   * - For bool, the zero value is false.\n   * - For numeric types, the zero value is zero.\n   * - For enums, the zero value is the first defined enum value.\n   * - For repeated fields, the zero is an empty list.\n   * - For map fields, the zero is an empty map.\n   * - For message fields, absence of the message (typically a null-value) is considered zero value.\n   *\n   * For fields that track presence (e.g. adding the `optional` label in proto3),\n   * this a no-op and behavior is the same as the default `IGNORE_UNSPECIFIED`.\n   *\n   * @generated from enum value: IGNORE_IF_ZERO_VALUE = 1;\n   */\n  IF_ZERO_VALUE = 1,\n\n  /**\n   * Always ignore rules, including the `required` rule.\n   *\n   * This is useful for ignoring the rules of a referenced message, or to\n   * temporarily ignore rules during development.\n   *\n   * ```proto\n   * message MyMessage {\n   *   // The field's rules will always be ignored, including any validations\n   *   // on value's fields.\n   *   MyOtherMessage value = 1 [\n   *     (buf.validate.field).ignore = IGNORE_ALWAYS];\n   * }\n   * ```\n   *\n   * @generated from enum value: IGNORE_ALWAYS = 3;\n   */\n  ALWAYS = 3,\n}\n\n/**\n * Describes the enum buf.validate.Ignore.\n */\nexport const IgnoreSchema: GenEnum<Ignore> = /*@__PURE__*/\n  enumDesc(file_buf_validate_validate, 0);\n\n/**\n * KnownRegex contains some well-known patterns.\n *\n * @generated from enum buf.validate.KnownRegex\n */\nexport enum KnownRegex {\n  /**\n   * @generated from enum value: KNOWN_REGEX_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2).\n   *\n   * @generated from enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1;\n   */\n  HTTP_HEADER_NAME = 1,\n\n  /**\n   * HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4).\n   *\n   * @generated from enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2;\n   */\n  HTTP_HEADER_VALUE = 2,\n}\n\n/**\n * Describes the enum buf.validate.KnownRegex.\n */\nexport const KnownRegexSchema: GenEnum<KnownRegex> = /*@__PURE__*/\n  enumDesc(file_buf_validate_validate, 1);\n\n/**\n * Rules specify the validations to be performed on this message. By default,\n * no validation is performed against a message.\n *\n * @generated from extension: optional buf.validate.MessageRules message = 1159;\n */\nexport const message: GenExtension<MessageOptions, MessageRules> = /*@__PURE__*/\n  extDesc(file_buf_validate_validate, 0);\n\n/**\n * Rules specify the validations to be performed on this oneof. By default,\n * no validation is performed against a oneof.\n *\n * @generated from extension: optional buf.validate.OneofRules oneof = 1159;\n */\nexport const oneof: GenExtension<OneofOptions, OneofRules> = /*@__PURE__*/\n  extDesc(file_buf_validate_validate, 1);\n\n/**\n * Rules specify the validations to be performed on this field. By default,\n * no validation is performed against a field.\n *\n * @generated from extension: optional buf.validate.FieldRules field = 1159;\n */\nexport const field: GenExtension<FieldOptions, FieldRules> = /*@__PURE__*/\n  extDesc(file_buf_validate_validate, 2);\n\n/**\n * Specifies predefined rules. When extending a standard rule message,\n * this adds additional CEL expressions that apply when the extension is used.\n *\n * ```proto\n * extend buf.validate.Int32Rules {\n *   bool is_zero [(buf.validate.predefined).cel = {\n *     id: \"int32.is_zero\",\n *     message: \"value must be zero\",\n *     expression: \"!rule || this == 0\",\n *   }];\n * }\n *\n * message Foo {\n *   int32 reserved = 1 [(buf.validate.field).int32.(is_zero) = true];\n * }\n * ```\n *\n * @generated from extension: optional buf.validate.PredefinedRules predefined = 1160;\n */\nexport const predefined: GenExtension<FieldOptions, PredefinedRules> = /*@__PURE__*/\n  extDesc(file_buf_validate_validate, 3);\n\n","// Sandbox registry public API.\n\n// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file tenki/sandbox/v1/registry.proto (package tenki.sandbox.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_buf_validate_validate } from \"../../../buf/validate/validate_pb\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { RuntimeSecretFile } from \"./secret_file_pb\";\nimport { file_tenki_sandbox_v1_secret_file } from \"./secret_file_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tenki/sandbox/v1/registry.proto.\n */\nexport const file_tenki_sandbox_v1_registry: GenFile = /*@__PURE__*/\n  fileDesc(\"Ch90ZW5raS9zYW5kYm94L3YxL3JlZ2lzdHJ5LnByb3RvEhB0ZW5raS5zYW5kYm94LnYxIowGCg1SZWdpc3RyeUltYWdlEhQKAmlkGAEgASgJQgi6SAVyA7ABARIjCgx3b3Jrc3BhY2VfaWQYAiABKAlCCLpIBXIDsAEBSACIAQESFgoOd29ya3NwYWNlX3NsdWcYAyABKAkSDAoEbmFtZRgEIAEoCRIxCgRraW5kGAUgASgOMiMudGVua2kuc2FuZGJveC52MS5SZWdpc3RyeUltYWdlS2luZBI4Cgp2aXNpYmlsaXR5GAYgASgOMiQudGVua2kuc2FuZGJveC52MS5SZWdpc3RyeVZpc2liaWxpdHkSEgoFdGl0bGUYByABKAlIAYgBARIYCgtkZXNjcmlwdGlvbhgIIAEoCUgCiAEBEg4KBmxhYmVscxgJIAMoCRIpChJzb3VyY2VfdGVtcGxhdGVfaWQYCiABKAlCCLpIBXIDsAEBSAOIAQESKQoSc291cmNlX3NuYXBzaG90X2lkGAsgASgJQgi6SAVyA7ABAUgEiAEBEisKBHRhZ3MYDCADKAsyHS50ZW5raS5zYW5kYm94LnYxLlJlZ2lzdHJ5VGFnEi4KCmNyZWF0ZWRfYXQ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UlRfQllfTkFNRRABEh8KG1JFR0lTVFJZX1NPUlRfQllfVVBEQVRFRF9BVBACQsYBChRjb20udGVua2kuc2FuZGJveC52MUINUmVnaXN0cnlQcm90b1ABWj1nby5sdXhvci5haS9zYW5kYm94L2ludGVybmFsL3Byb3RvL3RlbmtpL3NhbmRib3gvdjE7c2FuZGJveHYxogIDVFNYqgIQVGVua2kuU2FuZGJveC5WMcoCEFRlbmtpXFNhbmRib3hcVjHiAhxUZW5raVxTYW5kYm94XFYxXEdQQk1ldGFkYXRh6gISVGVua2k6OlNhbmRib3g6OlYxYgZwcm90bzM\", [file_buf_validate_validate, file_google_protobuf_timestamp, file_tenki_sandbox_v1_secret_file]);\n\n/**\n * @generated from message tenki.sandbox.v1.RegistryImage\n */\nexport type RegistryImage = Message<\"tenki.sandbox.v1.RegistryImage\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 2;\n   */\n  workspaceId?: string;\n\n  /**\n   * @generated from field: string workspace_slug = 3;\n   */\n  workspaceSlug: string;\n\n  /**\n   * @generated from field: string name = 4;\n   */\n  name: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImageKind kind = 5;\n   */\n  kind: RegistryImageKind;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryVisibility visibility = 6;\n   */\n  visibility: RegistryVisibility;\n\n  /**\n   * @generated from field: optional string title = 7;\n   */\n  title?: string;\n\n  /**\n   * @generated from field: optional string description = 8;\n   */\n  description?: string;\n\n  /**\n   * @generated from field: repeated string labels = 9;\n   */\n  labels: string[];\n\n  /**\n   * @generated from field: optional string source_template_id = 10;\n   */\n  sourceTemplateId?: string;\n\n  /**\n   * @generated from field: optional string source_snapshot_id = 11;\n   */\n  sourceSnapshotId?: string;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RegistryTag tags = 12;\n   */\n  tags: RegistryTag[];\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 13;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 14;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: bool changes_not_yet_published = 15;\n   */\n  changesNotYetPublished: boolean;\n\n  /**\n   * @generated from field: optional string digest = 16;\n   */\n  digest?: string;\n\n  /**\n   * @generated from field: optional string digest_ref = 17;\n   */\n  digestRef?: string;\n\n  /**\n   * @generated from field: optional string legacy_ref = 18 [deprecated = true];\n   * @deprecated\n   */\n  legacyRef?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RegistryImage.\n * Use `create(RegistryImageSchema)` to create a new message.\n */\nexport const RegistryImageSchema: GenMessage<RegistryImage> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.RegistryTag\n */\nexport type RegistryTag = Message<\"tenki.sandbox.v1.RegistryTag\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string image_id = 2;\n   */\n  imageId: string;\n\n  /**\n   * @generated from field: string tag = 3;\n   */\n  tag: string;\n\n  /**\n   * @generated from field: string snapshot_id = 4;\n   */\n  snapshotId: string;\n\n  /**\n   * @generated from field: string ref = 5;\n   */\n  ref: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 6;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string digest_ref = 7;\n   */\n  digestRef?: string;\n\n  /**\n   * @generated from field: optional string legacy_ref = 8 [deprecated = true];\n   * @deprecated\n   */\n  legacyRef?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RegistryTag.\n * Use `create(RegistryTagSchema)` to create a new message.\n */\nexport const RegistryTagSchema: GenMessage<RegistryTag> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 1);\n\n/**\n * @generated from message tenki.sandbox.v1.RegistryImageSummary\n */\nexport type RegistryImageSummary = Message<\"tenki.sandbox.v1.RegistryImageSummary\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 2;\n   */\n  workspaceId?: string;\n\n  /**\n   * @generated from field: string workspace_slug = 3;\n   */\n  workspaceSlug: string;\n\n  /**\n   * @generated from field: string name = 4;\n   */\n  name: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImageKind kind = 5;\n   */\n  kind: RegistryImageKind;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryVisibility visibility = 6;\n   */\n  visibility: RegistryVisibility;\n\n  /**\n   * @generated from field: repeated string labels = 7;\n   */\n  labels: string[];\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RegistryTag tags = 8;\n   */\n  tags: RegistryTag[];\n\n  /**\n   * @generated from field: optional string latest_snapshot_id = 9;\n   */\n  latestSnapshotId?: string;\n\n  /**\n   * @generated from field: string latest_ref = 10;\n   */\n  latestRef: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 11;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: bool changes_not_yet_published = 12;\n   */\n  changesNotYetPublished: boolean;\n\n  /**\n   * @generated from field: optional string source_template_id = 13;\n   */\n  sourceTemplateId?: string;\n\n  /**\n   * @generated from field: optional string source_snapshot_id = 14;\n   */\n  sourceSnapshotId?: string;\n\n  /**\n   * @generated from field: optional string latest_digest = 15;\n   */\n  latestDigest?: string;\n\n  /**\n   * @generated from field: optional string latest_digest_ref = 16;\n   */\n  latestDigestRef?: string;\n\n  /**\n   * @generated from field: optional string latest_legacy_ref = 17 [deprecated = true];\n   * @deprecated\n   */\n  latestLegacyRef?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RegistryImageSummary.\n * Use `create(RegistryImageSummarySchema)` to create a new message.\n */\nexport const RegistryImageSummarySchema: GenMessage<RegistryImageSummary> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 2);\n\n/**\n * @generated from message tenki.sandbox.v1.RegistryImageDetail\n */\nexport type RegistryImageDetail = Message<\"tenki.sandbox.v1.RegistryImageDetail\"> & {\n  /**\n   * @generated from field: repeated string runtime_secret_policies = 15;\n   */\n  runtimeSecretPolicies: string[];\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImage image = 1;\n   */\n  image?: RegistryImage;\n\n  /**\n   * @generated from field: optional string resolved_snapshot_id = 2;\n   */\n  resolvedSnapshotId?: string;\n\n  /**\n   * @generated from field: optional string resolved_ref = 3;\n   */\n  resolvedRef?: string;\n\n  /**\n   * @generated from field: bool workspace_active = 4;\n   */\n  workspaceActive: boolean;\n\n  /**\n   * @generated from field: bool tombstoned = 5;\n   */\n  tombstoned: boolean;\n\n  /**\n   * @generated from field: repeated string masked_env_var_keys = 6;\n   */\n  maskedEnvVarKeys: string[];\n\n  /**\n   * @generated from field: map<string, string> metadata = 7;\n   */\n  metadata: { [key: string]: string };\n\n  /**\n   * @generated from field: map<string, string> env_vars = 8;\n   */\n  envVars: { [key: string]: string };\n\n  /**\n   * @generated from field: optional string resolved_digest = 9;\n   */\n  resolvedDigest?: string;\n\n  /**\n   * @generated from field: optional string digest_ref = 10;\n   */\n  digestRef?: string;\n\n  /**\n   * @generated from field: optional string legacy_ref = 11 [deprecated = true];\n   * @deprecated\n   */\n  legacyRef?: string;\n\n  /**\n   * Environment targets and secret names from the resolved published version; never values.\n   *\n   * @generated from field: map<string, string> runtime_secret_env = 12;\n   */\n  runtimeSecretEnv: { [key: string]: string };\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RuntimeSecretFile runtime_secret_files = 13;\n   */\n  runtimeSecretFiles: RuntimeSecretFile[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RegistryImageDetail.\n * Use `create(RegistryImageDetailSchema)` to create a new message.\n */\nexport const RegistryImageDetailSchema: GenMessage<RegistryImageDetail> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 3);\n\n/**\n * @generated from message tenki.sandbox.v1.ResolvedRegistryRef\n */\nexport type ResolvedRegistryRef = Message<\"tenki.sandbox.v1.ResolvedRegistryRef\"> & {\n  /**\n   * @generated from field: string image_id = 1;\n   */\n  imageId: string;\n\n  /**\n   * @generated from field: optional string owning_workspace_id = 2;\n   */\n  owningWorkspaceId?: string;\n\n  /**\n   * @generated from field: string owning_workspace_slug = 3;\n   */\n  owningWorkspaceSlug: string;\n\n  /**\n   * @generated from field: string image_name = 4;\n   */\n  imageName: string;\n\n  /**\n   * @generated from field: optional string tag = 5;\n   */\n  tag?: string;\n\n  /**\n   * @generated from field: optional string snapshot_id = 6;\n   */\n  snapshotId?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImageKind kind = 7;\n   */\n  kind: RegistryImageKind;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryVisibility visibility = 8;\n   */\n  visibility: RegistryVisibility;\n\n  /**\n   * @generated from field: optional string digest = 9;\n   */\n  digest?: string;\n\n  /**\n   * @generated from field: optional string digest_ref = 10;\n   */\n  digestRef?: string;\n\n  /**\n   * @generated from field: optional string legacy_ref = 11 [deprecated = true];\n   * @deprecated\n   */\n  legacyRef?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResolvedRegistryRef.\n * Use `create(ResolvedRegistryRefSchema)` to create a new message.\n */\nexport const ResolvedRegistryRefSchema: GenMessage<ResolvedRegistryRef> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 4);\n\n/**\n * @generated from message tenki.sandbox.v1.RegistryShareGrant\n */\nexport type RegistryShareGrant = Message<\"tenki.sandbox.v1.RegistryShareGrant\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string image_id = 2;\n   */\n  imageId: string;\n\n  /**\n   * @generated from field: string owner_workspace_id = 3;\n   */\n  ownerWorkspaceId: string;\n\n  /**\n   * @generated from field: string target_workspace_id = 4;\n   */\n  targetWorkspaceId: string;\n\n  /**\n   * @generated from field: string current_snapshot_id = 5;\n   */\n  currentSnapshotId: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp accepted_at = 6;\n   */\n  acceptedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional google.protobuf.Timestamp revoked_at = 7;\n   */\n  revokedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string granted_via_token_id = 8;\n   */\n  grantedViaTokenId?: string;\n\n  /**\n   * @generated from field: optional string accepted_by = 9;\n   */\n  acceptedBy?: string;\n\n  /**\n   * follow_mode: how the grant tracks the source (\"follow_tag\", \"follow_latest\", \"frozen\").\n   *\n   * @generated from field: string follow_mode = 10;\n   */\n  followMode: string;\n\n  /**\n   * @generated from field: optional string follow_tag = 11;\n   */\n  followTag?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RegistryShareGrant.\n * Use `create(RegistryShareGrantSchema)` to create a new message.\n */\nexport const RegistryShareGrantSchema: GenMessage<RegistryShareGrant> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 5);\n\n/**\n * @generated from message tenki.sandbox.v1.PublishRegistryImageRequest\n */\nexport type PublishRegistryImageRequest = Message<\"tenki.sandbox.v1.PublishRegistryImageRequest\"> & {\n  /**\n   * @generated from field: optional string image_id = 1;\n   */\n  imageId?: string;\n\n  /**\n   * @generated from field: optional string ref = 2;\n   */\n  ref?: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 3;\n   */\n  workspaceId?: string;\n\n  /**\n   * @generated from field: optional string name = 4;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImageKind kind = 5;\n   */\n  kind: RegistryImageKind;\n\n  /**\n   * @generated from field: optional string source_template_id = 6;\n   */\n  sourceTemplateId?: string;\n\n  /**\n   * @generated from field: optional string snapshot_id = 7;\n   */\n  snapshotId?: string;\n\n  /**\n   * @generated from field: optional string tag = 8;\n   */\n  tag?: string;\n\n  /**\n   * @generated from field: repeated string labels = 9;\n   */\n  labels: string[];\n\n  /**\n   * @generated from field: optional string title = 10;\n   */\n  title?: string;\n\n  /**\n   * @generated from field: optional string description = 11;\n   */\n  description?: string;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.RegistryVisibility visibility = 12;\n   */\n  visibility?: RegistryVisibility;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PublishRegistryImageRequest.\n * Use `create(PublishRegistryImageRequestSchema)` to create a new message.\n */\nexport const PublishRegistryImageRequestSchema: GenMessage<PublishRegistryImageRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 6);\n\n/**\n * @generated from message tenki.sandbox.v1.PublishRegistryImageResponse\n */\nexport type PublishRegistryImageResponse = Message<\"tenki.sandbox.v1.PublishRegistryImageResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImage image = 1;\n   */\n  image?: RegistryImage;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.RegistryTag tag = 2;\n   */\n  tag?: RegistryTag;\n\n  /**\n   * @generated from field: string snapshot_id = 3;\n   */\n  snapshotId: string;\n\n  /**\n   * @generated from field: string digest_ref = 4;\n   */\n  digestRef: string;\n\n  /**\n   * @generated from field: optional string digest = 5;\n   */\n  digest?: string;\n\n  /**\n   * @generated from field: optional string legacy_ref = 6 [deprecated = true];\n   * @deprecated\n   */\n  legacyRef?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.PublishRegistryImageResponse.\n * Use `create(PublishRegistryImageResponseSchema)` to create a new message.\n */\nexport const PublishRegistryImageResponseSchema: GenMessage<PublishRegistryImageResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 7);\n\n/**\n * @generated from message tenki.sandbox.v1.SetRegistryImageVisibilityRequest\n */\nexport type SetRegistryImageVisibilityRequest = Message<\"tenki.sandbox.v1.SetRegistryImageVisibilityRequest\"> & {\n  /**\n   * @generated from field: optional string image_id = 1;\n   */\n  imageId?: string;\n\n  /**\n   * @generated from field: optional string ref = 2;\n   */\n  ref?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryVisibility visibility = 3;\n   */\n  visibility: RegistryVisibility;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SetRegistryImageVisibilityRequest.\n * Use `create(SetRegistryImageVisibilityRequestSchema)` to create a new message.\n */\nexport const SetRegistryImageVisibilityRequestSchema: GenMessage<SetRegistryImageVisibilityRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 8);\n\n/**\n * @generated from message tenki.sandbox.v1.SetRegistryImageVisibilityResponse\n */\nexport type SetRegistryImageVisibilityResponse = Message<\"tenki.sandbox.v1.SetRegistryImageVisibilityResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImage image = 1;\n   */\n  image?: RegistryImage;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SetRegistryImageVisibilityResponse.\n * Use `create(SetRegistryImageVisibilityResponseSchema)` to create a new message.\n */\nexport const SetRegistryImageVisibilityResponseSchema: GenMessage<SetRegistryImageVisibilityResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 9);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteRegistryImageRequest\n */\nexport type DeleteRegistryImageRequest = Message<\"tenki.sandbox.v1.DeleteRegistryImageRequest\"> & {\n  /**\n   * @generated from field: optional string image_id = 1;\n   */\n  imageId?: string;\n\n  /**\n   * @generated from field: optional string ref = 2;\n   */\n  ref?: string;\n\n  /**\n   * @generated from field: optional string reason = 3;\n   */\n  reason?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteRegistryImageRequest.\n * Use `create(DeleteRegistryImageRequestSchema)` to create a new message.\n */\nexport const DeleteRegistryImageRequestSchema: GenMessage<DeleteRegistryImageRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 10);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteRegistryImageResponse\n */\nexport type DeleteRegistryImageResponse = Message<\"tenki.sandbox.v1.DeleteRegistryImageResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImage image = 1;\n   */\n  image?: RegistryImage;\n\n  /**\n   * @generated from field: int32 revoked_token_count = 2;\n   */\n  revokedTokenCount: number;\n\n  /**\n   * @generated from field: int32 revoked_grant_count = 3;\n   */\n  revokedGrantCount: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteRegistryImageResponse.\n * Use `create(DeleteRegistryImageResponseSchema)` to create a new message.\n */\nexport const DeleteRegistryImageResponseSchema: GenMessage<DeleteRegistryImageResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 11);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteRegistryImageVersionRequest\n */\nexport type DeleteRegistryImageVersionRequest = Message<\"tenki.sandbox.v1.DeleteRegistryImageVersionRequest\"> & {\n  /**\n   * @generated from field: string image_id = 1;\n   */\n  imageId: string;\n\n  /**\n   * @generated from field: string snapshot_id = 2;\n   */\n  snapshotId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteRegistryImageVersionRequest.\n * Use `create(DeleteRegistryImageVersionRequestSchema)` to create a new message.\n */\nexport const DeleteRegistryImageVersionRequestSchema: GenMessage<DeleteRegistryImageVersionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 12);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteRegistryImageVersionResponse\n */\nexport type DeleteRegistryImageVersionResponse = Message<\"tenki.sandbox.v1.DeleteRegistryImageVersionResponse\"> & {\n  /**\n   * @generated from field: string image_id = 1;\n   */\n  imageId: string;\n\n  /**\n   * @generated from field: string snapshot_id = 2;\n   */\n  snapshotId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteRegistryImageVersionResponse.\n * Use `create(DeleteRegistryImageVersionResponseSchema)` to create a new message.\n */\nexport const DeleteRegistryImageVersionResponseSchema: GenMessage<DeleteRegistryImageVersionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 13);\n\n/**\n * @generated from message tenki.sandbox.v1.ListRegistryImagesRequest\n */\nexport type ListRegistryImagesRequest = Message<\"tenki.sandbox.v1.ListRegistryImagesRequest\"> & {\n  /**\n   * @generated from field: repeated string labels = 1;\n   */\n  labels: string[];\n\n  /**\n   * @generated from field: optional string workspace_slug = 2;\n   */\n  workspaceSlug?: string;\n\n  /**\n   * @generated from field: optional string name_substring = 3;\n   */\n  nameSubstring?: string;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.RegistryImageKind kind = 4;\n   */\n  kind?: RegistryImageKind;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistrySortBy sort_by = 5;\n   */\n  sortBy: RegistrySortBy;\n\n  /**\n   * @generated from field: optional int32 page_size = 6;\n   */\n  pageSize?: number;\n\n  /**\n   * @generated from field: optional string cursor = 7;\n   */\n  cursor?: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 8;\n   */\n  workspaceId?: string;\n\n  /**\n   * System (Tenki-curated) images are excluded unless set, or unless\n   * workspace_slug names a system namespace.\n   *\n   * @generated from field: bool include_system_images = 9;\n   */\n  includeSystemImages: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListRegistryImagesRequest.\n * Use `create(ListRegistryImagesRequestSchema)` to create a new message.\n */\nexport const ListRegistryImagesRequestSchema: GenMessage<ListRegistryImagesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 14);\n\n/**\n * @generated from message tenki.sandbox.v1.ListRegistryImagesResponse\n */\nexport type ListRegistryImagesResponse = Message<\"tenki.sandbox.v1.ListRegistryImagesResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RegistryImageSummary images = 1;\n   */\n  images: RegistryImageSummary[];\n\n  /**\n   * @generated from field: string next_cursor = 2;\n   */\n  nextCursor: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListRegistryImagesResponse.\n * Use `create(ListRegistryImagesResponseSchema)` to create a new message.\n */\nexport const ListRegistryImagesResponseSchema: GenMessage<ListRegistryImagesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 15);\n\n/**\n * @generated from message tenki.sandbox.v1.GetRegistryImageRequest\n */\nexport type GetRegistryImageRequest = Message<\"tenki.sandbox.v1.GetRegistryImageRequest\"> & {\n  /**\n   * @generated from field: optional string image_id = 1;\n   */\n  imageId?: string;\n\n  /**\n   * @generated from field: optional string ref = 2;\n   */\n  ref?: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 3;\n   */\n  workspaceId?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetRegistryImageRequest.\n * Use `create(GetRegistryImageRequestSchema)` to create a new message.\n */\nexport const GetRegistryImageRequestSchema: GenMessage<GetRegistryImageRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 16);\n\n/**\n * @generated from message tenki.sandbox.v1.GetRegistryImageResponse\n */\nexport type GetRegistryImageResponse = Message<\"tenki.sandbox.v1.GetRegistryImageResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImageDetail detail = 1;\n   */\n  detail?: RegistryImageDetail;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetRegistryImageResponse.\n * Use `create(GetRegistryImageResponseSchema)` to create a new message.\n */\nexport const GetRegistryImageResponseSchema: GenMessage<GetRegistryImageResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 17);\n\n/**\n * @generated from message tenki.sandbox.v1.ResolveRegistryRefRequest\n */\nexport type ResolveRegistryRefRequest = Message<\"tenki.sandbox.v1.ResolveRegistryRefRequest\"> & {\n  /**\n   * @generated from field: string ref = 1;\n   */\n  ref: string;\n\n  /**\n   * @generated from field: optional string workspace_id = 2;\n   */\n  workspaceId?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResolveRegistryRefRequest.\n * Use `create(ResolveRegistryRefRequestSchema)` to create a new message.\n */\nexport const ResolveRegistryRefRequestSchema: GenMessage<ResolveRegistryRefRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 18);\n\n/**\n * @generated from message tenki.sandbox.v1.ResolveRegistryRefResponse\n */\nexport type ResolveRegistryRefResponse = Message<\"tenki.sandbox.v1.ResolveRegistryRefResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.ResolvedRegistryRef resolved = 1;\n   */\n  resolved?: ResolvedRegistryRef;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ResolveRegistryRefResponse.\n * Use `create(ResolveRegistryRefResponseSchema)` to create a new message.\n */\nexport const ResolveRegistryRefResponseSchema: GenMessage<ResolveRegistryRefResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 19);\n\n/**\n * @generated from message tenki.sandbox.v1.ShareImageRequest\n */\nexport type ShareImageRequest = Message<\"tenki.sandbox.v1.ShareImageRequest\"> & {\n  /**\n   * @generated from field: optional string image_id = 1;\n   */\n  imageId?: string;\n\n  /**\n   * @generated from field: optional string image_ref = 2;\n   */\n  imageRef?: string;\n\n  /**\n   * @generated from field: string target_workspace_id = 3;\n   */\n  targetWorkspaceId: string;\n\n  /**\n   * @generated from field: optional string tag = 4;\n   */\n  tag?: string;\n\n  /**\n   * @generated from field: optional string snapshot_id = 5;\n   */\n  snapshotId?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ShareImageRequest.\n * Use `create(ShareImageRequestSchema)` to create a new message.\n */\nexport const ShareImageRequestSchema: GenMessage<ShareImageRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 20);\n\n/**\n * @generated from message tenki.sandbox.v1.ShareImageResponse\n */\nexport type ShareImageResponse = Message<\"tenki.sandbox.v1.ShareImageResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImage image = 1;\n   */\n  image?: RegistryImage;\n\n  /**\n   * @generated from field: string current_snapshot_id = 2;\n   */\n  currentSnapshotId: string;\n\n  /**\n   * @generated from field: string digest_ref = 3;\n   */\n  digestRef: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryShareGrant grant = 4;\n   */\n  grant?: RegistryShareGrant;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ShareImageResponse.\n * Use `create(ShareImageResponseSchema)` to create a new message.\n */\nexport const ShareImageResponseSchema: GenMessage<ShareImageResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 21);\n\n/**\n * @generated from message tenki.sandbox.v1.RevokeRegistryShareGrantRequest\n */\nexport type RevokeRegistryShareGrantRequest = Message<\"tenki.sandbox.v1.RevokeRegistryShareGrantRequest\"> & {\n  /**\n   * @generated from field: string grant_id = 1;\n   */\n  grantId: string;\n\n  /**\n   * @generated from field: optional string reason = 2;\n   */\n  reason?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RevokeRegistryShareGrantRequest.\n * Use `create(RevokeRegistryShareGrantRequestSchema)` to create a new message.\n */\nexport const RevokeRegistryShareGrantRequestSchema: GenMessage<RevokeRegistryShareGrantRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 22);\n\n/**\n * @generated from message tenki.sandbox.v1.RevokeRegistryShareGrantResponse\n */\nexport type RevokeRegistryShareGrantResponse = Message<\"tenki.sandbox.v1.RevokeRegistryShareGrantResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryShareGrant grant = 1;\n   */\n  grant?: RegistryShareGrant;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RevokeRegistryShareGrantResponse.\n * Use `create(RevokeRegistryShareGrantResponseSchema)` to create a new message.\n */\nexport const RevokeRegistryShareGrantResponseSchema: GenMessage<RevokeRegistryShareGrantResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 23);\n\n/**\n * @generated from message tenki.sandbox.v1.ListRegistryShareGrantsRequest\n */\nexport type ListRegistryShareGrantsRequest = Message<\"tenki.sandbox.v1.ListRegistryShareGrantsRequest\"> & {\n  /**\n   * @generated from field: optional string image_id = 1;\n   */\n  imageId?: string;\n\n  /**\n   * @generated from field: optional string ref = 2;\n   */\n  ref?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListRegistryShareGrantsRequest.\n * Use `create(ListRegistryShareGrantsRequestSchema)` to create a new message.\n */\nexport const ListRegistryShareGrantsRequestSchema: GenMessage<ListRegistryShareGrantsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 24);\n\n/**\n * @generated from message tenki.sandbox.v1.ListRegistryShareGrantsResponse\n */\nexport type ListRegistryShareGrantsResponse = Message<\"tenki.sandbox.v1.ListRegistryShareGrantsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RegistryShareGrant grants = 1;\n   */\n  grants: RegistryShareGrant[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListRegistryShareGrantsResponse.\n * Use `create(ListRegistryShareGrantsResponseSchema)` to create a new message.\n */\nexport const ListRegistryShareGrantsResponseSchema: GenMessage<ListRegistryShareGrantsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 25);\n\n/**\n * @generated from message tenki.sandbox.v1.UnshareRegistryImageRequest\n */\nexport type UnshareRegistryImageRequest = Message<\"tenki.sandbox.v1.UnshareRegistryImageRequest\"> & {\n  /**\n   * @generated from field: optional string image_id = 1;\n   */\n  imageId?: string;\n\n  /**\n   * @generated from field: optional string ref = 2;\n   */\n  ref?: string;\n\n  /**\n   * @generated from field: optional string reason = 3;\n   */\n  reason?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UnshareRegistryImageRequest.\n * Use `create(UnshareRegistryImageRequestSchema)` to create a new message.\n */\nexport const UnshareRegistryImageRequestSchema: GenMessage<UnshareRegistryImageRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 26);\n\n/**\n * @generated from message tenki.sandbox.v1.UnshareRegistryImageResponse\n */\nexport type UnshareRegistryImageResponse = Message<\"tenki.sandbox.v1.UnshareRegistryImageResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImage image = 1;\n   */\n  image?: RegistryImage;\n\n  /**\n   * @generated from field: int32 revoked_token_count = 2;\n   */\n  revokedTokenCount: number;\n\n  /**\n   * @generated from field: int32 revoked_grant_count = 3;\n   */\n  revokedGrantCount: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UnshareRegistryImageResponse.\n * Use `create(UnshareRegistryImageResponseSchema)` to create a new message.\n */\nexport const UnshareRegistryImageResponseSchema: GenMessage<UnshareRegistryImageResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_registry, 27);\n\n/**\n * @generated from enum tenki.sandbox.v1.RegistryImageKind\n */\nexport enum RegistryImageKind {\n  /**\n   * @generated from enum value: REGISTRY_IMAGE_KIND_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: REGISTRY_IMAGE_KIND_TEMPLATE = 1;\n   */\n  TEMPLATE = 1,\n\n  /**\n   * @generated from enum value: REGISTRY_IMAGE_KIND_SNAPSHOT = 2;\n   */\n  SNAPSHOT = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.RegistryImageKind.\n */\nexport const RegistryImageKindSchema: GenEnum<RegistryImageKind> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_registry, 0);\n\n/**\n * @generated from enum tenki.sandbox.v1.RegistryVisibility\n */\nexport enum RegistryVisibility {\n  /**\n   * @generated from enum value: REGISTRY_VISIBILITY_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: REGISTRY_VISIBILITY_PRIVATE = 1;\n   */\n  PRIVATE = 1,\n\n  /**\n   * @generated from enum value: REGISTRY_VISIBILITY_PUBLIC = 2;\n   */\n  PUBLIC = 2,\n\n  /**\n   * @generated from enum value: REGISTRY_VISIBILITY_SHARED = 3;\n   */\n  SHARED = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.RegistryVisibility.\n */\nexport const RegistryVisibilitySchema: GenEnum<RegistryVisibility> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_registry, 1);\n\n/**\n * @generated from enum tenki.sandbox.v1.RegistrySortBy\n */\nexport enum RegistrySortBy {\n  /**\n   * @generated from enum value: REGISTRY_SORT_BY_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: REGISTRY_SORT_BY_NAME = 1;\n   */\n  NAME = 1,\n\n  /**\n   * @generated from enum value: REGISTRY_SORT_BY_UPDATED_AT = 2;\n   */\n  UPDATED_AT = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.RegistrySortBy.\n */\nexport const RegistrySortBySchema: GenEnum<RegistrySortBy> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_registry, 2);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file tenki/sandbox/v1/secret_file.proto (package tenki.sandbox.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tenki/sandbox/v1/secret_file.proto.\n */\nexport const file_tenki_sandbox_v1_secret_file: GenFile = /*@__PURE__*/\n  fileDesc(\"CiJ0ZW5raS9zYW5kYm94L3YxL3NlY3JldF9maWxlLnByb3RvEhB0ZW5raS5zYW5kYm94LnYxIjsKFlJ1bnRpbWVTZWNyZXRSZWZlcmVuY2USDAoEbmFtZRgBIAEoCRITCgtwbGFjZWhvbGRlchgCIAEoCCKJAQoRUnVudGltZVNlY3JldEZpbGUSDAoEcGF0aBgBIAEoCRI3CgNyYXcYAiABKAsyKC50ZW5raS5zYW5kYm94LnYxLlJ1bnRpbWVTZWNyZXRSZWZlcmVuY2VIABIQCgZzb3VyY2UYAyABKAlIABIRCgdjb250ZW50GAQgASgJSABCCAoGZm9ybWF0QsgBChRjb20udGVua2kuc2FuZGJveC52MUIPU2VjcmV0RmlsZVByb3RvUAFaPWdvLmx1eG9yLmFpL3NhbmRib3gvaW50ZXJuYWwvcHJvdG8vdGVua2kvc2FuZGJveC92MTtzYW5kYm94djGiAgNUU1iqAhBUZW5raS5TYW5kYm94LlYxygIQVGVua2lcU2FuZGJveFxWMeICHFRlbmtpXFNhbmRib3hcVjFcR1BCTWV0YWRhdGHqAhJUZW5raTo6U2FuZGJveDo6VjFiBnByb3RvMw\");\n\n/**\n * File declarations contain references and nonsecret configuration only.\n *\n * @generated from message tenki.sandbox.v1.RuntimeSecretReference\n */\nexport type RuntimeSecretReference = Message<\"tenki.sandbox.v1.RuntimeSecretReference\"> & {\n  /**\n   * @generated from field: string name = 1;\n   */\n  name: string;\n\n  /**\n   * @generated from field: bool placeholder = 2;\n   */\n  placeholder: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RuntimeSecretReference.\n * Use `create(RuntimeSecretReferenceSchema)` to create a new message.\n */\nexport const RuntimeSecretReferenceSchema: GenMessage<RuntimeSecretReference> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_secret_file, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.RuntimeSecretFile\n */\nexport type RuntimeSecretFile = Message<\"tenki.sandbox.v1.RuntimeSecretFile\"> & {\n  /**\n   * @generated from field: string path = 1;\n   */\n  path: string;\n\n  /**\n   * @generated from oneof tenki.sandbox.v1.RuntimeSecretFile.format\n   */\n  format: {\n    /**\n     * @generated from field: tenki.sandbox.v1.RuntimeSecretReference raw = 2;\n     */\n    value: RuntimeSecretReference;\n    case: \"raw\";\n  } | {\n    /**\n     * Build-time path inside the guest image; captured without resolving secrets.\n     *\n     * @generated from field: string source = 3;\n     */\n    value: string;\n    case: \"source\";\n  } | {\n    /**\n     * Unresolved text uploaded by a caller or captured during a template build.\n     *\n     * @generated from field: string content = 4;\n     */\n    value: string;\n    case: \"content\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.RuntimeSecretFile.\n * Use `create(RuntimeSecretFileSchema)` to create a new message.\n */\nexport const RuntimeSecretFileSchema: GenMessage<RuntimeSecretFile> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_secret_file, 1);\n\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file tenki/sandbox/v1/tailnet_connection.proto (package tenki.sandbox.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_buf_validate_validate } from \"../../../buf/validate/validate_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tenki/sandbox/v1/tailnet_connection.proto.\n */\nexport const file_tenki_sandbox_v1_tailnet_connection: GenFile = /*@__PURE__*/\n  fileDesc(\"Cil0ZW5raS9zYW5kYm94L3YxL3RhaWxuZXRfY29ubmVjdGlvbi5wcm90bxIQdGVua2kuc2FuZGJveC52MSLOAQoRVGFpbG5ldENvbm5lY3Rpb24SCgoCaWQYASABKAkSFAoMd29ya3NwYWNlX2lkGAIgASgJEgwKBG5hbWUYAyABKAkSEAoIcmV2aXNpb24YBCABKA0SEQoJY2xpZW50X2lkGAUgASgJEg4KBmlzc3VlchgGIAEoCRIQCghhdWRpZW5jZRgHIAEoCRIXCg9hdXRob3JpemVkX3RhZ3MYCCADKAkSEAoIZGlzYWJsZWQYCSABKAgSFwoPc3ViamVjdF9wYXR0ZXJuGAogASgJInIKHFNhdmVUYWlsbmV0Q29ubmVjdGlvblJlcXVlc3QSNwoKY29ubmVjdGlvbhgBIAEoCzIjLnRlbmtpLnNhbmRib3gudjEuVGFpbG5ldENvbm5lY3Rpb24SGQoRZXhwZWN0ZWRfcmV2aXNpb24YAiABKA0iWAodU2F2ZVR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5uZXJTdGF0dXMqkQEKI1RhaWxuZXRSdW5uZXJDb25maWd1cmF0aW9uU29ydEZpZWxkEjcKM1RBSUxORVRfUlVOTkVSX0NPTkZJR1VSQVRJT05fU09SVF9GSUVMRF9VTlNQRUNJRklFRBAAEjEKLVRBSUxORVRfUlVOTkVSX0NPTkZJR1VSQVRJT05fU09SVF9GSUVMRF9MQUJFTBABQs8BChRjb20udGVua2kuc2FuZGJveC52MUIWVGFpbG5ldENvbm5lY3Rpb25Qcm90b1ABWj1nby5sdXhvci5haS9zYW5kYm94L2ludGVybmFsL3Byb3RvL3RlbmtpL3NhbmRib3gvdjE7c2FuZGJveHYxogIDVFNYqgIQVGVua2kuU2FuZGJveC5WMcoCEFRlbmtpXFNhbmRib3hcVjHiAhxUZW5raVxTYW5kYm94XFYxXEdQQk1ldGFkYXRh6gISVGVua2k6OlNhbmRib3g6OlYxYgZwcm90bzM\", [file_buf_validate_validate]);\n\n/**\n * @generated from message tenki.sandbox.v1.TailnetConnection\n */\nexport type TailnetConnection = Message<\"tenki.sandbox.v1.TailnetConnection\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 3;\n   */\n  name: string;\n\n  /**\n   * @generated from field: uint32 revision = 4;\n   */\n  revision: number;\n\n  /**\n   * @generated from field: string client_id = 5;\n   */\n  clientId: string;\n\n  /**\n   * @generated from field: string issuer = 6;\n   */\n  issuer: string;\n\n  /**\n   * @generated from field: string audience = 7;\n   */\n  audience: string;\n\n  /**\n   * @generated from field: repeated string authorized_tags = 8;\n   */\n  authorizedTags: string[];\n\n  /**\n   * @generated from field: bool disabled = 9;\n   */\n  disabled: boolean;\n\n  /**\n   * @generated from field: string subject_pattern = 10;\n   */\n  subjectPattern: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TailnetConnection.\n * Use `create(TailnetConnectionSchema)` to create a new message.\n */\nexport const TailnetConnectionSchema: GenMessage<TailnetConnection> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveTailnetConnectionRequest\n */\nexport type SaveTailnetConnectionRequest = Message<\"tenki.sandbox.v1.SaveTailnetConnectionRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetConnection connection = 1;\n   */\n  connection?: TailnetConnection;\n\n  /**\n   * @generated from field: uint32 expected_revision = 2;\n   */\n  expectedRevision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveTailnetConnectionRequest.\n * Use `create(SaveTailnetConnectionRequestSchema)` to create a new message.\n */\nexport const SaveTailnetConnectionRequestSchema: GenMessage<SaveTailnetConnectionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 1);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveTailnetConnectionResponse\n */\nexport type SaveTailnetConnectionResponse = Message<\"tenki.sandbox.v1.SaveTailnetConnectionResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetConnection connection = 1;\n   */\n  connection?: TailnetConnection;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveTailnetConnectionResponse.\n * Use `create(SaveTailnetConnectionResponseSchema)` to create a new message.\n */\nexport const SaveTailnetConnectionResponseSchema: GenMessage<SaveTailnetConnectionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 2);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTailnetConnectionsRequest\n */\nexport type ListTailnetConnectionsRequest = Message<\"tenki.sandbox.v1.ListTailnetConnectionsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * Zero returns every connection, up to 100.\n   *\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * Offset of the first row, as returned in next_page_token.\n   *\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n\n  /**\n   * Matches the name or any authorized tag, ignoring case.\n   *\n   * @generated from field: string search = 4;\n   */\n  search: string;\n\n  /**\n   * @generated from field: bool disabled_only = 5;\n   */\n  disabledOnly: boolean;\n\n  /**\n   * Sorts by name.\n   *\n   * @generated from field: bool sort_desc = 6;\n   */\n  sortDesc: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTailnetConnectionsRequest.\n * Use `create(ListTailnetConnectionsRequestSchema)` to create a new message.\n */\nexport const ListTailnetConnectionsRequestSchema: GenMessage<ListTailnetConnectionsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 3);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTailnetConnectionsResponse\n */\nexport type ListTailnetConnectionsResponse = Message<\"tenki.sandbox.v1.ListTailnetConnectionsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TailnetConnection connections = 1;\n   */\n  connections: TailnetConnection[];\n\n  /**\n   * @generated from field: string oidc_issuer = 2;\n   */\n  oidcIssuer: string;\n\n  /**\n   * @generated from field: string next_page_token = 3;\n   */\n  nextPageToken: string;\n\n  /**\n   * Matching connections across all pages.\n   *\n   * @generated from field: int32 total = 4;\n   */\n  total: number;\n\n  /**\n   * Ignores search and disabled_only.\n   *\n   * @generated from field: int32 disabled_total = 5;\n   */\n  disabledTotal: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTailnetConnectionsResponse.\n * Use `create(ListTailnetConnectionsResponseSchema)` to create a new message.\n */\nexport const ListTailnetConnectionsResponseSchema: GenMessage<ListTailnetConnectionsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 4);\n\n/**\n * @generated from message tenki.sandbox.v1.TestTailnetConnectionRequest\n */\nexport type TestTailnetConnectionRequest = Message<\"tenki.sandbox.v1.TestTailnetConnectionRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string connection_id = 2;\n   */\n  connectionId: string;\n\n  /**\n   * @generated from field: string endpoint = 3;\n   */\n  endpoint: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TestTailnetConnectionRequest.\n * Use `create(TestTailnetConnectionRequestSchema)` to create a new message.\n */\nexport const TestTailnetConnectionRequestSchema: GenMessage<TestTailnetConnectionRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 5);\n\n/**\n * @generated from message tenki.sandbox.v1.TestTailnetConnectionResponse\n */\nexport type TestTailnetConnectionResponse = Message<\"tenki.sandbox.v1.TestTailnetConnectionResponse\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: bool enrolled = 2;\n   */\n  enrolled: boolean;\n\n  /**\n   * @generated from field: bool endpoint_reachable = 3;\n   */\n  endpointReachable: boolean;\n\n  /**\n   * @generated from field: string error_code = 4;\n   */\n  errorCode: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TestTailnetConnectionResponse.\n * Use `create(TestTailnetConnectionResponseSchema)` to create a new message.\n */\nexport const TestTailnetConnectionResponseSchema: GenMessage<TestTailnetConnectionResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 6);\n\n/**\n * @generated from message tenki.sandbox.v1.TailnetRunnerConfiguration\n */\nexport type TailnetRunnerConfiguration = Message<\"tenki.sandbox.v1.TailnetRunnerConfiguration\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string offering_id = 3;\n   */\n  offeringId: string;\n\n  /**\n   * @generated from field: string connection_id = 4;\n   */\n  connectionId: string;\n\n  /**\n   * @generated from field: uint32 revision = 5;\n   */\n  revision: number;\n\n  /**\n   * @generated from field: repeated int64 repository_ids = 6;\n   */\n  repositoryIds: bigint[];\n\n  /**\n   * @generated from field: string job_access = 7;\n   */\n  jobAccess: string;\n\n  /**\n   * @generated from field: bool disabled = 8;\n   */\n  disabled: boolean;\n\n  /**\n   * @generated from field: string label = 9;\n   */\n  label: string;\n\n  /**\n   * @generated from field: bool workspace_default = 10;\n   */\n  workspaceDefault: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TailnetRunnerConfiguration.\n * Use `create(TailnetRunnerConfigurationSchema)` to create a new message.\n */\nexport const TailnetRunnerConfigurationSchema: GenMessage<TailnetRunnerConfiguration> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 7);\n\n/**\n * @generated from message tenki.sandbox.v1.TailnetDefaults\n */\nexport type TailnetDefaults = Message<\"tenki.sandbox.v1.TailnetDefaults\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string sandbox_connection_id = 2;\n   */\n  sandboxConnectionId: string;\n\n  /**\n   * @generated from field: uint32 revision = 3;\n   */\n  revision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TailnetDefaults.\n * Use `create(TailnetDefaultsSchema)` to create a new message.\n */\nexport const TailnetDefaultsSchema: GenMessage<TailnetDefaults> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 8);\n\n/**\n * @generated from message tenki.sandbox.v1.GetTailnetDefaultsRequest\n */\nexport type GetTailnetDefaultsRequest = Message<\"tenki.sandbox.v1.GetTailnetDefaultsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetTailnetDefaultsRequest.\n * Use `create(GetTailnetDefaultsRequestSchema)` to create a new message.\n */\nexport const GetTailnetDefaultsRequestSchema: GenMessage<GetTailnetDefaultsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 9);\n\n/**\n * @generated from message tenki.sandbox.v1.GetTailnetDefaultsResponse\n */\nexport type GetTailnetDefaultsResponse = Message<\"tenki.sandbox.v1.GetTailnetDefaultsResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetDefaults defaults = 1;\n   */\n  defaults?: TailnetDefaults;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetTailnetDefaultsResponse.\n * Use `create(GetTailnetDefaultsResponseSchema)` to create a new message.\n */\nexport const GetTailnetDefaultsResponseSchema: GenMessage<GetTailnetDefaultsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 10);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveTailnetDefaultsRequest\n */\nexport type SaveTailnetDefaultsRequest = Message<\"tenki.sandbox.v1.SaveTailnetDefaultsRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetDefaults defaults = 1;\n   */\n  defaults?: TailnetDefaults;\n\n  /**\n   * @generated from field: uint32 expected_revision = 2;\n   */\n  expectedRevision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveTailnetDefaultsRequest.\n * Use `create(SaveTailnetDefaultsRequestSchema)` to create a new message.\n */\nexport const SaveTailnetDefaultsRequestSchema: GenMessage<SaveTailnetDefaultsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 11);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveTailnetDefaultsResponse\n */\nexport type SaveTailnetDefaultsResponse = Message<\"tenki.sandbox.v1.SaveTailnetDefaultsResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetDefaults defaults = 1;\n   */\n  defaults?: TailnetDefaults;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveTailnetDefaultsResponse.\n * Use `create(SaveTailnetDefaultsResponseSchema)` to create a new message.\n */\nexport const SaveTailnetDefaultsResponseSchema: GenMessage<SaveTailnetDefaultsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 12);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveTailnetRunnerConfigurationRequest\n */\nexport type SaveTailnetRunnerConfigurationRequest = Message<\"tenki.sandbox.v1.SaveTailnetRunnerConfigurationRequest\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetRunnerConfiguration configuration = 1;\n   */\n  configuration?: TailnetRunnerConfiguration;\n\n  /**\n   * @generated from field: string base_offering_id = 2;\n   */\n  baseOfferingId: string;\n\n  /**\n   * @generated from field: uint32 expected_revision = 3;\n   */\n  expectedRevision: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveTailnetRunnerConfigurationRequest.\n * Use `create(SaveTailnetRunnerConfigurationRequestSchema)` to create a new message.\n */\nexport const SaveTailnetRunnerConfigurationRequestSchema: GenMessage<SaveTailnetRunnerConfigurationRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 13);\n\n/**\n * @generated from message tenki.sandbox.v1.SaveTailnetRunnerConfigurationResponse\n */\nexport type SaveTailnetRunnerConfigurationResponse = Message<\"tenki.sandbox.v1.SaveTailnetRunnerConfigurationResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetRunnerConfiguration configuration = 1;\n   */\n  configuration?: TailnetRunnerConfiguration;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SaveTailnetRunnerConfigurationResponse.\n * Use `create(SaveTailnetRunnerConfigurationResponseSchema)` to create a new message.\n */\nexport const SaveTailnetRunnerConfigurationResponseSchema: GenMessage<SaveTailnetRunnerConfigurationResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 14);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTailnetRunnerConfigurationsRequest\n */\nexport type ListTailnetRunnerConfigurationsRequest = Message<\"tenki.sandbox.v1.ListTailnetRunnerConfigurationsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * Zero returns every configuration, up to 100.\n   *\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * Offset of the first row, as returned in next_page_token.\n   *\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n\n  /**\n   * Matches the runner label or connection name, ignoring case.\n   *\n   * @generated from field: string search = 4;\n   */\n  search: string;\n\n  /**\n   * @generated from field: bool disabled_only = 5;\n   */\n  disabledOnly: boolean;\n\n  /**\n   * Leaves out the workspace default configuration.\n   *\n   * @generated from field: bool dedicated_only = 6;\n   */\n  dedicatedOnly: boolean;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TailnetRunnerConfigurationSortField sort_by = 7;\n   */\n  sortBy: TailnetRunnerConfigurationSortField;\n\n  /**\n   * @generated from field: bool sort_desc = 8;\n   */\n  sortDesc: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTailnetRunnerConfigurationsRequest.\n * Use `create(ListTailnetRunnerConfigurationsRequestSchema)` to create a new message.\n */\nexport const ListTailnetRunnerConfigurationsRequestSchema: GenMessage<ListTailnetRunnerConfigurationsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 15);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTailnetRunnerConfigurationsResponse\n */\nexport type ListTailnetRunnerConfigurationsResponse = Message<\"tenki.sandbox.v1.ListTailnetRunnerConfigurationsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TailnetRunnerConfiguration configurations = 1;\n   */\n  configurations: TailnetRunnerConfiguration[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n\n  /**\n   * Matching configurations across all pages.\n   *\n   * @generated from field: int32 total = 3;\n   */\n  total: number;\n\n  /**\n   * Ignores search and disabled_only.\n   *\n   * @generated from field: int32 disabled_total = 4;\n   */\n  disabledTotal: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTailnetRunnerConfigurationsResponse.\n * Use `create(ListTailnetRunnerConfigurationsResponseSchema)` to create a new message.\n */\nexport const ListTailnetRunnerConfigurationsResponseSchema: GenMessage<ListTailnetRunnerConfigurationsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 16);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTailnetRunnerStatusesRequest\n */\nexport type ListTailnetRunnerStatusesRequest = Message<\"tenki.sandbox.v1.ListTailnetRunnerStatusesRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string configuration_id = 2;\n   */\n  configurationId: string;\n\n  /**\n   * @generated from field: int64 job_id = 3;\n   */\n  jobId: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTailnetRunnerStatusesRequest.\n * Use `create(ListTailnetRunnerStatusesRequestSchema)` to create a new message.\n */\nexport const ListTailnetRunnerStatusesRequestSchema: GenMessage<ListTailnetRunnerStatusesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 17);\n\n/**\n * @generated from message tenki.sandbox.v1.TailnetRunnerStatus\n */\nexport type TailnetRunnerStatus = Message<\"tenki.sandbox.v1.TailnetRunnerStatus\"> & {\n  /**\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * @generated from field: string runner_name = 2;\n   */\n  runnerName: string;\n\n  /**\n   * @generated from field: string connection_name = 3;\n   */\n  connectionName: string;\n\n  /**\n   * @generated from field: uint32 connection_revision = 4;\n   */\n  connectionRevision: number;\n\n  /**\n   * @generated from field: string state = 5;\n   */\n  state: string;\n\n  /**\n   * @generated from field: string hostname = 6;\n   */\n  hostname: string;\n\n  /**\n   * @generated from field: repeated string ips = 7;\n   */\n  ips: string[];\n\n  /**\n   * @generated from field: string error_code = 8;\n   */\n  errorCode: string;\n\n  /**\n   * @generated from field: string job_admission = 9;\n   */\n  jobAdmission: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TailnetRunnerStatus.\n * Use `create(TailnetRunnerStatusSchema)` to create a new message.\n */\nexport const TailnetRunnerStatusSchema: GenMessage<TailnetRunnerStatus> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 18);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTailnetRunnerStatusesResponse\n */\nexport type ListTailnetRunnerStatusesResponse = Message<\"tenki.sandbox.v1.ListTailnetRunnerStatusesResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TailnetRunnerStatus statuses = 1;\n   */\n  statuses: TailnetRunnerStatus[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTailnetRunnerStatusesResponse.\n * Use `create(ListTailnetRunnerStatusesResponseSchema)` to create a new message.\n */\nexport const ListTailnetRunnerStatusesResponseSchema: GenMessage<ListTailnetRunnerStatusesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_tailnet_connection, 19);\n\n/**\n * @generated from enum tenki.sandbox.v1.TailnetRunnerConfigurationSortField\n */\nexport enum TailnetRunnerConfigurationSortField {\n  /**\n   * Workspace default first, then oldest first.\n   *\n   * @generated from enum value: TAILNET_RUNNER_CONFIGURATION_SORT_FIELD_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TAILNET_RUNNER_CONFIGURATION_SORT_FIELD_LABEL = 1;\n   */\n  LABEL = 1,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TailnetRunnerConfigurationSortField.\n */\nexport const TailnetRunnerConfigurationSortFieldSchema: GenEnum<TailnetRunnerConfigurationSortField> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_tailnet_connection, 0);\n\n","// Sandbox template public API.\n\n// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file tenki/sandbox/v1/template.proto (package tenki.sandbox.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_buf_validate_validate } from \"../../../buf/validate/validate_pb\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { RegistryImage } from \"./registry_pb\";\nimport { file_tenki_sandbox_v1_registry } from \"./registry_pb\";\nimport type { RuntimeSecretFile } from \"./secret_file_pb\";\nimport { file_tenki_sandbox_v1_secret_file } from \"./secret_file_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tenki/sandbox/v1/template.proto.\n */\nexport const file_tenki_sandbox_v1_template: GenFile = /*@__PURE__*/\n  fileDesc(\"Ch90ZW5raS9zYW5kYm94L3YxL3RlbXBsYXRlLnByb3RvEhB0ZW5raS5zYW5kYm94LnYxIooDChFUZW1wbGF0ZVJlc291cmNlcxIdCgljcHVfY29yZXMYASABKAVCCrpIBxoFGIABKAAS0QEKCW1lbW9yeV9tYhgCIAEoBUK9AbpIuQG6AWAKFW1lbW9yeV9tYi56ZXJvX29yX21pbhItbWVtb3J5X21iIG11c3QgYmUgMCBvciBiZXR3ZWVuIDUxMiBhbmQgNTI0Mjg4Ghh0aGlzID09IDAgfHwgdGhpcyA+PSA1MTK6AUsKFm1lbW9yeV9tYi5hbGlnbmVkXzJtaWISIm1lbW9yeV9tYiBtdXN0IGJlIGFsaWduZWQgdG8gMiBNaUIaDXRoaXMgJSAyID09IDAaBhiAgCAoABKBAQoMZGlza19zaXplX2diGAMgASgFQmu6SGi6AV8KGGRpc2tfc2l6ZV9nYi56ZXJvX29yX21pbhIrZGlza19zaXplX2diIG11c3QgYmUgMCBvciBiZXR3ZWVuIDUgYW5kIDEwMBoWdGhpcyA9PSAwIHx8IHRoaXMgPj0gNRoEGGQoACLWBAoRVGVtcGxhdGVCdWlsZFNwZWMSQQoMc3BlY192ZXJzaW9uGAEgASgJQiu6SChyJlIRdGVua2kudGVtcGxhdGUudjFSEWx1eG9yLnRlbXBsYXRlLnY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fVkVSU0lPTl9ERVBSRUNBVEVEEAFCxgEKFGNvbS50ZW5raS5zYW5kYm94LnYxQg1UZW1wbGF0ZVByb3RvUAFaPWdvLmx1eG9yLmFpL3NhbmRib3gvaW50ZXJuYWwvcHJvdG8vdGVua2kvc2FuZGJveC92MTtzYW5kYm94djGiAgNUU1iqAhBUZW5raS5TYW5kYm94LlYxygIQVGVua2lcU2FuZGJveFxWMeICHFRlbmtpXFNhbmRib3hcVjFcR1BCTWV0YWRhdGHqAhJUZW5raTo6U2FuZGJveDo6VjFiBnByb3RvMw\", [file_buf_validate_validate, file_google_protobuf_timestamp, file_tenki_sandbox_v1_registry, file_tenki_sandbox_v1_secret_file]);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateResources\n */\nexport type TemplateResources = Message<\"tenki.sandbox.v1.TemplateResources\"> & {\n  /**\n   * @generated from field: int32 cpu_cores = 1;\n   */\n  cpuCores: number;\n\n  /**\n   * @generated from field: int32 memory_mb = 2;\n   */\n  memoryMb: number;\n\n  /**\n   * @generated from field: int32 disk_size_gb = 3;\n   */\n  diskSizeGb: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateResources.\n * Use `create(TemplateResourcesSchema)` to create a new message.\n */\nexport const TemplateResourcesSchema: GenMessage<TemplateResources> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildSpec\n */\nexport type TemplateBuildSpec = Message<\"tenki.sandbox.v1.TemplateBuildSpec\"> & {\n  /**\n   * tenki.template.v1 is deprecated; the server normalizes it to luxor.template.v1.\n   *\n   * @generated from field: string spec_version = 1;\n   */\n  specVersion: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBase base = 2;\n   */\n  base?: TemplateBase;\n\n  /**\n   * @generated from field: string workdir = 3;\n   */\n  workdir: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateContext context = 4;\n   */\n  context?: TemplateContext;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildConfig build = 5;\n   */\n  build?: TemplateBuildConfig;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateStep steps = 6;\n   */\n  steps: TemplateStep[];\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateRuntime runtime = 7;\n   */\n  runtime?: TemplateRuntime;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateResources resources = 8;\n   */\n  resources?: TemplateResources;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildSpec.\n * Use `create(TemplateBuildSpecSchema)` to create a new message.\n */\nexport const TemplateBuildSpecSchema: GenMessage<TemplateBuildSpec> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 1);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBase\n */\nexport type TemplateBase = Message<\"tenki.sandbox.v1.TemplateBase\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.TemplateBase.source\n   */\n  source: {\n    /**\n     * @generated from field: string image = 1;\n     */\n    value: string;\n    case: \"image\";\n  } | {\n    /**\n     * @generated from field: string template_id = 2;\n     */\n    value: string;\n    case: \"templateId\";\n  } | {\n    /**\n     * @generated from field: string snapshot_id = 3;\n     */\n    value: string;\n    case: \"snapshotId\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBase.\n * Use `create(TemplateBaseSchema)` to create a new message.\n */\nexport const TemplateBaseSchema: GenMessage<TemplateBase> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 2);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateContext\n */\nexport type TemplateContext = Message<\"tenki.sandbox.v1.TemplateContext\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateContextSource source = 1;\n   */\n  source?: TemplateContextSource;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateCheckout checkout = 2;\n   */\n  checkout?: TemplateCheckout;\n\n  /**\n   * @generated from field: repeated string ignore = 3;\n   */\n  ignore: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateContext.\n * Use `create(TemplateContextSchema)` to create a new message.\n */\nexport const TemplateContextSchema: GenMessage<TemplateContext> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 3);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateContextSource\n */\nexport type TemplateContextSource = Message<\"tenki.sandbox.v1.TemplateContextSource\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.TemplateContextSource.source\n   */\n  source: {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateGitContext git = 1;\n     */\n    value: TemplateGitContext;\n    case: \"git\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateContextSource.\n * Use `create(TemplateContextSourceSchema)` to create a new message.\n */\nexport const TemplateContextSourceSchema: GenMessage<TemplateContextSource> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 4);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateGitContext\n */\nexport type TemplateGitContext = Message<\"tenki.sandbox.v1.TemplateGitContext\"> & {\n  /**\n   * @generated from field: string repo = 1;\n   */\n  repo: string;\n\n  /**\n   * @generated from field: string ref = 2;\n   */\n  ref: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateGitContext.\n * Use `create(TemplateGitContextSchema)` to create a new message.\n */\nexport const TemplateGitContextSchema: GenMessage<TemplateGitContext> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 5);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateCheckout\n */\nexport type TemplateCheckout = Message<\"tenki.sandbox.v1.TemplateCheckout\"> & {\n  /**\n   * @generated from field: string dest = 1;\n   */\n  dest: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateCheckoutMode mode = 2;\n   */\n  mode: TemplateCheckoutMode;\n\n  /**\n   * @generated from field: optional string name = 3;\n   */\n  name?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateCheckout.\n * Use `create(TemplateCheckoutSchema)` to create a new message.\n */\nexport const TemplateCheckoutSchema: GenMessage<TemplateCheckout> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 6);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildConfig\n */\nexport type TemplateBuildConfig = Message<\"tenki.sandbox.v1.TemplateBuildConfig\"> & {\n  /**\n   * Keep parity with the unbounded legacy env_vars field used to synthesize this spec.\n   *\n   * @generated from field: map<string, string> env = 1;\n   */\n  env: { [key: string]: string };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildConfig.\n * Use `create(TemplateBuildConfigSchema)` to create a new message.\n */\nexport const TemplateBuildConfigSchema: GenMessage<TemplateBuildConfig> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 7);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateStep\n */\nexport type TemplateStep = Message<\"tenki.sandbox.v1.TemplateStep\"> & {\n  /**\n   * @generated from field: optional string name = 1;\n   */\n  name?: string;\n\n  /**\n   * @generated from oneof tenki.sandbox.v1.TemplateStep.operation\n   */\n  operation: {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateRunStep run = 2;\n     */\n    value: TemplateRunStep;\n    case: \"run\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateCopyStep copy = 3;\n     */\n    value: TemplateCopyStep;\n    case: \"copy\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateWriteFileStep write_file = 4;\n     */\n    value: TemplateWriteFileStep;\n    case: \"writeFile\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateMakeDirStep mkdir = 5;\n     */\n    value: TemplateMakeDirStep;\n    case: \"mkdir\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateRemoveStep remove = 6;\n     */\n    value: TemplateRemoveStep;\n    case: \"remove\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateRenameStep rename = 7;\n     */\n    value: TemplateRenameStep;\n    case: \"rename\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateSymlinkStep symlink = 8;\n     */\n    value: TemplateSymlinkStep;\n    case: \"symlink\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplatePackageStep apt = 9;\n     */\n    value: TemplatePackageStep;\n    case: \"apt\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplatePackageStep pip = 10;\n     */\n    value: TemplatePackageStep;\n    case: \"pip\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplatePackageStep npm = 11;\n     */\n    value: TemplatePackageStep;\n    case: \"npm\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplatePackageStep bun = 12;\n     */\n    value: TemplatePackageStep;\n    case: \"bun\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateStep.\n * Use `create(TemplateStepSchema)` to create a new message.\n */\nexport const TemplateStepSchema: GenMessage<TemplateStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 8);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateRunStep\n */\nexport type TemplateRunStep = Message<\"tenki.sandbox.v1.TemplateRunStep\"> & {\n  /**\n   * Keep parity with the unbounded legacy setup_script field used to synthesize this step.\n   *\n   * @generated from field: string command = 1;\n   */\n  command: string;\n\n  /**\n   * @generated from field: repeated string argv = 2;\n   */\n  argv: string[];\n\n  /**\n   * @generated from field: string workdir = 3;\n   */\n  workdir: string;\n\n  /**\n   * @generated from field: uint32 timeout_seconds = 4;\n   */\n  timeoutSeconds: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateRunStep.\n * Use `create(TemplateRunStepSchema)` to create a new message.\n */\nexport const TemplateRunStepSchema: GenMessage<TemplateRunStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 9);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateCopyStep\n */\nexport type TemplateCopyStep = Message<\"tenki.sandbox.v1.TemplateCopyStep\"> & {\n  /**\n   * @generated from field: string src = 1;\n   */\n  src: string;\n\n  /**\n   * @generated from field: string dest = 2;\n   */\n  dest: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateCopyStep.\n * Use `create(TemplateCopyStepSchema)` to create a new message.\n */\nexport const TemplateCopyStepSchema: GenMessage<TemplateCopyStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 10);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateWriteFileStep\n */\nexport type TemplateWriteFileStep = Message<\"tenki.sandbox.v1.TemplateWriteFileStep\"> & {\n  /**\n   * @generated from field: string path = 1;\n   */\n  path: string;\n\n  /**\n   * @generated from field: bytes content = 2;\n   */\n  content: Uint8Array;\n\n  /**\n   * @generated from field: optional uint32 mode = 3;\n   */\n  mode?: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateWriteFileStep.\n * Use `create(TemplateWriteFileStepSchema)` to create a new message.\n */\nexport const TemplateWriteFileStepSchema: GenMessage<TemplateWriteFileStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 11);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateMakeDirStep\n */\nexport type TemplateMakeDirStep = Message<\"tenki.sandbox.v1.TemplateMakeDirStep\"> & {\n  /**\n   * @generated from field: string path = 1;\n   */\n  path: string;\n\n  /**\n   * @generated from field: bool parents = 2;\n   */\n  parents: boolean;\n\n  /**\n   * @generated from field: optional uint32 mode = 3;\n   */\n  mode?: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateMakeDirStep.\n * Use `create(TemplateMakeDirStepSchema)` to create a new message.\n */\nexport const TemplateMakeDirStepSchema: GenMessage<TemplateMakeDirStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 12);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateRemoveStep\n */\nexport type TemplateRemoveStep = Message<\"tenki.sandbox.v1.TemplateRemoveStep\"> & {\n  /**\n   * @generated from field: string path = 1;\n   */\n  path: string;\n\n  /**\n   * @generated from field: bool recursive = 2;\n   */\n  recursive: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateRemoveStep.\n * Use `create(TemplateRemoveStepSchema)` to create a new message.\n */\nexport const TemplateRemoveStepSchema: GenMessage<TemplateRemoveStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 13);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateRenameStep\n */\nexport type TemplateRenameStep = Message<\"tenki.sandbox.v1.TemplateRenameStep\"> & {\n  /**\n   * @generated from field: string src = 1;\n   */\n  src: string;\n\n  /**\n   * @generated from field: string dest = 2;\n   */\n  dest: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateRenameStep.\n * Use `create(TemplateRenameStepSchema)` to create a new message.\n */\nexport const TemplateRenameStepSchema: GenMessage<TemplateRenameStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 14);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateSymlinkStep\n */\nexport type TemplateSymlinkStep = Message<\"tenki.sandbox.v1.TemplateSymlinkStep\"> & {\n  /**\n   * @generated from field: string target = 1;\n   */\n  target: string;\n\n  /**\n   * @generated from field: string path = 2;\n   */\n  path: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateSymlinkStep.\n * Use `create(TemplateSymlinkStepSchema)` to create a new message.\n */\nexport const TemplateSymlinkStepSchema: GenMessage<TemplateSymlinkStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 15);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplatePackageStep\n */\nexport type TemplatePackageStep = Message<\"tenki.sandbox.v1.TemplatePackageStep\"> & {\n  /**\n   * @generated from field: repeated string packages = 1;\n   */\n  packages: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplatePackageStep.\n * Use `create(TemplatePackageStepSchema)` to create a new message.\n */\nexport const TemplatePackageStepSchema: GenMessage<TemplatePackageStep> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 16);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateRuntime\n */\nexport type TemplateRuntime = Message<\"tenki.sandbox.v1.TemplateRuntime\"> & {\n  /**\n   * @generated from field: repeated string secret_policies = 12;\n   */\n  secretPolicies: string[];\n\n  /**\n   * Keep parity with the unbounded legacy env_vars field used to synthesize this runtime.\n   *\n   * @generated from field: map<string, string> env = 1;\n   */\n  env: { [key: string]: string };\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateRuntimeRunAt run_at = 2;\n   */\n  runAt: TemplateRuntimeRunAt;\n\n  /**\n   * @generated from oneof tenki.sandbox.v1.TemplateRuntime.entrypoint\n   */\n  entrypoint: {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateStartRuntime start = 3;\n     */\n    value: TemplateStartRuntime;\n    case: \"start\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateProcessComposeRuntime process_compose = 4;\n     */\n    value: TemplateProcessComposeRuntime;\n    case: \"processCompose\";\n  } | { case: undefined; value?: undefined };\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateRestartPolicy restart_policy = 5;\n   */\n  restartPolicy: TemplateRestartPolicy;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateSnapshotMode snapshot_mode = 6;\n   */\n  snapshotMode: TemplateSnapshotMode;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateSnapshotWhen ready_when = 7;\n   */\n  readyWhen?: TemplateSnapshotWhen;\n\n  /**\n   * @generated from field: uint32 stop_grace_seconds = 8;\n   */\n  stopGraceSeconds: number;\n\n  /**\n   * Environment target to secret name, resolved in the launching workspace.\n   *\n   * @generated from field: map<string, string> secret_env = 9;\n   */\n  secretEnv: { [key: string]: string };\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.RuntimeSecretFile secret_files = 10;\n   */\n  secretFiles: RuntimeSecretFile[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateRuntime.\n * Use `create(TemplateRuntimeSchema)` to create a new message.\n */\nexport const TemplateRuntimeSchema: GenMessage<TemplateRuntime> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 17);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateStartRuntime\n */\nexport type TemplateStartRuntime = Message<\"tenki.sandbox.v1.TemplateStartRuntime\"> & {\n  /**\n   * Keep parity with the unbounded legacy start_cmd field used to synthesize this runtime.\n   *\n   * @generated from field: string command = 1;\n   */\n  command: string;\n\n  /**\n   * @generated from field: repeated string argv = 2;\n   */\n  argv: string[];\n\n  /**\n   * @generated from field: string workdir = 3;\n   */\n  workdir: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateStartRuntime.\n * Use `create(TemplateStartRuntimeSchema)` to create a new message.\n */\nexport const TemplateStartRuntimeSchema: GenMessage<TemplateStartRuntime> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 18);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateProcessComposeRuntime\n */\nexport type TemplateProcessComposeRuntime = Message<\"tenki.sandbox.v1.TemplateProcessComposeRuntime\"> & {\n  /**\n   * @generated from field: string config_path = 1;\n   */\n  configPath: string;\n\n  /**\n   * @generated from field: string workdir = 2;\n   */\n  workdir: string;\n\n  /**\n   * @generated from field: repeated string env_files = 3;\n   */\n  envFiles: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateProcessComposeRuntime.\n * Use `create(TemplateProcessComposeRuntimeSchema)` to create a new message.\n */\nexport const TemplateProcessComposeRuntimeSchema: GenMessage<TemplateProcessComposeRuntime> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 19);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateSnapshotWhen\n */\nexport type TemplateSnapshotWhen = Message<\"tenki.sandbox.v1.TemplateSnapshotWhen\"> & {\n  /**\n   * @generated from field: uint32 timeout_seconds = 1;\n   */\n  timeoutSeconds: number;\n\n  /**\n   * @generated from field: uint32 poll_interval_seconds = 2;\n   */\n  pollIntervalSeconds: number;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateSnapshotCheck checks = 3;\n   */\n  checks: TemplateSnapshotCheck[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateSnapshotWhen.\n * Use `create(TemplateSnapshotWhenSchema)` to create a new message.\n */\nexport const TemplateSnapshotWhenSchema: GenMessage<TemplateSnapshotWhen> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 20);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateSnapshotCheck\n */\nexport type TemplateSnapshotCheck = Message<\"tenki.sandbox.v1.TemplateSnapshotCheck\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.TemplateSnapshotCheck.check\n   */\n  check: {\n    /**\n     * @generated from field: uint32 port = 1;\n     */\n    value: number;\n    case: \"port\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateHTTPReadyCheck http = 2;\n     */\n    value: TemplateHTTPReadyCheck;\n    case: \"http\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateExecReadyCheck exec = 3;\n     */\n    value: TemplateExecReadyCheck;\n    case: \"exec\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateSnapshotCheck.\n * Use `create(TemplateSnapshotCheckSchema)` to create a new message.\n */\nexport const TemplateSnapshotCheckSchema: GenMessage<TemplateSnapshotCheck> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 21);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateHTTPReadyCheck\n */\nexport type TemplateHTTPReadyCheck = Message<\"tenki.sandbox.v1.TemplateHTTPReadyCheck\"> & {\n  /**\n   * @generated from field: string url = 1;\n   */\n  url: string;\n\n  /**\n   * @generated from field: repeated uint32 success_status_codes = 2;\n   */\n  successStatusCodes: number[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateHTTPReadyCheck.\n * Use `create(TemplateHTTPReadyCheckSchema)` to create a new message.\n */\nexport const TemplateHTTPReadyCheckSchema: GenMessage<TemplateHTTPReadyCheck> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 22);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateExecReadyCheck\n */\nexport type TemplateExecReadyCheck = Message<\"tenki.sandbox.v1.TemplateExecReadyCheck\"> & {\n  /**\n   * @generated from field: string command = 1;\n   */\n  command: string;\n\n  /**\n   * @generated from field: repeated string argv = 2;\n   */\n  argv: string[];\n\n  /**\n   * @generated from field: uint32 timeout_seconds = 3;\n   */\n  timeoutSeconds: number;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateExecReadyCheck.\n * Use `create(TemplateExecReadyCheckSchema)` to create a new message.\n */\nexport const TemplateExecReadyCheckSchema: GenMessage<TemplateExecReadyCheck> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 23);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuild\n */\nexport type TemplateBuild = Message<\"tenki.sandbox.v1.TemplateBuild\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string template_id = 2;\n   */\n  templateId: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildState state = 3;\n   */\n  state: TemplateBuildState;\n\n  /**\n   * @generated from field: int32 version = 4;\n   */\n  version: number;\n\n  /**\n   * @generated from field: optional string error = 5;\n   */\n  error?: string;\n\n  /**\n   * @generated from field: optional string build_log_tail = 6;\n   */\n  buildLogTail?: string;\n\n  /**\n   * @generated from field: bool build_log_truncated = 7;\n   */\n  buildLogTruncated: boolean;\n\n  /**\n   * @generated from field: optional string build_log_artifact_id = 8;\n   */\n  buildLogArtifactId?: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp started_at = 9;\n   */\n  startedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp completed_at = 10;\n   */\n  completedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string snapshot_id = 11;\n   */\n  snapshotId?: string;\n\n  /**\n   * @generated from field: optional string session_id = 12;\n   */\n  sessionId?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildSpec builder_spec = 13;\n   */\n  builderSpec?: TemplateBuildSpec;\n\n  /**\n   * @generated from field: optional string spec_hash = 14;\n   */\n  specHash?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.RegistryImage image = 15;\n   */\n  image?: RegistryImage;\n\n  /**\n   * @generated from field: optional string image_digest = 16;\n   */\n  imageDigest?: string;\n\n  /**\n   * @generated from field: optional string image_digest_ref = 17;\n   */\n  imageDigestRef?: string;\n\n  /**\n   * @generated from field: optional string legacy_ref = 18 [deprecated = true];\n   * @deprecated\n   */\n  legacyRef?: string;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateBuildEvent events = 19;\n   */\n  events: TemplateBuildEvent[];\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildProvenance provenance = 20;\n   */\n  provenance?: TemplateBuildProvenance;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildFailure failure = 21;\n   */\n  failure?: TemplateBuildFailure;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuild.\n * Use `create(TemplateBuildSchema)` to create a new message.\n */\nexport const TemplateBuildSchema: GenMessage<TemplateBuild> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 24);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildStepReference\n */\nexport type TemplateBuildStepReference = Message<\"tenki.sandbox.v1.TemplateBuildStepReference\"> & {\n  /**\n   * @generated from field: int32 index = 1;\n   */\n  index: number;\n\n  /**\n   * @generated from field: string kind = 2;\n   */\n  kind: string;\n\n  /**\n   * @generated from field: optional string name = 3;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: string label = 4;\n   */\n  label: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildStepReference.\n * Use `create(TemplateBuildStepReferenceSchema)` to create a new message.\n */\nexport const TemplateBuildStepReferenceSchema: GenMessage<TemplateBuildStepReference> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 25);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildLogEvent\n */\nexport type TemplateBuildLogEvent = Message<\"tenki.sandbox.v1.TemplateBuildLogEvent\"> & {\n  /**\n   * @generated from field: google.protobuf.Timestamp timestamp = 1;\n   */\n  timestamp?: Timestamp;\n\n  /**\n   * @generated from field: string phase = 2;\n   */\n  phase: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildStepReference step = 3;\n   */\n  step?: TemplateBuildStepReference;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildLogStream stream = 4;\n   */\n  stream: TemplateBuildLogStream;\n\n  /**\n   * @generated from field: string data = 5;\n   */\n  data: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildLogEvent.\n * Use `create(TemplateBuildLogEventSchema)` to create a new message.\n */\nexport const TemplateBuildLogEventSchema: GenMessage<TemplateBuildLogEvent> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 26);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildProgressEvent\n */\nexport type TemplateBuildProgressEvent = Message<\"tenki.sandbox.v1.TemplateBuildProgressEvent\"> & {\n  /**\n   * @generated from field: google.protobuf.Timestamp timestamp = 1;\n   */\n  timestamp?: Timestamp;\n\n  /**\n   * @generated from field: string phase = 2;\n   */\n  phase: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildStepReference step = 3;\n   */\n  step?: TemplateBuildStepReference;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildProgressState state = 4;\n   */\n  state: TemplateBuildProgressState;\n\n  /**\n   * @generated from field: optional string message = 5;\n   */\n  message?: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildProgressEvent.\n * Use `create(TemplateBuildProgressEventSchema)` to create a new message.\n */\nexport const TemplateBuildProgressEventSchema: GenMessage<TemplateBuildProgressEvent> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 27);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildEvent\n */\nexport type TemplateBuildEvent = Message<\"tenki.sandbox.v1.TemplateBuildEvent\"> & {\n  /**\n   * @generated from oneof tenki.sandbox.v1.TemplateBuildEvent.event\n   */\n  event: {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateBuildLogEvent log = 1;\n     */\n    value: TemplateBuildLogEvent;\n    case: \"log\";\n  } | {\n    /**\n     * @generated from field: tenki.sandbox.v1.TemplateBuildProgressEvent progress = 2;\n     */\n    value: TemplateBuildProgressEvent;\n    case: \"progress\";\n  } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildEvent.\n * Use `create(TemplateBuildEventSchema)` to create a new message.\n */\nexport const TemplateBuildEventSchema: GenMessage<TemplateBuildEvent> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 28);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildProvenance\n */\nexport type TemplateBuildProvenance = Message<\"tenki.sandbox.v1.TemplateBuildProvenance\"> & {\n  /**\n   * @generated from field: optional string requested_git_ref = 1;\n   */\n  requestedGitRef?: string;\n\n  /**\n   * @generated from field: optional string resolved_git_commit_sha = 2;\n   */\n  resolvedGitCommitSha?: string;\n\n  /**\n   * @generated from field: repeated string build_secret_keys = 3;\n   */\n  buildSecretKeys: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildProvenance.\n * Use `create(TemplateBuildProvenanceSchema)` to create a new message.\n */\nexport const TemplateBuildProvenanceSchema: GenMessage<TemplateBuildProvenance> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 29);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateBuildFailure\n */\nexport type TemplateBuildFailure = Message<\"tenki.sandbox.v1.TemplateBuildFailure\"> & {\n  /**\n   * @generated from field: string code = 1;\n   */\n  code: string;\n\n  /**\n   * @generated from field: string message = 2;\n   */\n  message: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildStepReference step = 3;\n   */\n  step?: TemplateBuildStepReference;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildFailure.\n * Use `create(TemplateBuildFailureSchema)` to create a new message.\n */\nexport const TemplateBuildFailureSchema: GenMessage<TemplateBuildFailure> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 30);\n\n/**\n * @generated from message tenki.sandbox.v1.Template\n */\nexport type Template = Message<\"tenki.sandbox.v1.Template\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string owner_type = 3;\n   */\n  ownerType: string;\n\n  /**\n   * @generated from field: string owner_id = 4;\n   */\n  ownerId: string;\n\n  /**\n   * @generated from field: string name = 5;\n   */\n  name: string;\n\n  /**\n   * @generated from field: string base_image_id = 6;\n   */\n  baseImageId: string;\n\n  /**\n   * @generated from field: string setup_script = 7;\n   */\n  setupScript: string;\n\n  /**\n   * @generated from field: optional string start_cmd = 8;\n   */\n  startCmd?: string;\n\n  /**\n   * @generated from field: map<string, string> env_vars = 9;\n   */\n  envVars: { [key: string]: string };\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateResources resources = 10;\n   */\n  resources?: TemplateResources;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuild latest_build = 11;\n   */\n  latestBuild?: TemplateBuild;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 12;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 13;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: repeated string tags = 15;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateVisibility visibility = 16;\n   */\n  visibility: TemplateVisibility;\n\n  /**\n   * @generated from field: optional string parent_workspace_id = 17;\n   */\n  parentWorkspaceId?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildSpec builder_spec = 18;\n   */\n  builderSpec?: TemplateBuildSpec;\n\n  /**\n   * @generated from field: optional string spec_hash = 19;\n   */\n  specHash?: string;\n\n  /**\n   * Identifies the stored template definition. builder_spec is populated for\n   * both modes because legacy definitions are normalized into typed specs.\n   *\n   * @generated from field: tenki.sandbox.v1.TemplateDefinitionMode definition_mode = 20;\n   */\n  definitionMode: TemplateDefinitionMode;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildStorage build_storage = 21;\n   */\n  buildStorage?: TemplateBuildStorage;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.Template.\n * Use `create(TemplateSchema)` to create a new message.\n */\nexport const TemplateSchema: GenMessage<Template> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 31);\n\n/**\n * What a template's builds hold in workspace storage; publishing adds nothing.\n *\n * @generated from message tenki.sandbox.v1.TemplateBuildStorage\n */\nexport type TemplateBuildStorage = Message<\"tenki.sandbox.v1.TemplateBuildStorage\"> & {\n  /**\n   * @generated from field: int64 total_bytes = 1;\n   */\n  totalBytes: bigint;\n\n  /**\n   * @generated from field: int32 build_count = 2;\n   */\n  buildCount: number;\n\n  /**\n   * What a template delete would leave behind: all of it while any build is published.\n   *\n   * @generated from field: int64 retained_bytes = 3;\n   */\n  retainedBytes: bigint;\n\n  /**\n   * The build versions holding it, ascending, so a warning can name them.\n   *\n   * @generated from field: repeated int32 retained_versions = 4;\n   */\n  retainedVersions: number[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildStorage.\n * Use `create(TemplateBuildStorageSchema)` to create a new message.\n */\nexport const TemplateBuildStorageSchema: GenMessage<TemplateBuildStorage> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 32);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateTemplateRequest\n */\nexport type CreateTemplateRequest = Message<\"tenki.sandbox.v1.CreateTemplateRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 2;\n   */\n  name: string;\n\n  /**\n   * @generated from field: string base_image_id = 3;\n   */\n  baseImageId: string;\n\n  /**\n   * @generated from field: string setup_script = 4;\n   */\n  setupScript: string;\n\n  /**\n   * @generated from field: optional string start_cmd = 5;\n   */\n  startCmd?: string;\n\n  /**\n   * @generated from field: map<string, string> env_vars = 6;\n   */\n  envVars: { [key: string]: string };\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateResources resources = 7;\n   */\n  resources?: TemplateResources;\n\n  /**\n   * @generated from field: repeated string tags = 9;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: optional string parent_template_id = 10;\n   */\n  parentTemplateId?: string;\n\n  /**\n   * @generated from field: optional string parent_image = 11;\n   */\n  parentImage?: string;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildSpec builder_spec = 12;\n   */\n  builderSpec?: TemplateBuildSpec;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateTemplateRequest.\n * Use `create(CreateTemplateRequestSchema)` to create a new message.\n */\nexport const CreateTemplateRequestSchema: GenMessage<CreateTemplateRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 33);\n\n/**\n * @generated from message tenki.sandbox.v1.CreateTemplateResponse\n */\nexport type CreateTemplateResponse = Message<\"tenki.sandbox.v1.CreateTemplateResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Template template = 1;\n   */\n  template?: Template;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateWarning warnings = 2;\n   */\n  warnings: TemplateWarning[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CreateTemplateResponse.\n * Use `create(CreateTemplateResponseSchema)` to create a new message.\n */\nexport const CreateTemplateResponseSchema: GenMessage<CreateTemplateResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 34);\n\n/**\n * @generated from message tenki.sandbox.v1.GetTemplateRequest\n */\nexport type GetTemplateRequest = Message<\"tenki.sandbox.v1.GetTemplateRequest\"> & {\n  /**\n   * @generated from field: string template_id = 1;\n   */\n  templateId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetTemplateRequest.\n * Use `create(GetTemplateRequestSchema)` to create a new message.\n */\nexport const GetTemplateRequestSchema: GenMessage<GetTemplateRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 35);\n\n/**\n * @generated from message tenki.sandbox.v1.GetTemplateResponse\n */\nexport type GetTemplateResponse = Message<\"tenki.sandbox.v1.GetTemplateResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Template template = 1;\n   */\n  template?: Template;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetTemplateResponse.\n * Use `create(GetTemplateResponseSchema)` to create a new message.\n */\nexport const GetTemplateResponseSchema: GenMessage<GetTemplateResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 36);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTemplatesRequest\n */\nexport type ListTemplatesRequest = Message<\"tenki.sandbox.v1.ListTemplatesRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: int32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string page_token = 3;\n   */\n  pageToken: string;\n\n  /**\n   * @generated from field: repeated string tags = 4;\n   */\n  tags: string[];\n\n  /**\n   * Matches name, id, the shown build's id, and published image name or ref.\n   *\n   * @generated from field: string search = 5;\n   */\n  search: string;\n\n  /**\n   * Any of these; empty means no filter.\n   *\n   * @generated from field: repeated tenki.sandbox.v1.TemplateListState states = 6;\n   */\n  states: TemplateListState[];\n\n  /**\n   * Also return facets for the same search.\n   *\n   * @generated from field: bool include_facets = 7;\n   */\n  includeFacets: boolean;\n\n  /**\n   * A column sort; unspecified means newest first.\n   *\n   * @generated from field: tenki.sandbox.v1.TemplateSortField sort_by = 8;\n   */\n  sortBy: TemplateSortField;\n\n  /**\n   * @generated from field: bool sort_desc = 9;\n   */\n  sortDesc: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTemplatesRequest.\n * Use `create(ListTemplatesRequestSchema)` to create a new message.\n */\nexport const ListTemplatesRequestSchema: GenMessage<ListTemplatesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 37);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTemplatesResponse\n */\nexport type ListTemplatesResponse = Message<\"tenki.sandbox.v1.ListTemplatesResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.Template templates = 1;\n   */\n  templates: Template[];\n\n  /**\n   * @generated from field: string next_page_token = 2;\n   */\n  nextPageToken: string;\n\n  /**\n   * @generated from field: optional tenki.sandbox.v1.TemplateListFacets facets = 3;\n   */\n  facets?: TemplateListFacets;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTemplatesResponse.\n * Use `create(ListTemplatesResponseSchema)` to create a new message.\n */\nexport const ListTemplatesResponseSchema: GenMessage<ListTemplatesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 38);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateListStateCount\n */\nexport type TemplateListStateCount = Message<\"tenki.sandbox.v1.TemplateListStateCount\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateListState state = 1;\n   */\n  state: TemplateListState;\n\n  /**\n   * @generated from field: int64 count = 2;\n   */\n  count: bigint;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateListStateCount.\n * Use `create(TemplateListStateCountSchema)` to create a new message.\n */\nexport const TemplateListStateCountSchema: GenMessage<TemplateListStateCount> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 39);\n\n/**\n * Counts ignore `states`, so each option shows what it would yield.\n *\n * @generated from message tenki.sandbox.v1.TemplateListFacets\n */\nexport type TemplateListFacets = Message<\"tenki.sandbox.v1.TemplateListFacets\"> & {\n  /**\n   * @generated from field: int64 total = 1;\n   */\n  total: bigint;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateListStateCount state_counts = 2;\n   */\n  stateCounts: TemplateListStateCount[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateListFacets.\n * Use `create(TemplateListFacetsSchema)` to create a new message.\n */\nexport const TemplateListFacetsSchema: GenMessage<TemplateListFacets> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 40);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateTemplateRequest\n */\nexport type UpdateTemplateRequest = Message<\"tenki.sandbox.v1.UpdateTemplateRequest\"> & {\n  /**\n   * @generated from field: string template_id = 1;\n   */\n  templateId: string;\n\n  /**\n   * @generated from field: optional string name = 2;\n   */\n  name?: string;\n\n  /**\n   * @generated from field: optional string base_image_id = 3;\n   */\n  baseImageId?: string;\n\n  /**\n   * @generated from field: optional string setup_script = 4;\n   */\n  setupScript?: string;\n\n  /**\n   * @generated from field: optional string start_cmd = 5;\n   */\n  startCmd?: string;\n\n  /**\n   * @generated from field: map<string, string> env_vars = 6;\n   */\n  envVars: { [key: string]: string };\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateResources resources = 7;\n   */\n  resources?: TemplateResources;\n\n  /**\n   * @generated from field: repeated string tags = 8;\n   */\n  tags: string[];\n\n  /**\n   * @generated from field: bool clear_tags = 9;\n   */\n  clearTags: boolean;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildSpec builder_spec = 10;\n   */\n  builderSpec?: TemplateBuildSpec;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateTemplateRequest.\n * Use `create(UpdateTemplateRequestSchema)` to create a new message.\n */\nexport const UpdateTemplateRequestSchema: GenMessage<UpdateTemplateRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 41);\n\n/**\n * @generated from message tenki.sandbox.v1.UpdateTemplateResponse\n */\nexport type UpdateTemplateResponse = Message<\"tenki.sandbox.v1.UpdateTemplateResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Template template = 1;\n   */\n  template?: Template;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateWarning warnings = 2;\n   */\n  warnings: TemplateWarning[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.UpdateTemplateResponse.\n * Use `create(UpdateTemplateResponseSchema)` to create a new message.\n */\nexport const UpdateTemplateResponseSchema: GenMessage<UpdateTemplateResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 42);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteTemplateRequest\n */\nexport type DeleteTemplateRequest = Message<\"tenki.sandbox.v1.DeleteTemplateRequest\"> & {\n  /**\n   * @generated from field: string template_id = 1;\n   */\n  templateId: string;\n\n  /**\n   * @generated from field: bool force = 2;\n   */\n  force: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteTemplateRequest.\n * Use `create(DeleteTemplateRequestSchema)` to create a new message.\n */\nexport const DeleteTemplateRequestSchema: GenMessage<DeleteTemplateRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 43);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteTemplateResponse\n */\nexport type DeleteTemplateResponse = Message<\"tenki.sandbox.v1.DeleteTemplateResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.Template template = 1;\n   */\n  template?: Template;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteTemplateResponse.\n * Use `create(DeleteTemplateResponseSchema)` to create a new message.\n */\nexport const DeleteTemplateResponseSchema: GenMessage<DeleteTemplateResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 44);\n\n/**\n * @generated from message tenki.sandbox.v1.BuildTemplateRequest\n */\nexport type BuildTemplateRequest = Message<\"tenki.sandbox.v1.BuildTemplateRequest\"> & {\n  /**\n   * @generated from field: string template_id = 1;\n   */\n  templateId: string;\n\n  /**\n   * Per-build override for publishing the raw rootfs image alongside the build snapshot. Unset defers to engine config; an explicit value still requires the fleet kill-switch to be enabled.\n   *\n   * @generated from field: optional bool publish_raw_image = 2;\n   */\n  publishRawImage?: boolean;\n\n  /**\n   * @generated from field: optional string image_name = 3;\n   */\n  imageName?: string;\n\n  /**\n   * @generated from field: map<string, string> build_secrets = 4;\n   */\n  buildSecrets: { [key: string]: string };\n\n  /**\n   * Per-build environment overrides frozen into this build without mutating the template.\n   *\n   * @generated from field: map<string, string> build_env = 5;\n   */\n  buildEnv: { [key: string]: string };\n};\n\n/**\n * Describes the message tenki.sandbox.v1.BuildTemplateRequest.\n * Use `create(BuildTemplateRequestSchema)` to create a new message.\n */\nexport const BuildTemplateRequestSchema: GenMessage<BuildTemplateRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 45);\n\n/**\n * @generated from message tenki.sandbox.v1.BuildTemplateResponse\n */\nexport type BuildTemplateResponse = Message<\"tenki.sandbox.v1.BuildTemplateResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuild build = 1;\n   */\n  build?: TemplateBuild;\n\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateWarning warnings = 2;\n   */\n  warnings: TemplateWarning[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.BuildTemplateResponse.\n * Use `create(BuildTemplateResponseSchema)` to create a new message.\n */\nexport const BuildTemplateResponseSchema: GenMessage<BuildTemplateResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 46);\n\n/**\n * @generated from message tenki.sandbox.v1.TemplateWarning\n */\nexport type TemplateWarning = Message<\"tenki.sandbox.v1.TemplateWarning\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateWarningCode code = 1;\n   */\n  code: TemplateWarningCode;\n\n  /**\n   * @generated from field: string message = 2;\n   */\n  message: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateWarning.\n * Use `create(TemplateWarningSchema)` to create a new message.\n */\nexport const TemplateWarningSchema: GenMessage<TemplateWarning> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 47);\n\n/**\n * @generated from message tenki.sandbox.v1.CancelTemplateBuildRequest\n */\nexport type CancelTemplateBuildRequest = Message<\"tenki.sandbox.v1.CancelTemplateBuildRequest\"> & {\n  /**\n   * @generated from field: string build_id = 1;\n   */\n  buildId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CancelTemplateBuildRequest.\n * Use `create(CancelTemplateBuildRequestSchema)` to create a new message.\n */\nexport const CancelTemplateBuildRequestSchema: GenMessage<CancelTemplateBuildRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 48);\n\n/**\n * @generated from message tenki.sandbox.v1.CancelTemplateBuildResponse\n */\nexport type CancelTemplateBuildResponse = Message<\"tenki.sandbox.v1.CancelTemplateBuildResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuild build = 1;\n   */\n  build?: TemplateBuild;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.CancelTemplateBuildResponse.\n * Use `create(CancelTemplateBuildResponseSchema)` to create a new message.\n */\nexport const CancelTemplateBuildResponseSchema: GenMessage<CancelTemplateBuildResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 49);\n\n/**\n * @generated from message tenki.sandbox.v1.GetTemplateBuildRequest\n */\nexport type GetTemplateBuildRequest = Message<\"tenki.sandbox.v1.GetTemplateBuildRequest\"> & {\n  /**\n   * @generated from field: string build_id = 1;\n   */\n  buildId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetTemplateBuildRequest.\n * Use `create(GetTemplateBuildRequestSchema)` to create a new message.\n */\nexport const GetTemplateBuildRequestSchema: GenMessage<GetTemplateBuildRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 50);\n\n/**\n * @generated from message tenki.sandbox.v1.GetTemplateBuildResponse\n */\nexport type GetTemplateBuildResponse = Message<\"tenki.sandbox.v1.GetTemplateBuildResponse\"> & {\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuild build = 1;\n   */\n  build?: TemplateBuild;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.GetTemplateBuildResponse.\n * Use `create(GetTemplateBuildResponseSchema)` to create a new message.\n */\nexport const GetTemplateBuildResponseSchema: GenMessage<GetTemplateBuildResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 51);\n\n/**\n * @generated from message tenki.sandbox.v1.ListActiveTemplateBuildsRequest\n */\nexport type ListActiveTemplateBuildsRequest = Message<\"tenki.sandbox.v1.ListActiveTemplateBuildsRequest\"> & {\n  /**\n   * @generated from field: string template_id = 1;\n   */\n  templateId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListActiveTemplateBuildsRequest.\n * Use `create(ListActiveTemplateBuildsRequestSchema)` to create a new message.\n */\nexport const ListActiveTemplateBuildsRequestSchema: GenMessage<ListActiveTemplateBuildsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 52);\n\n/**\n * @generated from message tenki.sandbox.v1.ListActiveTemplateBuildsResponse\n */\nexport type ListActiveTemplateBuildsResponse = Message<\"tenki.sandbox.v1.ListActiveTemplateBuildsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateBuild builds = 1;\n   */\n  builds: TemplateBuild[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListActiveTemplateBuildsResponse.\n * Use `create(ListActiveTemplateBuildsResponseSchema)` to create a new message.\n */\nexport const ListActiveTemplateBuildsResponseSchema: GenMessage<ListActiveTemplateBuildsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 53);\n\n/**\n * One build of a template, and what its image holds against workspace storage.\n *\n * @generated from message tenki.sandbox.v1.TemplateBuildEntry\n */\nexport type TemplateBuildEntry = Message<\"tenki.sandbox.v1.TemplateBuildEntry\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: int32 version = 2;\n   */\n  version: number;\n\n  /**\n   * @generated from field: tenki.sandbox.v1.TemplateBuildState state = 3;\n   */\n  state: TemplateBuildState;\n\n  /**\n   * @generated from field: optional string snapshot_id = 4;\n   */\n  snapshotId?: string;\n\n  /**\n   * @generated from field: int64 image_bytes = 5;\n   */\n  imageBytes: bigint;\n\n  /**\n   * @generated from field: bool is_current = 6;\n   */\n  isCurrent: boolean;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp started_at = 8;\n   */\n  startedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp completed_at = 9;\n   */\n  completedAt?: Timestamp;\n\n  /**\n   * @generated from field: optional string error = 10;\n   */\n  error?: string;\n\n  /**\n   * Why the image can't be deleted (e.g. published, in_use, registry_tag); empty when it can.\n   *\n   * @generated from field: string delete_blocked_reason = 11;\n   */\n  deleteBlockedReason: string;\n\n  /**\n   * Registry image with this build's version, removed with the build; empty if never published.\n   *\n   * @generated from field: string registry_image_name = 12;\n   */\n  registryImageName: string;\n\n  /**\n   * Ready with a live image: what the server promotes when the current build goes.\n   *\n   * @generated from field: bool is_launchable = 13;\n   */\n  isLaunchable: boolean;\n\n  /**\n   * Deleted, but the image is still being removed; the row goes once it is.\n   *\n   * @generated from field: bool cleanup_pending = 14;\n   */\n  cleanupPending: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.TemplateBuildEntry.\n * Use `create(TemplateBuildEntrySchema)` to create a new message.\n */\nexport const TemplateBuildEntrySchema: GenMessage<TemplateBuildEntry> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 54);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTemplateBuildsRequest\n */\nexport type ListTemplateBuildsRequest = Message<\"tenki.sandbox.v1.ListTemplateBuildsRequest\"> & {\n  /**\n   * @generated from field: string template_id = 1;\n   */\n  templateId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTemplateBuildsRequest.\n * Use `create(ListTemplateBuildsRequestSchema)` to create a new message.\n */\nexport const ListTemplateBuildsRequestSchema: GenMessage<ListTemplateBuildsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 55);\n\n/**\n * @generated from message tenki.sandbox.v1.ListTemplateBuildsResponse\n */\nexport type ListTemplateBuildsResponse = Message<\"tenki.sandbox.v1.ListTemplateBuildsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.TemplateBuildEntry builds = 1;\n   */\n  builds: TemplateBuildEntry[];\n\n  /**\n   * Same figure the Templates table shows, so the sheet cannot disagree with it.\n   *\n   * @generated from field: tenki.sandbox.v1.TemplateBuildStorage storage = 2;\n   */\n  storage?: TemplateBuildStorage;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListTemplateBuildsResponse.\n * Use `create(ListTemplateBuildsResponseSchema)` to create a new message.\n */\nexport const ListTemplateBuildsResponseSchema: GenMessage<ListTemplateBuildsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 56);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteTemplateBuildRequest\n */\nexport type DeleteTemplateBuildRequest = Message<\"tenki.sandbox.v1.DeleteTemplateBuildRequest\"> & {\n  /**\n   * @generated from field: string build_id = 1;\n   */\n  buildId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteTemplateBuildRequest.\n * Use `create(DeleteTemplateBuildRequestSchema)` to create a new message.\n */\nexport const DeleteTemplateBuildRequestSchema: GenMessage<DeleteTemplateBuildRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 57);\n\n/**\n * @generated from message tenki.sandbox.v1.DeleteTemplateBuildResponse\n */\nexport type DeleteTemplateBuildResponse = Message<\"tenki.sandbox.v1.DeleteTemplateBuildResponse\"> & {\n  /**\n   * @generated from field: string build_id = 1;\n   */\n  buildId: string;\n\n  /**\n   * @generated from field: int64 freed_bytes = 2;\n   */\n  freedBytes: bigint;\n\n  /**\n   * The image could not be removed yet; the row stays until cleanup finishes.\n   *\n   * @generated from field: bool cleanup_pending = 3;\n   */\n  cleanupPending: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.DeleteTemplateBuildResponse.\n * Use `create(DeleteTemplateBuildResponseSchema)` to create a new message.\n */\nexport const DeleteTemplateBuildResponseSchema: GenMessage<DeleteTemplateBuildResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_template, 58);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateBuildState\n */\nexport enum TemplateBuildState {\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_STATE_PENDING = 1;\n   */\n  PENDING = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_STATE_BUILDING = 2;\n   */\n  BUILDING = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_STATE_READY = 3;\n   */\n  READY = 3,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_STATE_FAILED = 4;\n   */\n  FAILED = 4,\n\n  /**\n   * Retired by a workspace member; kept for history, never listed.\n   *\n   * @generated from enum value: TEMPLATE_BUILD_STATE_DELETED = 5;\n   */\n  DELETED = 5,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateBuildState.\n */\nexport const TemplateBuildStateSchema: GenEnum<TemplateBuildState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 0);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateVisibility\n */\nexport enum TemplateVisibility {\n  /**\n   * @generated from enum value: TEMPLATE_VISIBILITY_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_VISIBILITY_PRIVATE = 1;\n   */\n  PRIVATE = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_VISIBILITY_PUBLIC = 2;\n   */\n  PUBLIC = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateVisibility.\n */\nexport const TemplateVisibilitySchema: GenEnum<TemplateVisibility> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 1);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateDefinitionMode\n */\nexport enum TemplateDefinitionMode {\n  /**\n   * @generated from enum value: TEMPLATE_DEFINITION_MODE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_DEFINITION_MODE_LEGACY = 1;\n   */\n  LEGACY = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_DEFINITION_MODE_TYPED = 2;\n   */\n  TYPED = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateDefinitionMode.\n */\nexport const TemplateDefinitionModeSchema: GenEnum<TemplateDefinitionMode> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 2);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateCheckoutMode\n */\nexport enum TemplateCheckoutMode {\n  /**\n   * @generated from enum value: TEMPLATE_CHECKOUT_MODE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_CHECKOUT_MODE_CONTENTS = 1;\n   */\n  CONTENTS = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_CHECKOUT_MODE_DIRECTORY = 2;\n   */\n  DIRECTORY = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateCheckoutMode.\n */\nexport const TemplateCheckoutModeSchema: GenEnum<TemplateCheckoutMode> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 3);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateRuntimeRunAt\n */\nexport enum TemplateRuntimeRunAt {\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_RUN_AT_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_RUN_AT_BOOT = 1;\n   */\n  BOOT = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_RUN_AT_BUILD = 2;\n   */\n  BUILD = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_RUN_AT_MANUAL = 3;\n   */\n  MANUAL = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateRuntimeRunAt.\n */\nexport const TemplateRuntimeRunAtSchema: GenEnum<TemplateRuntimeRunAt> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 4);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateRestartPolicy\n */\nexport enum TemplateRestartPolicy {\n  /**\n   * @generated from enum value: TEMPLATE_RESTART_POLICY_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_RESTART_POLICY_NEVER = 1;\n   */\n  NEVER = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_RESTART_POLICY_ON_FAILURE = 2;\n   */\n  ON_FAILURE = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_RESTART_POLICY_ALWAYS = 3;\n   */\n  ALWAYS = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateRestartPolicy.\n */\nexport const TemplateRestartPolicySchema: GenEnum<TemplateRestartPolicy> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 5);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateSnapshotMode\n */\nexport enum TemplateSnapshotMode {\n  /**\n   * @generated from enum value: TEMPLATE_SNAPSHOT_MODE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_SNAPSHOT_MODE_FILESYSTEM = 1;\n   */\n  FILESYSTEM = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_SNAPSHOT_MODE_MEMORY = 2;\n   */\n  MEMORY = 2,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateSnapshotMode.\n */\nexport const TemplateSnapshotModeSchema: GenEnum<TemplateSnapshotMode> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 6);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateRuntimeState\n */\nexport enum TemplateRuntimeState {\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_STATE_STARTING = 1;\n   */\n  STARTING = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_STATE_READY = 2;\n   */\n  READY = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_STATE_FAILED = 3;\n   */\n  FAILED = 3,\n\n  /**\n   * @generated from enum value: TEMPLATE_RUNTIME_STATE_STOPPED = 4;\n   */\n  STOPPED = 4,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateRuntimeState.\n */\nexport const TemplateRuntimeStateSchema: GenEnum<TemplateRuntimeState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 7);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateBuildLogStream\n */\nexport enum TemplateBuildLogStream {\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_LOG_STREAM_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_LOG_STREAM_STDOUT = 1;\n   */\n  STDOUT = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_LOG_STREAM_STDERR = 2;\n   */\n  STDERR = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_LOG_STREAM_SYSTEM = 3;\n   */\n  SYSTEM = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateBuildLogStream.\n */\nexport const TemplateBuildLogStreamSchema: GenEnum<TemplateBuildLogStream> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 8);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateBuildProgressState\n */\nexport enum TemplateBuildProgressState {\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_PROGRESS_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_PROGRESS_STATE_STARTED = 1;\n   */\n  STARTED = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_PROGRESS_STATE_COMPLETED = 2;\n   */\n  COMPLETED = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_BUILD_PROGRESS_STATE_FAILED = 3;\n   */\n  FAILED = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateBuildProgressState.\n */\nexport const TemplateBuildProgressStateSchema: GenEnum<TemplateBuildProgressState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 9);\n\n/**\n * The state of the build a template shows, plus \"never built\".\n *\n * @generated from enum tenki.sandbox.v1.TemplateListState\n */\nexport enum TemplateListState {\n  /**\n   * @generated from enum value: TEMPLATE_LIST_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_LIST_STATE_READY = 1;\n   */\n  READY = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_LIST_STATE_BUILDING = 2;\n   */\n  BUILDING = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_LIST_STATE_PENDING = 3;\n   */\n  PENDING = 3,\n\n  /**\n   * @generated from enum value: TEMPLATE_LIST_STATE_FAILED = 4;\n   */\n  FAILED = 4,\n\n  /**\n   * @generated from enum value: TEMPLATE_LIST_STATE_UNBUILT = 5;\n   */\n  UNBUILT = 5,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateListState.\n */\nexport const TemplateListStateSchema: GenEnum<TemplateListState> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 10);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateSortField\n */\nexport enum TemplateSortField {\n  /**\n   * @generated from enum value: TEMPLATE_SORT_FIELD_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_SORT_FIELD_NAME = 1;\n   */\n  NAME = 1,\n\n  /**\n   * @generated from enum value: TEMPLATE_SORT_FIELD_CREATED_AT = 2;\n   */\n  CREATED_AT = 2,\n\n  /**\n   * @generated from enum value: TEMPLATE_SORT_FIELD_UPDATED_AT = 3;\n   */\n  UPDATED_AT = 3,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateSortField.\n */\nexport const TemplateSortFieldSchema: GenEnum<TemplateSortField> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 11);\n\n/**\n * @generated from enum tenki.sandbox.v1.TemplateWarningCode\n */\nexport enum TemplateWarningCode {\n  /**\n   * @generated from enum value: TEMPLATE_WARNING_CODE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: TEMPLATE_WARNING_CODE_SPEC_VERSION_DEPRECATED = 1;\n   */\n  SPEC_VERSION_DEPRECATED = 1,\n}\n\n/**\n * Describes the enum tenki.sandbox.v1.TemplateWarningCode.\n */\nexport const TemplateWarningCodeSchema: GenEnum<TemplateWarningCode> = /*@__PURE__*/\n  enumDesc(file_tenki_sandbox_v1_template, 12);\n\n","import { create } from \"@bufbuild/protobuf\";\nimport { durationFromMs, timestampDate, timestampFromDate } from \"@bufbuild/protobuf/wkt\";\nimport { Code, ConnectError, type Client } from \"@connectrpc/connect\";\n\nimport { DEFAULT_VOLUME_DETACH_TIMEOUT_MS, pollBackoffMs } from \"./constants.js\";\nimport {\n  closeDataPlaneConnection,\n  createDataPlaneClient,\n  DataPlaneCredentialManager,\n  DataPlaneEndpointHints,\n  warmDataPlaneConnection,\n  type DataPlaneConfig,\n} from \"./data-plane.js\";\nimport { dial, type DialOptions, type DialStream } from \"./dial.js\";\nimport {\n  CommandTimeoutError,\n  DataPlaneNotReadyError,\n  dataPlaneNotReadyError,\n  ForkFailedError,\n  InvalidStateError,\n  isDataPlaneEdgeNotReady,\n  isPausedSessionStateError,\n  mapError,\n  PauseFailedError,\n  ResumeFailedError,\n  ResumeWaitTimeoutError,\n  SessionNotFoundError,\n  terminalDataPlaneNotReadyError,\n} from \"./errors.js\";\nimport {\n  list as listFs,\n  mkdir as mkdirFs,\n  readFileStream,\n  remove as removeFs,\n  stat as statFs,\n  writeFileStream,\n  type FileInfo,\n  type ListOptions as FsListOptions,\n  type ReadStreamOptions,\n  type WriteStreamOptions,\n} from \"./fs.js\";\nimport { Git } from \"./git.js\";\nimport type { SandboxSession, SessionEgressHttpRule } from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport {\n  AttachStorageMountRequestSchema,\n  AttachVolumeRequestSchema,\n  CreateSessionCredentialRequestSchema,\n  DataPlaneRouteStatus,\n  DetachStorageMountRequestSchema,\n  DetachVolumeRequestSchema,\n  ExposePortRequestSchema,\n  ExtendSessionRequestSchema,\n  ForkSessionRequestSchema,\n  ForkSessionResponseSchema,\n  GetSessionMetricsRequestSchema,\n  GetSessionRequestSchema,\n  GitOperationRequestSchema,\n  ListExposedPortsRequestSchema,\n  ListStorageMountsRequestSchema,\n  PauseSessionRequestSchema,\n  SessionState as ProtoSessionState,\n  WildcardStatus as ProtoWildcardStatus,\n  ReadFileRequestSchema,\n  RefreshSessionSecretsRequestSchema,\n  ResumeSessionRequestSchema,\n  SandboxService,\n  SandboxSessionDataPlaneService,\n  SandboxSessionDataPlaneServiceReadFileRequestSchema,\n  SandboxSessionDataPlaneServiceStatRequestSchema,\n  SandboxSessionDataPlaneServiceWriteFileRequestSchema,\n  SessionEgressHttpRuleSchema,\n  StatRequestSchema,\n  TerminateSessionRequestSchema,\n  UnexposePortRequestSchema,\n  UpdateSessionRequestSchema,\n  UpdateSSHAuthorizedKeysRequestSchema,\n  VolumeMountSchema,\n  WaitSessionRequestSchema,\n  WriteFileRequestSchema,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport { TemplateRuntimeState as ProtoTemplateRuntimeState } from \"./internal/proto/tenki/sandbox/v1/template_pb.js\";\nimport type { SessionMetrics } from \"./metrics.js\";\nimport { sessionMetricsFromProto } from \"./metrics.js\";\nimport type {\n  DetachVolumeOptions,\n  EgressHttpRule,\n  ExecOptions,\n  ExposePortOptions,\n  ForkOptions,\n  Output,\n  SecretsRefresh,\n  UpdateSessionOptions,\n  VolumeMountConfig,\n} from \"./options.js\";\nimport { validateUpdateMaxDurationMs } from \"./options.js\";\nimport { normalizeArgv, run, type ProcessRunHandle, type ProcessRunOptions } from \"./process.js\";\nimport { sleepReadyBackoff } from \"./ready-backoff.js\";\nimport { isRetryableWaitPollError, isRetryableWaitStreamError, WaitStreamEndedError } from \"./refused-stream.js\";\nimport type { CommandStatus, ExecResult } from \"./result.js\";\nimport { snapshotFromProto, type Snapshot } from \"./snapshot.js\";\nimport { connectSSH, type SSHConnection, type SSHConnectOptions } from \"./ssh.js\";\nimport {\n  storageMountFromProto,\n  storageMountSpecToProto,\n  type StorageMount,\n  type StorageMountConfig,\n} from \"./storage.js\";\nimport { Stream } from \"./stream.js\";\nimport { tailnetStatusFromProto, type TailnetStatus } from \"./tailnet.js\";\nimport {\n  exposeHostPortResilient,\n  resilientHostPortTunnel,\n  type ResilientHostPortTunnel,\n  type ResilientHostPortTunnelOptions,\n} from \"./tunnel-resilient.js\";\nimport { exposeHostPort, hostPortTunnel, type HostPortTunnel, type HostPortTunnelOptions } from \"./tunnel.js\";\nimport { emitWarnings, sandboxWarningsFromProto, type SandboxWarning, type WarningHandler } from \"./warning.js\";\n\n// Tolerates stale stopped-state reads (read-replica lag) right after resume()\n// before waitResumed has observed RESUMING from the server.\nconst RESUME_REVERT_GRACE_MS = 3_000;\nconst PAUSE_REVERT_GRACE_MS = 3_000;\n\nexport type SessionState =\n  | \"UNSPECIFIED\"\n  | \"CREATING\"\n  | \"RUNNING\"\n  | \"PAUSED\"\n  | \"USER_SHUTDOWN\"\n  | \"PAUSING\"\n  | \"RESUMING\"\n  | \"TERMINATING\"\n  | \"TERMINATED\";\n\nexport type RuntimeState = \"UNSPECIFIED\" | \"STARTING\" | \"READY\" | \"FAILED\" | \"STOPPED\";\n\n/**\n * Readiness of the workspace wildcard domain backing a wildcard-scheme\n * preview URL (the workspace's per-region wildcard certificate). A\n * wildcard-scheme preview URL exists immediately but only starts serving once\n * its workspace domain is READY.\n */\nexport type WildcardStatus = \"UNSPECIFIED\" | \"PENDING\" | \"READY\" | \"FAILED\" | \"DISABLED\";\n\nexport interface ExposedPort {\n  port: number;\n  previewUrl: string;\n  expiresAt?: Date;\n  previewUrlId?: string;\n  slug?: string;\n  /** Whether subdomain support is enabled for this exposure. */\n  wildcard?: boolean;\n  /** Readiness of the wildcard subdomain provisioning; meaningful only when wildcard is true. */\n  wildcardStatus?: WildcardStatus;\n  /** Actionable reason when wildcardStatus is \"FAILED\"; empty otherwise. */\n  wildcardStatusReason?: string;\n}\n\nexport interface SessionHandle {\n  readonly id: string;\n  readonly rpcClient: Client<typeof SandboxService>;\n  exec(command: string | string[], options?: ExecOptions): Promise<ExecResult>;\n  stream(command: string | string[], options?: ExecOptions): Promise<Stream>;\n  gitOperation(operation: string, args: Record<string, string>): Promise<string>;\n}\n\nexport interface SessionFs {\n  readStream(path: string, options?: ReadStreamOptions): Promise<ReadableStream<Uint8Array>>;\n  writeStream(path: string, data: ReadableStream<Uint8Array>, options?: WriteStreamOptions): Promise<void>;\n  stat(path: string): Promise<FileInfo>;\n  mkdir(path: string): Promise<void>;\n  remove(path: string): Promise<void>;\n  list(path: string, options?: FsListOptions): Promise<FileInfo[]>;\n}\n\n/** Empty allowlists follow the session's tailnet policy when attached; otherwise they are unrestricted. */\nexport interface SessionEgressPolicy {\n  allowDomains: string[];\n  allowCidrs: string[];\n  interceptHttps: boolean;\n  allowedPorts: number[];\n  httpRules: EgressHttpRule[];\n  /** Named workspace egress policies pinned at create; the other fields hold their merged expansion. */\n  policyNames: string[];\n}\n\nfunction egressFromProto(proto: SandboxSession): SessionEgressPolicy {\n  return egressPolicyFromProto(proto.egress, proto.egressPolicies);\n}\n\nexport function egressPolicyFromProto(\n  egress: SandboxSession[\"egress\"],\n  policyNames: readonly string[] = [],\n): SessionEgressPolicy {\n  return {\n    allowDomains: [...(egress?.allowDomains ?? [])],\n    allowCidrs: [...(egress?.allowCidrs ?? [])],\n    interceptHttps: egress?.interceptHttps ?? false,\n    allowedPorts: [...(egress?.allowedPorts ?? [])],\n    httpRules: (egress?.httpRules ?? []).map(egressHttpRuleFromProto),\n    policyNames: [...policyNames],\n  };\n}\n\nfunction egressHttpRuleFromProto(rule: SessionEgressHttpRule): EgressHttpRule {\n  const result: EgressHttpRule = { domains: [...rule.domains], methods: [...rule.methods] };\n  if (rule.path.case === \"exact\") result.pathExact = rule.path.value;\n  if (rule.path.case === \"prefix\") result.pathPrefix = rule.path.value;\n  if (rule.path.case === \"regex\") result.pathRegex = rule.path.value;\n  return result;\n}\n\nexport function egressHttpRuleToProto(rule: EgressHttpRule): SessionEgressHttpRule {\n  const paths = [rule.pathExact, rule.pathPrefix, rule.pathRegex].filter(Boolean);\n  if (paths.length > 1) {\n    throw new Error(\"An egress HTTP rule may set only one of pathExact, pathPrefix, pathRegex\");\n  }\n  let path: SessionEgressHttpRule[\"path\"] = { case: undefined };\n  if (rule.pathExact) path = { case: \"exact\", value: rule.pathExact };\n  if (rule.pathPrefix) path = { case: \"prefix\", value: rule.pathPrefix };\n  if (rule.pathRegex) path = { case: \"regex\", value: rule.pathRegex };\n  return create(SessionEgressHttpRuleSchema, { domains: [...rule.domains], methods: [...(rule.methods ?? [])], path });\n}\n\n// Caps one GetSession so a stalled connection cannot consume the whole readiness budget.\nconst WAIT_POLL_ATTEMPT_TIMEOUT_MS = 10_000;\n\nexport class Session implements SessionHandle, AsyncDisposable {\n  readonly id: string;\n  readonly rpcClient: Client<typeof SandboxService>;\n  readonly git: Git;\n  readonly fs: SessionFs;\n\n  name: string;\n  state: SessionState;\n  ownerType: string;\n  ownerId: string;\n  workspaceId: string;\n  inboundEnabled: boolean;\n  outboundEnabled: boolean;\n  cpuCores: number;\n  memoryMb: number;\n  diskSizeGb: number;\n  timeoutAt: Date;\n  idleTimeoutMinutes?: number;\n  lastActivityAt?: Date;\n  pausedAt?: Date;\n  pauseSnapshotId?: string;\n  pauseRetentionMs?: number;\n  pauseExpiresAt?: Date;\n  metadata: Record<string, string>;\n  tags: string[];\n  egress: SessionEgressPolicy;\n  volumeMounts: VolumeMountConfig[];\n  pauseSnapshot?: Snapshot;\n  lastResumeError?: string;\n  terminalError?: string;\n  runtimeState: RuntimeState;\n  private runtimeSecretsPresent: boolean;\n  get hasRuntimeSecrets(): boolean {\n    return this.runtimeSecretsPresent;\n  }\n  runtimeError?: string;\n  sticky: boolean;\n  public readonly sourceRegistryImageId?: string;\n  public readonly sourceSnapshotId?: string;\n  public readonly sourceRegistryWorkspaceId?: string;\n  public readonly sourceRegistryRef?: string;\n  public readonly sourceTemplateId?: string;\n  public readonly warnings: SandboxWarning[];\n  tailnetStatus?: TailnetStatus;\n\n  #authToken: string;\n  private gatewayAddress: string;\n  private sshOptions?: SSHConnectOptions;\n  private dataPlaneEndpoint = \"\";\n  private dataPlaneWarmStarted = false;\n  private dataPlaneCredential?: DataPlaneCredentialManager;\n  private dataPlaneClient?: Client<typeof SandboxSessionDataPlaneService>;\n  private dataPlaneVerifiedClient?: Client<typeof SandboxSessionDataPlaneService>;\n  private dataPlaneEndpointFromHint = false;\n  private readonly dataPlaneEndpointHints = new DataPlaneEndpointHints();\n  // Set by close(). A renewal or data-plane response that lands afterwards\n  // must not re-arm the session: without it a response in flight across close\n  // revives both the renewal loop and a pooled transport for a session that is\n  // already terminated.\n  private dataPlaneClosed = false;\n  // closeDone short-circuits every close() after the first that succeeds;\n  // closing joins callers onto the one in flight. A failed close stays\n  // retryable.\n  private closeDone = false;\n  private released = false;\n  private closing?: Promise<void>;\n\n  constructor(\n    rpcClient: Client<typeof SandboxService>,\n    proto: SandboxSession,\n    authToken: string,\n    gatewayAddress: string,\n    sshOptions?: SSHConnectOptions,\n    private readonly dataPlaneReadyTimeoutMs = 60_000,\n    dataPlane?: DataPlaneConfig,\n    warnings: SandboxWarning[] = [],\n    private readonly warningHandler?: WarningHandler,\n  ) {\n    this.rpcClient = rpcClient;\n    this.#authToken = authToken;\n    this.gatewayAddress = gatewayAddress;\n    this.sshOptions = sshOptions;\n    this.id = proto.id;\n    this.applyDataPlaneResponse(dataPlane?.endpoint, dataPlane?.credential, dataPlane?.routeStatus);\n\n    this.name = proto.name;\n    this.state = sessionStateFromProto(proto.state);\n    this.ownerType = proto.ownerType;\n    this.ownerId = proto.ownerId;\n    this.workspaceId = proto.workspaceId;\n    this.inboundEnabled = proto.inboundEnabled;\n    this.outboundEnabled = proto.outboundEnabled;\n    this.cpuCores = proto.cpuCores;\n    this.memoryMb = proto.memoryMb;\n    this.diskSizeGb = proto.diskSizeGb;\n    this.timeoutAt = proto.timeoutAt ? timestampDate(proto.timeoutAt) : new Date(0);\n    this.idleTimeoutMinutes = proto.idleTimeoutMinutes;\n    this.lastActivityAt = proto.lastActivityAt ? timestampDate(proto.lastActivityAt) : undefined;\n    this.pausedAt = proto.pausedAt ? timestampDate(proto.pausedAt) : undefined;\n    this.pauseSnapshotId = proto.pauseSnapshotId;\n    this.pauseRetentionMs = proto.pauseRetention\n      ? Number(proto.pauseRetention.seconds) * 1000 + Math.floor(proto.pauseRetention.nanos / 1_000_000)\n      : undefined;\n    this.pauseExpiresAt = proto.pauseExpiresAt ? timestampDate(proto.pauseExpiresAt) : undefined;\n    this.metadata = { ...proto.metadata };\n    this.tags = [...(proto.tags ?? [])];\n    this.egress = egressFromProto(proto);\n    this.pauseSnapshot = proto.pauseSnapshot ? snapshotFromProto(proto.pauseSnapshot) : undefined;\n    this.volumeMounts = (proto.volumeAttachments ?? []).map((a) => ({\n      volumeId: a.volumeId,\n      mountPath: a.mountPath,\n      readOnly: a.readonly,\n      state: a.state,\n    }));\n    this.lastResumeError = proto.lastResumeError || undefined;\n    this.terminalError = proto.terminalError || undefined;\n    this.runtimeState = templateRuntimeStateFromProto(proto.runtimeState);\n    this.runtimeSecretsPresent = proto.hasRuntimeSecrets;\n    this.runtimeError = proto.runtimeError || undefined;\n    this.sticky = proto.sticky;\n    this.sourceRegistryImageId = proto.sourceRegistryImageId || undefined;\n    this.sourceSnapshotId = proto.sourceSnapshotId || undefined;\n    this.sourceRegistryWorkspaceId = proto.sourceRegistryWorkspaceId || undefined;\n    this.sourceRegistryRef = proto.sourceRegistryRef || undefined;\n    this.sourceTemplateId = proto.sourceTemplateId || undefined;\n    this.warnings = [...warnings];\n    this.tailnetStatus = tailnetStatusFromProto(proto.tailnetStatus);\n\n    this.git = new Git(this);\n    this.fs = {\n      readStream: (path, options) => readFileStream(this, path, options),\n      writeStream: (path, data, options) => writeFileStream(this, path, data, options),\n      stat: (path) => statFs(this, path),\n      mkdir: (path) => mkdirFs(this, path),\n      remove: (path) => removeFs(this, path),\n      list: (path, options) => listFs(this, path, options),\n    };\n  }\n\n  // Allowlist so JSON logging never serializes transport state or credentials.\n  toJSON(): Record<string, unknown> {\n    return {\n      id: this.id,\n      name: this.name,\n      state: this.state,\n      ownerType: this.ownerType,\n      ownerId: this.ownerId,\n      workspaceId: this.workspaceId,\n      inboundEnabled: this.inboundEnabled,\n      outboundEnabled: this.outboundEnabled,\n      cpuCores: this.cpuCores,\n      memoryMb: this.memoryMb,\n      diskSizeGb: this.diskSizeGb,\n      timeoutAt: this.timeoutAt,\n      idleTimeoutMinutes: this.idleTimeoutMinutes,\n      lastActivityAt: this.lastActivityAt,\n      pausedAt: this.pausedAt,\n      pauseSnapshotId: this.pauseSnapshotId,\n      pauseRetentionMs: this.pauseRetentionMs,\n      pauseExpiresAt: this.pauseExpiresAt,\n      metadata: this.metadata,\n      tags: this.tags,\n      egress: this.egress,\n      volumeMounts: this.volumeMounts,\n      pauseSnapshot: this.pauseSnapshot,\n      lastResumeError: this.lastResumeError,\n      terminalError: this.terminalError,\n      runtimeState: this.runtimeState,\n      hasRuntimeSecrets: this.hasRuntimeSecrets,\n      runtimeError: this.runtimeError,\n      sticky: this.sticky,\n      sourceRegistryImageId: this.sourceRegistryImageId,\n      sourceSnapshotId: this.sourceSnapshotId,\n      sourceRegistryWorkspaceId: this.sourceRegistryWorkspaceId,\n      sourceRegistryRef: this.sourceRegistryRef,\n      sourceTemplateId: this.sourceTemplateId,\n      warnings: this.warnings,\n      tailnetStatus: this.tailnetStatus,\n    };\n  }\n\n  dataPlaneRPC(): Client<typeof SandboxSessionDataPlaneService> | undefined {\n    return this.dataPlaneClient;\n  }\n\n  dataPlaneReadyBudgetMs(): number {\n    return this.dataPlaneReadyTimeoutMs;\n  }\n\n  dataPlaneProvisioningPending(client: Client<typeof SandboxSessionDataPlaneService>): boolean {\n    return this.dataPlaneClient === client && this.dataPlaneVerifiedClient !== client;\n  }\n\n  markDataPlaneServing(client: Client<typeof SandboxSessionDataPlaneService>): void {\n    if (this.dataPlaneClient === client) this.dataPlaneVerifiedClient = client;\n  }\n\n  dataPlaneUsingEndpointHint(client: Client<typeof SandboxSessionDataPlaneService>): boolean {\n    return this.dataPlaneClient === client && this.dataPlaneEndpointFromHint;\n  }\n\n  async refreshHintedDataPlane(client: Client<typeof SandboxSessionDataPlaneService>): Promise<boolean> {\n    if (!this.dataPlaneUsingEndpointHint(client)) return false;\n    return this.renewDataPlaneCredential();\n  }\n\n  // Bootstrap the data-plane client via CreateSessionCredential if not resolved yet.\n  async ensureDataPlane(verifyServing = true): Promise<Client<typeof SandboxSessionDataPlaneService> | undefined> {\n    if (this.dataPlaneClosed) throw new Error(\"sandbox: session handle closed or released\");\n    if (!this.dataPlaneClient && this.dataPlaneCredential?.current()) {\n      const hintedEndpoint = await this.dataPlaneEndpointHints.resolve(async () => {\n        await this.renewDataPlaneCredential();\n        return this.dataPlaneEndpoint;\n      });\n      if (!this.dataPlaneClient && hintedEndpoint) {\n        this.configureDataPlane({ endpoint: hintedEndpoint }, true);\n      }\n    }\n    if (!this.dataPlaneClient) await this.renewDataPlaneCredential();\n    if (verifyServing && this.dataPlaneClient) await this.ensureDataPlaneServing(this.dataPlaneClient);\n    return this.dataPlaneClient;\n  }\n\n  async requireDataPlane(verifyServing = true): Promise<Client<typeof SandboxSessionDataPlaneService>> {\n    const dataPlane = await this.ensureDataPlane(verifyServing);\n    if (!dataPlane) throw new Error(\"sandbox: data-plane endpoint unavailable\");\n    return dataPlane;\n  }\n\n  // Probe the edge until it stops returning the transient cold-start 404 (Edge applies the route async).\n  private async ensureDataPlaneServing(client: Client<typeof SandboxSessionDataPlaneService>): Promise<void> {\n    if (this.dataPlaneVerifiedClient === client) return;\n    let lastErr: unknown;\n    const deadline = Date.now() + this.dataPlaneReadyTimeoutMs;\n    for (let attempt = 0; Date.now() < deadline; attempt++) {\n      try {\n        await client.stat(\n          create(SandboxSessionDataPlaneServiceStatRequestSchema, {\n            request: create(StatRequestSchema, { sessionId: this.id, path: \"/home/tenki\" }),\n          }),\n        );\n        this.dataPlaneVerifiedClient = client;\n        return;\n      } catch (err) {\n        // Any response other than edge-not-ready (success OR an app-level error) proves the route serves.\n        if (!isDataPlaneEdgeNotReady(err)) {\n          this.dataPlaneVerifiedClient = client;\n          return;\n        }\n        lastErr = err;\n        await sleepReadyBackoff(attempt, deadline);\n      }\n    }\n    throw dataPlaneNotReadyError(lastErr);\n  }\n\n  async reauthOnUnauthenticated(err: unknown): Promise<boolean> {\n    if (!(err instanceof ConnectError) || err.code !== Code.Unauthenticated) return false;\n    try {\n      return await this.renewDataPlaneCredential();\n    } catch {\n      return false;\n    }\n  }\n\n  private configureDataPlane(dataPlane?: DataPlaneConfig, endpointFromHint = false): void {\n    const endpoint = dataPlane?.endpoint?.trim();\n    if (!endpoint) return;\n    // A terminated session must not acquire a transport or a renewal loop,\n    // however late the response that got here.\n    if (this.dataPlaneClosed) return;\n    if (endpoint === this.dataPlaneEndpoint && this.dataPlaneCredential) {\n      this.dataPlaneCredential.set(dataPlane?.credential, endpoint);\n      this.dataPlaneEndpointFromHint = endpointFromHint;\n      return;\n    }\n    closeDataPlaneConnection(this.dataPlaneClient);\n    this.dataPlaneEndpoint = endpoint;\n    if (!this.dataPlaneCredential) {\n      this.dataPlaneCredential = new DataPlaneCredentialManager(this, dataPlane?.credential, endpoint);\n    } else {\n      this.dataPlaneCredential.set(dataPlane?.credential, endpoint);\n      // A credential the engine handed back before the endpoint was known is\n      // unbound; this endpoint adopts it. One already bound to another node is\n      // left alone, and the interceptor refuses to attach it here.\n      this.dataPlaneCredential.adoptEndpoint(endpoint);\n    }\n    this.dataPlaneClient = createDataPlaneClient(endpoint, this.dataPlaneCredential, this.id);\n    this.dataPlaneEndpointFromHint = endpointFromHint;\n  }\n\n  private resetDataPlane(): void {\n    this.dataPlaneCredential?.stop();\n    closeDataPlaneConnection(this.dataPlaneClient);\n    this.dataPlaneEndpointHints.clear();\n    this.dataPlaneEndpoint = \"\";\n    this.dataPlaneCredential = undefined;\n    this.dataPlaneClient = undefined;\n    this.dataPlaneVerifiedClient = undefined;\n    this.dataPlaneEndpointFromHint = false;\n    this.dataPlaneWarmStarted = false;\n  }\n\n  private applyDataPlaneResponse(\n    endpoint?: string,\n    credential?: DataPlaneConfig[\"credential\"],\n    routeStatus?: DataPlaneRouteStatus,\n  ): void {\n    if (routeStatus === DataPlaneRouteStatus.FAILED) return;\n    if (this.dataPlaneClosed) return;\n    const resolved = endpoint?.trim();\n    if (credential) {\n      // A credential that arrives without an endpoint belongs to the endpoint\n      // already in force; one that arrives with an endpoint is bound to it by\n      // configureDataPlane below.\n      const boundTo = resolved || this.dataPlaneEndpoint;\n      if (!this.dataPlaneCredential) {\n        this.dataPlaneCredential = new DataPlaneCredentialManager(this, credential, boundTo);\n      } else {\n        this.dataPlaneCredential.set(credential, boundTo);\n      }\n    }\n    if (resolved) {\n      this.dataPlaneEndpointHints.remember(resolved);\n      this.configureDataPlane({ endpoint: resolved, credential });\n    }\n    this.startDataPlaneWarm();\n    if (routeStatus === DataPlaneRouteStatus.VERIFIED && this.dataPlaneClient) {\n      this.dataPlaneVerifiedClient = this.dataPlaneClient;\n    }\n  }\n\n  // Open the connection once an endpoint is known so the first call skips the handshake.\n  private startDataPlaneWarm(): void {\n    if (this.dataPlaneWarmStarted || !this.dataPlaneClient) return;\n    this.dataPlaneWarmStarted = true;\n    void warmDataPlaneConnection(this.dataPlaneClient).catch(() => {});\n  }\n\n  async renewDataPlaneCredential(): Promise<boolean> {\n    if (this.dataPlaneClosed) return false;\n    const deadline = Date.now() + this.dataPlaneReadyTimeoutMs;\n    let lastErr: unknown;\n    for (let attempt = 0; !this.dataPlaneClosed && Date.now() < deadline; attempt++) {\n      try {\n        const resp = await this.rpcClient.createSessionCredential(\n          create(CreateSessionCredentialRequestSchema, { sessionId: this.id }),\n        );\n        if (this.dataPlaneClosed) return false;\n        switch (resp.routeStatus) {\n          case DataPlaneRouteStatus.FAILED:\n            throw terminalDataPlaneNotReadyError();\n          case DataPlaneRouteStatus.NOT_READY:\n            if (resp.dataPlaneEndpoint?.trim()) {\n              this.applyDataPlaneResponse(resp.dataPlaneEndpoint, resp.credential, resp.routeStatus);\n              return true;\n            }\n            lastErr = dataPlaneNotReadyError(undefined);\n            await sleepReadyBackoff(attempt, deadline);\n            continue;\n          default:\n            this.applyDataPlaneResponse(resp.dataPlaneEndpoint, resp.credential, resp.routeStatus);\n            return true;\n        }\n      } catch (err) {\n        if (this.dataPlaneClosed) return false;\n        const mapped = mapError(err);\n        if (mapped instanceof DataPlaneNotReadyError || mapped instanceof InvalidStateError) {\n          if (isPausedSessionStateError(mapped)) throw mapped;\n          if (mapped instanceof DataPlaneNotReadyError && mapped.terminal) throw mapped;\n          lastErr = mapped;\n          await sleepReadyBackoff(attempt, deadline);\n          continue;\n        }\n        throw mapped;\n      }\n    }\n    if (this.dataPlaneClosed) return false;\n    throw dataPlaneNotReadyError(lastErr);\n  }\n\n  private applyProto(proto: SandboxSession): void {\n    this.name = proto.name;\n    this.state = sessionStateFromProto(proto.state);\n    this.ownerType = proto.ownerType;\n    this.ownerId = proto.ownerId;\n    this.workspaceId = proto.workspaceId;\n    this.inboundEnabled = proto.inboundEnabled;\n    this.outboundEnabled = proto.outboundEnabled;\n    this.cpuCores = proto.cpuCores;\n    this.memoryMb = proto.memoryMb;\n    this.diskSizeGb = proto.diskSizeGb;\n    this.timeoutAt = proto.timeoutAt ? timestampDate(proto.timeoutAt) : new Date(0);\n    this.idleTimeoutMinutes = proto.idleTimeoutMinutes;\n    this.lastActivityAt = proto.lastActivityAt ? timestampDate(proto.lastActivityAt) : undefined;\n    this.pausedAt = proto.pausedAt ? timestampDate(proto.pausedAt) : undefined;\n    this.pauseSnapshotId = proto.pauseSnapshotId;\n    this.pauseRetentionMs = proto.pauseRetention\n      ? Number(proto.pauseRetention.seconds) * 1000 + Math.floor(proto.pauseRetention.nanos / 1_000_000)\n      : undefined;\n    this.pauseExpiresAt = proto.pauseExpiresAt ? timestampDate(proto.pauseExpiresAt) : undefined;\n    this.metadata = { ...proto.metadata };\n    this.tags = [...(proto.tags ?? [])];\n    this.egress = egressFromProto(proto);\n    this.pauseSnapshot = proto.pauseSnapshot ? snapshotFromProto(proto.pauseSnapshot) : undefined;\n    this.volumeMounts = (proto.volumeAttachments ?? []).map((a) => ({\n      volumeId: a.volumeId,\n      mountPath: a.mountPath,\n      readOnly: a.readonly,\n      state: a.state,\n    }));\n    this.lastResumeError = proto.lastResumeError || undefined;\n    this.terminalError = proto.terminalError || undefined;\n    this.runtimeState = templateRuntimeStateFromProto(proto.runtimeState);\n    this.runtimeSecretsPresent = proto.hasRuntimeSecrets;\n    this.runtimeError = proto.runtimeError || undefined;\n    this.sticky = proto.sticky;\n    this.tailnetStatus = tailnetStatusFromProto(proto.tailnetStatus);\n  }\n\n  async exec(command: string | string[], options?: ExecOptions): Promise<ExecResult> {\n    const argv = normalizeArgv(command, options?.args);\n    const proc = run(this, argv, {\n      cwd: options?.cwd,\n      env: options?.env,\n      withSecrets: options?.withSecrets,\n      stdin: undefined,\n      timeoutMs: options?.timeoutMs,\n      signal: options?.signal,\n    });\n    void proc.stdin.close().catch(() => {});\n    const stdoutChunks: Uint8Array[] = [];\n    const stderrChunks: Uint8Array[] = [];\n    const outputs: Output[] = [];\n\n    await Promise.all([\n      collectReadableOutputs(proc.stdout, false, stdoutChunks, outputs, options?.onOutput),\n      collectReadableOutputs(proc.stderr, true, stderrChunks, outputs, options?.onOutput),\n    ]);\n    const result = await proc;\n    return {\n      sessionId: this.id,\n      command: argv[0],\n      args: argv.slice(1),\n      status: commandStatusFromResult(result),\n      exitCode: result.exitCode,\n      durationMs: result.durationMs ?? 0,\n      reason: result.reason,\n      disk: result.disk,\n      outputs,\n      stdout: concatUint8Arrays(stdoutChunks),\n      stderr: concatUint8Arrays(stderrChunks),\n    };\n  }\n\n  async stream(command: string | string[], options?: ExecOptions): Promise<Stream> {\n    if (options?.onOutput) {\n      throw new Error(\"Session.stream does not support onOutput; consume chunks with stream.next() instead\");\n    }\n    const argv = normalizeArgv(command, options?.args);\n    const proc = run(this, argv, {\n      cwd: options?.cwd,\n      env: options?.env,\n      withSecrets: options?.withSecrets,\n      timeoutMs: options?.timeoutMs,\n      signal: options?.signal,\n    });\n    await proc.pid;\n    void proc.stdin.close().catch(() => {});\n    return streamFromRunHandle(this.id, argv[0], argv.slice(1), proc);\n  }\n\n  dial(unixSocketPath: string, options?: DialOptions): Promise<DialStream> {\n    return dial(this, unixSocketPath, options);\n  }\n\n  run(argv: string[], options?: ProcessRunOptions): ProcessRunHandle {\n    return run(this, argv, options);\n  }\n\n  readFileStream(path: string, options?: ReadStreamOptions): Promise<ReadableStream<Uint8Array>> {\n    return readFileStream(this, path, options);\n  }\n\n  writeFileStream(path: string, data: ReadableStream<Uint8Array>, options?: WriteStreamOptions): Promise<void> {\n    return writeFileStream(this, path, data, options);\n  }\n\n  stat(path: string): Promise<FileInfo> {\n    return statFs(this, path);\n  }\n\n  mkdir(path: string): Promise<void> {\n    return mkdirFs(this, path);\n  }\n\n  remove(path: string): Promise<void> {\n    return removeFs(this, path);\n  }\n\n  list(path: string, options?: FsListOptions): Promise<FileInfo[]> {\n    return listFs(this, path, options);\n  }\n\n  hostPortTunnel(host: string, port: number, options?: HostPortTunnelOptions): Promise<HostPortTunnel> {\n    return hostPortTunnel(this, host, port, options);\n  }\n\n  resilientHostPortTunnel(\n    host: string,\n    port: number,\n    options?: ResilientHostPortTunnelOptions,\n  ): Promise<ResilientHostPortTunnel> {\n    return resilientHostPortTunnel(this, host, port, options);\n  }\n\n  exposeHostPort(hostAddr: string, options?: HostPortTunnelOptions): Promise<HostPortTunnel> {\n    return exposeHostPort(this, hostAddr, options);\n  }\n\n  exposeHostPortResilient(\n    hostAddr: string,\n    options?: ResilientHostPortTunnelOptions,\n  ): Promise<ResilientHostPortTunnel> {\n    return exposeHostPortResilient(this, hostAddr, options);\n  }\n\n  // Writes up to 32 MiB; larger content throws FileTooLargeError, so write it with writeFileStream.\n  async writeFile(path: string, data: Uint8Array | string): Promise<void> {\n    const content = typeof data === \"string\" ? new TextEncoder().encode(data) : data;\n    try {\n      const request = create(WriteFileRequestSchema, {\n        sessionId: this.id,\n        path,\n        content,\n      });\n      const dataPlane = await this.requireDataPlane();\n      await dataPlane.writeFile(create(SandboxSessionDataPlaneServiceWriteFileRequestSchema, { request }));\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  // Reads up to 32 MiB; larger files throw FileTooLargeError, so read them with readFileStream.\n  async readFile(path: string): Promise<Uint8Array> {\n    try {\n      const request = create(ReadFileRequestSchema, { sessionId: this.id, path });\n      const dataPlane = await this.requireDataPlane();\n      const resp = (await dataPlane.readFile(create(SandboxSessionDataPlaneServiceReadFileRequestSchema, { request })))\n        .response!;\n      return new Uint8Array(resp.content);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async waitReady(timeoutMs?: number, signal?: AbortSignal): Promise<void> {\n    const timeout = timeoutMs ?? 180_000;\n    const deadline = Date.now() + timeout;\n    try {\n      await this.waitReadyStream(timeout, signal);\n      return;\n    } catch (err) {\n      if (signal?.aborted) throw mapError(signal.reason);\n      if (!isRetryableWaitStreamError(err) || Date.now() >= deadline) throw mapError(err);\n    }\n    await this.waitReadyPoll(Math.max(0, deadline - Date.now()), signal);\n  }\n\n  private async waitReadyStream(timeoutMs: number, signal?: AbortSignal): Promise<void> {\n    // WaitSession ends at readiness or termination; consume its trailers to release the RPC deadline.\n    for await (const resp of this.rpcClient.waitSession(create(WaitSessionRequestSchema, { sessionId: this.id }), {\n      timeoutMs,\n      signal,\n    })) {\n      signal?.throwIfAborted();\n      if (resp.session) this.applyProto(resp.session);\n      this.applyDataPlaneResponse(resp.dataPlaneEndpoint, resp.credential, resp.routeStatus);\n      // WaitSession closes after its final state; consume EOF to release the RPC deadline.\n    }\n    if (isReady(this.state)) return;\n    if (isTerminal(this.state)) {\n      throw this.terminalStateError();\n    }\n    throw new WaitStreamEndedError(`readiness stream ended before session ${this.id} became ready`);\n  }\n\n  private async waitReadyPoll(timeoutMs?: number, signal?: AbortSignal): Promise<void> {\n    const deadline = Date.now() + (timeoutMs ?? 180_000);\n    let attempt = 0;\n    let lastErr: unknown;\n    while (Date.now() < deadline) {\n      if (signal?.aborted) throw mapError(signal.reason);\n      let polled = false;\n      try {\n        const resp = await this.rpcClient.getSession(create(GetSessionRequestSchema, { sessionId: this.id }), {\n          timeoutMs: Math.max(1, Math.min(WAIT_POLL_ATTEMPT_TIMEOUT_MS, deadline - Date.now())),\n          signal,\n        });\n        if (resp.session) this.applyProto(resp.session);\n        polled = true;\n      } catch (err) {\n        if (signal?.aborted || !isRetryableWaitPollError(err)) throw mapError(err);\n        // Retry replica lag and transient RPC failures within the readiness budget.\n        lastErr = err;\n      }\n      if (polled && isReady(this.state)) return;\n      if (polled && isTerminal(this.state)) {\n        throw this.terminalStateError();\n      }\n      if (Date.now() >= deadline) break;\n      try {\n        await sleep(Math.min(pollBackoffMs(attempt), Math.max(0, deadline - Date.now())), signal);\n      } catch (err) {\n        throw mapError(err);\n      }\n      attempt++;\n    }\n    if (lastErr === undefined) throw new Error(`timeout waiting for session ${this.id} to become ready`);\n    const reason = lastErr instanceof Error ? lastErr.message : String(lastErr);\n    throw new Error(`timeout waiting for session ${this.id} to become ready (last error: ${reason})`, {\n      cause: lastErr,\n    });\n  }\n\n  /**\n   * Wait until an in-flight resume reaches RUNNING or fails.\n   *\n   * Unlike waitReady — which only treats TERMINATED/TERMINATING as terminal\n   * and would spin until timeout — a session that reverts from RESUMING back\n   * to a stopped state (PAUSED/USER_SHUTDOWN) throws ResumeFailedError\n   * carrying the server-side lastResumeError.\n   */\n  async waitResumed(timeoutMs?: number, signal?: AbortSignal): Promise<void> {\n    const timeout = timeoutMs ?? 180_000;\n    const deadline = Date.now() + timeout;\n    const start = Date.now();\n    let sawResuming = false;\n    let pausedAt = this.pausedAt;\n    let attempt = 0;\n    while (Date.now() < deadline) {\n      signal?.throwIfAborted();\n      try {\n        const resp = await this.rpcClient.getSession(create(GetSessionRequestSchema, { sessionId: this.id }));\n        if (resp.session) this.applyProto(resp.session);\n      } catch {\n        // tolerate not-found during polling (read-replica lag)\n      }\n      if (isReady(this.state)) return;\n      if (isTerminal(this.state)) throw this.terminalStateError();\n      if (this.state === \"RESUMING\") {\n        sawResuming = true;\n        pausedAt = this.pausedAt ?? pausedAt;\n      } else if (this.state === \"PAUSING\") {\n        // PAUSING only follows RUNNING, so a fresh read means the resume landed before a concurrent pause.\n        if (sawResuming || Date.now() - start > RESUME_REVERT_GRACE_MS) return;\n      } else if (this.state === \"PAUSED\" || this.state === \"USER_SHUTDOWN\") {\n        // A stopped state is settled once RESUMING was observed from the\n        // server, or after the replica-lag grace window has passed.\n        if (sawResuming || Date.now() - start > RESUME_REVERT_GRACE_MS) {\n          // A landed resume clears pausedAt and a later pause or shutdown sets a newer one; a revert or snapshot migration keeps it.\n          if (pausedAt && !this.lastResumeError && this.pausedAt?.getTime() !== pausedAt.getTime()) return;\n          throw this.resumeFailedError();\n        }\n      }\n      await sleep(pollBackoffMs(attempt), signal);\n      attempt++;\n    }\n    throw new ResumeWaitTimeoutError(\n      `timeout waiting for session ${this.id} to resume; it may still be resuming, call waitResumed to keep waiting`,\n    );\n  }\n\n  private resumeFailedError(): Error {\n    const suffix = this.lastResumeError ? `: ${this.lastResumeError}` : \"\";\n    return new ResumeFailedError(`resume failed: session ${this.id} reverted to ${this.state}${suffix}`);\n  }\n\n  async waitPaused(timeoutMs?: number, signal?: AbortSignal): Promise<void> {\n    const timeout = timeoutMs ?? 180_000;\n    const deadline = timeout > 0 ? Date.now() + timeout : undefined;\n    const start = Date.now();\n    let sawPausing = false;\n    let attempt = 0;\n    while (deadline === undefined || Date.now() < deadline) {\n      signal?.throwIfAborted();\n      try {\n        const resp = await this.rpcClient.getSession(create(GetSessionRequestSchema, { sessionId: this.id }));\n        if (resp.session) this.applyProto(resp.session);\n      } catch (err) {\n        const mapped = mapError(err);\n        if (mapped instanceof SessionNotFoundError) {\n          await sleep(pollBackoffMs(attempt), signal);\n          attempt++;\n          continue;\n        }\n        throw mapped;\n      }\n      if (this.state === \"PAUSED\") return;\n      if (isTerminal(this.state)) throw this.terminalStateError();\n      if (this.state === \"PAUSING\") {\n        sawPausing = true;\n      } else if (this.state === \"RUNNING\" && (sawPausing || Date.now() - start > PAUSE_REVERT_GRACE_MS)) {\n        throw new PauseFailedError(`pause failed: session ${this.id} reverted to ${this.state}`);\n      }\n      await sleep(pollBackoffMs(attempt), signal);\n      attempt++;\n    }\n    throw new Error(`timeout waiting for session ${this.id} to pause`);\n  }\n\n  private terminalStateError(): Error {\n    const suffix = this.terminalError ? `: ${this.terminalError}` : \"\";\n    return new Error(`session entered terminal state: ${this.state}${suffix}`);\n  }\n\n  // Permanently free this handle's local data plane without terminating the sandbox.\n  release(): void {\n    this.released = true;\n    this.dataPlaneClosed = true;\n    this.resetDataPlane();\n  }\n\n  /**\n   * Terminate this session. Idempotent and safe to call concurrently: the\n   * first successful call terminates and every later one is a no-op, while\n   * concurrent callers join the call already in flight. A call that fails\n   * leaves the session closeable again, so a caller can retry.\n   */\n  async close(): Promise<void> {\n    if (this.closeDone) return;\n    if (this.closing) return this.closing;\n    this.closing = this.closeOnce();\n    try {\n      await this.closing;\n    } finally {\n      this.closing = undefined;\n    }\n  }\n\n  private async closeOnce(): Promise<void> {\n    // Latch the data plane shut and stop renewal before terminating, so a\n    // response in flight cannot revive either.\n    this.dataPlaneClosed = true;\n    this.dataPlaneCredential?.stop();\n    try {\n      const resp = await this.rpcClient.terminateSession(create(TerminateSessionRequestSchema, { sessionId: this.id }));\n      this.closeDone = true;\n      if (resp.session) this.applyProto(resp.session);\n    } catch (err) {\n      // Let a failed close be retried.\n      this.dataPlaneClosed = this.released;\n      throw mapError(err);\n    } finally {\n      this.resetDataPlane();\n    }\n  }\n\n  async closeIfOpen(): Promise<void> {\n    if (isTerminal(this.state)) {\n      this.resetDataPlane();\n      return;\n    }\n    await this.close();\n  }\n\n  async extend(additionalMs: number): Promise<void> {\n    try {\n      const resp = await this.rpcClient.extendSession(\n        create(ExtendSessionRequestSchema, {\n          sessionId: this.id,\n          additionalDuration: durationFromMs(additionalMs),\n        }),\n      );\n      if (resp.session) this.applyProto(resp.session);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async refresh(): Promise<void> {\n    try {\n      const resp = await this.rpcClient.getSession(create(GetSessionRequestSchema, { sessionId: this.id }));\n      if (resp.session) this.applyProto(resp.session);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async metrics(windowMs?: number): Promise<SessionMetrics> {\n    const req = create(GetSessionMetricsRequestSchema, { sessionId: this.id });\n    if (windowMs !== undefined && windowMs !== 0) req.window = durationFromMs(windowMs);\n    try {\n      return sessionMetricsFromProto(await this.rpcClient.getSessionMetrics(req));\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async exposePort(port: number, options?: ExposePortOptions): Promise<ExposedPort> {\n    const req = create(ExposePortRequestSchema, {\n      sessionId: this.id,\n      port,\n    });\n    if (options?.ttlMs && options.ttlMs > 0) {\n      req.expiresAt = timestampFromDate(new Date(Date.now() + options.ttlMs));\n    }\n    if (options?.slug?.trim()) {\n      req.slug = options.slug.trim();\n    }\n    try {\n      const resp = await this.rpcClient.exposePort(req);\n      return {\n        port: resp.port,\n        previewUrl: resp.previewUrl,\n        expiresAt: resp.expiresAt ? timestampDate(resp.expiresAt) : undefined,\n        previewUrlId: resp.previewUrlId,\n        slug: resp.slug,\n        wildcard: resp.wildcard ?? false,\n        wildcardStatus: wildcardStatusFromProto(resp.wildcardStatus),\n        wildcardStatusReason: resp.wildcardStatusReason ?? \"\",\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async unexposePort(port: number): Promise<void> {\n    try {\n      await this.rpcClient.unexposePort(create(UnexposePortRequestSchema, { sessionId: this.id, port }));\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async listExposedPorts(): Promise<ExposedPort[]> {\n    try {\n      const resp = await this.rpcClient.listExposedPorts(create(ListExposedPortsRequestSchema, { sessionId: this.id }));\n      return (resp.ports ?? []).map((p) => ({\n        port: p.port,\n        previewUrl: p.previewUrl,\n        expiresAt: p.expiresAt ? timestampDate(p.expiresAt) : undefined,\n        previewUrlId: p.previewUrlId,\n        slug: p.slug,\n        wildcard: p.wildcard ?? false,\n        wildcardStatus: wildcardStatusFromProto(p.wildcardStatus),\n        wildcardStatusReason: p.wildcardStatusReason ?? \"\",\n      }));\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async updateSshAuthorizedKeys(keys: string[]): Promise<void> {\n    try {\n      await this.rpcClient.updateSSHAuthorizedKeys(\n        create(UpdateSSHAuthorizedKeysRequestSchema, {\n          sessionId: this.id,\n          sshAuthorizedKeys: [...keys],\n        }),\n      );\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /**\n   * Re-delivers the session's secret bindings at the workspace's current versions and restarts its\n   * managed runtime. Processes started before the refresh keep their old values.\n   */\n  async refreshSecrets(): Promise<SecretsRefresh> {\n    try {\n      const response = await this.rpcClient.refreshSessionSecrets(\n        create(RefreshSessionSecretsRequestSchema, { sessionId: this.id }),\n      );\n      return {\n        changed: response.changed,\n        workflowId: response.workflowId,\n        versions: response.versions.map((version) => ({\n          secretName: version.secretName,\n          version: version.version,\n          environmentKey: version.environmentKey,\n          filePath: version.filePath,\n        })),\n      };\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async updateTags(tags: string[]): Promise<void> {\n    await this.update({ tags });\n  }\n\n  async update(options: UpdateSessionOptions): Promise<void> {\n    validateUpdateMaxDurationMs(options.maxDurationMs, options.sticky);\n    const updateReq: Record<string, unknown> = { sessionId: this.id };\n    if (options.name !== undefined) updateReq.name = options.name;\n    if (options.tags !== undefined) {\n      const normalized = normalizeTags(options.tags);\n      if (normalized.length === 0) {\n        updateReq.clearTags = true;\n      } else {\n        updateReq.tags = normalized;\n      }\n    }\n    if (options.sticky !== undefined) updateReq.sticky = options.sticky;\n    if (options.maxDurationMs !== undefined) {\n      updateReq.maxDuration = durationFromMs(options.maxDurationMs);\n    }\n\n    let resp;\n    try {\n      resp = await this.rpcClient.updateSession(create(UpdateSessionRequestSchema, updateReq));\n    } catch (err) {\n      throw mapError(err);\n    }\n    if (resp.session) this.applyProto(resp.session);\n    const warnings = sandboxWarningsFromProto(resp.warnings);\n    this.warnings.splice(0, this.warnings.length, ...warnings);\n    emitWarnings(this.warningHandler, warnings);\n  }\n\n  async attachVolume(volumeId: string, mountPath: string, options?: { readOnly?: boolean }): Promise<void> {\n    try {\n      const resp = await this.rpcClient.attachVolume(\n        create(AttachVolumeRequestSchema, {\n          sessionId: this.id,\n          volume: create(VolumeMountSchema, {\n            volumeId,\n            mountPath,\n            readonly: options?.readOnly ?? false,\n          }),\n        }),\n      );\n      if (resp.attachment) {\n        this.volumeMounts.push({\n          volumeId: resp.attachment.volumeId,\n          mountPath: resp.attachment.mountPath,\n          readOnly: resp.attachment.readonly,\n          state: resp.attachment.state,\n        });\n      }\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async detachVolume(volumeId: string, options?: DetachVolumeOptions): Promise<void> {\n    try {\n      await this.rpcClient.detachVolume(\n        create(DetachVolumeRequestSchema, {\n          sessionId: this.id,\n          volumeId,\n          forceDetach: options?.force ?? false,\n        }),\n      );\n    } catch (err) {\n      throw mapError(err);\n    }\n\n    const waitTimeout = options?.waitTimeoutMs ?? DEFAULT_VOLUME_DETACH_TIMEOUT_MS;\n    if (waitTimeout > 0) {\n      const deadline = Date.now() + waitTimeout;\n      let attempt = 0;\n      while (Date.now() < deadline) {\n        options?.signal?.throwIfAborted();\n        await this.refresh();\n        if (this.isVolumeDetached(volumeId)) break;\n        await sleep(pollBackoffMs(attempt), options?.signal);\n        attempt++;\n      }\n    }\n\n    this.volumeMounts = this.volumeMounts.filter((v) => v.volumeId !== volumeId);\n  }\n\n  async listStorageMounts(): Promise<StorageMount[]> {\n    try {\n      const response = await this.rpcClient.listStorageMounts(\n        create(ListStorageMountsRequestSchema, { sessionId: this.id }),\n      );\n      return (response.mounts ?? []).map(storageMountFromProto);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async attachStorageMount(mount: StorageMountConfig): Promise<StorageMount> {\n    try {\n      const response = await this.rpcClient.attachStorageMount(\n        create(AttachStorageMountRequestSchema, {\n          sessionId: this.id,\n          mount: storageMountSpecToProto(mount),\n        }),\n      );\n      return storageMountFromProto(response.mount!);\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async detachStorageMount(mountId: string): Promise<void> {\n    try {\n      await this.rpcClient.detachStorageMount(create(DetachStorageMountRequestSchema, { sessionId: this.id, mountId }));\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  private isVolumeDetached(volumeId: string): boolean {\n    const attachments = this.volumeMounts.filter((mount) => mount.volumeId === volumeId);\n    return attachments.length === 0 || attachments.every((attachment) => attachment.state === \"DETACHED\");\n  }\n\n  async gitOperation(operation: string, args: Record<string, string>): Promise<string> {\n    try {\n      const resp = await this.rpcClient.gitOperation(\n        create(GitOperationRequestSchema, {\n          sessionId: this.id,\n          operation,\n          args,\n        }),\n      );\n      return resp.output;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async ssh(signal?: AbortSignal): Promise<SSHConnection> {\n    return connectSSH(this.gatewayAddress, this.id, this.#authToken, this.sshOptions);\n  }\n\n  async pause(): Promise<void> {\n    return this.pauseWithAsync(false);\n  }\n\n  async pauseAsync(): Promise<void> {\n    return this.pauseWithAsync(true);\n  }\n\n  private async pauseWithAsync(async: boolean): Promise<void> {\n    try {\n      const resp = await this.rpcClient.pauseSession(create(PauseSessionRequestSchema, { sessionId: this.id, async }));\n      if (resp.session) this.applyProto(resp.session);\n      this.resetDataPlane();\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  /**\n   * Resume and resolve once the session is RUNNING; joins a resume already in flight.\n   * Throws ResumeWaitTimeoutError if the call deadline passes first; the resume may still land.\n   */\n  async resume(): Promise<void> {\n    return this.resumeWithAsync(false);\n  }\n\n  /** Resolve once the resume is accepted; call waitResumed to observe RUNNING. */\n  async resumeAsync(): Promise<void> {\n    return this.resumeWithAsync(true);\n  }\n\n  private async resumeWithAsync(async: boolean): Promise<void> {\n    try {\n      const resp = await this.rpcClient.resumeSession(\n        create(ResumeSessionRequestSchema, { sessionId: this.id, async }),\n      );\n      if (resp.session) this.applyProto(resp.session);\n      this.resetDataPlane();\n    } catch (err) {\n      // The deadline ends the wait for RUNNING, not necessarily the resume.\n      if (!async && err instanceof ConnectError && err.code === Code.DeadlineExceeded) {\n        throw new ResumeWaitTimeoutError(\n          `session ${this.id} did not resume before the deadline; it may still be resuming, call waitResumed to keep waiting`,\n          { cause: err },\n        );\n      }\n      throw mapError(err);\n    }\n  }\n\n  /**\n   * Snapshot this RUNNING session and start children that continue from its\n   * memory and disk while it keeps running. Each child carries\n   * `fork_of_session_id` and `fork_snapshot_id` metadata. A failure after the\n   * snapshot exists throws ForkFailedError with the children already created.\n   */\n  async fork(options?: ForkOptions): Promise<Session[]> {\n    const req = create(ForkSessionRequestSchema, {\n      sessionId: this.id,\n      count: options?.count ?? 0,\n      namePrefix: options?.namePrefix ?? \"\",\n      wait: options?.wait ?? false,\n    });\n    try {\n      const resp = await this.rpcClient.forkSession(req);\n      return resp.sessions.map((proto) => this.forkChild(proto));\n    } catch (err) {\n      const mapped = mapError(err);\n      const partial = ConnectError.from(err).findDetails(ForkSessionResponseSchema)[0];\n      if (!partial) throw mapped;\n      const children = partial.sessions.map((proto) => this.forkChild(proto));\n      throw new ForkFailedError(mapped.message, partial.snapshotId, children, { cause: mapped });\n    }\n  }\n\n  private forkChild(proto: SandboxSession): Session {\n    return new Session(\n      this.rpcClient,\n      proto,\n      this.#authToken,\n      this.gatewayAddress,\n      this.sshOptions,\n      this.dataPlaneReadyTimeoutMs,\n      undefined,\n      [],\n      this.warningHandler,\n    );\n  }\n\n  async [Symbol.asyncDispose](): Promise<void> {\n    if (this.released) return;\n    await this.closeIfOpen();\n  }\n}\n\nfunction sessionStateFromProto(state: ProtoSessionState): SessionState {\n  switch (state) {\n    case ProtoSessionState.CREATING:\n      return \"CREATING\";\n    case ProtoSessionState.RUNNING:\n      return \"RUNNING\";\n    case ProtoSessionState.PAUSED:\n      return \"PAUSED\";\n    case ProtoSessionState.USER_SHUTDOWN:\n      return \"USER_SHUTDOWN\";\n    case ProtoSessionState.PAUSING:\n      return \"PAUSING\";\n    case ProtoSessionState.RESUMING:\n      return \"RESUMING\";\n    case ProtoSessionState.TERMINATING:\n      return \"TERMINATING\";\n    case ProtoSessionState.TERMINATED:\n      return \"TERMINATED\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\n// Unset maps to \"UNSPECIFIED\" rather than undefined so the same response\n// produces the same value in every SDK — Go and Python both report UNSPECIFIED\n// for an omitted status.\nexport function wildcardStatusFromProto(status: ProtoWildcardStatus | undefined): WildcardStatus {\n  switch (status) {\n    case ProtoWildcardStatus.PENDING:\n      return \"PENDING\";\n    case ProtoWildcardStatus.READY:\n      return \"READY\";\n    case ProtoWildcardStatus.FAILED:\n      return \"FAILED\";\n    case ProtoWildcardStatus.DISABLED:\n      return \"DISABLED\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\nfunction templateRuntimeStateFromProto(state: ProtoTemplateRuntimeState): RuntimeState {\n  switch (state) {\n    case ProtoTemplateRuntimeState.STARTING:\n      return \"STARTING\";\n    case ProtoTemplateRuntimeState.READY:\n      return \"READY\";\n    case ProtoTemplateRuntimeState.FAILED:\n      return \"FAILED\";\n    case ProtoTemplateRuntimeState.STOPPED:\n      return \"STOPPED\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\n/** Returns true if the session can accept commands. */\nexport function isReady(state: SessionState): boolean {\n  return state === \"RUNNING\";\n}\n\nexport function isTerminal(state: SessionState): boolean {\n  return state === \"TERMINATED\" || state === \"TERMINATING\";\n}\n\nfunction streamFromRunHandle(sessionId: string, command: string, args: string[], proc: ProcessRunHandle): Stream {\n  const controller = new AbortController();\n  const stream = new Stream(controller);\n\n  void pumpRunReadable(stream, proc.stdout, false);\n  void pumpRunReadable(stream, proc.stderr, true);\n  void (async () => {\n    try {\n      const result = await proc;\n      stream.finish({\n        sessionId,\n        command,\n        args,\n        status: commandStatusFromResult(result),\n        exitCode: result.exitCode,\n        durationMs: result.durationMs ?? 0,\n        reason: result.reason,\n        disk: result.disk,\n        outputs: [],\n        stdout: result.stdout,\n        stderr: result.stderr,\n      });\n    } catch (err) {\n      stream.fail(err);\n    }\n  })();\n  controller.signal.addEventListener(\"abort\", () => {\n    void proc.kill();\n  });\n  return stream;\n}\n\nasync function pumpRunReadable(stream: Stream, readable: ReadableStream<Uint8Array>, isStderr: boolean): Promise<void> {\n  const reader = readable.getReader();\n  for (;;) {\n    const { done, value } = await reader.read();\n    if (done) return;\n    stream.push({ data: value, isStderr, isFinal: false });\n  }\n}\n\nasync function* streamReadableOutputs(readable: ReadableStream<Uint8Array>, isStderr: boolean) {\n  const reader = readable.getReader();\n  try {\n    for (;;) {\n      const { done, value } = await reader.read();\n      if (done) return;\n      yield { data: value, isStderr, isFinal: false };\n    }\n  } finally {\n    reader.releaseLock();\n  }\n}\n\nasync function collectReadableOutputs(\n  readable: ReadableStream<Uint8Array>,\n  isStderr: boolean,\n  chunks: Uint8Array[],\n  outputs: Output[],\n  onOutput?: (output: Output) => void,\n): Promise<void> {\n  for await (const output of streamReadableOutputs(readable, isStderr)) {\n    onOutput?.(output);\n    outputs.push(output);\n    chunks.push(new Uint8Array(output.data));\n  }\n}\n\n/** A timed-out run can arrive as exitCode 0, so timedOut outranks the exit code. */\nfunction commandStatusFromResult(result: { exitCode: number; signal?: string; timedOut?: boolean }): CommandStatus {\n  if (result.timedOut) return \"TIMED_OUT\";\n  return result.exitCode === 0 && !result.signal ? \"SUCCEEDED\" : \"FAILED\";\n}\n\nfunction concatUint8Arrays(arrays: Uint8Array[]): Uint8Array {\n  if (arrays.length === 0) return new Uint8Array();\n  if (arrays.length === 1) return arrays[0];\n  const totalLength = arrays.reduce((sum, a) => sum + a.length, 0);\n  const result = new Uint8Array(totalLength);\n  let offset = 0;\n  for (const a of arrays) {\n    result.set(a, offset);\n    offset += a.length;\n  }\n  return result;\n}\n\nfunction normalizeTags(tags: string[]): string[] {\n  return tags.map((tag) => tag.trim().toLowerCase()).filter((tag) => tag.length > 0);\n}\n\nfunction sleep(ms: number, signal?: AbortSignal): Promise<void> {\n  return new Promise((resolve, reject) => {\n    if (signal?.aborted) {\n      reject(signal.reason);\n      return;\n    }\n    const timer = setTimeout(resolve, ms);\n    signal?.addEventListener(\n      \"abort\",\n      () => {\n        clearTimeout(timer);\n        reject(signal.reason);\n      },\n      { once: true },\n    );\n  });\n}\n","import { timestampDate } from \"@bufbuild/protobuf/wkt\";\nimport { Code, ConnectError, createClient, type Client, type Interceptor } from \"@connectrpc/connect\";\nimport { createGrpcTransport, type Http2SessionManager } from \"@connectrpc/connect-node\";\n\nimport { setSdkIdentityHeaders } from \"./auth.js\";\nimport { setClientMetadataHeaders } from \"./client-metadata.js\";\nimport { pollBackoffMs } from \"./constants.js\";\nimport { DataPlaneNotReadyError, InvalidStateError, isPausedSessionStateError } from \"./errors.js\";\nimport { DrainingHttp2SessionManager, KEEPALIVE_PING_OPTIONS } from \"./http2-drain.js\";\nimport {\n  DataPlaneRouteStatus,\n  SandboxSessionDataPlaneService,\n  type SessionCredential,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport { refusedStreamRetry } from \"./refused-stream.js\";\nimport type { Session } from \"./session.js\";\n\nexport const dataPlaneCredentialHeader = \"x-tenki-session-cert\";\n\ninterface SharedDataPlaneSessionManager {\n  manager: Http2SessionManager;\n  origin: string;\n  references: number;\n}\n\nconst sharedDataPlaneSessionManagers = new Map<string, SharedDataPlaneSessionManager>();\nconst dataPlaneSessionManagers = new WeakMap<object, SharedDataPlaneSessionManager>();\n\nexport interface DataPlaneConfig {\n  endpoint?: string;\n  credential?: SessionCredential;\n  routeStatus?: DataPlaneRouteStatus;\n}\n\nexport class DataPlaneEndpointHints {\n  private endpoint = \"\";\n  private resolving?: Promise<string>;\n\n  current(): string {\n    return this.endpoint;\n  }\n\n  remember(endpoint: string): void {\n    const resolved = endpoint.trim();\n    if (resolved) this.endpoint = resolved;\n  }\n\n  clear(): void {\n    this.endpoint = \"\";\n  }\n\n  async resolve(resolveEndpoint: () => Promise<string>): Promise<string> {\n    for (;;) {\n      if (this.endpoint) return this.endpoint;\n      const owner = !this.resolving;\n      if (owner) {\n        this.resolving = resolveEndpoint().then((endpoint) => {\n          this.remember(endpoint);\n          return endpoint;\n        });\n      }\n      const resolving = this.resolving;\n      if (!resolving) continue;\n      try {\n        return await resolving;\n      } catch (err) {\n        if (owner) throw err;\n      } finally {\n        if (this.resolving === resolving) this.resolving = undefined;\n      }\n    }\n  }\n}\n\nexport class DataPlaneCredentialManager {\n  #credential = \"\";\n  // #endpoint is the endpoint #credential was minted for. A data-plane\n  // credential authorizes one session on one node, so it is only ever handed\n  // to a client aimed at that endpoint. An empty value means the engine\n  // returned a credential before the endpoint was known, and the first\n  // endpoint the session resolves to adopts it.\n  #endpoint = \"\";\n  private expiresAt?: Date;\n  private timer?: ReturnType<typeof setTimeout>;\n  private stopped = false;\n\n  constructor(\n    private readonly session: Session,\n    initial?: SessionCredential,\n    endpoint = \"\",\n  ) {\n    this.set(initial, endpoint);\n  }\n\n  current(): string {\n    return this.#credential;\n  }\n\n  /** The credential, but only for the endpoint it was minted for. */\n  currentFor(endpoint: string): { credential: string; bound: true } | { bound: false } {\n    if (!this.#credential) return { credential: \"\", bound: true };\n    if (this.#endpoint !== endpoint) return { bound: false };\n    return { credential: this.#credential, bound: true };\n  }\n\n  /** Bind an unbound credential to the first endpoint the session resolves to. */\n  adoptEndpoint(endpoint: string): void {\n    if (this.#credential && !this.#endpoint) this.#endpoint = endpoint;\n  }\n\n  set(credential?: SessionCredential, endpoint = \"\"): void {\n    if (!credential?.credential || this.stopped) return;\n    this.#credential = credential.credential;\n    this.#endpoint = endpoint;\n    this.expiresAt = credential.expiresAt ? timestampDate(credential.expiresAt) : undefined;\n    this.schedule();\n  }\n\n  stop(): void {\n    this.stopped = true;\n    if (this.timer) clearTimeout(this.timer);\n  }\n\n  private schedule(): void {\n    if (this.stopped || !this.expiresAt) return;\n    if (this.timer) clearTimeout(this.timer);\n    const remainingMs = this.expiresAt.getTime() - Date.now();\n    const delayMs = Math.max(1_000, Math.floor(remainingMs / 2));\n    this.timer = setTimeout(() => void this.renewLoop(), delayMs);\n    this.timer.unref?.();\n  }\n\n  private async renewLoop(): Promise<void> {\n    let attempt = 0;\n    while (!this.stopped) {\n      try {\n        if (await this.session.renewDataPlaneCredential()) return;\n      } catch (err) {\n        // Retry only transient readiness errors; stop on terminal route failure or fatal errors (auth/not-found) instead of spinning forever, and never rethrow out of this fire-and-forget loop.\n        const retryable =\n          (err instanceof DataPlaneNotReadyError && !err.terminal) ||\n          (err instanceof InvalidStateError && !isPausedSessionStateError(err));\n        if (!retryable) {\n          this.stopped = true;\n          return;\n        }\n      }\n      const delayMs = Math.max(1_000, pollBackoffMs(attempt));\n      await new Promise((resolve) => setTimeout(resolve, delayMs));\n      attempt++;\n    }\n  }\n}\n\nexport function createDataPlaneClient(\n  endpoint: string,\n  credentials: DataPlaneCredentialManager,\n  sessionId: string,\n): Client<typeof SandboxSessionDataPlaneService> {\n  // The interceptor is bound to the session and endpoint this client targets.\n  // A credential minted for another node, or a request naming another session,\n  // is refused here rather than sent to the wrong destination.\n  const credentialInterceptor: Interceptor = (next) => async (req) => {\n    if (!req.stream) validateRequestSession(req.message, sessionId);\n    const current = credentials.currentFor(endpoint);\n    if (!current.bound) {\n      throw new ConnectError(\n        `sandbox: refusing to send a data-plane credential to the wrong destination: credential was minted for another endpoint, not ${endpoint}`,\n        Code.PermissionDenied,\n      );\n    }\n    if (current.credential) req.header.set(dataPlaneCredentialHeader, current.credential);\n    setSdkIdentityHeaders(req.header);\n    setClientMetadataHeaders(req.header);\n    return req.stream ? next({ ...req, message: validateStreamRequests(req.message, sessionId) }) : next(req);\n  };\n  // refusedStreamRetry is outermost so a retried attempt re-runs the credential\n  // interceptor (fresh connection re-applies auth).\n  const origin = new URL(endpoint).origin;\n  let sharedSessionManager = sharedDataPlaneSessionManagers.get(origin);\n  if (!sharedSessionManager) {\n    sharedSessionManager = {\n      manager: new DrainingHttp2SessionManager(origin, KEEPALIVE_PING_OPTIONS),\n      origin,\n      references: 0,\n    };\n    sharedDataPlaneSessionManagers.set(origin, sharedSessionManager);\n  }\n  sharedSessionManager.references++;\n  const transport = createGrpcTransport({\n    baseUrl: endpoint,\n    interceptors: [refusedStreamRetry, credentialInterceptor],\n    sessionManager: sharedSessionManager.manager,\n  });\n  const client = createClient(SandboxSessionDataPlaneService, transport);\n  dataPlaneSessionManagers.set(client, sharedSessionManager);\n  return client;\n}\n\nfunction validateRequestSession(message: unknown, sessionId: string): void {\n  const requested = requestSessionId(message);\n  if (requested && requested !== sessionId) {\n    throw new ConnectError(\n      `sandbox: refusing to send a data-plane credential to the wrong destination: request targets session ${requested} on a client credentialed for session ${sessionId}`,\n      Code.PermissionDenied,\n    );\n  }\n}\n\nasync function* validateStreamRequests<T>(messages: AsyncIterable<T>, sessionId: string): AsyncGenerator<T> {\n  for await (const message of messages) {\n    validateRequestSession(message, sessionId);\n    yield message;\n  }\n}\n\nfunction requestSessionId(message: unknown, depth = 3): string | undefined {\n  if (typeof message !== \"object\" || message === null || ArrayBuffer.isView(message)) return undefined;\n  const direct = (message as { sessionId?: unknown }).sessionId;\n  if (typeof direct === \"string\" && direct) return direct;\n  if (depth <= 0) return undefined;\n  for (const value of Object.values(message)) {\n    if (Array.isArray(value)) continue;\n    const nested = requestSessionId(value, depth - 1);\n    if (nested) return nested;\n  }\n  return undefined;\n}\n\nexport async function warmDataPlaneConnection(client: Client<typeof SandboxSessionDataPlaneService>) {\n  await dataPlaneSessionManagers.get(client)?.manager.connect();\n}\n\nexport function closeDataPlaneConnection(client?: Client<typeof SandboxSessionDataPlaneService>) {\n  if (!client) return;\n  const sharedSessionManager = dataPlaneSessionManagers.get(client);\n  if (!sharedSessionManager) return;\n  dataPlaneSessionManagers.delete(client);\n  sharedSessionManager.references--;\n  if (sharedSessionManager.references > 0) return;\n  if (sharedDataPlaneSessionManagers.get(sharedSessionManager.origin) === sharedSessionManager) {\n    sharedDataPlaneSessionManagers.delete(sharedSessionManager.origin);\n  }\n  sharedSessionManager.manager.abort();\n}\n","import type http2 from \"node:http2\";\nimport { Http2SessionManager } from \"@connectrpc/connect-node\";\n\nexport const isBunRuntime = typeof (process.versions as { bun?: string }).bun === \"string\";\n\n// Matches the Go SDK's HTTP/2 ReadIdleTimeout/PingTimeout so a dead connection fails within ~35s.\nexport const KEEPALIVE_PING_OPTIONS = { pingIntervalMs: 30_000, pingTimeoutMs: 5_000 };\n\n// Bun's node:http2 client destroys a stream as soon as END_STREAM arrives, even when\n// DATA frames coalesced into the same socket read are still buffered, so the reader\n// fails with ERR_STREAM_PREMATURE_CLOSE (oven-sh/bun#14249; still present in Bun 1.4.0).\n// Node defers the destroy until the consumer drains the buffer; this restores that.\nexport function deferDestroyUntilDrained(stream: http2.ClientHttp2Stream): void {\n  const destroy = stream.destroy.bind(stream);\n  stream.destroy = ((err?: Error) => {\n    const cleanClose = !err && (stream.rstCode === undefined || stream.rstCode === 0);\n    if (!cleanClose || stream.readableEnded || stream.readableLength === 0) return destroy(err);\n    stream.once(\"end\", () => {\n      if (!stream.destroyed) destroy();\n    });\n    stream.read(0);\n    return stream;\n  }) as typeof stream.destroy;\n}\n\n// Runtime-compatibility boundary: every stream the connect-node transport opens goes\n// through request(), so this is the one place the Bun drain fix can be applied.\nexport class DrainingHttp2SessionManager extends Http2SessionManager {\n  private readonly configuredSessions = new WeakSet<http2.Http2Session>();\n\n  constructor(\n    url: URL | string,\n    pingOptions?: ConstructorParameters<typeof Http2SessionManager>[1],\n    http2SessionOptions?: ConstructorParameters<typeof Http2SessionManager>[2],\n    private readonly drain: boolean = isBunRuntime,\n    // Bun's setLocalWindowSize stalls every response larger than the default 64 KiB window.\n    private readonly enlargeWindow: boolean = !isBunRuntime,\n  ) {\n    super(url, pingOptions, http2SessionOptions);\n  }\n\n  override async request(\n    method: string,\n    path: string,\n    headers: http2.OutgoingHttpHeaders,\n    options: Omit<http2.ClientSessionRequestOptions, \"signal\">,\n  ): Promise<http2.ClientHttp2Stream> {\n    const stream = await super.request(method, path, headers, options);\n    const session = stream.session;\n    if (session && !session.destroyed && !session.closed && !this.configuredSessions.has(session)) {\n      this.configuredSessions.add(session);\n      // connect-node can destroy a session for a PING timeout after it detached its own error\n      // listener; streams still observe the failure, so keep the late session error from crashing.\n      session.on(\"error\", () => {});\n      if (this.enlargeWindow) {\n        try {\n          // Concurrent streams share the connection's receive window.\n          session.setLocalWindowSize(Math.max(session.state.effectiveLocalWindowSize ?? 0, 16 * 1024 * 1024));\n        } catch {\n          // Keep the default window rather than failing a stream that is already open.\n        }\n      }\n    }\n    if (this.drain) deferDestroyUntilDrained(stream);\n    return stream;\n  }\n}\n","import { Code, ConnectError, type Interceptor } from \"@connectrpc/connect\";\n\nexport const REFUSED_STREAM_MAX_RETRIES = 3;\nexport const REFUSED_STREAM_BACKOFF_MS = 150;\n\nconst HTTP2_TRANSIENT_CODES = [\"NGHTTP2_REFUSED_STREAM\", \"ERR_HTTP2_GOAWAY_SESSION\"];\n\n// isRefusedStreamOrGoAway reports whether err (or any error within a few levels\n// of its cause chain) is an HTTP/2 REFUSED_STREAM or GOAWAY.\nexport function isRefusedStreamOrGoAway(err: unknown): boolean {\n  const describe = (e: unknown): string =>\n    e instanceof Error ? `${e.message} ${(e as { code?: string }).code ?? \"\"}` : String(e ?? \"\");\n  let cur: unknown = err;\n  let depth = 0;\n  while (cur && depth++ < 4) {\n    const s = describe(cur);\n    if (/REFUSED_STREAM|GOAWAY/i.test(s) || HTTP2_TRANSIENT_CODES.some((c) => s.includes(c))) {\n      return true;\n    }\n    cur = (cur as { cause?: unknown })?.cause;\n  }\n  return false;\n}\n\n// Only use this when replay or an idempotent fallback is safe.\nexport function isRetryableStreamTransportError(err: unknown): boolean {\n  if (isRefusedStreamOrGoAway(err)) return true;\n  const connectErr = err instanceof ConnectError ? err : ConnectError.from(err);\n  if (connectErr.code !== Code.Aborted && connectErr.code !== Code.Unavailable) return false;\n  return /ECONNRESET|connection reset|socket hang up|unexpected EOF|stream closed before headers/i.test(\n    connectErr.message,\n  );\n}\n\nexport class WaitStreamEndedError extends Error {}\n\n// Connection-level HTTP/2 failures that clients report under any code.\n// Keep these markers in sync with the Go and Python SDKs.\nconst WAIT_CONNECTION_MARKERS = /refused_stream|refused stream|goaway|too_many_pings|enhance_your_calm/i;\n\n// Markers for HTTP/2 and proxy failures across connect-go, connect-node and grpc-core.\nconst WAIT_TRANSPORT_MARKERS =\n  /http2:|rst_stream|stream reset|stream error|stream removed|stream closed|internal_error|econnreset|connection reset|connection lost|i\\/o timeout|socket closed|socket hang up|unexpected eof|missing status|no grpc-status trailer|incomplete envelope|server closed|transport closing|timeout awaiting response headers|upstream request timeout/i;\n\n// Readiness is safe to recover by polling; command streams must not be replayed.\nexport function isRetryableWaitStreamError(err: unknown): boolean {\n  if (err instanceof WaitStreamEndedError) return true;\n  const error = err instanceof ConnectError ? err : ConnectError.from(err);\n  return error.code === Code.Unimplemented || isTransientWaitError(err);\n}\n\nexport function isRetryableWaitPollError(err: unknown): boolean {\n  const error = err instanceof ConnectError ? err : ConnectError.from(err);\n  return error.code === Code.NotFound || isTransientWaitError(err);\n}\n\n// Callers must rule out their own cancellation before treating Canceled as transient.\nfunction isTransientWaitError(err: unknown): boolean {\n  // Only RPC errors qualify: a terminal-state error may quote transport text from the server.\n  if (!(err instanceof ConnectError)) return false;\n  if (err.code === Code.Unavailable || err.code === Code.DeadlineExceeded) return true;\n  const chain: unknown[] = [];\n  for (let current: unknown = err; current && chain.length < 4; current = (current as { cause?: unknown }).cause) {\n    chain.push(current);\n  }\n  const messages = chain.map((e) => (e instanceof Error ? e.message : String(e)));\n  if (isRefusedStreamOrGoAway(err) || messages.some((m) => WAIT_CONNECTION_MARKERS.test(m))) return true;\n  // connect reports a stream cut by GOAWAY as an incomplete envelope.\n  const protocolError = err.code === Code.InvalidArgument && messages.some((m) => /protocol error/i.test(m));\n  if (!protocolError && ![Code.Internal, Code.Aborted, Code.Unknown, Code.Canceled].includes(err.code)) return false;\n  if (chain.some((e) => e instanceof ConnectError && e.code === Code.DeadlineExceeded)) return true;\n  return messages.some((m) => WAIT_TRANSPORT_MARKERS.test(m));\n}\n\nfunction jitter(ms: number): number {\n  return Math.round(ms * (0.75 + Math.random() * 0.5));\n}\n\nfunction sleep(ms: number, signal?: AbortSignal): Promise<void> {\n  return new Promise((resolve, reject) => {\n    if (signal?.aborted) {\n      reject(signal.reason);\n      return;\n    }\n    const timer = setTimeout(resolve, ms);\n    signal?.addEventListener(\n      \"abort\",\n      () => {\n        clearTimeout(timer);\n        reject(signal.reason);\n      },\n      { once: true },\n    );\n  });\n}\n\nexport const refusedStreamRetry: Interceptor = (next) => async (req) => {\n  if (req.stream) return next(req);\n  for (let attempt = 0; ; attempt++) {\n    try {\n      return await next(req);\n    } catch (err) {\n      if (attempt >= REFUSED_STREAM_MAX_RETRIES || !isRefusedStreamOrGoAway(err)) throw err;\n      await sleep(jitter(REFUSED_STREAM_BACKOFF_MS * (attempt + 1)), req.signal);\n    }\n  }\n};\n","import { create } from \"@bufbuild/protobuf\";\n\nimport { CapabilityUnavailableError, PrimitiveTimeoutError } from \"./errors.js\";\nimport {\n  DialClosed_Reason,\n  DialRequestSchema,\n  SandboxSessionDataPlaneServiceDialRequestSchema,\n  type DialRequest,\n  type DialResponse,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport type { Session } from \"./session.js\";\n\nexport interface DialOptions {\n  connectTimeoutMs?: number;\n}\n\nexport type DialStream = {\n  readable: ReadableStream<Uint8Array>;\n  writable: WritableStream<Uint8Array>;\n};\n\nexport async function dial(session: Session, unixSocketPath: string, options?: DialOptions): Promise<DialStream> {\n  for (let attempt = 0; ; attempt++) {\n    const outbound = new AsyncQueue<DialRequest>();\n    outbound.push(\n      create(DialRequestSchema, {\n        payload: {\n          case: \"open\",\n          value: {\n            sessionId: session.id,\n            target: { case: \"unixSocketPath\", value: unixSocketPath },\n            connectTimeoutMs: options?.connectTimeoutMs ?? 0,\n          },\n        },\n      }),\n    );\n\n    const dataPlane = await session.requireDataPlane();\n    const responses = unwrapDataPlaneDial(dataPlane.dial(wrapDataPlaneDial(outbound)));\n    const responseIterator = responses[Symbol.asyncIterator]();\n    let first: IteratorResult<DialResponse>;\n    try {\n      first = await responseIterator.next();\n    } catch (err) {\n      if (attempt === 0 && (await session.reauthOnUnauthenticated(err))) {\n        outbound.close();\n        continue;\n      }\n      throw err;\n    }\n    if (first.done) throw new Error(\"sandbox dial closed before open\");\n    if (first.value.payload.case === \"closed\") {\n      const closed = first.value.payload.value;\n      if (closed.reason === DialClosed_Reason.CAPABILITY_UNAVAILABLE) {\n        if (closed.detail?.startsWith(\"first_frame_timeout\")) {\n          throw new PrimitiveTimeoutError(\"dial\", closed.detail);\n        }\n        throw new CapabilityUnavailableError(\"dial\", closed.detail || undefined);\n      }\n      throw new Error(closed.detail || `sandbox dial failed: ${DialClosed_Reason[closed.reason]}`);\n    }\n    if (first.value.payload.case !== \"opened\") throw new Error(\"sandbox dial did not open\");\n\n    const writable = new WritableStream<Uint8Array>({\n      write(chunk) {\n        outbound.push(create(DialRequestSchema, { payload: { case: \"data\", value: chunk } }));\n      },\n      close() {\n        outbound.push(create(DialRequestSchema, { payload: { case: \"halfClose\", value: true } }));\n        outbound.close();\n      },\n      abort(reason) {\n        outbound.fail(reason);\n      },\n    });\n\n    const readable = new ReadableStream<Uint8Array>({\n      async start(controller) {\n        try {\n          for (;;) {\n            const next = await responseIterator.next();\n            if (next.done) break;\n            const frame = next.value;\n            if (frame.payload.case === \"data\") controller.enqueue(frame.payload.value);\n            if (frame.payload.case === \"closed\") {\n              controller.close();\n              return;\n            }\n          }\n          controller.close();\n        } catch (err) {\n          controller.error(err);\n        }\n      },\n      cancel() {\n        outbound.close();\n      },\n    });\n\n    return { readable, writable };\n  }\n}\n\nasync function* wrapDataPlaneDial(outbound: AsyncIterable<DialRequest>) {\n  for await (const frame of outbound) {\n    yield create(SandboxSessionDataPlaneServiceDialRequestSchema, { frame });\n  }\n}\n\nasync function* unwrapDataPlaneDial(responses: AsyncIterable<{ frame?: DialResponse }>) {\n  for await (const response of responses) {\n    if (response.frame) yield response.frame;\n  }\n}\n\nclass AsyncQueue<T> implements AsyncIterable<T> {\n  private values: T[] = [];\n  private resolvers: Array<(result: IteratorResult<T>) => void> = [];\n  private done = false;\n  private error: unknown;\n\n  push(value: T): void {\n    const resolve = this.resolvers.shift();\n    if (resolve) resolve({ done: false, value });\n    else this.values.push(value);\n  }\n\n  close(): void {\n    this.done = true;\n    for (const resolve of this.resolvers.splice(0)) resolve({ done: true, value: undefined });\n  }\n\n  fail(error: unknown): void {\n    this.error = error;\n    this.close();\n  }\n\n  async *[Symbol.asyncIterator](): AsyncIterator<T> {\n    for (;;) {\n      if (this.values.length > 0) {\n        yield this.values.shift()!;\n        continue;\n      }\n      if (this.error) throw this.error;\n      if (this.done) return;\n      const next = await new Promise<IteratorResult<T>>((resolve) => this.resolvers.push(resolve));\n      if (next.done) return;\n      yield next.value;\n    }\n  }\n}\n","import { create } from \"@bufbuild/protobuf\";\n\nimport { FileNotFoundError, mapError, StreamClosedError } from \"./errors.js\";\nimport {\n  ListRequestSchema,\n  MkdirRequestSchema,\n  ReadFileStreamRequestSchema,\n  RemoveRequestSchema,\n  SandboxSessionDataPlaneServiceListRequestSchema,\n  SandboxSessionDataPlaneServiceMkdirRequestSchema,\n  SandboxSessionDataPlaneServiceReadFileStreamRequestSchema,\n  SandboxSessionDataPlaneServiceRemoveRequestSchema,\n  SandboxSessionDataPlaneServiceStatRequestSchema,\n  SandboxSessionDataPlaneServiceWriteFileStreamRequestSchema,\n  StatRequestSchema,\n  WriteFileStreamRequestSchema,\n  type ListResponse,\n  type ReadFileStreamResponse,\n  type StatResponse,\n  type WriteFileStreamRequest,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport type { Session } from \"./session.js\";\n\nexport interface FileInfo {\n  path: string;\n  size: bigint;\n  mode: number;\n  isDir: boolean;\n  modifiedUnixNs: bigint;\n  isSymlink?: boolean;\n  symlinkTarget?: string;\n}\n\nexport interface ReadStreamOptions {\n  offset?: bigint | number;\n  length?: bigint | number;\n  chunkBytes?: number;\n}\n\nexport interface WriteStreamOptions {\n  mode?: number;\n  truncate?: boolean;\n  sync?: boolean;\n  /** Writes outside the workdir as root; setuid, setgid and sticky bits are never applied. */\n  privileged?: boolean;\n}\n\nexport interface ListOptions {\n  includeHidden?: boolean;\n}\n\nexport async function readFileStream(\n  session: Session,\n  path: string,\n  options?: ReadStreamOptions,\n): Promise<ReadableStream<Uint8Array>> {\n  const request = create(ReadFileStreamRequestSchema, {\n    sessionId: session.id,\n    path,\n    offset: toBigInt(options?.offset),\n    length: toBigInt(options?.length),\n    chunkBytes: options?.chunkBytes ?? 0,\n  });\n\n  return new ReadableStream<Uint8Array>({\n    async start(controller) {\n      try {\n        const dataPlane = await session.requireDataPlane();\n        const responses = unwrapReadFileStream(\n          dataPlane.readFileStream(create(SandboxSessionDataPlaneServiceReadFileStreamRequestSchema, { request })),\n        );\n        for await (const frame of responses) {\n          if (frame.data.byteLength > 0) controller.enqueue(frame.data);\n          if (frame.eof) break;\n        }\n        controller.close();\n      } catch (err) {\n        controller.error(mapError(err));\n      }\n    },\n  });\n}\n\nconst RPC_DONE = Symbol(\"rpc-done\");\n\nexport async function writeFileStream(\n  session: Session,\n  path: string,\n  data: ReadableStream<Uint8Array>,\n  options?: WriteStreamOptions,\n): Promise<void> {\n  const outbound = new AsyncQueue<WriteFileStreamRequest>();\n  outbound.push(\n    create(WriteFileStreamRequestSchema, {\n      payload: {\n        case: \"start\",\n        value: {\n          sessionId: session.id,\n          path,\n          mode: options?.mode ?? 0o644,\n          truncate: options?.truncate ?? true,\n          sync: options?.sync ?? false,\n          privileged: options?.privileged ?? false,\n        },\n      },\n    }),\n  );\n\n  const dataPlane = await session.requireDataPlane();\n  const abort = new AbortController();\n  const response = dataPlane.writeFileStream(wrapWriteFileStream(outbound), { signal: abort.signal });\n  // Settles when the RPC ends either way (also marking a rejection handled; the awaits below still\n  // observe it), so a server that ends the stream is noticed even while the source is stalled.\n  let rpcSettled = false;\n  const rpcDone = new Promise<typeof RPC_DONE>((resolve) => {\n    const settle = () => {\n      rpcSettled = true;\n      resolve(RPC_DONE);\n    };\n    response.then(settle, settle);\n  });\n  const reader = data.getReader();\n  try {\n    for (;;) {\n      const next = rpcSettled ? RPC_DONE : await Promise.race([rpcDone, reader.read()]);\n      if (next === RPC_DONE) {\n        // The server ended the stream before the source did; cancel the source (resolving the pending read).\n        void reader.cancel().catch(() => {});\n        await response; // surfaces the server's error when it aborted\n        throw new StreamClosedError(\"server ended the write stream before all data was sent\");\n      }\n      if (next.done) break;\n      outbound.push(create(WriteFileStreamRequestSchema, { payload: { case: \"data\", value: next.value } }));\n    }\n    outbound.close();\n    await response;\n  } catch (err) {\n    abort.abort(); // cancel the RPC so the server sees an abort, not a clean half-close (SC-012)\n    outbound.fail(err);\n    throw mapError(err);\n  } finally {\n    reader.releaseLock();\n  }\n}\n\nexport async function stat(session: Session, path: string): Promise<FileInfo> {\n  try {\n    const request = create(StatRequestSchema, { sessionId: session.id, path });\n    const dataPlane = await session.requireDataPlane();\n    const resp: StatResponse = (\n      await dataPlane.stat(create(SandboxSessionDataPlaneServiceStatRequestSchema, { request }))\n    ).response!;\n    if (!resp.exists) {\n      throw new FileNotFoundError(`no such file or directory: ${path}`);\n    }\n    return {\n      path,\n      size: resp.size,\n      mode: resp.mode,\n      isDir: resp.isDir,\n      modifiedUnixNs: resp.modifiedUnixNs,\n      isSymlink: resp.isSymlink,\n      symlinkTarget: resp.symlinkTarget || undefined,\n    };\n  } catch (err) {\n    throw mapError(err);\n  }\n}\n\nexport async function mkdir(session: Session, path: string): Promise<void> {\n  try {\n    const request = create(MkdirRequestSchema, { sessionId: session.id, path, mode: 0o755, recursive: true });\n    const dataPlane = await session.requireDataPlane();\n    await dataPlane.mkdir(create(SandboxSessionDataPlaneServiceMkdirRequestSchema, { request }));\n  } catch (err) {\n    throw mapError(err);\n  }\n}\n\nexport async function remove(session: Session, path: string): Promise<void> {\n  try {\n    const request = create(RemoveRequestSchema, { sessionId: session.id, path, recursive: true });\n    const dataPlane = await session.requireDataPlane();\n    await dataPlane.remove(create(SandboxSessionDataPlaneServiceRemoveRequestSchema, { request }));\n  } catch (err) {\n    throw mapError(err);\n  }\n}\n\nexport async function list(session: Session, path: string, options?: ListOptions): Promise<FileInfo[]> {\n  try {\n    const request = create(ListRequestSchema, {\n      sessionId: session.id,\n      path,\n      includeHidden: options?.includeHidden ?? false,\n    });\n    const dataPlane = await session.requireDataPlane();\n    const resp: ListResponse = (\n      await dataPlane.list(create(SandboxSessionDataPlaneServiceListRequestSchema, { request }))\n    ).response!;\n    return resp.entries.map((entry) => ({\n      path: entry.name,\n      size: entry.size,\n      mode: entry.mode,\n      isDir: entry.isDir,\n      modifiedUnixNs: entry.modifiedUnixNs,\n    }));\n  } catch (err) {\n    throw mapError(err);\n  }\n}\n\nasync function* unwrapReadFileStream(responses: AsyncIterable<{ response?: ReadFileStreamResponse }>) {\n  for await (const response of responses) {\n    if (response.response) yield response.response;\n  }\n}\n\nasync function* wrapWriteFileStream(outbound: AsyncIterable<WriteFileStreamRequest>) {\n  for await (const frame of outbound) {\n    yield create(SandboxSessionDataPlaneServiceWriteFileStreamRequestSchema, { frame });\n  }\n}\n\nclass AsyncQueue<T> implements AsyncIterable<T> {\n  private values: T[] = [];\n  private resolvers: Array<(result: IteratorResult<T>) => void> = [];\n  private done = false;\n  private error: unknown;\n\n  push(value: T): void {\n    const resolve = this.resolvers.shift();\n    if (resolve) resolve({ done: false, value });\n    else this.values.push(value);\n  }\n\n  close(): void {\n    this.done = true;\n    for (const resolve of this.resolvers.splice(0)) resolve({ done: true, value: undefined });\n  }\n\n  fail(error: unknown): void {\n    this.error = error;\n    this.close();\n  }\n\n  async *[Symbol.asyncIterator](): AsyncIterator<T> {\n    for (;;) {\n      if (this.values.length > 0) {\n        yield this.values.shift()!;\n        continue;\n      }\n      if (this.error) throw this.error;\n      if (this.done) return;\n      const next = await new Promise<IteratorResult<T>>((resolve) => this.resolvers.push(resolve));\n      if (this.error) throw this.error; // fail() wakes blocked consumers via close(); surface the error, don't return clean\n      if (next.done) return;\n      yield next.value;\n    }\n  }\n}\n\nfunction toBigInt(value: bigint | number | undefined): bigint {\n  if (value == null) return 0n;\n  return typeof value === \"bigint\" ? value : BigInt(value);\n}\n","import type { SessionHandle } from \"./session.js\";\n\nexport interface GitCloneParams {\n  branch?: string;\n  depth?: number;\n  directory?: string;\n}\n\nexport interface GitCheckoutParams {\n  create?: boolean;\n  /** Repository to operate on (git -C); required when the repo was cloned into a subdirectory. */\n  directory?: string;\n}\n\nexport interface GitDiffParams {\n  range?: string;\n  base?: string;\n  head?: string;\n  path?: string;\n  /** Repository to operate on (git -C); required when the repo was cloned into a subdirectory. */\n  directory?: string;\n}\n\nexport interface GitLogParams {\n  maxCount?: number;\n  range?: string;\n  path?: string;\n  /** Repository to operate on (git -C); required when the repo was cloned into a subdirectory. */\n  directory?: string;\n}\n\nexport interface GitFetchPRParams {\n  directory?: string;\n  remote?: string;\n  branchPrefix?: string;\n}\n\nexport class Git {\n  constructor(private session: SessionHandle) {}\n\n  async clone(repo: string, params?: GitCloneParams): Promise<string> {\n    const args: Record<string, string> = { repo };\n    if (params?.branch) args[\"branch\"] = params.branch;\n    if (params?.depth && params.depth > 0) args[\"depth\"] = String(params.depth);\n    if (params?.directory) args[\"directory\"] = params.directory;\n    return this.session.gitOperation(\"clone\", args);\n  }\n\n  async checkout(ref: string, params?: GitCheckoutParams): Promise<string> {\n    const args: Record<string, string> = { ref };\n    if (params?.create) args[\"create\"] = \"true\";\n    if (params?.directory) args[\"directory\"] = params.directory;\n    return this.session.gitOperation(\"checkout\", args);\n  }\n\n  async diff(params?: GitDiffParams): Promise<string> {\n    const args: Record<string, string> = {};\n    if (params?.range) args[\"range\"] = params.range;\n    if (params?.base) args[\"base\"] = params.base;\n    if (params?.head) args[\"head\"] = params.head;\n    if (params?.path) args[\"path\"] = params.path;\n    if (params?.directory) args[\"directory\"] = params.directory;\n    return this.session.gitOperation(\"diff\", args);\n  }\n\n  async log(params?: GitLogParams): Promise<string> {\n    const args: Record<string, string> = {};\n    if (params?.maxCount && params.maxCount > 0) args[\"max_count\"] = String(params.maxCount);\n    if (params?.range) args[\"range\"] = params.range;\n    if (params?.path) args[\"path\"] = params.path;\n    if (params?.directory) args[\"directory\"] = params.directory;\n    return this.session.gitOperation(\"log\", args);\n  }\n\n  async fetchPR(prNumber: number, params?: GitFetchPRParams): Promise<string> {\n    if (prNumber <= 0) throw new Error(\"pr number must be > 0\");\n\n    const remote = params?.remote?.trim() || \"origin\";\n    const branchPrefix = params?.branchPrefix?.trim() || \"pr\";\n    const branch = `${branchPrefix}-${prNumber}`;\n    const refspec = `pull/${prNumber}/head:${branch}`;\n\n    const baseArgs: string[] = [];\n    if (params?.directory?.trim()) {\n      baseArgs.push(\"-C\", params.directory.trim());\n    }\n\n    const fetchResult = await this.session.exec(\"git\", {\n      args: [...baseArgs, \"fetch\", remote, refspec],\n    });\n    if (fetchResult.status !== \"SUCCEEDED\") {\n      throw new Error(\n        `git fetch PR failed (status=${fetchResult.status} exit_code=${fetchResult.exitCode}): ${new TextDecoder().decode(fetchResult.stderr).trim()}`,\n      );\n    }\n\n    const checkoutResult = await this.session.exec(\"git\", {\n      args: [...baseArgs, \"checkout\", branch],\n    });\n    if (checkoutResult.status !== \"SUCCEEDED\") {\n      throw new Error(\n        `git checkout PR failed (status=${checkoutResult.status} exit_code=${checkoutResult.exitCode}): ${new TextDecoder().decode(checkoutResult.stderr).trim()}`,\n      );\n    }\n\n    const fetchOut = new TextDecoder().decode(fetchResult.stdout).trim();\n    const checkoutOut = new TextDecoder().decode(checkoutResult.stdout).trim();\n    if (!fetchOut) return checkoutOut;\n    if (!checkoutOut) return fetchOut;\n    return fetchOut + \"\\n\" + checkoutOut;\n  }\n}\n","import { timestampDate } from \"@bufbuild/protobuf/wkt\";\n\nimport type {\n  GetSessionMetricsResponse,\n  SessionCPUUsageAverage as ProtoSessionCPUUsageAverage,\n  SessionMemoryUsageAverage as ProtoSessionMemoryUsageAverage,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\n\n// Numeric durations use milliseconds, matching the TypeScript SDK's *Ms APIs.\nexport interface SessionCPUUsageAverage {\n  averageCores?: number;\n  averagePercent?: number;\n  limitCores: number;\n  sampleCount: number;\n  observedDurationMs: number;\n  coveragePercent: number;\n  firstSampleAt?: Date;\n  lastSampleAt?: Date;\n}\n\nexport interface SessionMemoryUsageAverage {\n  averageBytes?: number;\n  averagePercent?: number;\n  limitBytes: number;\n  sampleCount: number;\n  observedDurationMs: number;\n  coveragePercent: number;\n  firstSampleAt?: Date;\n  lastSampleAt?: Date;\n}\n\nexport interface SessionMetrics {\n  sessionId: string;\n  requestedWindowMs: number;\n  windowStart?: Date;\n  windowEnd?: Date;\n  cpu: SessionCPUUsageAverage;\n  memory: SessionMemoryUsageAverage;\n}\n\nexport function sessionMetricsFromProto(metrics: GetSessionMetricsResponse): SessionMetrics {\n  return {\n    sessionId: metrics.sessionId,\n    requestedWindowMs: durationMs(metrics.requestedWindow),\n    windowStart: metrics.windowStart ? timestampDate(metrics.windowStart) : undefined,\n    windowEnd: metrics.windowEnd ? timestampDate(metrics.windowEnd) : undefined,\n    cpu: cpuUsageAverageFromProto(metrics.cpu),\n    memory: memoryUsageAverageFromProto(metrics.memory),\n  };\n}\n\nfunction cpuUsageAverageFromProto(usage?: ProtoSessionCPUUsageAverage): SessionCPUUsageAverage {\n  return {\n    averageCores: usage?.averageCores,\n    averagePercent: usage?.averagePercent,\n    limitCores: usage?.limitCores ?? 0,\n    sampleCount: Number(usage?.sampleCount ?? 0n),\n    observedDurationMs: durationMs(usage?.observedDuration),\n    coveragePercent: usage?.coveragePercent ?? 0,\n    firstSampleAt: usage?.firstSampleAt ? timestampDate(usage.firstSampleAt) : undefined,\n    lastSampleAt: usage?.lastSampleAt ? timestampDate(usage.lastSampleAt) : undefined,\n  };\n}\n\nfunction memoryUsageAverageFromProto(usage?: ProtoSessionMemoryUsageAverage): SessionMemoryUsageAverage {\n  return {\n    averageBytes: usage?.averageBytes,\n    averagePercent: usage?.averagePercent,\n    limitBytes: Number(usage?.limitBytes ?? 0n),\n    sampleCount: Number(usage?.sampleCount ?? 0n),\n    observedDurationMs: durationMs(usage?.observedDuration),\n    coveragePercent: usage?.coveragePercent ?? 0,\n    firstSampleAt: usage?.firstSampleAt ? timestampDate(usage.firstSampleAt) : undefined,\n    lastSampleAt: usage?.lastSampleAt ? timestampDate(usage.lastSampleAt) : undefined,\n  };\n}\n\nfunction durationMs(value?: { seconds: bigint; nanos: number }): number {\n  return Number(value?.seconds ?? 0n) * 1_000 + (value?.nanos ?? 0) / 1_000_000;\n}\n","import type { Buffer } from \"node:buffer\";\nimport type { Transport } from \"@connectrpc/connect\";\n\nimport type { RegistryImageKind, RegistrySortBy, RegistryVisibility } from \"./registry.js\";\nimport type { RuntimeSecretFile } from \"./secret-files.js\";\nimport type { StorageMountConfig } from \"./storage.js\";\nimport type { TailnetAttachmentOptions } from \"./tailnet.js\";\nimport type { TemplateSpec } from \"./template-spec.js\";\nimport type { Template, TemplateImageRef } from \"./template.js\";\nimport type { WarningHandler } from \"./warning.js\";\n\nexport type RootCertificates = string | Buffer | Array<string | Buffer>;\n\nexport interface ClientOptions {\n  authToken?: string;\n  /** Alias for authToken. Pass one or the other, not both. */\n  apiKey?: string;\n  baseUrl?: string;\n  /** Optional SSH gateway address override. Most users should omit it. */\n  gatewayAddress?: string;\n  rootCertificates?: RootCertificates;\n  timeoutMs?: number;\n  dataPlaneReadyTimeoutMs?: number;\n  /** Receives each warning returned by create(). Pass null to suppress emission. */\n  warningHandler?: WarningHandler | null;\n  transport?: Transport;\n}\n\nexport interface VolumeMountConfig {\n  volumeId: string;\n  mountPath: string;\n  readOnly?: boolean;\n  /** Attachment state returned for existing sessions; ignored when creating a session. */\n  state?: string;\n}\n\n/**\n * Admits matching HTTP requests on an intercepting session. Domains take the allowDomains grammar plus \"*\",\n * empty methods match any method, and at most one path field may be set; pathRegex is RE2 and must match the whole path.\n */\nexport interface EgressHttpRule {\n  domains: string[];\n  methods?: string[];\n  pathExact?: string;\n  pathPrefix?: string;\n  pathRegex?: string;\n}\n\nexport interface CreateOptions {\n  /** Explicit scope for trusted service credentials; Workspace API keys infer it. */\n  workspaceId?: string;\n  name?: string;\n  allowInbound?: boolean;\n  allowOutbound?: boolean;\n  /** Restricts outbound access to these domains (exact host, \"*.\" for one subdomain label, or \"**.\" for any depth). No effect if allowOutbound is false. */\n  allowDomains?: string[];\n  /** Restricts outbound access to these IPv4 CIDRs. No effect if allowOutbound is false. */\n  allowCidrs?: string[];\n  /**\n   * Terminates the session's port-443 TLS at the egress proxy with a managed CA the guest trusts,\n   * so each request's Host must match the TLS server name. Requires allowDomains.\n   */\n  interceptHttps?: boolean;\n  /** Extra public TCP ports bypass HTTP inspection and still require an allowed destination. */\n  allowedPorts?: number[];\n  /** Refuses with 403 every HTTP request on ports 80 and 443 that matches none of these rules. Requires interceptHttps. */\n  httpRules?: EgressHttpRule[];\n  /**\n   * Named workspace egress policies, merged with the other egress options at create.\n   * Later edits or deletes of a named policy do not change the session.\n   */\n  egressPolicies?: string[];\n  maxDurationMs?: number;\n  /**\n   * Ignored: sandboxes do not auto-pause on idle.\n   * @deprecated Removed in the next major release; use maxDurationMs instead.\n   */\n  idleTimeoutMinutes?: number;\n  pauseRetentionMs?: number;\n  cpuCores?: number;\n  memoryMb?: number;\n  /**\n   * Ephemeral root disk in GiB, 5-100. A create with no image, snapshot or template\n   * spec defaults to 5; one with a source inherits that source's disk unless set.\n   */\n  diskSizeGb?: number;\n  metadata?: Record<string, string>;\n  tags?: string[];\n  env?: Record<string, string>;\n  /** Public keys installed in the sandbox; Luxor gateway auth also requires issueSandboxSSHCert. */\n  sshAuthorizedKeys?: string[];\n  /** Registry ref string, or an image object (e.g. build.image); digestRef wins over ref. */\n  image?: string | TemplateImageRef;\n  snapshotId?: string;\n  /** Execute the current typed template spec directly without publishing an image. */\n  fromTemplateSpec?: string | Template;\n  /** Non-secret environment used only during template checkout/setup. */\n  setupEnv?: Record<string, string>;\n  /** Secret environment used only during template checkout/setup. */\n  setupSecrets?: Record<string, string>;\n  /** Managed boot runtime authored with TemplateSpec.start/processCompose. */\n  directRuntime?: TemplateSpec;\n  /** Declared secret names mapped to replacement names in the launching workspace. */\n  secretOverrides?: Record<string, string>;\n  /** Unresolved file contents or raw references for this launch. */\n  secretFiles?: RuntimeSecretFile[];\n  secretPolicies?: string[];\n  enableOpenCode?: boolean;\n  cloneRepoUrl?: string;\n  volumes?: VolumeMountConfig[];\n  /** Added to the workspace's default mounts; set defaultMountId to change a default. */\n  storageMounts?: StorageMountConfig[];\n  /** Skips the workspace's default storage mounts. */\n  disableStorageDefaults?: boolean;\n  /** Workspace default mounts to leave out of this sandbox. */\n  excludedDefaultMountIds?: string[];\n  openCodeProvider?: OpenCodeProviderConfig;\n  githubToken?: string;\n  sticky?: boolean;\n  /** Wait until RUNNING with data-plane fields primed before returning. Defaults to true. */\n  waitReady?: boolean;\n  /** Overrides readiness wait. Defaults to 2 hours for direct template specs, otherwise 3 minutes. */\n  waitTimeoutMs?: number;\n  /** Wait until an image boot runtime is READY or FAILED. */\n  waitForRuntime?: boolean;\n  /** Join the sandbox to a tailnet with a write-only direct auth key. */\n  tailnet?: TailnetAttachmentOptions;\n  /** Skip the workspace default for this sandbox. */\n  disableTailnet?: boolean;\n}\n\nexport interface OpenCodeProviderConfig {\n  apiKey?: string;\n  baseUrl?: string;\n  npm?: string;\n}\n\nexport interface ExecOptions {\n  args?: string[];\n  /** Guest working directory. Relative paths resolve under the sandbox guest workdir; absolute paths pass through. */\n  cwd?: string;\n  /**\n   * Wall-clock budget for the command; omitted or `0` means unbounded. Enforced\n   * by the guest-agent, which caps it at its own maximum and resolves a spent\n   * budget with `status: \"TIMED_OUT\"` rather than rejecting.\n   */\n  timeoutMs?: number;\n  env?: Record<string, string>;\n  /** Adds the secrets delivered to the session to the command environment; `env` still wins. */\n  withSecrets?: boolean;\n  onOutput?: (output: Output) => void;\n  /** Signals the guest process and rejects the call with the signal's reason. */\n  signal?: AbortSignal;\n}\n\n/** One secret binding of a session and the version it now carries; values never leave the engine. */\nexport interface SecretVersion {\n  secretName: string;\n  version: number;\n  environmentKey: string;\n  filePath: string;\n}\n\nexport interface SecretsRefresh {\n  /** False when every binding already used the current version; the secrets are re-delivered either way. */\n  changed: boolean;\n  versions: SecretVersion[];\n  workflowId: string;\n}\n\nexport interface Output {\n  data: Uint8Array;\n  isStderr: boolean;\n  isFinal: boolean;\n}\n\nexport interface ExposePortOptions {\n  ttlMs?: number;\n  slug?: string;\n}\n\nexport interface DetachVolumeOptions {\n  /** Unplug an attached volume even if the guest cannot unmount it (writes it has not flushed are lost).\n   * Never releases a SYNC_PENDING attachment: wait for sync back to finish or request operator recovery. */\n  force?: boolean;\n  waitTimeoutMs?: number;\n  signal?: AbortSignal;\n}\n\nexport interface CreateSnapshotOptions {\n  name?: string;\n  expiresAt?: Date;\n  async?: boolean;\n}\n\nexport interface UpdateSessionOptions {\n  name?: string;\n  tags?: string[];\n  sticky?: boolean;\n  // Desired lifetime when setting sticky to false. Requires an explicit sticky\n  // value; sticky true discards this duration and returns a warning.\n  maxDurationMs?: number;\n}\n\nexport interface ForkOptions {\n  // Children to create, subject to the workspace limit (default 10). The server defaults to 1.\n  count?: number;\n  // Children are named <namePrefix>-1 .. <namePrefix>-N; unset derives it from the source name.\n  namePrefix?: string;\n  // Resolve only once every child is RUNNING or terminal.\n  wait?: boolean;\n}\n\nexport function validateUpdateMaxDurationMs(maxDurationMs: number | undefined, sticky: boolean | undefined): void {\n  if (maxDurationMs !== undefined && (!Number.isFinite(maxDurationMs) || maxDurationMs <= 0)) {\n    throw new RangeError(\"maxDurationMs must be a positive finite number\");\n  }\n  if (maxDurationMs !== undefined && sticky === undefined) {\n    throw new TypeError(\"sticky must be set when maxDurationMs is provided\");\n  }\n}\n\nexport interface UpdateSnapshotOptions {\n  name?: string;\n  expiresAt?: Date;\n  clearExpiresAt?: boolean;\n  tags?: string[];\n}\n\nexport interface CreateVolumeOptions {\n  workspaceId?: string;\n  name: string;\n  sizeBytes: number;\n}\n\nexport interface UpdateVolumeOptions {\n  name?: string;\n  tags?: string[];\n}\n\nexport interface CreateTemplateOptions {\n  workspaceId?: string;\n  name: string;\n  /** Typed v1 recipe; cannot be combined with the legacy fields below. */\n  spec?: TemplateSpec;\n  baseImageId?: string;\n  setupScript?: string;\n  startCmd?: string;\n  env?: Record<string, string>;\n  tags?: string[];\n  /** Template defaults. `memoryMb` is in MiB; `diskSizeGb` must be 0 or 5-100 GiB, where 0 leaves no disk default. */\n  resources?: { cpuCores?: number; memoryMb?: number; diskSizeGb?: number };\n  parentTemplateId?: string;\n  parentImage?: string;\n}\n\nexport interface UpdateTemplateOptions {\n  name?: string;\n  /** Atomic full replacement of the typed recipe; cannot be combined with legacy fields. */\n  spec?: TemplateSpec;\n  baseImageId?: string;\n  setupScript?: string;\n  startCmd?: string;\n  env?: Record<string, string>;\n  tags?: string[];\n  /** Template defaults. `memoryMb` is in MiB; `diskSizeGb` must be 0 or 5-100 GiB, where 0 leaves no disk default. */\n  resources?: { cpuCores?: number; memoryMb?: number; diskSizeGb?: number };\n}\n\nexport interface ListOptions {\n  /** Explicit workspace scope for service-token callers. Workspace API keys infer this server-side. */\n  workspaceId?: string;\n  tags?: string[];\n  sticky?: boolean;\n  /** Include terminated sessions in results; the server omits them by default. */\n  includeTerminated?: boolean;\n}\n\nexport interface WorkspaceScopeOptions {\n  /** Explicit workspace scope for service-token callers. Workspace API keys infer this server-side. */\n  workspaceId?: string;\n}\n\nexport interface RegistryListOptions {\n  workspace?: string;\n  labels?: string[];\n  kind?: RegistryImageKind;\n  nameSubstring?: string;\n  sort?: RegistrySortBy;\n  pageSize?: number;\n  cursor?: string;\n}\n\nexport interface RegistryLookupOptions {\n  workspaceId?: string;\n}\n\nexport interface RegistryPublishOptions {\n  image?: string;\n  imageId?: string;\n  workspaceId?: string;\n  name?: string;\n  fromTemplateId?: string;\n  fromSnapshotId?: string;\n  tag?: string;\n  visibility?: RegistryVisibility;\n  labels?: string[];\n  title?: string;\n  description?: string;\n}\n\nexport interface RegistryShareOptions {\n  targetWorkspaceId?: string;\n  tag?: string;\n  snapshotId?: string;\n}\n","import { create } from \"@bufbuild/protobuf\";\nimport { Code, ConnectError } from \"@connectrpc/connect\";\n\nimport { RUN_TRACE_TIMING_ENVS } from \"./constants.js\";\nimport type { DiskUsage } from \"./disk.js\";\nimport { readEnv } from \"./env.js\";\nimport {\n  CapabilityUnavailableError,\n  dataPlaneNotReadyError,\n  isDataPlaneEdgeNotReady,\n  isSessionTerminatedReason,\n  mapError,\n  PrimitiveTimeoutError,\n  SandboxError,\n  SessionTerminatedError,\n  sessionTerminationCause,\n} from \"./errors.js\";\nimport {\n  RunRequestSchema,\n  RunSignal_Sig,\n  SandboxSessionDataPlaneServiceRunRequestSchema,\n  type RunRequest,\n  type RunResponse,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport { sleepReadyBackoff } from \"./ready-backoff.js\";\nimport { isRetryableStreamTransportError } from \"./refused-stream.js\";\nimport type { Session } from \"./session.js\";\n\nexport interface ProcessRunOptions {\n  cwd?: string;\n  env?: Record<string, string>;\n  stdin?: ReadableStream<Uint8Array>;\n  privileged?: boolean;\n  /** Adds the secrets delivered to the session to the environment; `env` still wins. */\n  withSecrets?: boolean;\n  // Stream output without result capture; both readable streams must be drained.\n  streamOnly?: boolean;\n  /**\n   * Wall-clock budget for the run; omitted or `0` means unbounded. Enforced by\n   * the guest-agent, which resolves a spent budget with `timedOut: true` rather\n   * than rejecting.\n   */\n  timeoutMs?: number;\n  /** Signals the guest process and rejects the run with the signal's reason. */\n  signal?: AbortSignal;\n}\n\nexport interface ProcessRunResult {\n  exitCode: number;\n  stdout: Uint8Array;\n  stderr: Uint8Array;\n  signal?: string;\n  durationMs?: number;\n  /** Reason string from the guest-agent. \"exit\" on natural exit, \"signaled\" on signal, etc. */\n  reason?: string;\n  /** Raw errno on fork/exec/wait failures (ENOENT, EMFILE, EACCES, ...). */\n  errno?: number;\n  /** Execution budget spent. May be set alongside `exitCode: 0`. */\n  timedOut?: boolean;\n  /** Sandbox filesystem state observed while the command ran. */\n  disk?: DiskUsage;\n}\n\n/** Maps the guest exit frame's disk fields, which are absent on older guests. */\nfunction diskUsageFromExit(exit: {\n  diskTotalBytes: bigint;\n  diskFreeBytes: bigint;\n  diskAvailableBytes: bigint;\n  diskMinAvailableBytes: bigint;\n}): DiskUsage | undefined {\n  if (exit.diskTotalBytes <= 0n) return undefined;\n  return {\n    totalBytes: Number(exit.diskTotalBytes),\n    freeBytes: Number(exit.diskFreeBytes),\n    availableBytes: Number(exit.diskAvailableBytes),\n    minAvailableBytes: Number(exit.diskMinAvailableBytes),\n  };\n}\n\nexport interface ProcessRunHandle extends PromiseLike<ProcessRunResult> {\n  readonly pid: Promise<number>;\n  readonly stdout: ReadableStream<Uint8Array>;\n  readonly stderr: ReadableStream<Uint8Array>;\n  readonly stdin: WritableStream<Uint8Array>;\n  signal(signal: string): Promise<void>;\n  kill(): Promise<void>;\n}\n\nfunction traceRunTiming(sessionId: string, startedAt: number, stage: string, details?: Record<string, unknown>): void {\n  if (readEnv(RUN_TRACE_TIMING_ENVS) !== \"1\") return;\n  console.error(\n    `TENKI_SDK_RUN_TIMING ${JSON.stringify({\n      sessionId,\n      stage,\n      epochMs: Date.now(),\n      elapsedMs: performance.now() - startedAt,\n      ...details,\n    })}`,\n  );\n}\n\nfunction isProvisioningSessionNotFound(err: unknown, provisioningPending: boolean): boolean {\n  const connectErr = err instanceof ConnectError ? err : ConnectError.from(err);\n  return provisioningPending && connectErr.code === Code.NotFound && /\\bsession not found\\b/i.test(connectErr.message);\n}\n\nfunction isRetryableRunStreamEstablishmentError(err: unknown, provisioningPending: boolean): boolean {\n  const connectErr = err instanceof ConnectError ? err : ConnectError.from(err);\n  return (\n    isDataPlaneEdgeNotReady(err) ||\n    isRetryableStreamTransportError(err) ||\n    isProvisioningSessionNotFound(err, provisioningPending) ||\n    (provisioningPending && connectErr.code === Code.Unavailable)\n  );\n}\n\nfunction argvPartTypeName(part: unknown): string {\n  if (Array.isArray(part)) return \"array\";\n  return part === null ? \"null\" : typeof part;\n}\n\n/**\n * Whether String(part) would yield a binary name no guest can resolve. Arrays\n * and default-toString objects would; a number, or an object with a real\n * toString (URL, Date), stringifies to something the caller plausibly meant, so\n * it keeps the historical coercion.\n */\nfunction isUnstringifiableArgvPart(part: unknown): boolean {\n  if (Array.isArray(part)) return true;\n  if (part === null || typeof part !== \"object\") return false;\n  return String(part).startsWith(\"[object \");\n}\n\n/**\n * Resolve the two argv forms into one. A lone array is the argv itself, so\n * `exec([\"sh\", \"-c\", cmd])` means the same as `exec(\"sh\", { args: [\"-c\", cmd] })`.\n */\nexport function normalizeArgv(command: string | string[], args?: string[]): string[] {\n  if (!Array.isArray(command)) return [command, ...(args ?? [])];\n  if (args?.length) {\n    throw new TypeError(\"pass argv as a single array or as command plus options.args, not both\");\n  }\n  return [...command];\n}\n\nexport function run(_session: Session, _argv: string[], _options?: ProcessRunOptions): ProcessRunHandle {\n  const session = _session;\n  const argv = _argv;\n  const options = _options;\n  if (argv.length === 0 || !argv[0]) throw new Error(\"empty command\");\n  const bad = argv.findIndex(isUnstringifiableArgvPart);\n  if (bad !== -1) {\n    throw new TypeError(`argv[${bad}] must be a string, got ${argvPartTypeName(argv[bad])}`);\n  }\n  // protobuf-es puts a non-string straight onto the wire, so coerce here.\n  const cmd = argv.map((part) => String(part));\n\n  const runStartedAt = performance.now();\n  traceRunTiming(session.id, runStartedAt, \"called\");\n\n  // Round up: flooring a sub-millisecond budget to 0 would mean unbounded.\n  const timeoutMs = options?.timeoutMs && options.timeoutMs > 0 ? Math.max(1, Math.floor(options.timeoutMs)) : 0;\n  const startRequest = create(RunRequestSchema, {\n    payload: {\n      case: \"start\",\n      value: {\n        sessionId: session.id,\n        cmd,\n        cwd: options?.cwd ?? \"\",\n        env: options?.env ?? {},\n        streamStdin: true,\n        privileged: options?.privileged ?? false,\n        withSecrets: options?.withSecrets ?? false,\n        timeoutMs: Math.min(timeoutMs, 0xffff_ffff),\n      },\n    },\n  });\n  let outbound = new AsyncQueue<RunRequest>();\n  outbound.push(startRequest);\n  let stdinClosed = false;\n  let replayable = true;\n  let receivedStarted = false;\n  // Replayed onto a reconnected stream so a pre-start abort is not lost.\n  const signalRequests: RunRequest[] = [];\n  const stdinCloseRequest = () => create(RunRequestSchema, { payload: { case: \"stdinClose\", value: true } });\n  const resetOutbound = () => {\n    outbound = new AsyncQueue<RunRequest>();\n    outbound.push(startRequest);\n    if (stdinClosed) {\n      outbound.push(stdinCloseRequest());\n    }\n    for (const signalRequest of signalRequests) {\n      outbound.push(signalRequest);\n    }\n  };\n  const closeStdin = () => {\n    if (stdinClosed) return;\n    stdinClosed = true;\n    outbound.push(stdinCloseRequest());\n  };\n  let abandonedOnce = false;\n  // Closing the outbound queue only half-closes the request side.\n  const rpcAbort = new AbortController();\n  const responses = (async function* () {\n    const deadline = Date.now() + session.dataPlaneReadyBudgetMs();\n    let reauthAttempted = false;\n    for (let attempt = 0; ; attempt++) {\n      const activeOutbound = outbound;\n      traceRunTiming(session.id, runStartedAt, \"attempt_begin\", { attempt });\n      const dataPlane = await session.requireDataPlane(false);\n      traceRunTiming(session.id, runStartedAt, \"data_plane_ready\", { attempt });\n      if (abandonedOnce) return;\n      const activeResponses = unwrapDataPlaneRun(\n        dataPlane.run(wrapDataPlaneRun(activeOutbound), { signal: rpcAbort.signal }),\n      );\n      traceRunTiming(session.id, runStartedAt, \"stream_opened\", { attempt });\n      let receivedResponse = false;\n      try {\n        for await (const frame of activeResponses) {\n          // Keepalives are not a response: keep the establishment retry open.\n          if (frame.payload.case !== \"keepalive\") {\n            if (!receivedResponse) traceRunTiming(session.id, runStartedAt, \"first_response\", { attempt });\n            receivedResponse = true;\n            session.markDataPlaneServing(dataPlane);\n          }\n          yield frame;\n        }\n        return;\n      } catch (err) {\n        traceRunTiming(session.id, runStartedAt, \"attempt_error\", {\n          attempt,\n          code: ConnectError.from(err).code,\n          receivedResponse,\n        });\n        if (abandonedOnce) return;\n        if (!reauthAttempted && (await session.reauthOnUnauthenticated(err))) {\n          reauthAttempted = true;\n          activeOutbound.close();\n          if (abandonedOnce) return;\n          resetOutbound();\n          continue;\n        }\n        const provisioningPending = session.dataPlaneProvisioningPending(dataPlane);\n        if (!receivedResponse && replayable && isRetryableRunStreamEstablishmentError(err, provisioningPending)) {\n          activeOutbound.close();\n          if (Date.now() >= deadline) {\n            if (isDataPlaneEdgeNotReady(err)) throw dataPlaneNotReadyError(err);\n            throw err;\n          }\n          if (isProvisioningSessionNotFound(err, provisioningPending)) {\n            await session.refreshHintedDataPlane(dataPlane);\n          }\n          if (attempt > 0) await sleepReadyBackoff(attempt - 1, deadline);\n          traceRunTiming(session.id, runStartedAt, \"retry_backoff_complete\", { attempt });\n          // resetOutbound re-queues the start request, so an abandoned run\n          // would execute the command a second time.\n          if (abandonedOnce) return;\n          resetOutbound();\n          continue;\n        }\n        throw err;\n      }\n    }\n  })();\n  const stdout = new RunOutput(options?.streamOnly ?? false);\n  const stderr = new RunOutput(options?.streamOnly ?? false);\n  let resolvePid: (pid: number) => void = () => {};\n  let rejectPid: (err: unknown) => void = () => {};\n  const pid = new Promise<number>((resolve, reject) => {\n    resolvePid = resolve;\n    rejectPid = reject;\n  });\n  // Suppress unhandled-rejection noise when callers (e.g. Session.exec on a\n  // CapabilityUnavailable fallback path) consume `result` but never await\n  // `pid`. Subsequent `await proc.pid` callers still observe the rejection.\n  pid.catch(() => {});\n\n  const result = (async (): Promise<ProcessRunResult> => {\n    try {\n      for await (const frame of responses) {\n        switch (frame.payload.case) {\n          case \"keepalive\":\n            // Keepalives only keep a quiet stream active; they carry no output.\n            break;\n          case \"started\":\n            receivedStarted = true;\n            resolvePid(Number(frame.payload.value.pid));\n            break;\n          case \"stdout\":\n            await stdout.push(frame.payload.value);\n            break;\n          case \"stderr\":\n            await stderr.push(frame.payload.value);\n            break;\n          case \"exit\": {\n            const exit = frame.payload.value;\n            traceRunTiming(session.id, runStartedAt, \"exit_response\");\n            if (exit.reason.startsWith(\"first_frame_timeout\")) {\n              throw new PrimitiveTimeoutError(\"run\", exit.reason);\n            }\n            if (exit.reason.startsWith(\"capability_unavailable\")) {\n              throw new CapabilityUnavailableError(\"run\", exit.reason);\n            }\n            if (isSessionTerminatedReason(exit.reason)) {\n              throw new SessionTerminatedError(exit.reason, {\n                terminationCause: sessionTerminationCause(exit.reason),\n              });\n            }\n            stdout.close();\n            stderr.close();\n            return {\n              exitCode: exit.exitCode,\n              signal: exit.signal || undefined,\n              durationMs: Number(exit.durationMs),\n              stdout: stdout.read(),\n              stderr: stderr.read(),\n              reason: exit.reason,\n              errno: exit.errno,\n              timedOut: exit.timedOut,\n              disk: diskUsageFromExit(exit),\n            };\n          }\n        }\n      }\n      throw new Error(\"sandbox run stream closed before exit\");\n    } catch (err) {\n      if (isDataPlaneEdgeNotReady(err)) {\n        err = dataPlaneNotReadyError(err);\n      }\n      if (err instanceof ConnectError && err.code === Code.Unimplemented) {\n        err = new CapabilityUnavailableError(\"run\", err.message);\n      } else if (err instanceof ConnectError) {\n        err = mapError(err);\n      }\n      rejectPid(err);\n      stdout.fail(err);\n      stderr.fail(err);\n      throw err;\n    } finally {\n      outbound.close();\n      rpcAbort.abort();\n    }\n  })();\n  // Suppress unhandled-rejection noise when callers (e.g. Session.stream on a\n  // CapabilityUnavailable fallback path) consume `proc.pid` and skip awaiting\n  // the result thenable. Subsequent `await proc` callers still observe the\n  // rejection via `then` below.\n  result.catch(() => {});\n\n  const stdin = new WritableStream<Uint8Array>({\n    write(chunk) {\n      replayable = false;\n      outbound.push(create(RunRequestSchema, { payload: { case: \"stdin\", value: chunk } }));\n    },\n    close() {\n      closeStdin();\n    },\n    abort(reason) {\n      replayable = false;\n      outbound.fail(reason);\n    },\n  });\n\n  if (options?.stdin) {\n    void options.stdin.pipeTo(stdin).catch((err) => outbound.fail(err));\n  }\n\n  const sendSignal = (signal: string) => {\n    const request = create(RunRequestSchema, {\n      payload: { case: \"signal\", value: { signal: signalNameToProto(signal) } },\n    });\n    signalRequests.push(request);\n    if (receivedStarted) replayable = false;\n    outbound.push(request);\n  };\n\n  // An abort settles the run without an exit frame or stream error.\n  let rejectAbandoned: (err: unknown) => void = () => {};\n  const abandoned = new Promise<never>((_, reject) => {\n    rejectAbandoned = reject;\n  });\n  abandoned.catch(() => {});\n  const settled = Promise.race([result, abandoned]);\n  settled.catch(() => {});\n\n  const abandon = (err: unknown) => {\n    if (abandonedOnce) return;\n    abandonedOnce = true;\n    // Hands off to the guest's SIGTERM -> SIGKILL escalation; deliberately does\n    // not wait for an exit frame, which may never arrive.\n    sendSignal(\"TERM\");\n    rejectPid(err);\n    stdout.fail(err);\n    stderr.fail(err);\n    rejectAbandoned(err);\n    outbound.close();\n    rpcAbort.abort(err);\n  };\n\n  const abortSignal = options?.signal;\n  const onAbort = () => abandon(abortReason(abortSignal));\n  if (abortSignal) {\n    if (abortSignal.aborted) onAbort();\n    else abortSignal.addEventListener(\"abort\", onAbort, { once: true });\n  }\n  void result\n    .finally(() => {\n      abandonedOnce = true;\n      abortSignal?.removeEventListener(\"abort\", onAbort);\n    })\n    .catch(() => {});\n\n  return {\n    stdout: stdout.stream,\n    stderr: stderr.stream,\n    stdin,\n    get pid() {\n      return pid;\n    },\n    signal(signal: string) {\n      sendSignal(signal);\n      return Promise.resolve();\n    },\n    kill() {\n      return this.signal(\"KILL\");\n    },\n    then(onfulfilled, onrejected) {\n      return settled.then(onfulfilled, onrejected);\n    },\n  } as ProcessRunHandle & { readonly pid: Promise<number> };\n}\n\n// Streaming-only queues apply backpressure instead of retaining unlimited unread output.\nclass RunOutput {\n  readonly stream: ReadableStream<Uint8Array>;\n  private controller?: ReadableStreamDefaultController<Uint8Array>;\n  private capacityAvailable?: () => void;\n  private chunks: Uint8Array[] = [];\n\n  constructor(private readonly streamOnly: boolean) {\n    this.stream = new ReadableStream<Uint8Array>(\n      {\n        start: (controller) => {\n          this.controller = controller;\n        },\n        pull: () => {\n          this.releaseCapacity();\n        },\n        cancel: () => {\n          this.controller = undefined;\n          this.releaseCapacity();\n        },\n      },\n      { highWaterMark: 64 * 1024, size: (chunk) => chunk?.byteLength ?? 0 },\n    );\n  }\n\n  async push(data: Uint8Array): Promise<void> {\n    if (!this.streamOnly) this.chunks.push(data);\n    this.controller?.enqueue(data);\n    if (this.streamOnly && this.controller && (this.controller.desiredSize ?? 0) <= 0) {\n      await new Promise<void>((resolve) => {\n        this.capacityAvailable = resolve;\n      });\n    }\n  }\n\n  close(): void {\n    this.controller?.close();\n    this.controller = undefined;\n    this.releaseCapacity();\n  }\n\n  fail(err: unknown): void {\n    this.controller?.error(err);\n    this.controller = undefined;\n    this.releaseCapacity();\n  }\n\n  read(): Uint8Array {\n    return concatUint8Arrays(this.chunks);\n  }\n\n  private releaseCapacity(): void {\n    this.capacityAvailable?.();\n    this.capacityAvailable = undefined;\n  }\n}\n\nfunction abortReason(signal: AbortSignal | undefined): unknown {\n  const reason = signal?.reason;\n  if (reason !== undefined && reason !== null) return reason;\n  return new SandboxError(\"sandbox run aborted\");\n}\n\nasync function* wrapDataPlaneRun(outbound: AsyncIterable<RunRequest>) {\n  for await (const frame of outbound) {\n    yield create(SandboxSessionDataPlaneServiceRunRequestSchema, { frame });\n  }\n}\n\nasync function* unwrapDataPlaneRun(responses: AsyncIterable<{ frame?: RunResponse }>) {\n  for await (const response of responses) {\n    if (response.frame) {\n      yield response.frame;\n    }\n  }\n}\n\nclass AsyncQueue<T> implements AsyncIterable<T> {\n  private values: T[] = [];\n  private resolvers: Array<(result: IteratorResult<T>) => void> = [];\n  private done = false;\n  private error: unknown;\n\n  push(value: T): void {\n    const resolve = this.resolvers.shift();\n    if (resolve) resolve({ done: false, value });\n    else this.values.push(value);\n  }\n\n  close(): void {\n    this.done = true;\n    for (const resolve of this.resolvers.splice(0)) resolve({ done: true, value: undefined });\n  }\n\n  fail(error: unknown): void {\n    this.error = error;\n    this.close();\n  }\n\n  async *[Symbol.asyncIterator](): AsyncIterator<T> {\n    for (;;) {\n      if (this.values.length > 0) {\n        yield this.values.shift()!;\n        continue;\n      }\n      if (this.error) throw this.error;\n      if (this.done) return;\n      const next = await new Promise<IteratorResult<T>>((resolve) => this.resolvers.push(resolve));\n      if (next.done) {\n        // close() resolves pending consumers with {done:true} even when fail()\n        // captured an error first; re-check so a stdin producer failure\n        // surfaces instead of looking like a clean EOF.\n        if (this.error) throw this.error;\n        return;\n      }\n      yield next.value;\n    }\n  }\n}\n\nfunction signalNameToProto(signal: string): RunSignal_Sig {\n  switch (signal.replace(/^SIG/, \"\").toUpperCase()) {\n    case \"KILL\":\n      return RunSignal_Sig.KILL;\n    case \"INT\":\n      return RunSignal_Sig.INT;\n    case \"HUP\":\n      return RunSignal_Sig.HUP;\n    case \"USR1\":\n      return RunSignal_Sig.USR1;\n    case \"USR2\":\n      return RunSignal_Sig.USR2;\n    default:\n      return RunSignal_Sig.TERM;\n  }\n}\n\nfunction concatUint8Arrays(chunks: Uint8Array[]): Uint8Array {\n  const total = chunks.reduce((sum, chunk) => sum + chunk.byteLength, 0);\n  const out = new Uint8Array(total);\n  let offset = 0;\n  for (const chunk of chunks) {\n    out.set(chunk, offset);\n    offset += chunk.byteLength;\n  }\n  return out;\n}\n","export function dataPlaneReadyBackoffMs(attempt: number): number {\n  return Math.min(50 * (attempt + 1), 750);\n}\n\nexport async function sleepReadyBackoff(attempt: number, deadline: number): Promise<void> {\n  const remaining = deadline - Date.now();\n  if (remaining <= 0) return;\n  await new Promise((resolve) => setTimeout(resolve, Math.min(dataPlaneReadyBackoffMs(attempt), remaining)));\n}\n","import { timestampDate } from \"@bufbuild/protobuf/wkt\";\n\nimport type { Snapshot as ProtoSnapshot } from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport {\n  SnapshotState as ProtoSnapshotState,\n  SnapshotType as ProtoSnapshotType,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\n\nexport type SnapshotState = \"UNSPECIFIED\" | \"CREATING\" | \"READY\" | \"FAILED\" | \"DELETING\" | \"DELETED\";\nexport type SnapshotType = \"UNSPECIFIED\" | \"USER\" | \"PAUSE\" | \"TEMPLATE\";\n\nexport interface SnapshotDownloadURL {\n  url: string;\n  expiresAt?: Date;\n}\n\nexport interface Snapshot {\n  id: string;\n  sessionId: string;\n  workspaceId: string;\n  name: string;\n  state: SnapshotState;\n  sizeBytes: number;\n  compressedBytes: number;\n  memoryBytes: number;\n  baseImageId: string;\n  createdAt: Date;\n  expiresAt?: Date;\n  tags: string[];\n  type: SnapshotType;\n  cpuCores: number;\n  memoryMb: number;\n  diskSizeGb: number;\n  rawImageAvailable: boolean;\n  readonly hasRuntimeSecrets: boolean;\n  /** Set when state is FAILED. */\n  failureReason?: string;\n}\n\nexport function snapshotStateFromProto(state: ProtoSnapshotState): SnapshotState {\n  switch (state) {\n    case ProtoSnapshotState.CREATING:\n      return \"CREATING\";\n    case ProtoSnapshotState.READY:\n      return \"READY\";\n    case ProtoSnapshotState.FAILED:\n      return \"FAILED\";\n    case ProtoSnapshotState.DELETING:\n      return \"DELETING\";\n    case ProtoSnapshotState.DELETED:\n      return \"DELETED\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\nexport function snapshotIsReady(state: SnapshotState): boolean {\n  return state === \"READY\";\n}\n\nexport function snapshotIsTerminal(state: SnapshotState): boolean {\n  return state === \"FAILED\" || state === \"DELETED\";\n}\n\nexport function snapshotTypeFromProto(type: ProtoSnapshotType): SnapshotType {\n  switch (type) {\n    case ProtoSnapshotType.USER:\n      return \"USER\";\n    case ProtoSnapshotType.PAUSE:\n      return \"PAUSE\";\n    case ProtoSnapshotType.TEMPLATE:\n      return \"TEMPLATE\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\nexport function snapshotFromProto(proto: ProtoSnapshot): Snapshot {\n  return {\n    id: proto.id,\n    sessionId: proto.sessionId,\n    workspaceId: proto.workspaceId ?? \"\",\n    name: proto.name ?? \"\",\n    state: snapshotStateFromProto(proto.state),\n    sizeBytes: Number(proto.sizeBytes),\n    compressedBytes: Number(proto.compressedBytes),\n    memoryBytes: Number(proto.memoryBytes),\n    baseImageId: proto.baseImageId,\n    createdAt: proto.createdAt ? timestampDate(proto.createdAt) : new Date(0),\n    expiresAt: proto.expiresAt ? timestampDate(proto.expiresAt) : undefined,\n    tags: [...(proto.tags ?? [])],\n    type: snapshotTypeFromProto(proto.type),\n    cpuCores: proto.cpuCores,\n    memoryMb: proto.memoryMb,\n    diskSizeGb: proto.diskSizeGb,\n    rawImageAvailable: proto.rawImageAvailable,\n    hasRuntimeSecrets: proto.hasRuntimeSecrets,\n    failureReason: proto.failureReason || undefined,\n  };\n}\n","import type { Client } from \"@connectrpc/connect\";\nimport WebSocket from \"ws\";\n\nimport { setAuthHeaders } from \"./auth.js\";\nimport {\n  InvalidStateError,\n  PermissionDeniedError,\n  SessionNotFoundError,\n  SSHUnavailableError,\n  UnauthorizedError,\n} from \"./errors.js\";\nimport type { SSHGatewayClientService } from \"./internal/proto/tenki/sandbox/v1/ssh_gateway_client_pb.js\";\nimport type { RootCertificates } from \"./options.js\";\n\nexport interface SSHConnectOptions {\n  rootCertificates?: RootCertificates;\n  /**\n   * Resolves the full per-session WebSocket URL (ws(s)://.../v1/ssh/<id>)\n   * automatically. Returning \"\" or throwing uses the configured gateway.\n   */\n  discoverGateway?: (sessionId: string) => Promise<string>;\n}\n\nexport class SSHConnection {\n  private ws: WebSocket;\n  private closed = false;\n  private readBuf: Buffer[] = [];\n  private readResolve: ((value: Uint8Array | null) => void) | null = null;\n\n  constructor(ws: WebSocket) {\n    this.ws = ws;\n\n    ws.on(\"message\", (data: Buffer) => {\n      if (this.readResolve) {\n        const resolve = this.readResolve;\n        this.readResolve = null;\n        resolve(new Uint8Array(data));\n      } else {\n        this.readBuf.push(data);\n      }\n    });\n\n    ws.on(\"close\", () => {\n      this.closed = true;\n      if (this.readResolve) {\n        const resolve = this.readResolve;\n        this.readResolve = null;\n        resolve(null);\n      }\n    });\n\n    ws.on(\"error\", () => {\n      this.closed = true;\n      if (this.readResolve) {\n        const resolve = this.readResolve;\n        this.readResolve = null;\n        resolve(null);\n      }\n    });\n  }\n\n  async read(): Promise<Uint8Array | null> {\n    if (this.readBuf.length > 0) {\n      return new Uint8Array(this.readBuf.shift()!);\n    }\n    if (this.closed) return null;\n    return new Promise<Uint8Array | null>((resolve) => {\n      this.readResolve = resolve;\n    });\n  }\n\n  async write(data: Uint8Array): Promise<void> {\n    return new Promise((resolve, reject) => {\n      this.ws.send(data, (err) => {\n        if (err) reject(new SSHUnavailableError(err.message, { cause: err }));\n        else resolve();\n      });\n    });\n  }\n\n  close(): void {\n    if (this.closed) return;\n    this.closed = true;\n    try {\n      this.ws.close(1000, \"\");\n    } catch {\n      // ignore\n    }\n  }\n}\n\nexport function deriveGatewayAddress(baseUrl: string): string {\n  let u: URL;\n  try {\n    u = new URL(baseUrl.trim());\n  } catch {\n    return \"\";\n  }\n  if (!u.hostname) return \"\";\n\n  let host = u.hostname;\n  if (host.startsWith(\"api.\")) {\n    host = \"sandbox-gateway.\" + host.slice(4);\n  } else if (host.startsWith(\"app.\")) {\n    host = \"sandbox-gateway.\" + host.slice(4);\n  } else {\n    host = \"sandbox-gateway.\" + host;\n  }\n\n  const port = u.port;\n  u.hostname = host;\n  if (port) u.port = port;\n  u.pathname = \"\";\n  u.search = \"\";\n  u.hash = \"\";\n  return u.toString().replace(/\\/$/, \"\");\n}\n\n// Returns the first healthy automatically selected URL, or \"\" to use the configured gateway.\nexport async function discoverSSHGatewayUrl(\n  gatewayClient: Client<typeof SSHGatewayClientService>,\n  sessionId: string,\n): Promise<string> {\n  const sid = sessionId.trim();\n  if (!sid) return \"\";\n  let gateways;\n  try {\n    gateways = (await gatewayClient.listActiveSSHGateways({ sessionId: sid })).gateways ?? [];\n  } catch {\n    return \"\";\n  }\n  for (const g of gateways) {\n    const bridge = g.wsBridgeEndpoint.trim();\n    if (!bridge || !g.healthy) continue;\n    let u: URL;\n    try {\n      u = new URL(bridge);\n    } catch {\n      continue;\n    }\n    if (!u.host) continue;\n    if (u.protocol === \"http:\") u.protocol = \"ws:\";\n    else if (u.protocol === \"https:\") u.protocol = \"wss:\";\n    u.pathname = `${u.pathname.replace(/\\/+$/, \"\")}/v1/ssh/${sid}`;\n    u.search = \"\";\n    u.hash = \"\";\n    return u.toString();\n  }\n  return \"\";\n}\n\nexport function gatewaySSHUrl(gatewayAddress: string, sessionId: string): string {\n  if (!gatewayAddress.trim() || !sessionId.trim()) return \"\";\n  let u: URL;\n  try {\n    u = new URL(gatewayAddress.trim());\n  } catch {\n    return \"\";\n  }\n\n  u.pathname = `/v1/ssh/${sessionId}`;\n  u.search = \"\";\n  u.hash = \"\";\n\n  if (u.protocol === \"http:\") u.protocol = \"ws:\";\n  else if (u.protocol === \"https:\") u.protocol = \"wss:\";\n\n  return u.toString();\n}\n\nexport async function connectSSH(\n  gatewayAddress: string,\n  sessionId: string,\n  authToken: string,\n  options?: SSHConnectOptions,\n): Promise<SSHConnection> {\n  let url = \"\";\n  if (options?.discoverGateway) {\n    try {\n      url = (await options.discoverGateway(sessionId)).trim();\n    } catch {\n      url = \"\";\n    }\n  }\n  if (!url) url = gatewaySSHUrl(gatewayAddress, sessionId);\n  if (!url) {\n    throw new SSHUnavailableError(\"gateway address not configured\");\n  }\n\n  const headers: Record<string, string> = {};\n  const h = new Headers();\n  setAuthHeaders(h, authToken);\n  h.forEach((value, key) => {\n    headers[key] = value;\n  });\n\n  return new Promise<SSHConnection>((resolve, reject) => {\n    const ws = new WebSocket(url, {\n      headers,\n      ca: options?.rootCertificates,\n    });\n\n    ws.on(\"open\", () => {\n      resolve(new SSHConnection(ws));\n    });\n\n    ws.on(\"unexpected-response\", (_req, res) => {\n      let body = \"\";\n      res.on(\"data\", (chunk: Buffer) => {\n        body += chunk.toString();\n      });\n      res.on(\"end\", () => {\n        const reason = body.trim() || res.statusMessage || \"unknown\";\n        switch (res.statusCode) {\n          case 401:\n            reject(new UnauthorizedError(reason));\n            break;\n          case 403:\n            reject(new PermissionDeniedError(reason));\n            break;\n          case 404:\n            reject(new SessionNotFoundError(reason));\n            break;\n          case 409:\n            reject(new InvalidStateError(reason));\n            break;\n          default:\n            reject(new SSHUnavailableError(reason));\n        }\n      });\n    });\n\n    ws.on(\"error\", (err) => {\n      reject(new SSHUnavailableError(err.message, { cause: err }));\n    });\n  });\n}\n","import { create } from \"@bufbuild/protobuf\";\nimport { timestampDate } from \"@bufbuild/protobuf/wkt\";\n\nimport {\n  StorageAccess as ProtoStorageAccess,\n  StorageAuthMethod as ProtoStorageAuthMethod,\n  StorageProvider as ProtoStorageProvider,\n  StorageTestReason as ProtoStorageTestReason,\n  StorageConnectionCredentialsSchema,\n  StorageDefaultMountSchema,\n  StorageMountSpecSchema,\n  StorageSecretValueSchema,\n  type StorageConnection as ProtoStorageConnection,\n  type StorageDefaults as ProtoStorageDefaults,\n  type StorageMount as ProtoStorageMount,\n  type StorageMountSpec as ProtoStorageMountSpec,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\n\nexport type StorageProvider = \"UNSPECIFIED\" | \"AWS_S3\" | \"GCS\" | \"R2\" | \"S3_COMPATIBLE\";\n/**\n * ACCESS_KEY reads a key pair (GCS: HMAC keys) from Luxor Secrets; AWS_OIDC_ROLE assumes an IAM role that\n * trusts Luxor's OIDC issuer; R2_TEMPORARY mints scoped short-lived R2 keys from a Cloudflare API token.\n */\nexport type StorageAuthMethod = \"UNSPECIFIED\" | \"ACCESS_KEY\" | \"AWS_OIDC_ROLE\" | \"R2_TEMPORARY\";\n/** Omit on a new mount to use the connection's default access. */\nexport type StorageAccess = \"READ_ONLY\" | \"READ_WRITE\";\n\n/** An existing s3_storage Luxor Secret by name, or a value Luxor stores as a new secret. */\nexport type StorageSecret = { secretName: string } | { value: string };\n\n/** Omit a field on update to keep its current secret. */\nexport interface StorageConnectionCredentials {\n  accessKeyId?: StorageSecret;\n  secretAccessKey?: StorageSecret;\n  sessionToken?: StorageSecret;\n  r2ParentToken?: StorageSecret;\n  roleArn?: string;\n}\n\n/** Names of the Luxor Secrets a connection reads. */\nexport interface StorageConnectionSecrets {\n  accessKeyId: string;\n  secretAccessKey: string;\n  sessionToken: string;\n  r2ParentToken: string;\n}\n\nexport interface StorageConnection {\n  id: string;\n  workspaceId: string;\n  name: string;\n  provider: StorageProvider;\n  endpoint: string;\n  bucket: string;\n  region: string;\n  authMethod: StorageAuthMethod;\n  roleArn: string;\n  secrets: StorageConnectionSecrets;\n  defaultAccess?: StorageAccess;\n  revision: bigint;\n  /** Subject an AWS role trust policy must match for keyless access. */\n  oidcSubjectPattern: string;\n  activeMountCount: number;\n  defaultMountCount: number;\n  lastTestedAt?: Date;\n  lastTestReason?: string;\n  /** Luxor disabled the connection: it accepts no new mounts and issues no credentials. */\n  disabled: boolean;\n  disabledAt?: Date;\n}\n\nexport interface StorageConnectionList {\n  connections: StorageConnection[];\n  /** URL to register as an AWS IAM OIDC identity provider; empty when keyless AWS is unavailable. */\n  oidcIssuer: string;\n  oidcAudience: string;\n}\n\nexport interface StorageConnectionTest {\n  reachable: boolean;\n  reason?: string;\n  message: string;\n}\n\n/**\n * Name the connection by connectionId or connectionName; set defaultMountId to change a workspace default.\n * An omitted prefix or access keeps the default mount's value. An empty prefix mounts the whole bucket,\n * and access \"\" uses the connection's default access.\n */\nexport interface StorageMountConfig {\n  connectionId?: string;\n  connectionName?: string;\n  prefix?: string;\n  mountPath?: string;\n  access?: StorageAccess | \"\";\n  defaultMountId?: string;\n}\n\nexport interface StorageMount {\n  id: string;\n  sessionId: string;\n  connectionName: string;\n  spec: StorageMountConfig;\n  state: string;\n  lastError: string;\n}\n\nexport interface StorageDefaultMount {\n  id?: string;\n  connectionId: string;\n  prefix?: string;\n  mountPath: string;\n  access?: StorageAccess;\n}\n\nexport interface StorageDefaults {\n  workspaceId: string;\n  mounts: StorageDefaultMount[];\n  revision: number;\n}\n\nfunction enumName(names: Record<number, string>, value: number): string | undefined {\n  const name = names[value];\n  return name === undefined || name === \"UNSPECIFIED\" ? undefined : name;\n}\n\nexport function storageAccessToProto(access?: StorageAccess | \"\"): ProtoStorageAccess {\n  return access ? ProtoStorageAccess[access] : ProtoStorageAccess.UNSPECIFIED;\n}\n\nfunction storageAccessFromProto(access: ProtoStorageAccess): StorageAccess | undefined {\n  return enumName(ProtoStorageAccess, access) as StorageAccess | undefined;\n}\n\nexport function storageProviderToProto(provider: StorageProvider): ProtoStorageProvider {\n  return ProtoStorageProvider[provider] ?? ProtoStorageProvider.UNSPECIFIED;\n}\n\nexport function storageAuthMethodToProto(method: StorageAuthMethod): ProtoStorageAuthMethod {\n  return ProtoStorageAuthMethod[method] ?? ProtoStorageAuthMethod.UNSPECIFIED;\n}\n\nexport function storageTestReasonFromProto(reason: ProtoStorageTestReason): string | undefined {\n  return enumName(ProtoStorageTestReason, reason);\n}\n\nfunction storageSecretToProto(secret?: StorageSecret) {\n  if (!secret) return undefined;\n  const fields = secret as { secretName?: string; value?: string };\n  const name = fields.secretName?.trim() ?? \"\";\n  const value = fields.value ?? \"\";\n  if ((name === \"\") === (value === \"\")) {\n    throw new TypeError(\"a storage secret needs exactly one of secretName or value\");\n  }\n  if (name !== \"\") return create(StorageSecretValueSchema, { source: { case: \"secretName\", value: name } });\n  return create(StorageSecretValueSchema, { source: { case: \"value\", value } });\n}\n\nexport function storageCredentialsToProto(credentials?: StorageConnectionCredentials) {\n  if (!credentials) return undefined;\n  return create(StorageConnectionCredentialsSchema, {\n    accessKeyId: storageSecretToProto(credentials.accessKeyId),\n    secretAccessKey: storageSecretToProto(credentials.secretAccessKey),\n    sessionToken: storageSecretToProto(credentials.sessionToken),\n    r2ParentToken: storageSecretToProto(credentials.r2ParentToken),\n    roleArn: credentials.roleArn?.trim() ?? \"\",\n  });\n}\n\nexport function storageMountSpecToProto(mount: StorageMountConfig) {\n  const connectionId = mount.connectionId?.trim();\n  const connectionName = mount.connectionName?.trim();\n  return create(StorageMountSpecSchema, {\n    connection: connectionId\n      ? { case: \"connectionId\", value: connectionId }\n      : connectionName\n        ? { case: \"connectionName\", value: connectionName }\n        : { case: undefined },\n    prefix: mount.prefix?.trim(),\n    mountPath: mount.mountPath?.trim() ?? \"\",\n    access: mount.access === undefined ? undefined : storageAccessToProto(mount.access),\n    defaultMountId: mount.defaultMountId?.trim() ?? \"\",\n  });\n}\n\nexport function storageDefaultMountToProto(mount: StorageDefaultMount) {\n  return create(StorageDefaultMountSchema, {\n    id: mount.id ?? \"\",\n    connectionId: mount.connectionId.trim(),\n    prefix: mount.prefix?.trim() ?? \"\",\n    mountPath: mount.mountPath.trim(),\n    access: storageAccessToProto(mount.access),\n  });\n}\n\nexport function storageConnectionFromProto(connection: ProtoStorageConnection): StorageConnection {\n  return {\n    id: connection.id,\n    workspaceId: connection.workspaceId,\n    name: connection.name,\n    provider: (enumName(ProtoStorageProvider, connection.provider) ?? \"UNSPECIFIED\") as StorageProvider,\n    endpoint: connection.endpoint,\n    bucket: connection.bucket,\n    region: connection.region,\n    authMethod: (enumName(ProtoStorageAuthMethod, connection.authMethod) ?? \"UNSPECIFIED\") as StorageAuthMethod,\n    roleArn: connection.roleArn,\n    secrets: {\n      accessKeyId: connection.secrets?.accessKeyId ?? \"\",\n      secretAccessKey: connection.secrets?.secretAccessKey ?? \"\",\n      sessionToken: connection.secrets?.sessionToken ?? \"\",\n      r2ParentToken: connection.secrets?.r2ParentToken ?? \"\",\n    },\n    defaultAccess: storageAccessFromProto(connection.defaultAccess),\n    revision: connection.revision,\n    oidcSubjectPattern: connection.oidcSubjectPattern,\n    activeMountCount: connection.activeMountCount,\n    defaultMountCount: connection.defaultMountCount,\n    lastTestedAt: connection.lastTestedAt ? timestampDate(connection.lastTestedAt) : undefined,\n    lastTestReason: storageTestReasonFromProto(connection.lastTestReason),\n    disabled: connection.disabled,\n    disabledAt: connection.disabledAt ? timestampDate(connection.disabledAt) : undefined,\n  };\n}\n\nexport function storageDefaultsFromProto(defaults?: ProtoStorageDefaults): StorageDefaults {\n  return {\n    workspaceId: defaults?.workspaceId ?? \"\",\n    revision: defaults?.revision ?? 0,\n    mounts: (defaults?.mounts ?? []).map((mount) => ({\n      id: mount.id,\n      connectionId: mount.connectionId,\n      prefix: mount.prefix,\n      mountPath: mount.mountPath,\n      access: storageAccessFromProto(mount.access),\n    })),\n  };\n}\n\nfunction storageMountSpecFromProto(spec?: ProtoStorageMountSpec): StorageMountConfig {\n  return {\n    connectionId: spec?.connection.case === \"connectionId\" ? spec.connection.value : undefined,\n    connectionName: spec?.connection.case === \"connectionName\" ? spec.connection.value : undefined,\n    prefix: spec?.prefix,\n    mountPath: spec?.mountPath ?? \"\",\n    access: spec?.access === undefined ? undefined : (storageAccessFromProto(spec.access) ?? \"\"),\n    defaultMountId: spec?.defaultMountId || undefined,\n  };\n}\n\nexport function storageMountFromProto(mount: ProtoStorageMount): StorageMount {\n  return {\n    id: mount.id,\n    sessionId: mount.sessionId,\n    connectionName: mount.connectionName,\n    spec: storageMountSpecFromProto(mount.spec),\n    state: mount.state,\n    lastError: mount.lastError,\n  };\n}\n","import type { Output } from \"./options.js\";\nimport type { ExecResult } from \"./result.js\";\n\nexport class Stream {\n  private queue: Output[] = [];\n  private waiters: Array<{ resolve: (value: Output | null) => void; reject: (reason?: unknown) => void }> = [];\n  private draining = false;\n  private closed = false;\n  private finalResult!: ExecResult;\n  private finalError: unknown;\n  private waitPromise: Promise<ExecResult>;\n  private resolveWait!: (value: ExecResult) => void;\n  private rejectWait!: (reason?: unknown) => void;\n\n  constructor(private abortController: AbortController) {\n    this.waitPromise = new Promise<ExecResult>((resolve, reject) => {\n      this.resolveWait = resolve;\n      this.rejectWait = reject;\n    });\n  }\n\n  next(): Promise<Output | null> {\n    if (this.queue.length > 0) {\n      return Promise.resolve(this.queue.shift()!);\n    }\n    if (this.closed) {\n      return this.finalError ? Promise.reject(this.finalError) : Promise.resolve(null);\n    }\n    return new Promise<Output | null>((resolve, reject) => {\n      this.waiters.push({ resolve, reject });\n    });\n  }\n\n  wait(): Promise<ExecResult> {\n    this.draining = true;\n    this.queue = [];\n    for (const waiter of this.waiters.splice(0)) {\n      waiter.resolve(null);\n    }\n    return this.waitPromise;\n  }\n\n  cancel(reason?: unknown): void {\n    this.abortController.abort(reason);\n  }\n\n  push(output: Output): void {\n    if (this.draining) {\n      return;\n    }\n    const waiter = this.waiters.shift();\n    if (waiter) {\n      waiter.resolve(output);\n      return;\n    }\n    this.queue.push(output);\n  }\n\n  finish(result: ExecResult): void {\n    this.closed = true;\n    this.finalResult = result;\n    this.resolveWait(result);\n    for (const waiter of this.waiters.splice(0)) {\n      waiter.resolve(null);\n    }\n  }\n\n  fail(error: unknown): void {\n    this.closed = true;\n    this.finalError = error;\n    this.rejectWait(error);\n    for (const waiter of this.waiters.splice(0)) {\n      waiter.reject(error);\n    }\n  }\n}\n","import { create } from \"@bufbuild/protobuf\";\n\nimport {\n  TailnetEphemeralPausePolicy as ProtoTailnetEphemeralPausePolicy,\n  TailnetExitPolicy as ProtoTailnetExitPolicy,\n  TailnetAttachmentSchema,\n  type TailnetAttachment as ProtoTailnetAttachment,\n  type TailnetStatus as ProtoTailnetStatus,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\n\nexport type TailnetExitPolicy = \"tenki_allowlist\" | \"exit_node_managed\";\nexport type TailnetEphemeralPausePolicy = \"reject\" | \"recreate_on_resume\";\nexport type TailnetState = \"pending\" | \"joining\" | \"online\" | \"offline\" | \"error\" | \"detached\";\nexport type TailnetProvider = \"tailscale\";\n\nconst authKeyValues = new WeakMap<TailnetAuthKey, string>();\nconst inspect = Symbol.for(\"nodejs.util.inspect.custom\");\n\nexport class TailnetAuthKey {\n  constructor(value: string) {\n    if (!value.trim()) throw new TypeError(\"tailnet auth key is required\");\n    authKeyValues.set(this, value);\n    Object.freeze(this);\n  }\n\n  toString(): string {\n    return \"[REDACTED]\";\n  }\n\n  toJSON(): string {\n    return \"[REDACTED]\";\n  }\n\n  [inspect](): string {\n    return \"TailnetAuthKey([REDACTED])\";\n  }\n}\n\nexport interface TailnetAttachmentOptions {\n  authKey?: TailnetAuthKey;\n  profileId?: string;\n  profileRevision?: number;\n  provider?: TailnetProvider;\n  hostname?: string;\n  tags?: string[];\n  ephemeral?: boolean;\n  controlUrl?: string;\n  exitNode?: string;\n  acceptRoutes?: boolean;\n  wakeOnConnect?: boolean;\n  exposePorts?: number[];\n  waitForOnline?: boolean;\n  exitPolicy?: TailnetExitPolicy;\n  ephemeralPausePolicy?: TailnetEphemeralPausePolicy;\n}\n\nexport interface TailnetStatus {\n  provider: string;\n  state: TailnetState;\n  nodeId: string;\n  fqdn: string;\n  ips: string[];\n  tags: string[];\n  owner: string;\n  error: string;\n  deviceRetained: boolean;\n}\n\nexport function tailnetAttachmentToProto(options: TailnetAttachmentOptions): ProtoTailnetAttachment {\n  const provider = options.provider ?? \"tailscale\";\n  if (provider !== \"tailscale\") throw new TypeError(\"unsupported tailnet provider\");\n  let credential: ProtoTailnetAttachment[\"credential\"];\n  if (options.profileId) {\n    if (options.authKey) throw new TypeError(\"provide one tailnet credential: authKey or profileId\");\n    credential = { case: \"profileId\", value: options.profileId };\n  } else {\n    if (!(options.authKey instanceof TailnetAuthKey)) throw new TypeError(\"tailnet authKey must be a TailnetAuthKey\");\n    const authKey = authKeyValues.get(options.authKey);\n    if (!authKey) throw new TypeError(\"tailnet auth key is required\");\n    credential = { case: \"authKey\", value: authKey };\n  }\n  return create(TailnetAttachmentSchema, {\n    provider,\n    hostname: options.hostname ?? \"\",\n    tags: [...(options.tags ?? [])],\n    ephemeral: options.ephemeral ?? false,\n    controlUrl: options.controlUrl ?? \"\",\n    exitNode: options.exitNode ?? \"\",\n    acceptRoutes: options.acceptRoutes ?? false,\n    wakeOnConnect: options.wakeOnConnect ?? false,\n    exposePorts: [...(options.exposePorts ?? [])],\n    waitForOnline: options.waitForOnline ?? false,\n    credential,\n    profileRevision: options.profileRevision ?? 0,\n    exitPolicy: exitPolicyToProto(options.exitPolicy),\n    ephemeralPausePolicy: ephemeralPausePolicyToProto(options.ephemeralPausePolicy),\n  });\n}\n\nexport function tailnetStatusFromProto(status?: ProtoTailnetStatus): TailnetStatus | undefined {\n  if (!status) return undefined;\n  return {\n    provider: status.provider || \"tailscale\",\n    state: status.state as TailnetState,\n    nodeId: status.nodeId,\n    fqdn: status.fqdn,\n    ips: [...status.ips],\n    tags: [...status.tags],\n    owner: status.owner,\n    error: status.error,\n    deviceRetained: status.deviceRetained,\n  };\n}\n\nfunction exitPolicyToProto(policy: TailnetExitPolicy | undefined): ProtoTailnetExitPolicy {\n  switch (policy) {\n    case undefined:\n      return ProtoTailnetExitPolicy.UNSPECIFIED;\n    case \"tenki_allowlist\":\n      return ProtoTailnetExitPolicy.TENKI_ALLOWLIST;\n    case \"exit_node_managed\":\n      return ProtoTailnetExitPolicy.EXIT_NODE_MANAGED;\n    default:\n      throw new TypeError(\"unsupported tailnet exit policy\");\n  }\n}\n\nfunction ephemeralPausePolicyToProto(\n  policy: TailnetEphemeralPausePolicy | undefined,\n): ProtoTailnetEphemeralPausePolicy {\n  switch (policy) {\n    case undefined:\n      return ProtoTailnetEphemeralPausePolicy.UNSPECIFIED;\n    case \"reject\":\n      return ProtoTailnetEphemeralPausePolicy.REJECT;\n    case \"recreate_on_resume\":\n      return ProtoTailnetEphemeralPausePolicy.RECREATE_ON_RESUME;\n    default:\n      throw new TypeError(\"unsupported tailnet ephemeral pause policy\");\n  }\n}\n","import net from \"node:net\";\nimport { create } from \"@bufbuild/protobuf\";\n\nimport { CapabilityUnavailableError, mapError, PrimitiveTimeoutError } from \"./errors.js\";\nimport {\n  HostPortTunnelRequestSchema,\n  HostPortTunnelTerminated_Reason,\n  SandboxSessionDataPlaneServiceHostPortTunnelRequestSchema,\n  type HostPortTunnelRequest,\n  type HostPortTunnelResponse,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport type { Session } from \"./session.js\";\n\nexport interface HostPortTunnelOptions {\n  sandboxBindAddress?: string;\n  sandboxPort?: number;\n  hostDialTargetLabel?: string;\n}\n\nexport type TunnelTerminationReason =\n  | \"sdk_closed\"\n  | \"host_closed\"\n  | \"host_error\"\n  | \"engine_terminated\"\n  | \"engine_draining\"\n  | \"transport_error\"\n  | \"timeout\";\n\nexport interface HostPortTunnelTermination {\n  reason: TunnelTerminationReason;\n  detail?: string;\n  error?: unknown;\n}\n\nexport type HostPortTunnelEndpoint = readonly [address: string, port: number];\n\nexport interface HostPortTunnel {\n  sandboxPort: number;\n  sandboxAddress: string;\n  close(): Promise<void>;\n  terminated: Promise<HostPortTunnelTermination>;\n  onTerminated(cb: (termination: HostPortTunnelTermination) => void): void;\n}\n\nexport async function exposeHostPort(\n  session: Session,\n  hostAddr: string,\n  options?: HostPortTunnelOptions,\n): Promise<HostPortTunnel> {\n  for (let attempt = 0; ; attempt++) {\n    const outbound = new AsyncQueue<HostPortTunnelRequest>();\n    outbound.push(\n      create(HostPortTunnelRequestSchema, {\n        payload: {\n          case: \"open\",\n          value: {\n            sessionId: session.id,\n            sandboxBindAddress: options?.sandboxBindAddress ?? \"\",\n            sandboxPort: options?.sandboxPort ?? 0,\n            hostDialTargetLabel: options?.hostDialTargetLabel ?? hostAddr,\n          },\n        },\n      }),\n    );\n\n    const dataPlane = await session.requireDataPlane();\n    const responses = unwrapDataPlaneHostPortTunnel(dataPlane.hostPortTunnel(wrapDataPlaneHostPortTunnel(outbound)));\n    const responseIterator = responses[Symbol.asyncIterator]();\n    let first: IteratorResult<HostPortTunnelResponse>;\n    try {\n      first = await responseIterator.next();\n    } catch (err) {\n      if (attempt === 0 && (await session.reauthOnUnauthenticated(err))) {\n        outbound.close();\n        continue;\n      }\n      throw mapError(err);\n    }\n    if (first.done) throw new Error(\"sandbox host port tunnel closed before open\");\n    if (first.value.payload.case === \"terminated\") {\n      const terminated = first.value.payload.value;\n      if (terminated.reason === HostPortTunnelTerminated_Reason.CAPABILITY_UNAVAILABLE) {\n        if (terminated.detail?.startsWith(\"first_frame_timeout\")) {\n          throw new PrimitiveTimeoutError(\"host_port_tunnel\", terminated.detail);\n        }\n        throw new CapabilityUnavailableError(\"host_port_tunnel\", terminated.detail || undefined);\n      }\n      throw new Error(\n        terminated.detail || `sandbox host port tunnel failed: ${HostPortTunnelTerminated_Reason[terminated.reason]}`,\n      );\n    }\n    if (first.value.payload.case !== \"opened\") throw new Error(\"sandbox host port tunnel did not open\");\n\n    const lastColon = hostAddr.lastIndexOf(\":\");\n    if (lastColon < 0) throw new Error(`exposeHostPort hostAddr must be host:port, got ${hostAddr}`);\n    const dialHost = hostAddr.slice(0, lastColon).replace(/^\\[|\\]$/g, \"\");\n    const dialPort = parseInt(hostAddr.slice(lastColon + 1), 10);\n    if (!dialPort) throw new Error(`exposeHostPort hostAddr port is invalid: ${hostAddr}`);\n\n    const sockets = new Map<bigint, net.Socket>();\n    let resolveTerminated!: (termination: HostPortTunnelTermination) => void;\n    let terminatedResolved = false;\n    const terminated = new Promise<HostPortTunnelTermination>((resolve) => {\n      resolveTerminated = resolve;\n    });\n    const finish = (termination: HostPortTunnelTermination) => {\n      if (terminatedResolved) return;\n      terminatedResolved = true;\n      resolveTerminated(termination);\n    };\n    const pump = async () => {\n      try {\n        for (;;) {\n          const next = await responseIterator.next();\n          if (next.done) {\n            finish({ reason: \"transport_error\" });\n            break;\n          }\n          const frame = next.value;\n          switch (frame.payload.case) {\n            case \"accept\": {\n              const id = frame.payload.value.subStreamId;\n              const socket = net.connect({ host: dialHost, port: dialPort });\n              sockets.set(id, socket);\n              socket.on(\"data\", (data) => {\n                const payload = typeof data === \"string\" ? new TextEncoder().encode(data) : new Uint8Array(data);\n                outbound.push(\n                  create(HostPortTunnelRequestSchema, {\n                    payload: { case: \"data\", value: { subStreamId: id, payload } },\n                  }),\n                );\n              });\n              socket.on(\"close\", () => {\n                sockets.delete(id);\n                outbound.push(\n                  create(HostPortTunnelRequestSchema, {\n                    payload: { case: \"close\", value: { subStreamId: id, reason: \"host_closed\" } },\n                  }),\n                );\n              });\n              socket.on(\"error\", () => {\n                sockets.delete(id);\n                outbound.push(\n                  create(HostPortTunnelRequestSchema, {\n                    payload: { case: \"close\", value: { subStreamId: id, reason: \"host_error\" } },\n                  }),\n                );\n              });\n              break;\n            }\n            case \"data\": {\n              const { subStreamId, payload } = frame.payload.value;\n              const socket = sockets.get(subStreamId);\n              if (socket && !socket.destroyed) socket.write(payload);\n              break;\n            }\n            case \"halfClose\":\n              sockets.get(frame.payload.value.subStreamId)?.end();\n              break;\n            case \"close\":\n              sockets.get(frame.payload.value.subStreamId)?.destroy();\n              sockets.delete(frame.payload.value.subStreamId);\n              break;\n            case \"ping\":\n              outbound.push(\n                create(HostPortTunnelRequestSchema, {\n                  payload: { case: \"pong\", value: { pingId: frame.payload.value.pingId } },\n                }),\n              );\n              break;\n            case \"terminated\":\n              finish(mapTermination(frame.payload.value.reason, frame.payload.value.detail || undefined));\n              return;\n          }\n        }\n      } catch (error) {\n        finish({ reason: \"transport_error\", error });\n      } finally {\n        for (const socket of sockets.values()) socket.destroy();\n        sockets.clear();\n        outbound.close();\n      }\n    };\n    const supervised = pump();\n    supervised.catch((error: unknown) => finish({ reason: \"transport_error\", error }));\n\n    return {\n      sandboxPort: first.value.payload.value.sandboxPort,\n      sandboxAddress: first.value.payload.value.sandboxAddress,\n      async close() {\n        for (const socket of sockets.values()) socket.destroy();\n        sockets.clear();\n        // sub_stream_id 0 is a sentinel telling the engine + guest-agent to tear\n        // down the whole tunnel (drop the listener, exit handleTunnel).\n        outbound.push(\n          create(HostPortTunnelRequestSchema, {\n            payload: { case: \"close\", value: { subStreamId: 0n, reason: \"sdk_closed\" } },\n          }),\n        );\n        outbound.close();\n        finish({ reason: \"sdk_closed\" });\n      },\n      terminated,\n      onTerminated(cb) {\n        terminated.then(cb).catch(() => {});\n      },\n    };\n  }\n}\n\nasync function* wrapDataPlaneHostPortTunnel(outbound: AsyncIterable<HostPortTunnelRequest>) {\n  for await (const frame of outbound) {\n    yield create(SandboxSessionDataPlaneServiceHostPortTunnelRequestSchema, { frame });\n  }\n}\n\nasync function* unwrapDataPlaneHostPortTunnel(responses: AsyncIterable<{ frame?: HostPortTunnelResponse }>) {\n  for await (const response of responses) {\n    if (response.frame) yield response.frame;\n  }\n}\n\nexport async function hostPortTunnel(\n  session: Session,\n  host: string,\n  port: number,\n  options?: HostPortTunnelOptions,\n): Promise<HostPortTunnel> {\n  return exposeHostPort(session, `${host}:${port}`, options);\n}\n\nfunction mapTermination(reason: HostPortTunnelTerminated_Reason, detail?: string): HostPortTunnelTermination {\n  switch (reason) {\n    case HostPortTunnelTerminated_Reason.KEEPALIVE_TIMEOUT:\n      return { reason: \"timeout\", detail };\n    case HostPortTunnelTerminated_Reason.SESSION_LOST:\n      return { reason: \"engine_terminated\", detail };\n    case HostPortTunnelTerminated_Reason.ENGINE_DRAINING:\n      return { reason: \"engine_draining\", detail };\n    case HostPortTunnelTerminated_Reason.BIND_FAILED:\n    case HostPortTunnelTerminated_Reason.PLATFORM_ERROR:\n    case HostPortTunnelTerminated_Reason.CAPABILITY_UNAVAILABLE:\n      return { reason: \"host_error\", detail };\n    case HostPortTunnelTerminated_Reason.UNSPECIFIED:\n    default:\n      return { reason: \"engine_terminated\", detail };\n  }\n}\n\nclass AsyncQueue<T> implements AsyncIterable<T> {\n  private values: T[] = [];\n  private resolvers: Array<(result: IteratorResult<T>) => void> = [];\n  private done = false;\n\n  push(value: T): void {\n    const resolve = this.resolvers.shift();\n    if (resolve) resolve({ done: false, value });\n    else this.values.push(value);\n  }\n\n  close(): void {\n    this.done = true;\n    for (const resolve of this.resolvers.splice(0)) resolve({ done: true, value: undefined });\n  }\n\n  async *[Symbol.asyncIterator](): AsyncIterator<T> {\n    for (;;) {\n      if (this.values.length > 0) {\n        yield this.values.shift()!;\n        continue;\n      }\n      if (this.done) return;\n      const next = await new Promise<IteratorResult<T>>((resolve) => this.resolvers.push(resolve));\n      if (next.done) return;\n      yield next.value;\n    }\n  }\n}\n","import type { Session } from \"./session.js\";\nimport {\n  exposeHostPort,\n  type HostPortTunnel,\n  type HostPortTunnelEndpoint,\n  type HostPortTunnelOptions,\n  type HostPortTunnelTermination,\n  type TunnelTerminationReason,\n} from \"./tunnel.js\";\n\nexport type ResilientHostPortTunnelState = \"open\" | \"reconnecting\" | \"closed\";\n\nexport type ResilientHostPortTunnelStateEvent =\n  | { state: \"connecting\" }\n  | { state: \"open\"; tunnel: HostPortTunnel }\n  | { state: \"reconnecting\"; reason: HostPortTunnelTermination; attempt: number; delayMs: number }\n  | { state: \"port-changed\"; previousPort: number; sandboxPort: number }\n  | { state: \"closed\"; reason: HostPortTunnelTermination };\n\nexport interface ResilientHostPortTunnelOptions extends HostPortTunnelOptions {\n  initialBackoffMs?: number;\n  maxBackoffMs?: number;\n}\n\nexport interface ResilientHostPortTunnel extends HostPortTunnel {\n  readonly state: ResilientHostPortTunnelState;\n  endpoint(): HostPortTunnelEndpoint;\n  onStateChange(cb: (event: ResilientHostPortTunnelStateEvent) => void): void;\n}\n\nconst RETRY_REASONS = new Set<TunnelTerminationReason>([\n  \"transport_error\",\n  \"engine_terminated\",\n  \"engine_draining\",\n  \"timeout\",\n]);\n\nexport async function exposeHostPortResilient(\n  session: Session,\n  hostAddr: string,\n  options?: ResilientHostPortTunnelOptions,\n): Promise<ResilientHostPortTunnel> {\n  const initialBackoffMs = options?.initialBackoffMs ?? 250;\n  const maxBackoffMs = options?.maxBackoffMs ?? 10_000;\n  const stateListeners = new Set<(event: ResilientHostPortTunnelStateEvent) => void>();\n  const terminationListeners = new Set<(termination: HostPortTunnelTermination) => void>();\n\n  let state: ResilientHostPortTunnelState = \"open\";\n  let current = await exposeHostPort(session, hostAddr, options);\n  let closed = false;\n  let finalTerminationResolved = false;\n  let resolveFinalTermination!: (termination: HostPortTunnelTermination) => void;\n  let wakeReconnectSleep: (() => void) | undefined;\n  const finalTermination = new Promise<HostPortTunnelTermination>((resolve) => {\n    resolveFinalTermination = resolve;\n  });\n\n  const emitState = (event: ResilientHostPortTunnelStateEvent) => {\n    for (const listener of stateListeners) listener(event);\n  };\n  const finish = (termination: HostPortTunnelTermination) => {\n    if (finalTerminationResolved) return;\n    finalTerminationResolved = true;\n    state = \"closed\";\n    for (const listener of terminationListeners) listener(termination);\n    emitState({ state: \"closed\", reason: termination });\n    resolveFinalTermination(termination);\n  };\n  const setCurrent = (next: HostPortTunnel) => {\n    const previousPort = current.sandboxPort;\n    current = next;\n    state = \"open\";\n    emitState({ state: \"open\", tunnel: next });\n    if (previousPort !== next.sandboxPort) {\n      emitState({ state: \"port-changed\", previousPort, sandboxPort: next.sandboxPort });\n    }\n  };\n\n  const reconnectLoop = async () => {\n    let attempt = 0;\n    for (;;) {\n      let termination = await current.terminated;\n      if (closed) return;\n      if (!RETRY_REASONS.has(termination.reason)) {\n        finish(termination);\n        return;\n      }\n\n      for (;;) {\n        attempt++;\n        state = \"reconnecting\";\n        if (termination.reason === \"engine_draining\") {\n          // Rolling deploys have already sent HTTP/2 GOAWAY, so reconnect immediately to a healthy engine.\n          attempt = 0;\n        }\n        const delayMs =\n          termination.reason === \"engine_draining\" ? 0 : jitteredBackoff(initialBackoffMs, maxBackoffMs, attempt);\n        emitState({ state: \"reconnecting\", reason: termination, attempt, delayMs });\n        await sleep(\n          delayMs,\n          () => closed,\n          (wake) => {\n            wakeReconnectSleep = wake;\n          },\n        );\n        wakeReconnectSleep = undefined;\n        if (closed) return;\n\n        try {\n          const next = await exposeHostPort(session, hostAddr, options);\n          attempt = 0;\n          setCurrent(next);\n          break;\n        } catch (error) {\n          if (closed) return;\n          termination = { reason: \"transport_error\", error };\n          emitState({\n            state: \"reconnecting\",\n            reason: termination,\n            attempt,\n            delayMs: 0,\n          });\n        }\n      }\n    }\n  };\n  reconnectLoop().catch((error: unknown) => finish({ reason: \"transport_error\", error }));\n\n  return {\n    endpoint() {\n      return [current.sandboxAddress, current.sandboxPort];\n    },\n    get sandboxPort() {\n      return current.sandboxPort;\n    },\n    get sandboxAddress() {\n      return current.sandboxAddress;\n    },\n    get state() {\n      return state;\n    },\n    async close() {\n      closed = true;\n      wakeReconnectSleep?.();\n      await current.close();\n      finish({ reason: \"sdk_closed\" });\n    },\n    terminated: finalTermination,\n    onTerminated(cb) {\n      if (finalTerminationResolved) finalTermination.then(cb).catch(() => {});\n      else terminationListeners.add(cb);\n    },\n    onStateChange(cb) {\n      stateListeners.add(cb);\n    },\n  };\n}\n\nexport async function resilientHostPortTunnel(\n  session: Session,\n  host: string,\n  port: number,\n  options?: ResilientHostPortTunnelOptions,\n): Promise<ResilientHostPortTunnel> {\n  return exposeHostPortResilient(session, `${host}:${port}`, options);\n}\n\nfunction jitteredBackoff(initialBackoffMs: number, maxBackoffMs: number, attempt: number): number {\n  const base = Math.min(maxBackoffMs, initialBackoffMs * 2 ** Math.max(0, attempt - 1));\n  const jitter = 0.75 + Math.random() * 0.5;\n  return Math.round(base * jitter);\n}\n\nasync function sleep(ms: number, shouldStop: () => boolean, setWake: (wake: () => void) => void): Promise<void> {\n  if (shouldStop()) return;\n  await new Promise<void>((resolve) => {\n    const timeout = setTimeout(resolve, ms);\n    setWake(() => {\n      clearTimeout(timeout);\n      resolve();\n    });\n  });\n}\n","import {\n  SandboxWarningCode as ProtoSandboxWarningCode,\n  type SandboxWarning as ProtoSandboxWarning,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport {\n  TemplateWarningCode as ProtoTemplateWarningCode,\n  type TemplateWarning as ProtoTemplateWarning,\n} from \"./internal/proto/tenki/sandbox/v1/template_pb.js\";\n\ntype ProtoSandboxWarningCodeName = keyof typeof ProtoSandboxWarningCode;\ntype ProtoTemplateWarningCodeName = keyof typeof ProtoTemplateWarningCode;\n\n// Template warning codes (e.g. SPEC_VERSION_DEPRECATED) share the sandbox warning shape.\nexport type SandboxWarningCode = ProtoSandboxWarningCodeName | ProtoTemplateWarningCodeName;\n\nexport const SandboxWarningCodes = Object.fromEntries(\n  [...Object.keys(ProtoSandboxWarningCode), ...Object.keys(ProtoTemplateWarningCode)]\n    .filter((name): name is SandboxWarningCode => Number.isNaN(Number(name)))\n    .map((name) => [name, name]),\n) as { readonly [Code in SandboxWarningCode]: Code };\n\nexport interface SandboxWarning {\n  code: SandboxWarningCode;\n  message: string;\n}\n\nexport type WarningHandler = (warning: SandboxWarning) => void;\n\nexport function defaultWarningHandler(warning: SandboxWarning): void {\n  console.warn(`luxor sandbox warning [${warning.code}]: ${warning.message}`);\n}\n\nexport function emitWarnings(handler: WarningHandler | undefined, warnings: readonly SandboxWarning[]): void {\n  for (const warning of warnings) {\n    try {\n      handler?.(warning);\n    } catch (warningHandlerError) {\n      console.error(\"luxor sandbox warning handler failed\", warningHandlerError);\n    }\n  }\n}\n\nexport function sandboxWarningsFromProto(protoWarnings: readonly ProtoSandboxWarning[] | undefined): SandboxWarning[] {\n  return (protoWarnings ?? []).map((warning) => ({\n    code: sandboxWarningCodeFromProto(warning.code),\n    message: warning.message,\n  }));\n}\n\nexport function templateWarningsFromProto(\n  protoWarnings: readonly ProtoTemplateWarning[] | undefined,\n): SandboxWarning[] {\n  return (protoWarnings ?? []).map((warning) => {\n    const name = ProtoTemplateWarningCode[warning.code];\n    return {\n      code: typeof name === \"string\" ? (name as SandboxWarningCode) : SandboxWarningCodes.UNSPECIFIED,\n      message: warning.message,\n    };\n  });\n}\n\nfunction sandboxWarningCodeFromProto(code: ProtoSandboxWarningCode): SandboxWarningCode {\n  const name = ProtoSandboxWarningCode[code];\n  if (typeof name !== \"string\") {\n    return SandboxWarningCodes.UNSPECIFIED;\n  }\n  return name as SandboxWarningCode;\n}\n","// Sandbox SSH Gateway - Public client API\n// Feature: Edge SSH Gateway (021)\n//\n// The client-facing slice of the SSH gateway surface: short-lived user SSH\n// cert issuance and active-gateway discovery. This is the only SSH gateway\n// proto published in the public sandbox SDKs. Control-plane RPCs (gateway\n// bootstrap/heartbeat, host enrollment, trust bundle, session-host lookup) and\n// policy admin live in ssh_gateway.proto, which is internal-only.\n\n// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file tenki/sandbox/v1/ssh_gateway_client.proto (package tenki.sandbox.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_buf_validate_validate } from \"../../../buf/validate/validate_pb\";\nimport type { Duration, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_duration, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tenki/sandbox/v1/ssh_gateway_client.proto.\n */\nexport const file_tenki_sandbox_v1_ssh_gateway_client: GenFile = /*@__PURE__*/\n  fileDesc(\"Cil0ZW5raS9zYW5kYm94L3YxL3NzaF9nYXRld2F5X2NsaWVudC5wcm90bxIQdGVua2kuc2FuZGJveC52MSKwAQoaSXNzdWVTYW5kYm94U1NIQ2VydFJlcXVlc3QSHAoKc2Vzc2lvbl9pZBgBIAEoCUIIukgFcgOwAQESHgoKcHVibGljX2tleRgCIAEoCUIKukgHcgUQIBiAQBIwCg1yZXF1ZXN0ZWRfdHRsGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEiIKEHNvdXJjZV9hZGRyZXNzZXMYBCADKAlCCLpIBZIBAhAQIocCChtJc3N1ZVNhbmRib3hTU0hDZXJ0UmVzcG9uc2USEAoIc3NoX2NlcnQYASABKAkSDgoGY2FfcHViGAIgASgJEi4KCmV4cGlyZXNfYXQYAyABKAsyGi5nb29nbGUucHJv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ENlcnRSZXF1ZXN0Gi0udGVua2kuc2FuZGJveC52MS5Jc3N1ZVNhbmRib3hTU0hDZXJ0UmVzcG9uc2USeAoVTGlzdEFjdGl2ZVNTSEdhdGV3YXlzEi4udGVua2kuc2FuZGJveC52MS5MaXN0QWN0aXZlU1NIR2F0ZXdheXNSZXF1ZXN0Gi8udGVua2kuc2FuZGJveC52MS5MaXN0QWN0aXZlU1NIR2F0ZXdheXNSZXNwb25zZULOAQoUY29tLnRlbmtpLnNhbmRib3gudjFCFVNzaEdhdGV3YXlDbGllbnRQcm90b1ABWj1nby5sdXhvci5haS9zYW5kYm94L2ludGVybmFsL3Byb3RvL3RlbmtpL3NhbmRib3gvdjE7c2FuZGJveHYxogIDVFNYqgIQVGVua2kuU2FuZGJveC5WMcoCEFRlbmtpXFNhbmRib3hcVjHiAhxUZW5raVxTYW5kYm94XFYxXEdQQk1ldGFkYXRh6gISVGVua2k6OlNhbmRib3g6OlYxYgZwcm90bzM\", [file_buf_validate_validate, file_google_protobuf_duration, file_google_protobuf_timestamp]);\n\n/**\n * @generated from message tenki.sandbox.v1.IssueSandboxSSHCertRequest\n */\nexport type IssueSandboxSSHCertRequest = Message<\"tenki.sandbox.v1.IssueSandboxSSHCertRequest\"> & {\n  /**\n   * The session the user wants to SSH to. Cert principal will be \"session:<id>\".\n   *\n   * @generated from field: string session_id = 1;\n   */\n  sessionId: string;\n\n  /**\n   * OpenSSH-format public key bytes (e.g. \"ssh-ed25519 AAAA...\"). Generated\n   * ephemerally by the CLI; private key never leaves the laptop.\n   *\n   * @generated from field: string public_key = 2;\n   */\n  publicKey: string;\n\n  /**\n   * Optional. If unset or > policy max, server caps to policy max.\n   *\n   * @generated from field: google.protobuf.Duration requested_ttl = 3;\n   */\n  requestedTtl?: Duration;\n\n  /**\n   * Optional CIDR(s) to bind into critical-options \"source-address\". When set,\n   * SSH refuses cert presentation from any other source IP.\n   *\n   * @generated from field: repeated string source_addresses = 4;\n   */\n  sourceAddresses: string[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.IssueSandboxSSHCertRequest.\n * Use `create(IssueSandboxSSHCertRequestSchema)` to create a new message.\n */\nexport const IssueSandboxSSHCertRequestSchema: GenMessage<IssueSandboxSSHCertRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_ssh_gateway_client, 0);\n\n/**\n * @generated from message tenki.sandbox.v1.IssueSandboxSSHCertResponse\n */\nexport type IssueSandboxSSHCertResponse = Message<\"tenki.sandbox.v1.IssueSandboxSSHCertResponse\"> & {\n  /**\n   * OpenSSH-format certificate (begins with \"ssh-ed25519-cert-v01@openssh.com ...\").\n   *\n   * @generated from field: string ssh_cert = 1;\n   */\n  sshCert: string;\n\n  /**\n   * Active intermediate CA pubkey for known_hosts pinning.\n   *\n   * @generated from field: string ca_pub = 2;\n   */\n  caPub: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp expires_at = 3;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * Hex-encoded uint64. Used for audit and revocation lock-list.\n   *\n   * @generated from field: string cert_serial = 4;\n   */\n  certSerial: string;\n\n  /**\n   * Hint to client: re-fetch a fresh cert if connection is older than this.\n   *\n   * @generated from field: google.protobuf.Duration renewal_after = 5;\n   */\n  renewalAfter?: Duration;\n\n  /**\n   * Resolved permissions for this cert (echo of policy at time of issuance).\n   *\n   * @generated from field: tenki.sandbox.v1.SSHCertPermissions permissions = 6;\n   */\n  permissions?: SSHCertPermissions;\n\n  /**\n   * Whether the client should verify the gateway's host certificate against\n   * ca_pub. False while the rollout flag is off, and absent (so false) on\n   * engines that predate it, which keeps a backend rollback safe: the client\n   * simply falls back to its previous behaviour.\n   *\n   * @generated from field: bool pin_host_key = 7;\n   */\n  pinHostKey: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.IssueSandboxSSHCertResponse.\n * Use `create(IssueSandboxSSHCertResponseSchema)` to create a new message.\n */\nexport const IssueSandboxSSHCertResponseSchema: GenMessage<IssueSandboxSSHCertResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_ssh_gateway_client, 1);\n\n/**\n * @generated from message tenki.sandbox.v1.SSHCertPermissions\n */\nexport type SSHCertPermissions = Message<\"tenki.sandbox.v1.SSHCertPermissions\"> & {\n  /**\n   * @generated from field: bool allow_pty = 1;\n   */\n  allowPty: boolean;\n\n  /**\n   * @generated from field: bool allow_agent_forwarding = 2;\n   */\n  allowAgentForwarding: boolean;\n\n  /**\n   * @generated from field: bool allow_port_forwarding_local = 3;\n   */\n  allowPortForwardingLocal: boolean;\n\n  /**\n   * @generated from field: bool allow_port_forwarding_remote = 4;\n   */\n  allowPortForwardingRemote: boolean;\n\n  /**\n   * @generated from field: bool allow_x11_forwarding = 5;\n   */\n  allowX11Forwarding: boolean;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.SSHCertPermissions.\n * Use `create(SSHCertPermissionsSchema)` to create a new message.\n */\nexport const SSHCertPermissionsSchema: GenMessage<SSHCertPermissions> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_ssh_gateway_client, 2);\n\n/**\n * @generated from message tenki.sandbox.v1.ListActiveSSHGatewaysRequest\n */\nexport type ListActiveSSHGatewaysRequest = Message<\"tenki.sandbox.v1.ListActiveSSHGatewaysRequest\"> & {\n  /**\n   * Optional region filter. Empty = all regions.\n   *\n   * @generated from field: string region = 1;\n   */\n  region: string;\n\n  /**\n   * Optional session used to resolve the owning host's region. When set, the\n   * engine returns only gateways that can reach that session's host.\n   *\n   * @generated from field: string session_id = 2;\n   */\n  sessionId: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListActiveSSHGatewaysRequest.\n * Use `create(ListActiveSSHGatewaysRequestSchema)` to create a new message.\n */\nexport const ListActiveSSHGatewaysRequestSchema: GenMessage<ListActiveSSHGatewaysRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_ssh_gateway_client, 3);\n\n/**\n * @generated from message tenki.sandbox.v1.ListActiveSSHGatewaysResponse\n */\nexport type ListActiveSSHGatewaysResponse = Message<\"tenki.sandbox.v1.ListActiveSSHGatewaysResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.sandbox.v1.ActiveSSHGateway gateways = 1;\n   */\n  gateways: ActiveSSHGateway[];\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ListActiveSSHGatewaysResponse.\n * Use `create(ListActiveSSHGatewaysResponseSchema)` to create a new message.\n */\nexport const ListActiveSSHGatewaysResponseSchema: GenMessage<ListActiveSSHGatewaysResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_ssh_gateway_client, 4);\n\n/**\n * @generated from message tenki.sandbox.v1.ActiveSSHGateway\n */\nexport type ActiveSSHGateway = Message<\"tenki.sandbox.v1.ActiveSSHGateway\"> & {\n  /**\n   * @generated from field: string gateway_id = 1;\n   */\n  gatewayId: string;\n\n  /**\n   * @generated from field: string region = 2;\n   */\n  region: string;\n\n  /**\n   * e.g. \"ssh.us-east-1.tenki.cloud:22\"\n   *\n   * @generated from field: string public_endpoint = 3;\n   */\n  publicEndpoint: string;\n\n  /**\n   * e.g. \"<host>:<port>\" (reverse-tunnel listener)\n   *\n   * @generated from field: string mesh_endpoint = 4;\n   */\n  meshEndpoint: string;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp last_heartbeat_at = 5;\n   */\n  lastHeartbeatAt?: Timestamp;\n\n  /**\n   * @generated from field: bool healthy = 6;\n   */\n  healthy: boolean;\n\n  /**\n   * Tenki Edge-fronted WebSocket bridge URL for `tenki sandbox ssh`. Empty when\n   * the gateway has no Tenki Edge bridge. The SDK constructs the per-session URL\n   * by appending \"/v1/ssh/<session_id>\".\n   *\n   * @generated from field: string ws_bridge_endpoint = 7;\n   */\n  wsBridgeEndpoint: string;\n};\n\n/**\n * Describes the message tenki.sandbox.v1.ActiveSSHGateway.\n * Use `create(ActiveSSHGatewaySchema)` to create a new message.\n */\nexport const ActiveSSHGatewaySchema: GenMessage<ActiveSSHGateway> = /*@__PURE__*/\n  messageDesc(file_tenki_sandbox_v1_ssh_gateway_client, 5);\n\n/**\n * @generated from service tenki.sandbox.v1.SSHGatewayClientService\n */\nexport const SSHGatewayClientService: GenService<{\n  /**\n   * Cert issuance — called by tenki CLI / SDK on every `tenki sandbox ssh`\n   * invocation. Returns a short-lived OpenSSH user cert signed by the active\n   * intermediate CA.\n   *\n   * @generated from rpc tenki.sandbox.v1.SSHGatewayClientService.IssueSandboxSSHCert\n   */\n  issueSandboxSSHCert: {\n    methodKind: \"unary\";\n    input: typeof IssueSandboxSSHCertRequestSchema;\n    output: typeof IssueSandboxSSHCertResponseSchema;\n  },\n  /**\n   * Active gateway endpoints — called by tenki CLI / SDK to learn DNS targets.\n   *\n   * @generated from rpc tenki.sandbox.v1.SSHGatewayClientService.ListActiveSSHGateways\n   */\n  listActiveSSHGateways: {\n    methodKind: \"unary\";\n    input: typeof ListActiveSSHGatewaysRequestSchema;\n    output: typeof ListActiveSSHGatewaysResponseSchema;\n  },\n}> = /*@__PURE__*/\n  serviceDesc(file_tenki_sandbox_v1_ssh_gateway_client, 0);\n\n","import { PaginationStalledError } from \"./errors.js\";\n\nconst AUTOMATIC_PAGE_SIZE = 100;\n\nexport function automaticPageSize(): number {\n  return AUTOMATIC_PAGE_SIZE;\n}\n\nexport function advancePageToken(current: string, next: string | undefined): string {\n  const normalized = (next ?? \"\").trim();\n  if (normalized && normalized === current) {\n    throw new PaginationStalledError(\"sandbox: pagination token did not advance\");\n  }\n  return normalized;\n}\n","import { create } from \"@bufbuild/protobuf\";\nimport { timestampDate, timestampFromDate } from \"@bufbuild/protobuf/wkt\";\nimport type { Client } from \"@connectrpc/connect\";\n\nimport { mapError } from \"./errors.js\";\nimport {\n  BindPreviewUrlRequestSchema,\n  CreatePreviewUrlRequestSchema,\n  DeletePreviewUrlRequestSchema,\n  GetPreviewUrlRequestSchema,\n  ListPreviewUrlsRequestSchema,\n  SandboxService,\n  UnbindPreviewUrlRequestSchema,\n  type PreviewUrl as ProtoPreviewUrl,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport { advancePageToken, automaticPageSize } from \"./pagination.js\";\nimport { wildcardStatusFromProto, type WildcardStatus } from \"./session.js\";\n\nexport interface PreviewUrl {\n  id: string;\n  workspaceId: string;\n  ownerId: string;\n  slug: string;\n  token: string;\n  previewUrl: string;\n  sessionId?: string;\n  port?: number;\n  createdAt?: Date;\n  updatedAt?: Date;\n  lastAccessedAt?: Date;\n  /** Whether subdomain support is enabled for this preview URL. */\n  wildcard?: boolean;\n  /** Readiness of the wildcard subdomain provisioning; meaningful only when wildcard is true. */\n  wildcardStatus?: WildcardStatus;\n  /** Actionable reason when wildcardStatus is \"FAILED\"; empty otherwise. */\n  wildcardStatusReason?: string;\n  /** Deadline after which the URL stops serving; undefined means it does not expire. */\n  expiresAt?: Date;\n}\n\nexport interface PreviewUrlOptions {\n  /** Explicit workspace scope for service-token callers. Workspace API keys infer this server-side. */\n  workspaceId?: string;\n  sessionId?: string;\n  port?: number;\n  /** Deadline after which the URL stops serving. */\n  expiresAt?: Date;\n}\n\nexport interface PreviewUrlListOptions {\n  /** Explicit workspace scope for service-token callers. Workspace API keys infer this server-side. */\n  workspaceId?: string;\n  /** Restrict the result to the preview URLs bound to one session. */\n  sessionId?: string;\n}\n\nexport function previewUrlFromProto(proto: ProtoPreviewUrl | undefined): PreviewUrl | undefined {\n  if (!proto) return undefined;\n  return {\n    id: proto.id,\n    workspaceId: proto.workspaceId,\n    ownerId: proto.ownerId,\n    slug: proto.slug,\n    token: proto.token,\n    previewUrl: proto.previewUrl,\n    sessionId: proto.sessionId || undefined,\n    port: proto.port,\n    createdAt: proto.createdAt ? timestampDate(proto.createdAt) : undefined,\n    updatedAt: proto.updatedAt ? timestampDate(proto.updatedAt) : undefined,\n    lastAccessedAt: proto.lastAccessedAt ? timestampDate(proto.lastAccessedAt) : undefined,\n    wildcard: proto.wildcard ?? false,\n    wildcardStatus: wildcardStatusFromProto(proto.wildcardStatus),\n    wildcardStatusReason: proto.wildcardStatusReason ?? \"\",\n    expiresAt: proto.expiresAt ? timestampDate(proto.expiresAt) : undefined,\n  };\n}\n\nexport class PreviewUrlClient {\n  constructor(private readonly rpcClient: Client<typeof SandboxService>) {}\n\n  /** Create a preview URL. `slug` is required and must be unique within the workspace. */\n  async create(slug: string, options?: PreviewUrlOptions): Promise<PreviewUrl> {\n    try {\n      const resp = await this.rpcClient.createPreviewUrl(\n        create(CreatePreviewUrlRequestSchema, {\n          slug: slug.trim(),\n          expiresAt: options?.expiresAt ? timestampFromDate(options.expiresAt) : undefined,\n          workspaceId: options?.workspaceId,\n          sessionId: options?.sessionId,\n          port: options?.port,\n        }),\n      );\n      return previewUrlFromProto(resp.previewUrl)!;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async delete(previewUrlId: string): Promise<void> {\n    try {\n      await this.rpcClient.deletePreviewUrl(create(DeletePreviewUrlRequestSchema, { previewUrlId }));\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async bind(previewUrlId: string, sessionId: string, port: number, expiresAt?: Date): Promise<PreviewUrl> {\n    try {\n      const resp = await this.rpcClient.bindPreviewUrl(\n        create(BindPreviewUrlRequestSchema, {\n          previewUrlId,\n          sessionId,\n          port,\n          expiresAt: expiresAt ? timestampFromDate(expiresAt) : undefined,\n        }),\n      );\n      return previewUrlFromProto(resp.previewUrl)!;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async unbind(previewUrlId: string): Promise<PreviewUrl> {\n    try {\n      const resp = await this.rpcClient.unbindPreviewUrl(create(UnbindPreviewUrlRequestSchema, { previewUrlId }));\n      return previewUrlFromProto(resp.previewUrl)!;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async list(options?: PreviewUrlListOptions): Promise<PreviewUrl[]> {\n    try {\n      const previewUrls: PreviewUrl[] = [];\n      let pageToken = \"\";\n      do {\n        const resp = await this.rpcClient.listPreviewUrls(\n          create(ListPreviewUrlsRequestSchema, {\n            workspaceId: options?.workspaceId,\n            sessionId: options?.sessionId,\n            pageSize: automaticPageSize(),\n            pageToken,\n          }),\n        );\n        previewUrls.push(...(resp.previewUrls ?? []).map((item) => previewUrlFromProto(item)!));\n        pageToken = advancePageToken(pageToken, resp.nextPageToken);\n      } while (pageToken);\n      return previewUrls;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n\n  async get(previewUrlId: string): Promise<PreviewUrl> {\n    try {\n      const resp = await this.rpcClient.getPreviewUrl(\n        create(GetPreviewUrlRequestSchema, { lookup: { case: \"previewUrlId\", value: previewUrlId } }),\n      );\n      return previewUrlFromProto(resp.previewUrl)!;\n    } catch (err) {\n      throw mapError(err);\n    }\n  }\n}\n","import { toJson } from \"@bufbuild/protobuf\";\nimport { timestampDate } from \"@bufbuild/protobuf/wkt\";\n\nimport type {\n  RegistryImage as ProtoRegistryImage,\n  RegistryImageDetail as ProtoRegistryImageDetail,\n  RegistryImageSummary as ProtoRegistryImageSummary,\n  RegistryShareGrant as ProtoRegistryShareGrant,\n  RegistryTag as ProtoRegistryTag,\n  ResolvedRegistryRef as ProtoResolvedRegistryRef,\n} from \"./internal/proto/tenki/sandbox/v1/registry_pb.js\";\nimport {\n  RegistryImageKind as ProtoRegistryImageKind,\n  RegistrySortBy as ProtoRegistrySortBy,\n  RegistryVisibility as ProtoRegistryVisibility,\n} from \"./internal/proto/tenki/sandbox/v1/registry_pb.js\";\nimport { RuntimeSecretFileSchema } from \"./internal/proto/tenki/sandbox/v1/secret_file_pb.js\";\nimport type { RuntimeSecretFile } from \"./secret-files.js\";\n\nexport type RegistryImageKind = \"template\" | \"snapshot\";\nexport type RegistryVisibility = \"private\" | \"public\" | \"shared\";\nexport type RegistrySortBy = \"updated_at\" | \"name\";\n\nexport interface RegistryTag {\n  id: string;\n  imageId: string;\n  tag: string;\n  snapshotId: string;\n  ref: string;\n  updatedAt: Date;\n}\n\nexport interface RegistryImage {\n  id: string;\n  /** Empty for a system image, which belongs to a namespace rather than a workspace. */\n  workspaceId: string;\n  workspaceSlug: string;\n  name: string;\n  kind: RegistryImageKind;\n  visibility: RegistryVisibility;\n  title?: string;\n  description?: string;\n  labels: string[];\n  sourceTemplateId?: string;\n  sourceSnapshotId?: string;\n  tags: RegistryTag[];\n  createdAt: Date;\n  updatedAt: Date;\n  changesNotYetPublished: boolean;\n}\n\nexport interface RegistryImageSummary {\n  id: string;\n  /** Empty for a system image, which belongs to a namespace rather than a workspace. */\n  workspaceId: string;\n  workspaceSlug: string;\n  name: string;\n  kind: RegistryImageKind;\n  visibility: RegistryVisibility;\n  labels: string[];\n  tags: RegistryTag[];\n  latestSnapshotId?: string;\n  latestRef: string;\n  updatedAt: Date;\n  changesNotYetPublished: boolean;\n}\n\nexport interface RegistryImageDetail {\n  runtimeSecretEnv: Record<string, string>;\n  runtimeSecretPolicies: string[];\n  runtimeSecretFiles: RuntimeSecretFile[];\n  image?: RegistryImage;\n  resolvedSnapshotId?: string;\n  resolvedRef?: string;\n  workspaceActive: boolean;\n  tombstoned: boolean;\n  maskedEnvVarKeys: string[];\n  metadata: Record<string, string>;\n  envVars: Record<string, string>;\n}\n\nexport interface RegistryShareGrant {\n  id: string;\n  imageId: string;\n  ownerWorkspaceId: string;\n  targetWorkspaceId: string;\n  currentSnapshotId: string;\n  grantedViaTokenId?: string;\n  acceptedBy?: string;\n  acceptedAt: Date;\n  revokedAt?: Date;\n  followMode: string;\n  followTag?: string;\n}\n\nexport interface ResolvedRegistryRef {\n  imageId: string;\n  owningWorkspaceId: string;\n  owningWorkspaceSlug: string;\n  imageName: string;\n  snapshotId?: string;\n  resolvedRef: string;\n  kind: RegistryImageKind;\n  visibility: RegistryVisibility;\n}\n\nexport interface RegistryPublishResult {\n  image?: RegistryImage;\n  tag?: RegistryTag;\n  snapshotId: string;\n  digestRef: string;\n}\n\nexport interface RegistryListResult {\n  images: RegistryImageSummary[];\n  nextCursor: string;\n}\n\nexport interface RegistryShareResult {\n  image?: RegistryImage;\n  currentSnapshotId: string;\n  digestRef: string;\n  grant?: RegistryShareGrant;\n}\n\nexport interface RegistryUnshareResult {\n  image?: RegistryImage;\n  revokedTokenCount: number;\n  revokedGrantCount: number;\n}\n\nexport interface RegistryDeleteResult {\n  image?: RegistryImage;\n  revokedTokenCount: number;\n  revokedGrantCount: number;\n}\n\nexport interface RegistryVersionDeleteResult {\n  imageId: string;\n  snapshotId: string;\n}\n\nexport function registryKindFromProto(kind: ProtoRegistryImageKind): RegistryImageKind {\n  switch (kind) {\n    case ProtoRegistryImageKind.SNAPSHOT:\n      return \"snapshot\";\n    case ProtoRegistryImageKind.TEMPLATE:\n    default:\n      return \"template\";\n  }\n}\n\nexport function registryKindToProto(kind: RegistryImageKind): ProtoRegistryImageKind {\n  switch (kind) {\n    case \"snapshot\":\n      return ProtoRegistryImageKind.SNAPSHOT;\n    case \"template\":\n      return ProtoRegistryImageKind.TEMPLATE;\n  }\n}\n\nexport function registryVisibilityFromProto(visibility: ProtoRegistryVisibility): RegistryVisibility {\n  switch (visibility) {\n    case ProtoRegistryVisibility.PUBLIC:\n      return \"public\";\n    case ProtoRegistryVisibility.SHARED:\n      return \"shared\";\n    case ProtoRegistryVisibility.PRIVATE:\n    default:\n      return \"private\";\n  }\n}\n\nexport function registryVisibilityToProto(visibility: RegistryVisibility): ProtoRegistryVisibility {\n  switch (visibility) {\n    case \"public\":\n      return ProtoRegistryVisibility.PUBLIC;\n    case \"shared\":\n      return ProtoRegistryVisibility.SHARED;\n    case \"private\":\n      return ProtoRegistryVisibility.PRIVATE;\n  }\n}\n\nexport function registrySortToProto(sort: RegistrySortBy): ProtoRegistrySortBy {\n  switch (sort) {\n    case \"name\":\n      return ProtoRegistrySortBy.NAME;\n    case \"updated_at\":\n      return ProtoRegistrySortBy.UPDATED_AT;\n  }\n}\n\nexport function registryTagFromProto(proto: ProtoRegistryTag | undefined): RegistryTag | undefined {\n  if (!proto) return undefined;\n  return {\n    id: proto.id,\n    imageId: proto.imageId,\n    tag: proto.tag,\n    snapshotId: proto.snapshotId,\n    ref: proto.ref,\n    updatedAt: proto.updatedAt ? timestampDate(proto.updatedAt) : new Date(0),\n  };\n}\n\nexport function registryImageFromProto(proto: ProtoRegistryImage): RegistryImage {\n  return {\n    id: proto.id,\n    workspaceId: proto.workspaceId ?? \"\",\n    workspaceSlug: proto.workspaceSlug,\n    name: proto.name,\n    kind: registryKindFromProto(proto.kind),\n    visibility: registryVisibilityFromProto(proto.visibility),\n    title: proto.title,\n    description: proto.description,\n    labels: [...(proto.labels ?? [])],\n    sourceTemplateId: proto.sourceTemplateId,\n    sourceSnapshotId: proto.sourceSnapshotId,\n    tags: (proto.tags ?? []).map((tag) => registryTagFromProto(tag)!),\n    createdAt: proto.createdAt ? timestampDate(proto.createdAt) : new Date(0),\n    updatedAt: proto.updatedAt ? timestampDate(proto.updatedAt) : new Date(0),\n    changesNotYetPublished: proto.changesNotYetPublished,\n  };\n}\n\nexport function registryImageSummaryFromProto(proto: ProtoRegistryImageSummary): RegistryImageSummary {\n  return {\n    id: proto.id,\n    workspaceId: proto.workspaceId ?? \"\",\n    workspaceSlug: proto.workspaceSlug,\n    name: proto.name,\n    kind: registryKindFromProto(proto.kind),\n    visibility: registryVisibilityFromProto(proto.visibility),\n    labels: [...(proto.labels ?? [])],\n    tags: (proto.tags ?? []).map((tag) => registryTagFromProto(tag)!),\n    latestSnapshotId: proto.latestSnapshotId,\n    latestRef: proto.latestRef,\n    updatedAt: proto.updatedAt ? timestampDate(proto.updatedAt) : new Date(0),\n    changesNotYetPublished: proto.changesNotYetPublished,\n  };\n}\n\nexport function registryImageDetailFromProto(proto: ProtoRegistryImageDetail | undefined): RegistryImageDetail {\n  return {\n    image: proto?.image ? registryImageFromProto(proto.image) : undefined,\n    runtimeSecretEnv: { ...(proto?.runtimeSecretEnv ?? {}) },\n    runtimeSecretPolicies: [...(proto?.runtimeSecretPolicies ?? [])],\n    runtimeSecretFiles: (proto?.runtimeSecretFiles ?? []).map(\n      (file) => toJson(RuntimeSecretFileSchema, file) as unknown as RuntimeSecretFile,\n    ),\n    resolvedSnapshotId: proto?.resolvedSnapshotId,\n    resolvedRef: proto?.resolvedRef,\n    workspaceActive: proto?.workspaceActive ?? false,\n    tombstoned: proto?.tombstoned ?? false,\n    maskedEnvVarKeys: [...(proto?.maskedEnvVarKeys ?? [])],\n    metadata: { ...(proto?.metadata ?? {}) },\n    envVars: { ...(proto?.envVars ?? {}) },\n  };\n}\n\nexport function resolvedRegistryRefFromProto(proto: ProtoResolvedRegistryRef | undefined): ResolvedRegistryRef {\n  return {\n    imageId: proto?.imageId ?? \"\",\n    owningWorkspaceId: proto?.owningWorkspaceId ?? \"\",\n    owningWorkspaceSlug: proto?.owningWorkspaceSlug ?? \"\",\n    imageName: proto?.imageName ?? \"\",\n    snapshotId: proto?.snapshotId,\n    resolvedRef: resolvedRegistryRefImage(proto),\n    kind: registryKindFromProto(proto?.kind ?? ProtoRegistryImageKind.UNSPECIFIED),\n    visibility: registryVisibilityFromProto(proto?.visibility ?? ProtoRegistryVisibility.UNSPECIFIED),\n  };\n}\n\nexport function registryShareGrantFromProto(\n  proto: ProtoRegistryShareGrant | undefined,\n): RegistryShareGrant | undefined {\n  if (!proto) return undefined;\n  return {\n    id: proto.id,\n    imageId: proto.imageId,\n    ownerWorkspaceId: proto.ownerWorkspaceId,\n    targetWorkspaceId: proto.targetWorkspaceId,\n    currentSnapshotId: proto.currentSnapshotId,\n    grantedViaTokenId: proto.grantedViaTokenId,\n    acceptedBy: proto.acceptedBy,\n    acceptedAt: proto.acceptedAt ? timestampDate(proto.acceptedAt) : new Date(0),\n    revokedAt: proto.revokedAt ? timestampDate(proto.revokedAt) : undefined,\n    followMode: proto.followMode,\n    followTag: proto.followTag,\n  };\n}\n\nfunction resolvedRegistryRefImage(proto: ProtoResolvedRegistryRef | undefined): string {\n  if (!proto) return \"\";\n  const base = `${proto.owningWorkspaceSlug}/${proto.imageName}`;\n  if (proto.tag) return `${base}:${proto.tag}`;\n  if (proto.snapshotId) return `${base}@${proto.snapshotId}`;\n  return base;\n}\n","import { InvalidResourceConfigError } from \"./errors.js\";\n\nexport const MIN_CPU_CORES = 1;\nexport const MAX_CPU_CORES = 128;\nexport const MIN_CREATE_MEMORY_MB = 128;\nexport const MIN_PROVISION_MEMORY_MB = 512;\nexport const MAX_MEMORY_MB = 524288;\nexport const MIN_DISK_SIZE_GB = 5;\nexport const MAX_DISK_SIZE_GB = 100;\n\ninterface ResourceOptions {\n  cpuCores?: number;\n  memoryMb?: number;\n  diskSizeGb?: number;\n}\n\n/**\n * Checks create resources against the sandbox API's constraints without issuing a\n * request. Create applies it to every request; it is exported so callers building a\n * form can reject one field at a time, omitting the fields they are not checking.\n */\nexport function validateCreateResources(resources: ResourceOptions): void {\n  if (resources.cpuCores != null) validateCpuCores(resources.cpuCores);\n  if (resources.memoryMb != null) validateMemoryMb(resources.memoryMb, MIN_CREATE_MEMORY_MB);\n  if (resources.diskSizeGb != null) validateDiskSizeGb(resources.diskSizeGb);\n}\n\nexport function validateTemplateResources(resources?: ResourceOptions): void {\n  if (!resources) return;\n  if (resources.cpuCores != null && resources.cpuCores !== 0) validateCpuCores(resources.cpuCores);\n  if (resources.memoryMb != null && resources.memoryMb !== 0)\n    validateMemoryMb(resources.memoryMb, MIN_PROVISION_MEMORY_MB);\n  if (resources.diskSizeGb != null && resources.diskSizeGb !== 0) validateDiskSizeGb(resources.diskSizeGb);\n}\n\nfunction validateCpuCores(cpuCores: number): void {\n  if (Number.isInteger(cpuCores) && cpuCores >= MIN_CPU_CORES && cpuCores <= MAX_CPU_CORES) return;\n  throw new InvalidResourceConfigError(`cpuCores must be between ${MIN_CPU_CORES} and ${MAX_CPU_CORES}`);\n}\n\nfunction validateMemoryMb(memoryMb: number, minMemoryMb: number): void {\n  if (!Number.isInteger(memoryMb) || memoryMb < minMemoryMb || memoryMb > MAX_MEMORY_MB) {\n    throw new InvalidResourceConfigError(`memoryMb must be between ${minMemoryMb} and ${MAX_MEMORY_MB}`);\n  }\n  if (memoryMb % 2 !== 0) {\n    throw new InvalidResourceConfigError(\"memoryMb must be aligned to 2 MiB\");\n  }\n}\n\nfunction validateDiskSizeGb(diskSizeGb: number): void {\n  if (Number.isInteger(diskSizeGb) && diskSizeGb >= MIN_DISK_SIZE_GB && diskSizeGb <= MAX_DISK_SIZE_GB) return;\n  throw new InvalidResourceConfigError(`diskSizeGb must be between ${MIN_DISK_SIZE_GB} and ${MAX_DISK_SIZE_GB}`);\n}\n","import { fromJson, type JsonValue } from \"@bufbuild/protobuf\";\n\nimport {\n  RuntimeSecretFileSchema,\n  type RuntimeSecretFile as ProtoFile,\n} from \"./internal/proto/tenki/sandbox/v1/secret_file_pb.js\";\n\nexport interface RuntimeSecretReference {\n  name: string;\n  placeholder?: boolean;\n}\nexport type RuntimeSecretFile = { path: string } & (\n  | { raw: RuntimeSecretReference }\n  | { source: string }\n  | { content: string }\n);\n\nexport function secretFileToProto(file: RuntimeSecretFile): ProtoFile {\n  return fromJson(RuntimeSecretFileSchema, file as unknown as JsonValue);\n}\n\n// Both guest homes can land in the same directory, so they conflict with each other.\nfunction conflictPath(path: string): string {\n  return path.startsWith(\"/home/sandbox/\") ? \"/home/tenki/\" + path.slice(\"/home/sandbox/\".length) : path;\n}\n\nexport function validSecretFiles(files: ProtoFile[], count: number): boolean {\n  if (files.length > 32) return false;\n  for (const [index, file] of files.entries()) {\n    if (\n      new TextEncoder().encode(file.path).length > 4096 ||\n      /[\\x00-\\x1f]/.test(file.path) ||\n      !/^\\/(home\\/tenki|home\\/sandbox|workspace|app)\\/.+/.test(file.path) ||\n      file.path\n        .split(\"/\")\n        .slice(1)\n        .some((p) => !p || p === \".\" || p === \"..\")\n    )\n      return false;\n    const target = conflictPath(file.path);\n    if (\n      files.some((other, j) => {\n        const path = conflictPath(other.path);\n        return j !== index && (target === path || target.startsWith(path + \"/\"));\n      })\n    )\n      return false;\n    const refs: RuntimeSecretReference[] = [];\n    switch (file.format.case) {\n      case \"source\":\n        if (\n          !/^\\/(home\\/tenki|home\\/sandbox|workspace|app)\\/.+/.test(file.format.value) ||\n          file.format.value\n            .split(\"/\")\n            .slice(1)\n            .some((p) => !p || p === \".\" || p === \"..\") ||\n          /[\\x00-\\x1f]/.test(file.format.value) ||\n          new TextEncoder().encode(file.format.value).length > 4096\n        )\n          return false;\n        break;\n      case \"content\": {\n        const names = secretFileNames(file.format.value);\n        if (names === null) return false;\n        refs.push(...names.map((name) => ({ name })));\n        break;\n      }\n      case \"raw\":\n        refs.push(file.format.value);\n        break;\n      default:\n        return false;\n    }\n    count += refs.length;\n    if (refs.some((ref) => !/^[A-Za-z_][A-Za-z0-9_-]{0,127}$/.test(ref.name))) return false;\n  }\n  return count <= 64;\n}\n\n/** Names in single-pass file markers; null means malformed or oversized text. */\nexport function secretFileNames(content: string): string[] | null {\n  if (new TextEncoder().encode(content).length > 262144 || /[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]/.test(content)) return null;\n  const names = new Set<string>();\n  let offset = 0;\n  while (true) {\n    const index = content.indexOf(\"secrets://\", offset);\n    if (index < 0) break;\n    offset = index + \"secrets://\".length;\n    if (index > 0 && content[index - 1] === \"\\\\\") continue;\n    const name = content.slice(offset).match(/^[A-Za-z0-9_-]*/)?.[0] ?? \"\";\n    if (!/^[A-Za-z_][A-Za-z0-9_-]{0,127}$/.test(name)) return null;\n    names.add(name);\n    if (names.size > 64) return null;\n    offset += name.length;\n  }\n  return [...names];\n}\n","import { create } from \"@bufbuild/protobuf\";\nimport { durationFromMs, timestampDate } from \"@bufbuild/protobuf/wkt\";\nimport type { Client } from \"@connectrpc/connect\";\n\nimport {\n  IssueSandboxSSHCertRequestSchema,\n  type SSHGatewayClientService,\n} from \"./internal/proto/tenki/sandbox/v1/ssh_gateway_client_pb.js\";\n\n// SSH features allowed for the issued certificate.\nexport interface SSHCertPermissions {\n  allowPty: boolean;\n  allowAgentForwarding: boolean;\n  allowPortForwardingLocal: boolean;\n  allowPortForwardingRemote: boolean;\n  allowX11Forwarding: boolean;\n}\n\n// Credentials returned by issueSandboxSSHCert.\nexport interface SSHCert {\n  /**\n   * OpenSSH cert in authorized_keys format (begins with\n   * \"ssh-ed25519-cert-v01@openssh.com\"). Write it to disk alongside the\n   * private key as `<key>-cert.pub` so ssh auto-loads it, or pass it via\n   * `-o CertificateFile=`.\n   */\n  sshCert: string;\n  /** User-CA public key for known_hosts pinning. */\n  caPub: string;\n  /**\n   * Whether the client should verify the gateway host certificate against\n   * caPub. False on engines that predate the field.\n   */\n  pinHostKey?: boolean;\n  /** Hex-encoded serial, for audit/revocation correlation. */\n  certSerial: string;\n  /** Absolute expiry; new authentication attempts fail after this time. */\n  expiresAt?: Date;\n  /** Elapsed-time hint after issuance for minting a cert for a later connection. */\n  renewalAfterMs?: number;\n  /** Resolved permissions echoed from issuance policy. */\n  permissions?: SSHCertPermissions;\n}\n\n// Requests a user certificate for the caller-owned OpenSSH public key.\n// The service caps ttlMs to policy; omit it to use the default validity.\nexport async function issueSandboxSSHCert(\n  gatewayClient: Client<typeof SSHGatewayClientService>,\n  sessionId: string,\n  publicKey: string,\n  ttlMs?: number,\n): Promise<SSHCert> {\n  const sid = sessionId.trim();\n  if (!sid) throw new Error(\"session_id required\");\n  const pub = publicKey.trim();\n  if (!pub) throw new Error(\"public_key required\");\n\n  const req = create(IssueSandboxSSHCertRequestSchema, {\n    sessionId: sid,\n    publicKey: pub,\n  });\n  if (ttlMs && ttlMs > 0) {\n    req.requestedTtl = durationFromMs(ttlMs);\n  }\n\n  const resp = await gatewayClient.issueSandboxSSHCert(req);\n  return {\n    sshCert: resp.sshCert,\n    caPub: resp.caPub,\n    pinHostKey: resp.pinHostKey,\n    certSerial: resp.certSerial,\n    expiresAt: resp.expiresAt ? timestampDate(resp.expiresAt) : undefined,\n    renewalAfterMs: resp.renewalAfter\n      ? Number(resp.renewalAfter.seconds) * 1000 + Math.floor(resp.renewalAfter.nanos / 1_000_000)\n      : undefined,\n    permissions: resp.permissions\n      ? {\n          allowPty: resp.permissions.allowPty,\n          allowAgentForwarding: resp.permissions.allowAgentForwarding,\n          allowPortForwardingLocal: resp.permissions.allowPortForwardingLocal,\n          allowPortForwardingRemote: resp.permissions.allowPortForwardingRemote,\n          allowX11Forwarding: resp.permissions.allowX11Forwarding,\n        }\n      : undefined,\n  };\n}\n","import { timestampDate } from \"@bufbuild/protobuf/wkt\";\n\nimport type { RegistryImage as ProtoRegistryImage } from \"./internal/proto/tenki/sandbox/v1/registry_pb.js\";\nimport type {\n  Template as ProtoTemplate,\n  TemplateBuild as ProtoTemplateBuild,\n  TemplateBuildEvent as ProtoTemplateBuildEvent,\n  TemplateBuildStepReference as ProtoTemplateBuildStepReference,\n} from \"./internal/proto/tenki/sandbox/v1/template_pb.js\";\nimport {\n  TemplateBuildState as ProtoTemplateBuildState,\n  TemplateDefinitionMode as ProtoTemplateDefinitionMode,\n  TemplateVisibility as ProtoTemplateVisibility,\n  TemplateBuildLogStream,\n  TemplateBuildProgressState,\n} from \"./internal/proto/tenki/sandbox/v1/template_pb.js\";\nimport type { RegistryImage } from \"./registry.js\";\nimport { registryImageFromProto } from \"./registry.js\";\nimport { TemplateSpec } from \"./template-spec.js\";\nimport type { SandboxWarning } from \"./warning.js\";\n\nexport type TemplateBuildState = \"UNSPECIFIED\" | \"PENDING\" | \"BUILDING\" | \"READY\" | \"FAILED\";\n\nexport interface TemplateResources {\n  cpuCores: number;\n  memoryMb: number;\n  diskSizeGb: number;\n}\n\n/** Private registry image produced by a successful template build. */\nexport interface TemplateImage extends RegistryImage {\n  /** Untagged ref tracking the latest eligible successful build. */\n  ref: string;\n  /** Immutable SHA-256 image manifest digest. */\n  digest: string;\n  /** Immutable digest-addressed ref, e.g. \"acme/node-api@sha256:...\". */\n  digestRef: string;\n}\n\n/** Accepted by create({ image }); a TemplateImage satisfies it. */\nexport interface TemplateImageRef {\n  ref?: string;\n  digestRef?: string;\n}\n\nexport interface TemplateBuild {\n  id: string;\n  templateId: string;\n  state: TemplateBuildState;\n  version: number;\n  error: string;\n  buildLogTail: string;\n  buildLogTruncated: boolean;\n  buildLogArtifactId: string;\n  startedAt: Date;\n  completedAt: Date;\n  snapshotId: string;\n  sessionId: string;\n  /** Frozen typed spec this build executes; immutable once submitted. */\n  spec?: TemplateSpec;\n  /** Server-computed hash of the normalized spec. */\n  specHash: string;\n  /** Present once the build succeeds. */\n  image?: TemplateImage;\n  imageDigest: string;\n  imageDigestRef: string;\n  events: TemplateBuildEvent[];\n  provenance?: TemplateBuildProvenance;\n  failure?: TemplateBuildFailure;\n  /** Warnings returned by the buildTemplate call that started this build. */\n  warnings?: SandboxWarning[];\n}\n\nexport interface TemplateBuildStepReference {\n  index: number;\n  kind: string;\n  name?: string;\n  label: string;\n}\n\ninterface TemplateBuildEventBase {\n  timestamp: Date;\n  phase: string;\n  step?: TemplateBuildStepReference;\n}\n\nexport interface TemplateBuildLogEvent extends TemplateBuildEventBase {\n  type: \"log\";\n  stream: \"stdout\" | \"stderr\" | \"system\";\n  data: string;\n}\n\nexport interface TemplateBuildProgressEvent extends TemplateBuildEventBase {\n  type: \"progress\";\n  state: \"unspecified\" | \"started\" | \"completed\" | \"failed\";\n  message?: string;\n}\n\nexport type TemplateBuildEvent = TemplateBuildLogEvent | TemplateBuildProgressEvent;\n\nexport interface TemplateBuildWaitOptions {\n  signal?: AbortSignal;\n  onEvent?: (event: TemplateBuildEvent) => void | Promise<void>;\n}\n\nexport interface TemplateBuildOptions extends TemplateBuildWaitOptions {\n  /** Request-scoped environment overrides frozen into this build. */\n  buildEnv?: Record<string, string>;\n  /** Ephemeral environment variables available only during this build. */\n  buildSecrets?: Record<string, string>;\n  publishRawImage?: boolean;\n  waitForCompletion?: boolean;\n}\n\nexport interface TemplateBuildProvenance {\n  requestedGitRef?: string;\n  resolvedGitCommitSha?: string;\n  buildSecretKeys?: string[];\n}\n\nexport interface TemplateBuildFailure {\n  code: string;\n  message: string;\n  step?: TemplateBuildStepReference;\n}\n\nexport type TemplateVisibility = \"UNSPECIFIED\" | \"PRIVATE\" | \"PUBLIC\";\nexport type TemplateDefinitionMode = \"UNSPECIFIED\" | \"LEGACY\" | \"TYPED\";\n\nexport interface Template {\n  id: string;\n  workspaceId: string;\n  ownerType: string;\n  ownerId: string;\n  name: string;\n  baseImageId: string;\n  setupScript: string;\n  startCmd: string;\n  envVars: Record<string, string>;\n  tags: string[];\n  resources?: TemplateResources;\n  /** Typed v1 recipe when the template is spec-backed. */\n  spec?: TemplateSpec;\n  /** Server-computed hash of the normalized spec. */\n  specHash: string;\n  latestBuild?: TemplateBuild;\n  visibility: TemplateVisibility;\n  definitionMode: TemplateDefinitionMode;\n  parentWorkspaceId: string;\n  createdAt: Date;\n  updatedAt: Date;\n  /** Warnings returned by the createTemplate or updateTemplate call that produced this value. */\n  warnings?: SandboxWarning[];\n}\n\nexport function templateBuildStateFromProto(state: ProtoTemplateBuildState): TemplateBuildState {\n  switch (state) {\n    case ProtoTemplateBuildState.PENDING:\n      return \"PENDING\";\n    case ProtoTemplateBuildState.BUILDING:\n      return \"BUILDING\";\n    case ProtoTemplateBuildState.READY:\n      return \"READY\";\n    case ProtoTemplateBuildState.FAILED:\n      return \"FAILED\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\nexport function templateBuildFromProto(proto: ProtoTemplateBuild | undefined): TemplateBuild | undefined {\n  if (!proto) return undefined;\n  return {\n    id: proto.id,\n    templateId: proto.templateId,\n    state: templateBuildStateFromProto(proto.state),\n    version: proto.version,\n    error: proto.error ?? \"\",\n    buildLogTail: proto.buildLogTail ?? \"\",\n    buildLogTruncated: proto.buildLogTruncated,\n    buildLogArtifactId: proto.buildLogArtifactId ?? \"\",\n    startedAt: proto.startedAt ? timestampDate(proto.startedAt) : new Date(0),\n    completedAt: proto.completedAt ? timestampDate(proto.completedAt) : new Date(0),\n    snapshotId: proto.snapshotId ?? \"\",\n    sessionId: proto.sessionId ?? \"\",\n    spec: proto.builderSpec ? TemplateSpec.fromProto(proto.builderSpec) : undefined,\n    specHash: proto.specHash ?? \"\",\n    image: templateImageFromProto(proto.image, proto.imageDigest, proto.imageDigestRef),\n    imageDigest: proto.imageDigest ?? \"\",\n    imageDigestRef: proto.imageDigestRef ?? \"\",\n    events: proto.events.flatMap(templateBuildEventFromProto),\n    provenance: proto.provenance\n      ? {\n          requestedGitRef: proto.provenance.requestedGitRef,\n          resolvedGitCommitSha: proto.provenance.resolvedGitCommitSha,\n          buildSecretKeys: [...proto.provenance.buildSecretKeys],\n        }\n      : undefined,\n    failure: proto.failure\n      ? {\n          code: proto.failure.code,\n          message: proto.failure.message,\n          step: templateBuildStepFromProto(proto.failure.step),\n        }\n      : undefined,\n  };\n}\n\nfunction templateImageFromProto(\n  proto: ProtoRegistryImage | undefined,\n  digest: string | undefined,\n  digestRef: string | undefined,\n): TemplateImage | undefined {\n  if (!proto) return undefined;\n  const image = registryImageFromProto(proto);\n  return {\n    ...image,\n    ref: [image.workspaceSlug, image.name].filter(Boolean).join(\"/\"),\n    digest: digest ?? \"\",\n    digestRef: digestRef ?? \"\",\n  };\n}\n\nfunction templateBuildStepFromProto(\n  step: ProtoTemplateBuildStepReference | undefined,\n): TemplateBuildStepReference | undefined {\n  return step ? { index: step.index, kind: step.kind, name: step.name, label: step.label } : undefined;\n}\n\nfunction templateBuildEventFromProto(event: ProtoTemplateBuildEvent): TemplateBuildEvent[] {\n  if (event.event.case === \"log\") {\n    const value = event.event.value;\n    const stream =\n      value.stream === TemplateBuildLogStream.STDOUT\n        ? \"stdout\"\n        : value.stream === TemplateBuildLogStream.STDERR\n          ? \"stderr\"\n          : \"system\";\n    return [\n      {\n        type: \"log\",\n        timestamp: value.timestamp ? timestampDate(value.timestamp) : new Date(0),\n        phase: value.phase,\n        step: templateBuildStepFromProto(value.step),\n        stream,\n        data: value.data,\n      },\n    ];\n  }\n  if (event.event.case === \"progress\") {\n    const value = event.event.value;\n    const state =\n      value.state === TemplateBuildProgressState.STARTED\n        ? \"started\"\n        : value.state === TemplateBuildProgressState.COMPLETED\n          ? \"completed\"\n          : value.state === TemplateBuildProgressState.FAILED\n            ? \"failed\"\n            : \"unspecified\";\n    return [\n      {\n        type: \"progress\",\n        timestamp: value.timestamp ? timestampDate(value.timestamp) : new Date(0),\n        phase: value.phase,\n        step: templateBuildStepFromProto(value.step),\n        state,\n        message: value.message,\n      },\n    ];\n  }\n  return [];\n}\n\nexport function templateVisibilityFromProto(state: ProtoTemplateVisibility): TemplateVisibility {\n  switch (state) {\n    case ProtoTemplateVisibility.PRIVATE:\n      return \"PRIVATE\";\n    case ProtoTemplateVisibility.PUBLIC:\n      return \"PUBLIC\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\nexport function templateDefinitionModeFromProto(state: ProtoTemplateDefinitionMode): TemplateDefinitionMode {\n  switch (state) {\n    case ProtoTemplateDefinitionMode.LEGACY:\n      return \"LEGACY\";\n    case ProtoTemplateDefinitionMode.TYPED:\n      return \"TYPED\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\nexport function templateFromProto(proto: ProtoTemplate): Template {\n  return {\n    id: proto.id,\n    workspaceId: proto.workspaceId,\n    ownerType: proto.ownerType,\n    ownerId: proto.ownerId,\n    name: proto.name,\n    baseImageId: proto.baseImageId,\n    setupScript: proto.setupScript,\n    startCmd: proto.startCmd ?? \"\",\n    envVars: { ...proto.envVars },\n    tags: [...(proto.tags ?? [])],\n    resources: proto.resources\n      ? {\n          cpuCores: proto.resources.cpuCores,\n          memoryMb: proto.resources.memoryMb,\n          diskSizeGb: proto.resources.diskSizeGb,\n        }\n      : undefined,\n    spec: proto.builderSpec ? TemplateSpec.fromProto(proto.builderSpec) : undefined,\n    specHash: proto.specHash ?? \"\",\n    latestBuild: templateBuildFromProto(proto.latestBuild),\n    visibility: templateVisibilityFromProto(proto.visibility),\n    definitionMode: templateDefinitionModeFromProto(proto.definitionMode),\n    parentWorkspaceId: proto.parentWorkspaceId ?? \"\",\n    createdAt: proto.createdAt ? timestampDate(proto.createdAt) : new Date(0),\n    updatedAt: proto.updatedAt ? timestampDate(proto.updatedAt) : new Date(0),\n  };\n}\n","import { clone, create, fromJson, toJson, type JsonValue } from \"@bufbuild/protobuf\";\n\nimport { InvalidTemplateSpecError } from \"./errors.js\";\nimport type {\n  TemplateBuildSpec as ProtoTemplateBuildSpec,\n  TemplateRuntime as ProtoTemplateRuntime,\n  TemplateRunStep,\n  TemplateSnapshotCheck,\n  TemplateSnapshotWhen,\n  TemplateStep,\n} from \"./internal/proto/tenki/sandbox/v1/template_pb.js\";\nimport {\n  TemplateBaseSchema,\n  TemplateBuildConfigSchema,\n  TemplateBuildSpecSchema,\n  TemplateCheckoutMode,\n  TemplateCheckoutSchema,\n  TemplateContextSchema,\n  TemplateCopyStepSchema,\n  TemplateExecReadyCheckSchema,\n  TemplateHTTPReadyCheckSchema,\n  TemplateMakeDirStepSchema,\n  TemplatePackageStepSchema,\n  TemplateProcessComposeRuntimeSchema,\n  TemplateRemoveStepSchema,\n  TemplateRenameStepSchema,\n  TemplateResourcesSchema,\n  TemplateRestartPolicy,\n  TemplateRunStepSchema,\n  TemplateRuntimeRunAt,\n  TemplateRuntimeSchema,\n  TemplateSnapshotCheckSchema,\n  TemplateSnapshotMode,\n  TemplateSnapshotWhenSchema,\n  TemplateStartRuntimeSchema,\n  TemplateStepSchema,\n  TemplateSymlinkStepSchema,\n  TemplateWriteFileStepSchema,\n} from \"./internal/proto/tenki/sandbox/v1/template_pb.js\";\nimport { secretFileToProto, validSecretFiles, type RuntimeSecretFile } from \"./secret-files.js\";\n\nexport const TEMPLATE_SPEC_VERSION = \"tenki.template.v1\";\n\n/** Successor of TEMPLATE_SPEC_VERSION; accepted once enabled for the environment and defaults workdir to /home/sandbox. */\nexport const TEMPLATE_SPEC_VERSION_LUXOR = \"luxor.template.v1\";\n\n/** Default readiness deadline applied when a shorthand check list omits one. */\nconst DEFAULT_READY_TIMEOUT_SECONDS = 60;\n\nexport interface GitContextOptions {\n  repo: string;\n  /** Branch, tag, or commit SHA. */\n  ref: string;\n  checkout?: {\n    /** Absolute guest path; defaults to the template workdir. */\n    dest?: string;\n    /** \"contents\" places repository contents in dest; \"directory\" under a child directory. */\n    mode?: \"contents\" | \"directory\";\n    /** Child directory name; only valid in directory mode. */\n    name?: string;\n  };\n  ignore?: string[];\n}\n\nexport interface TemplateStepOptions {\n  name?: string;\n}\n\nexport interface TemplateRunOptions extends TemplateStepOptions {\n  workdir?: string;\n  timeoutSeconds?: number;\n}\n\nexport interface TemplateWriteFileOptions extends TemplateStepOptions {\n  mode?: number;\n}\n\nexport interface TemplateMkdirOptions extends TemplateStepOptions {\n  parents?: boolean;\n  mode?: number;\n}\n\nexport interface TemplateRemoveOptions extends TemplateStepOptions {\n  recursive?: boolean;\n}\n\nexport type TemplateReadyCheck =\n  | { port: number }\n  | { http: string | { url: string; successStatusCodes?: number[] } }\n  | { exec: string | { command?: string; argv?: string[]; timeoutSeconds?: number } };\n\nexport interface TemplateReadyWhen {\n  timeoutSeconds?: number;\n  pollIntervalSeconds?: number;\n  checks?: TemplateReadyCheck[];\n}\n\nexport type TemplateRunAt = \"boot\" | \"build\" | \"manual\";\nexport type TemplateRestartPolicyOption = \"never\" | \"on-failure\" | \"always\";\nexport type TemplateSnapshotModeOption = \"filesystem\" | \"memory\";\n\nexport interface TemplateRuntimeOptions {\n  secretPolicies?: string[];\n  /** Environment targets mapped to secret names in the launching workspace. */\n  secretEnv?: Record<string, string>;\n  secretFiles?: RuntimeSecretFile[];\n  runAt?: TemplateRunAt;\n  restartPolicy?: TemplateRestartPolicyOption;\n  snapshotMode?: TemplateSnapshotModeOption;\n  readyWhen?: TemplateReadyCheck[] | TemplateReadyWhen;\n  stopGraceSeconds?: number;\n}\n\nexport interface TemplateStartOptions extends TemplateRuntimeOptions {\n  workdir?: string;\n}\n\nexport interface TemplateProcessComposeOptions extends TemplateRuntimeOptions {\n  workdir?: string;\n  /** Dotenv files loaded explicitly, workdir-relative. */\n  envFiles?: string[];\n}\n\nexport interface TemplateSpecResources {\n  cpuCores?: number;\n  memoryMb?: number;\n  diskSizeGb?: number;\n}\n\nexport interface TemplateSpecViolation {\n  field: string;\n  message: string;\n}\n\nconst UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;\nconst LOCALHOST_HTTP_RE = /^https?:\\/\\/(localhost|127\\.0\\.0\\.1|\\[::1\\])(:[0-9]+)?(\\/.*)?$/;\nconst PACKAGE_RE = /^[^-\\x00][^\\x00]*$/;\nconst MAX_PATH_LENGTH = 4096;\n\nconst AUTHORED_ENUM_FIELDS: Record<string, Record<string, string>> = {\n  \"context.checkout.mode\": {\n    contents: \"TEMPLATE_CHECKOUT_MODE_CONTENTS\",\n    directory: \"TEMPLATE_CHECKOUT_MODE_DIRECTORY\",\n  },\n  \"runtime.runAt\": {\n    boot: \"TEMPLATE_RUNTIME_RUN_AT_BOOT\",\n    build: \"TEMPLATE_RUNTIME_RUN_AT_BUILD\",\n    manual: \"TEMPLATE_RUNTIME_RUN_AT_MANUAL\",\n  },\n  \"runtime.run_at\": {\n    boot: \"TEMPLATE_RUNTIME_RUN_AT_BOOT\",\n    build: \"TEMPLATE_RUNTIME_RUN_AT_BUILD\",\n    manual: \"TEMPLATE_RUNTIME_RUN_AT_MANUAL\",\n  },\n  \"runtime.restartPolicy\": {\n    never: \"TEMPLATE_RESTART_POLICY_NEVER\",\n    \"on-failure\": \"TEMPLATE_RESTART_POLICY_ON_FAILURE\",\n    always: \"TEMPLATE_RESTART_POLICY_ALWAYS\",\n  },\n  \"runtime.restart_policy\": {\n    never: \"TEMPLATE_RESTART_POLICY_NEVER\",\n    \"on-failure\": \"TEMPLATE_RESTART_POLICY_ON_FAILURE\",\n    always: \"TEMPLATE_RESTART_POLICY_ALWAYS\",\n  },\n  \"runtime.snapshotMode\": {\n    filesystem: \"TEMPLATE_SNAPSHOT_MODE_FILESYSTEM\",\n    memory: \"TEMPLATE_SNAPSHOT_MODE_MEMORY\",\n  },\n  \"runtime.snapshot_mode\": {\n    filesystem: \"TEMPLATE_SNAPSHOT_MODE_FILESYSTEM\",\n    memory: \"TEMPLATE_SNAPSHOT_MODE_MEMORY\",\n  },\n};\n\nfunction normalizeAuthoredEnums(value: JsonValue, toAuthored: boolean, path: string[] = []): JsonValue {\n  if (Array.isArray(value)) return value.map((item) => normalizeAuthoredEnums(item, toAuthored, path));\n  if (value !== null && typeof value === \"object\") {\n    return Object.fromEntries(\n      Object.entries(value).map(([key, item]) => [key, normalizeAuthoredEnums(item, toAuthored, [...path, key])]),\n    );\n  }\n  if (typeof value !== \"string\") return value;\n\n  const values = AUTHORED_ENUM_FIELDS[path.join(\".\")];\n  if (!values) return value;\n  if (!toAuthored) return values[value] ?? value;\n  return Object.entries(values).find(([, protobufName]) => protobufName === value)?.[0] ?? value;\n}\n\n/** Immutable fluent builder for the typed v1 template build spec; defaults to base image \"sandbox\". */\nexport class TemplateSpec {\n  private proto: ProtoTemplateBuildSpec;\n\n  constructor() {\n    this.proto = create(TemplateBuildSpecSchema, {\n      specVersion: TEMPLATE_SPEC_VERSION,\n      base: { source: { case: \"image\", value: \"sandbox\" } },\n    });\n  }\n\n  /** Strictly decode authored JSON with short or protobuf enum names; unknown fields are rejected. */\n  static fromJSON(json: string | JsonValue): TemplateSpec {\n    let value: JsonValue;\n    if (typeof json === \"string\") {\n      try {\n        value = JSON.parse(json) as JsonValue;\n      } catch (err) {\n        throw new InvalidTemplateSpecError(`invalid template spec JSON: ${err instanceof Error ? err.message : err}`, {\n          cause: err instanceof Error ? err : undefined,\n        });\n      }\n    } else {\n      value = json;\n    }\n    try {\n      return TemplateSpec.fromProto(fromJson(TemplateBuildSpecSchema, normalizeAuthoredEnums(value, false)));\n    } catch (err) {\n      if (err instanceof InvalidTemplateSpecError) throw err;\n      throw new InvalidTemplateSpecError(`invalid template spec: ${err instanceof Error ? err.message : err}`, {\n        cause: err instanceof Error ? err : undefined,\n      });\n    }\n  }\n\n  /** @internal */\n  static fromProto(proto: ProtoTemplateBuildSpec): TemplateSpec {\n    const spec = new TemplateSpec();\n    spec.proto = clone(TemplateBuildSpecSchema, proto);\n    return spec;\n  }\n\n  /** @internal */\n  toProto(): ProtoTemplateBuildSpec {\n    return clone(TemplateBuildSpecSchema, this.proto);\n  }\n\n  /** @internal Extract the managed runtime for direct Session launch. */\n  toDirectRuntimeProto(): ProtoTemplateRuntime {\n    const p = this.toProto();\n    if (\n      p.base?.source.case !== \"image\" ||\n      p.base.source.value !== \"sandbox\" ||\n      p.context ||\n      p.build ||\n      p.steps.length ||\n      p.resources\n    ) {\n      throw new InvalidTemplateSpecError(\n        \"directRuntime accepts runtime settings only; configure the launch image and resources on create\",\n      );\n    }\n    const violations = this.validate();\n    if (violations.length)\n      throw new InvalidTemplateSpecError(violations.map((v) => `${v.field}: ${v.message}`).join(\"; \"));\n    if (\n      !p.runtime ||\n      (p.runtime.runAt !== TemplateRuntimeRunAt.UNSPECIFIED && p.runtime.runAt !== TemplateRuntimeRunAt.BOOT)\n    ) {\n      throw new InvalidTemplateSpecError(\"directRuntime requires a boot runtime entrypoint\");\n    }\n    if (p.runtime.entrypoint.case && !p.runtime.entrypoint.value.workdir)\n      p.runtime.entrypoint.value.workdir = p.workdir;\n    return p.runtime;\n  }\n\n  /** Authored JSON document with short enum values; `JSON.stringify(spec)` uses this. */\n  toJSON(): JsonValue {\n    return normalizeAuthoredEnums(toJson(TemplateBuildSpecSchema, this.proto), true);\n  }\n\n  /** Base on a Luxor-managed image ID or qualified Luxor registry ref. */\n  fromImage(image: string): TemplateSpec {\n    return this.update((p) => {\n      p.base = create(TemplateBaseSchema, { source: { case: \"image\", value: image.trim() } });\n    });\n  }\n\n  /** Base on a parent template. */\n  fromTemplate(template: string | { id: string }): TemplateSpec {\n    const id = typeof template === \"string\" ? template.trim() : template.id;\n    return this.update((p) => {\n      p.base = create(TemplateBaseSchema, { source: { case: \"templateId\", value: id } });\n    });\n  }\n\n  /** Base on a parent snapshot. */\n  fromSnapshot(snapshot: string | { id: string }): TemplateSpec {\n    const id = typeof snapshot === \"string\" ? snapshot.trim() : snapshot.id;\n    return this.update((p) => {\n      p.base = create(TemplateBaseSchema, { source: { case: \"snapshotId\", value: id } });\n    });\n  }\n\n  /** Backend-fetched Git build context; the .git directory is retained unless ignored. */\n  withGitContext(context: GitContextOptions): TemplateSpec {\n    return this.update((p) => {\n      p.context = create(TemplateContextSchema, {\n        source: { source: { case: \"git\", value: { repo: context.repo, ref: context.ref } } },\n        ignore: [...(context.ignore ?? [])],\n      });\n      if (context.checkout) {\n        p.context.checkout = create(TemplateCheckoutSchema, {\n          dest: context.checkout.dest ?? \"\",\n          mode:\n            context.checkout.mode === \"directory\"\n              ? TemplateCheckoutMode.DIRECTORY\n              : context.checkout.mode === \"contents\"\n                ? TemplateCheckoutMode.CONTENTS\n                : TemplateCheckoutMode.UNSPECIFIED,\n        });\n        if (context.checkout.name !== undefined) p.context.checkout.name = context.checkout.name;\n      }\n    });\n  }\n\n  /** Default directory for Git checkout, build commands, and runtime processes. */\n  workdir(path: string): TemplateSpec {\n    return this.update((p) => {\n      p.workdir = path;\n    });\n  }\n\n  /** Persisted non-secret build environment, merged into any previous values. */\n  buildEnv(env: Record<string, string>): TemplateSpec {\n    return this.update((p) => {\n      p.build ??= create(TemplateBuildConfigSchema, {});\n      p.build.env = { ...p.build.env, ...env };\n    });\n  }\n\n  /** Shell-form build command (sh -lc). */\n  run(command: string, options?: TemplateRunOptions): TemplateSpec {\n    return this.addStep(options?.name, { case: \"run\", value: runStep({ command }, options) });\n  }\n\n  /** Argv-form build command executed directly, without a shell. */\n  runArgs(argv: string[], options?: TemplateRunOptions): TemplateSpec {\n    return this.addStep(options?.name, { case: \"run\", value: runStep({ argv: [...argv] }, options) });\n  }\n\n  /** Copy from the materialized Git context (src is context-relative) to an absolute guest path. */\n  copy(src: string, dest: string, options?: TemplateStepOptions): TemplateSpec {\n    return this.addStep(options?.name, { case: \"copy\", value: create(TemplateCopyStepSchema, { src, dest }) });\n  }\n\n  /** Write an inline small file at an absolute guest path. */\n  writeFile(path: string, content: string | Uint8Array, options?: TemplateWriteFileOptions): TemplateSpec {\n    const bytes = typeof content === \"string\" ? new TextEncoder().encode(content) : new Uint8Array(content);\n    const value = create(TemplateWriteFileStepSchema, { path, content: bytes });\n    if (options?.mode !== undefined) value.mode = options.mode;\n    return this.addStep(options?.name, { case: \"writeFile\", value });\n  }\n\n  mkdir(path: string, options?: TemplateMkdirOptions): TemplateSpec {\n    const value = create(TemplateMakeDirStepSchema, { path, parents: options?.parents ?? false });\n    if (options?.mode !== undefined) value.mode = options.mode;\n    return this.addStep(options?.name, { case: \"mkdir\", value });\n  }\n\n  remove(path: string, options?: TemplateRemoveOptions): TemplateSpec {\n    return this.addStep(options?.name, {\n      case: \"remove\",\n      value: create(TemplateRemoveStepSchema, { path, recursive: options?.recursive ?? false }),\n    });\n  }\n\n  rename(src: string, dest: string, options?: TemplateStepOptions): TemplateSpec {\n    return this.addStep(options?.name, { case: \"rename\", value: create(TemplateRenameStepSchema, { src, dest }) });\n  }\n\n  symlink(target: string, path: string, options?: TemplateStepOptions): TemplateSpec {\n    return this.addStep(options?.name, {\n      case: \"symlink\",\n      value: create(TemplateSymlinkStepSchema, { target, path }),\n    });\n  }\n\n  apt(packages: string[], options?: TemplateStepOptions): TemplateSpec {\n    return this.addPackageStep(\"apt\", packages, options);\n  }\n\n  pip(packages: string[], options?: TemplateStepOptions): TemplateSpec {\n    return this.addPackageStep(\"pip\", packages, options);\n  }\n\n  npm(packages: string[], options?: TemplateStepOptions): TemplateSpec {\n    return this.addPackageStep(\"npm\", packages, options);\n  }\n\n  bun(packages: string[], options?: TemplateStepOptions): TemplateSpec {\n    return this.addPackageStep(\"bun\", packages, options);\n  }\n\n  /** Persisted process-scoped runtime environment, merged into any previous values. */\n  runtimeEnv(env: Record<string, string>): TemplateSpec {\n    return this.update((p) => {\n      const runtime = ensureRuntime(p);\n      runtime.env = { ...runtime.env, ...env };\n    });\n  }\n\n  /** Single shell-form runtime start command. */\n  start(command: string, options?: TemplateStartOptions): TemplateSpec {\n    return this.setStart({ command }, options);\n  }\n\n  /** Single argv-form runtime start command. */\n  startArgs(argv: string[], options?: TemplateStartOptions): TemplateSpec {\n    return this.setStart({ argv: [...argv] }, options);\n  }\n\n  /** Process-compose supervised runtime; configPath and envFiles are workdir-relative. */\n  processCompose(configPath: string, options?: TemplateProcessComposeOptions): TemplateSpec {\n    return this.update((p) => {\n      const runtime = ensureRuntime(p);\n      runtime.entrypoint = {\n        case: \"processCompose\",\n        value: create(TemplateProcessComposeRuntimeSchema, {\n          configPath,\n          workdir: options?.workdir ?? \"\",\n          envFiles: [...(options?.envFiles ?? [])],\n        }),\n      };\n      applyRuntimeOptions(runtime, options);\n    });\n  }\n\n  /** Readiness contract shared by build, boot, manual start, and cold fallback. */\n  readyWhen(readyWhen: TemplateReadyCheck[] | TemplateReadyWhen): TemplateSpec {\n    return this.update((p) => {\n      ensureRuntime(p).readyWhen = readyWhenToProto(readyWhen);\n    });\n  }\n\n  /** Default CPU/memory/disk for the build VM and launched sandboxes. */\n  resources(resources: TemplateSpecResources): TemplateSpec {\n    return this.update((p) => {\n      p.resources = create(TemplateResourcesSchema, {\n        cpuCores: resources.cpuCores ?? 0,\n        memoryMb: resources.memoryMb ?? 0,\n        diskSizeGb: resources.diskSizeGb ?? 0,\n      });\n    });\n  }\n\n  /** Best-effort local field/message violations; server validation remains authoritative. */\n  validate(): TemplateSpecViolation[] {\n    const v: TemplateSpecViolation[] = [];\n    const p = this.proto;\n\n    if (p.specVersion !== TEMPLATE_SPEC_VERSION && p.specVersion !== TEMPLATE_SPEC_VERSION_LUXOR) {\n      v.push({\n        field: \"specVersion\",\n        message: `specVersion must be \"${TEMPLATE_SPEC_VERSION}\" or \"${TEMPLATE_SPEC_VERSION_LUXOR}\"`,\n      });\n    }\n\n    if (!p.base || p.base.source.case === undefined) {\n      v.push({ field: \"base\", message: \"exactly one base source is required\" });\n    } else if (p.base.source.case === \"image\" && p.base.source.value.trim() === \"\") {\n      v.push({ field: \"base.image\", message: \"image must not be empty\" });\n    } else if (p.base.source.case === \"templateId\" && !UUID_RE.test(p.base.source.value)) {\n      v.push({ field: \"base.templateId\", message: \"template_id must be a UUID\" });\n    } else if (p.base.source.case === \"snapshotId\" && !UUID_RE.test(p.base.source.value)) {\n      v.push({ field: \"base.snapshotId\", message: \"snapshot_id must be a UUID\" });\n    }\n\n    validatePath(p.workdir, \"workdir\", v, false, \"workdir\");\n\n    if (p.context) {\n      const git = p.context.source?.source.case === \"git\" ? p.context.source.source.value : undefined;\n      if (!git) {\n        v.push({ field: \"context.source\", message: \"a Git context source is required\" });\n      } else {\n        validateLength(git.repo, \"context.source.git.repo\", 1, 4096, v);\n        validateLength(git.ref, \"context.source.git.ref\", 1, 1024, v);\n      }\n      const checkout = p.context.checkout;\n      if (checkout) {\n        validatePath(checkout.dest, \"context.checkout.dest\", v, false, \"dest\");\n        if (checkout.name !== undefined && checkout.mode !== TemplateCheckoutMode.DIRECTORY) {\n          v.push({ field: \"context.checkout.name\", message: \"checkout name is only valid in directory mode\" });\n        }\n        if (\n          checkout.name !== undefined &&\n          (checkout.name === \".\" ||\n            checkout.name === \"..\" ||\n            checkout.name.includes(\"/\") ||\n            checkout.name.length < 1 ||\n            checkout.name.length > 255)\n        ) {\n          v.push({ field: \"context.checkout.name\", message: \"checkout name must be a safe 1-255 character name\" });\n        }\n      }\n      if (p.context.ignore.length > 256) {\n        v.push({ field: \"context.ignore\", message: \"at most 256 ignore rules are supported\" });\n      }\n      p.context.ignore.forEach((rule, i) => validateLength(rule, `context.ignore[${i}]`, 0, 4096, v));\n    }\n\n    if (p.build && Object.keys(p.build.env).length > 256) {\n      v.push({ field: \"build.env\", message: \"at most 256 build environment variables are supported\" });\n    }\n\n    if (p.steps.length > 256) {\n      v.push({ field: \"steps\", message: \"at most 256 steps are supported\" });\n    }\n    p.steps.forEach((step, i) => validateStep(step, i, p.context !== undefined, v));\n\n    if (p.runtime) validateRuntime(p.runtime, v);\n\n    if (p.resources) {\n      const r = p.resources;\n      if (r.cpuCores < 0 || r.cpuCores > 128) {\n        v.push({ field: \"resources.cpuCores\", message: \"cpu_cores must be between 0 and 128\" });\n      }\n      if (r.memoryMb !== 0 && (r.memoryMb < 512 || r.memoryMb > 524288 || r.memoryMb % 2 !== 0)) {\n        v.push({ field: \"resources.memoryMb\", message: \"memory_mb must be 0 or an even value between 512 and 524288\" });\n      }\n      if (r.diskSizeGb !== 0 && (r.diskSizeGb < 5 || r.diskSizeGb > 100)) {\n        v.push({ field: \"resources.diskSizeGb\", message: \"disk_size_gb must be 0 or between 5 and 100\" });\n      }\n    }\n\n    return v;\n  }\n\n  private update(mutate: (proto: ProtoTemplateBuildSpec) => void): TemplateSpec {\n    const next = clone(TemplateBuildSpecSchema, this.proto);\n    mutate(next);\n    return TemplateSpec.fromProto(next);\n  }\n\n  private addStep(name: string | undefined, operation: TemplateStep[\"operation\"]): TemplateSpec {\n    return this.update((p) => {\n      const step = create(TemplateStepSchema, { operation });\n      if (name !== undefined) step.name = name;\n      p.steps.push(step);\n    });\n  }\n\n  private addPackageStep(\n    manager: \"apt\" | \"pip\" | \"npm\" | \"bun\",\n    packages: string[],\n    options?: TemplateStepOptions,\n  ): TemplateSpec {\n    return this.addStep(options?.name, {\n      case: manager,\n      value: create(TemplatePackageStepSchema, { packages: [...packages] }),\n    });\n  }\n\n  private setStart(init: { command?: string; argv?: string[] }, options?: TemplateStartOptions): TemplateSpec {\n    return this.update((p) => {\n      const runtime = ensureRuntime(p);\n      runtime.entrypoint = {\n        case: \"start\",\n        value: create(TemplateStartRuntimeSchema, {\n          command: init.command ?? \"\",\n          argv: init.argv ?? [],\n          workdir: options?.workdir ?? \"\",\n        }),\n      };\n      applyRuntimeOptions(runtime, options);\n    });\n  }\n}\n\nfunction runStep(init: { command?: string; argv?: string[] }, options?: TemplateRunOptions): TemplateRunStep {\n  return create(TemplateRunStepSchema, {\n    command: init.command ?? \"\",\n    argv: init.argv ?? [],\n    workdir: options?.workdir ?? \"\",\n    timeoutSeconds: options?.timeoutSeconds ?? 0,\n  });\n}\n\nfunction ensureRuntime(p: ProtoTemplateBuildSpec): ProtoTemplateRuntime {\n  p.runtime ??= create(TemplateRuntimeSchema, {});\n  return p.runtime;\n}\n\nfunction applyRuntimeOptions(runtime: ProtoTemplateRuntime, options?: TemplateRuntimeOptions): void {\n  if (!options) return;\n  if (options.secretFiles !== undefined) runtime.secretFiles = options.secretFiles.map(secretFileToProto);\n  if (options.secretPolicies !== undefined) runtime.secretPolicies = [...options.secretPolicies];\n  if (options.secretEnv !== undefined) runtime.secretEnv = { ...options.secretEnv };\n  if (options.runAt !== undefined) {\n    runtime.runAt =\n      options.runAt === \"boot\"\n        ? TemplateRuntimeRunAt.BOOT\n        : options.runAt === \"build\"\n          ? TemplateRuntimeRunAt.BUILD\n          : TemplateRuntimeRunAt.MANUAL;\n  }\n  if (options.restartPolicy !== undefined) {\n    runtime.restartPolicy =\n      options.restartPolicy === \"never\"\n        ? TemplateRestartPolicy.NEVER\n        : options.restartPolicy === \"always\"\n          ? TemplateRestartPolicy.ALWAYS\n          : TemplateRestartPolicy.ON_FAILURE;\n  }\n  if (options.snapshotMode !== undefined) {\n    runtime.snapshotMode =\n      options.snapshotMode === \"memory\" ? TemplateSnapshotMode.MEMORY : TemplateSnapshotMode.FILESYSTEM;\n  }\n  if (options.readyWhen !== undefined) {\n    runtime.readyWhen = readyWhenToProto(options.readyWhen);\n  }\n  if (options.stopGraceSeconds !== undefined) {\n    runtime.stopGraceSeconds = options.stopGraceSeconds;\n  }\n}\n\nfunction readyWhenToProto(readyWhen: TemplateReadyCheck[] | TemplateReadyWhen): TemplateSnapshotWhen {\n  const options: TemplateReadyWhen = Array.isArray(readyWhen) ? { checks: readyWhen } : readyWhen;\n  return create(TemplateSnapshotWhenSchema, {\n    timeoutSeconds: options.timeoutSeconds ?? DEFAULT_READY_TIMEOUT_SECONDS,\n    pollIntervalSeconds: options.pollIntervalSeconds ?? 0,\n    checks: (options.checks ?? []).map(readyCheckToProto),\n  });\n}\n\nfunction readyCheckToProto(check: TemplateReadyCheck): TemplateSnapshotCheck {\n  if (\"port\" in check) {\n    return create(TemplateSnapshotCheckSchema, { check: { case: \"port\", value: check.port } });\n  }\n  if (\"http\" in check) {\n    const http = typeof check.http === \"string\" ? { url: check.http } : check.http;\n    return create(TemplateSnapshotCheckSchema, {\n      check: {\n        case: \"http\",\n        value: create(TemplateHTTPReadyCheckSchema, {\n          url: http.url,\n          successStatusCodes: [...(http.successStatusCodes ?? [])],\n        }),\n      },\n    });\n  }\n  const exec = typeof check.exec === \"string\" ? { command: check.exec } : check.exec;\n  return create(TemplateSnapshotCheckSchema, {\n    check: {\n      case: \"exec\",\n      value: create(TemplateExecReadyCheckSchema, {\n        command: exec.command ?? \"\",\n        argv: [...(exec.argv ?? [])],\n        timeoutSeconds: exec.timeoutSeconds ?? 0,\n      }),\n    },\n  });\n}\n\nfunction contextRelative(path: string): boolean {\n  return path !== \"\" && !path.startsWith(\"/\") && path.split(\"/\").every((part) => part !== \"..\");\n}\n\nfunction validateLength(value: string, field: string, min: number, max: number, v: TemplateSpecViolation[]): void {\n  if (value.length < min || value.length > max) {\n    v.push({ field, message: `must be between ${min} and ${max} characters` });\n  }\n}\n\nfunction validatePath(value: string, field: string, v: TemplateSpecViolation[], required = true, noun = \"path\"): void {\n  if (required && value === \"\") {\n    v.push({ field, message: `${noun} is required` });\n    return;\n  }\n  if (value.length > MAX_PATH_LENGTH) {\n    v.push({ field, message: `path must be at most ${MAX_PATH_LENGTH} characters` });\n  }\n  if (value !== \"\" && !value.startsWith(\"/\")) {\n    v.push({ field, message: `${noun} must be an absolute path` });\n  }\n}\n\nfunction validateCommandOrArgv(\n  value: { command: string; argv: string[] },\n  field: string,\n  v: TemplateSpecViolation[],\n): void {\n  if ((value.command !== \"\") === value.argv.length > 0) {\n    v.push({ field, message: \"exactly one of command or argv is required\" });\n  }\n  if (value.command.length > 65536) {\n    v.push({ field: `${field}.command`, message: \"command must be at most 65536 characters\" });\n  }\n  if (value.argv.length > 1024) {\n    v.push({ field: `${field}.argv`, message: \"argv must contain at most 1024 items\" });\n  }\n  value.argv.forEach((arg, i) => {\n    if (arg === \"\") v.push({ field: `${field}.argv[${i}]`, message: \"argv entries must not be empty\" });\n  });\n}\n\nfunction validateStep(step: TemplateStep, index: number, hasContext: boolean, v: TemplateSpecViolation[]): void {\n  const op = step.operation;\n  const field = `steps[${index}].${op.case ?? \"\"}`;\n  if (step.name !== undefined && (step.name.length < 1 || step.name.length > 128)) {\n    v.push({ field: `steps[${index}].name`, message: \"step name must be between 1 and 128 characters\" });\n  }\n  switch (op.case) {\n    case undefined:\n      v.push({ field: `steps[${index}]`, message: \"exactly one step operation is required\" });\n      return;\n    case \"run\":\n      validateCommandOrArgv(op.value, field, v);\n      validatePath(op.value.workdir, `${field}.workdir`, v, false, \"workdir\");\n      if (op.value.timeoutSeconds < 0 || op.value.timeoutSeconds > 86400) {\n        v.push({ field: `${field}.timeoutSeconds`, message: \"timeout_seconds must be between 0 and 86400\" });\n      }\n      return;\n    case \"copy\":\n      if (!hasContext) {\n        v.push({ field, message: \"copy steps require a Git context\" });\n      }\n      if (!contextRelative(op.value.src)) {\n        v.push({ field: `${field}.src`, message: \"src must be context-relative and cannot traverse above context\" });\n      }\n      if (op.value.src.length > MAX_PATH_LENGTH) {\n        v.push({ field: `${field}.src`, message: `src must be at most ${MAX_PATH_LENGTH} characters` });\n      }\n      validatePath(op.value.dest, `${field}.dest`, v, true, \"dest\");\n      return;\n    case \"writeFile\":\n      validatePath(op.value.path, `${field}.path`, v);\n      if (op.value.content.byteLength > 1048576) {\n        v.push({ field: `${field}.content`, message: \"content must be at most 1 MiB\" });\n      }\n      if (op.value.mode !== undefined && (op.value.mode < 0 || op.value.mode > 4095)) {\n        v.push({ field: `${field}.mode`, message: \"mode must be between 0 and 4095\" });\n      }\n      return;\n    case \"mkdir\":\n      validatePath(op.value.path, `${field}.path`, v);\n      if (op.value.mode !== undefined && (op.value.mode < 0 || op.value.mode > 4095)) {\n        v.push({ field: `${field}.mode`, message: \"mode must be between 0 and 4095\" });\n      }\n      return;\n    case \"remove\":\n      validatePath(op.value.path, `${field}.path`, v);\n      return;\n    case \"rename\":\n      validatePath(op.value.src, `${field}.src`, v);\n      validatePath(op.value.dest, `${field}.dest`, v);\n      return;\n    case \"symlink\":\n      validateLength(op.value.target, `${field}.target`, 1, 4096, v);\n      validatePath(op.value.path, `${field}.path`, v);\n      return;\n    case \"apt\":\n    case \"pip\":\n    case \"npm\":\n    case \"bun\":\n      if (op.value.packages.length === 0) {\n        v.push({ field: `${field}.packages`, message: \"at least one package is required\" });\n      } else if (op.value.packages.length > 1024) {\n        v.push({ field: `${field}.packages`, message: \"at most 1024 packages are supported\" });\n      }\n      if (new Set(op.value.packages).size !== op.value.packages.length) {\n        v.push({ field: `${field}.packages`, message: \"packages must be unique\" });\n      }\n      op.value.packages.forEach((pkg, i) => {\n        if (!PACKAGE_RE.test(pkg)) {\n          v.push({\n            field: `${field}.packages[${i}]`,\n            message: \"package name must be non-empty and cannot start with -\",\n          });\n        }\n      });\n      return;\n  }\n}\n\nfunction validateRuntime(runtime: ProtoTemplateRuntime, v: TemplateSpecViolation[]): void {\n  if (!validSecretFiles(runtime.secretFiles, Object.keys(runtime.secretEnv).length))\n    v.push({ field: \"runtime.secretFiles\", message: \"invalid secret file declaration\" });\n  if (Object.keys(runtime.secretEnv).length > 64)\n    v.push({ field: \"runtime.secretEnv\", message: \"at most 64 secret references are supported\" });\n  for (const [target, name] of Object.entries(runtime.secretEnv)) {\n    if (!/^[A-Za-z_][A-Za-z0-9_]{0,127}$/.test(target))\n      v.push({ field: \"runtime.secretEnv\", message: \"invalid environment target\" });\n    if (!/^[A-Za-z_][A-Za-z0-9_-]{0,127}$/.test(name))\n      v.push({ field: \"runtime.secretEnv\", message: \"invalid workspace secret name\" });\n    if (Object.hasOwn(runtime.env, target))\n      v.push({ field: \"runtime.secretEnv\", message: \"secret target conflicts with runtime environment\" });\n  }\n  if (Object.keys(runtime.env).length > 256) {\n    v.push({ field: \"runtime.env\", message: \"at most 256 runtime environment variables are supported\" });\n  }\n  if (runtime.entrypoint.case === undefined) {\n    v.push({ field: \"runtime\", message: \"exactly one runtime entrypoint is required\" });\n  }\n  if (runtime.entrypoint.case === \"start\") {\n    validateCommandOrArgv(runtime.entrypoint.value, \"runtime.start\", v);\n    validatePath(runtime.entrypoint.value.workdir, \"runtime.start.workdir\", v, false, \"workdir\");\n  }\n  if (runtime.entrypoint.case === \"processCompose\") {\n    const pc = runtime.entrypoint.value;\n    if (!contextRelative(pc.configPath)) {\n      v.push({\n        field: \"runtime.processCompose.configPath\",\n        message: \"config_path must be workdir-relative and cannot traverse above it\",\n      });\n    }\n    if (pc.configPath.length > MAX_PATH_LENGTH) {\n      v.push({\n        field: \"runtime.processCompose.configPath\",\n        message: `config_path must be at most ${MAX_PATH_LENGTH} characters`,\n      });\n    }\n    if (pc.envFiles.length > 32) {\n      v.push({ field: \"runtime.processCompose.envFiles\", message: \"at most 32 env_files are supported\" });\n    }\n    if (new Set(pc.envFiles).size !== pc.envFiles.length) {\n      v.push({ field: \"runtime.processCompose.envFiles\", message: \"env_files must be unique\" });\n    }\n    pc.envFiles.forEach((file, i) => {\n      if (!contextRelative(file)) {\n        v.push({\n          field: `runtime.processCompose.envFiles[${i}]`,\n          message: \"env_files must be workdir-relative and cannot traverse above it\",\n        });\n      }\n      if (file.length > MAX_PATH_LENGTH) {\n        v.push({\n          field: `runtime.processCompose.envFiles[${i}]`,\n          message: `env_file must be at most ${MAX_PATH_LENGTH} characters`,\n        });\n      }\n    });\n    validatePath(pc.workdir, \"runtime.processCompose.workdir\", v, false, \"workdir\");\n  }\n  if (runtime.runAt === TemplateRuntimeRunAt.BUILD && !runtime.readyWhen) {\n    v.push({ field: \"runtime.readyWhen\", message: \"build runtime requires ready_when\" });\n  }\n  if (runtime.snapshotMode !== TemplateSnapshotMode.UNSPECIFIED && runtime.runAt !== TemplateRuntimeRunAt.BUILD) {\n    v.push({ field: \"runtime.snapshotMode\", message: \"snapshot_mode is only valid for build runtime\" });\n  }\n  if (runtime.stopGraceSeconds < 0 || runtime.stopGraceSeconds > 300) {\n    v.push({ field: \"runtime.stopGraceSeconds\", message: \"stop_grace_seconds must be between 0 and 300\" });\n  }\n  if (runtime.readyWhen) validateReadyWhen(runtime.readyWhen, \"runtime.readyWhen\", v);\n}\n\nfunction validateReadyWhen(readyWhen: TemplateSnapshotWhen, field: string, v: TemplateSpecViolation[]): void {\n  if (readyWhen.timeoutSeconds < 1 || readyWhen.timeoutSeconds > 86400) {\n    v.push({ field: `${field}.timeoutSeconds`, message: \"timeout_seconds must be between 1 and 86400\" });\n  }\n  if (readyWhen.pollIntervalSeconds < 0 || readyWhen.pollIntervalSeconds > 60) {\n    v.push({ field: `${field}.pollIntervalSeconds`, message: \"poll_interval_seconds must be between 0 and 60\" });\n  }\n  if (readyWhen.checks.length > 64) {\n    v.push({ field: `${field}.checks`, message: \"at most 64 readiness checks are supported\" });\n  }\n  readyWhen.checks.forEach((check, i) => {\n    const checkField = `${field}.checks[${i}]`;\n    switch (check.check.case) {\n      case undefined:\n        v.push({ field: checkField, message: \"exactly one readiness check is required\" });\n        return;\n      case \"port\":\n        if (check.check.value < 1 || check.check.value > 65535) {\n          v.push({ field: `${checkField}.port`, message: \"port must be between 1 and 65535\" });\n        }\n        return;\n      case \"http\":\n        if (check.check.value.url.length > MAX_PATH_LENGTH || !LOCALHOST_HTTP_RE.test(check.check.value.url)) {\n          v.push({ field: `${checkField}.http.url`, message: \"url must target localhost over http(s)\" });\n        }\n        if (check.check.value.successStatusCodes.length > 100) {\n          v.push({ field: `${checkField}.http.successStatusCodes`, message: \"at most 100 status codes are supported\" });\n        }\n        if (new Set(check.check.value.successStatusCodes).size !== check.check.value.successStatusCodes.length) {\n          v.push({ field: `${checkField}.http.successStatusCodes`, message: \"status codes must be unique\" });\n        }\n        check.check.value.successStatusCodes.forEach((code, codeIndex) => {\n          if (code < 100 || code > 599) {\n            v.push({\n              field: `${checkField}.http.successStatusCodes[${codeIndex}]`,\n              message: \"status code must be between 100 and 599\",\n            });\n          }\n        });\n        return;\n      case \"exec\":\n        validateCommandOrArgv(check.check.value, `${checkField}.exec`, v);\n        if (check.check.value.timeoutSeconds < 0 || check.check.value.timeoutSeconds > 300) {\n          v.push({ field: `${checkField}.exec.timeoutSeconds`, message: \"timeout_seconds must be between 0 and 300\" });\n        }\n        return;\n    }\n  });\n}\n","import { SandboxUsageUnit, type WorkspaceSandboxUsageLimit } from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\n\n/** What a {@link WorkspaceUsageLimit}'s `current` / `max` are measured in. */\nexport type WorkspaceUsageUnit = \"count\" | \"bytes\" | \"unspecified\";\n\n/**\n * One usage dimension for a workspace (e.g. concurrent sessions, snapshots),\n * with the current usage and the effective limit. Returned by\n * {@link TenkiSandbox.getUsage}.\n *\n * `current` reflects resources that hold live VMs — paused sessions are\n * excluded, matching how the concurrency quota is enforced on create.\n */\nexport interface WorkspaceUsageLimit {\n  /** Stable usage key, e.g. `\"max_concurrent_jobs\"`. */\n  key: string;\n  /** Human-readable label, e.g. `\"Active sessions\"`. */\n  label: string;\n  /** What `current` / `max` are counted in. */\n  unit: WorkspaceUsageUnit;\n  /** Current usage. */\n  current: number;\n  /** The effective limit, or `undefined` when unlimited / not set. */\n  max?: number;\n  /** Explanatory help text from the backend. */\n  helpText: string;\n}\n\nfunction usageUnitFromProto(unit: SandboxUsageUnit): WorkspaceUsageUnit {\n  switch (unit) {\n    case SandboxUsageUnit.COUNT:\n      return \"count\";\n    case SandboxUsageUnit.BYTES:\n      return \"bytes\";\n    default:\n      return \"unspecified\";\n  }\n}\n\nexport function workspaceUsageLimitFromProto(limit: WorkspaceSandboxUsageLimit): WorkspaceUsageLimit {\n  return {\n    key: limit.key,\n    label: limit.label,\n    unit: usageUnitFromProto(limit.unit),\n    current: Number(limit.current),\n    max: limit.max === undefined ? undefined : Number(limit.max),\n    helpText: limit.helpText,\n  };\n}\n","import type {\n  Volume as ProtoVolume,\n  VolumeAttachment as ProtoVolumeAttachment,\n} from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\nimport { VolumeState as ProtoVolumeState } from \"./internal/proto/tenki/sandbox/v1/sandbox_pb.js\";\n\nexport type VolumeState = \"UNSPECIFIED\" | \"AVAILABLE\" | \"DELETING\" | \"DELETED\" | \"IN_USE\";\n\nexport interface VolumeAttachment {\n  id: string;\n  volumeId: string;\n  sessionId: string;\n  mountPath: string;\n  readOnly: boolean;\n  state: string;\n}\n\nexport interface Volume {\n  id: string;\n  workspaceId: string;\n  name: string;\n  sizeBytes: number;\n  state: VolumeState;\n  createdAt: Date;\n  updatedAt: Date;\n  tags: string[];\n  activeAttachments?: VolumeAttachment[];\n}\n\nexport function volumeStateFromProto(state: ProtoVolumeState): VolumeState {\n  switch (state) {\n    case ProtoVolumeState.AVAILABLE:\n      return \"AVAILABLE\";\n    case ProtoVolumeState.DELETING:\n      return \"DELETING\";\n    case ProtoVolumeState.DELETED:\n      return \"DELETED\";\n    case ProtoVolumeState.IN_USE:\n      return \"IN_USE\";\n    default:\n      return \"UNSPECIFIED\";\n  }\n}\n\nexport function volumeIsReady(state: VolumeState): boolean {\n  return state === \"AVAILABLE\";\n}\n\nexport function volumeIsTerminal(state: VolumeState): boolean {\n  return state === \"DELETED\";\n}\n\nexport function volumeIsDeletable(v: Volume): boolean {\n  return volumeIsReady(v.state) && (v.activeAttachments ?? []).length === 0;\n}\n\nfunction parseTime(raw: string): Date {\n  if (!raw.trim()) return new Date(0);\n  const d = new Date(raw);\n  return isNaN(d.getTime()) ? new Date(0) : d;\n}\n\nfunction volumeAttachmentFromProto(a: ProtoVolumeAttachment): VolumeAttachment {\n  return {\n    id: a.id,\n    volumeId: a.volumeId,\n    sessionId: a.sessionId,\n    mountPath: a.mountPath,\n    readOnly: a.readonly,\n    state: a.state,\n  };\n}\n\nexport function volumeFromProto(proto: ProtoVolume, activeAttachments?: ProtoVolumeAttachment[]): Volume {\n  return {\n    id: proto.id,\n    workspaceId: proto.workspaceId,\n    name: proto.name,\n    sizeBytes: Number(proto.sizeBytes),\n    state: volumeStateFromProto(proto.state),\n    createdAt: parseTime(proto.createdAt),\n    updatedAt: parseTime(proto.updatedAt),\n    tags: [...(proto.tags ?? [])],\n    activeAttachments: (activeAttachments ?? []).map(volumeAttachmentFromProto),\n  };\n}\n","import type { DiskUsage } from \"./disk.js\";\n\nexport type CommandStatus = \"UNSPECIFIED\" | \"QUEUED\" | \"RUNNING\" | \"SUCCEEDED\" | \"FAILED\" | \"TIMED_OUT\";\n\nexport interface ExecResult {\n  sessionId: string;\n  command: string;\n  args: string[];\n  status: CommandStatus;\n  exitCode: number;\n  durationMs: number;\n  startedAt?: Date;\n  endedAt?: Date;\n  outputs: import(\"./options.js\").Output[];\n  stdout: Uint8Array;\n  stderr: Uint8Array;\n  /** Guest terminal reason: \"exit\", \"signaled\", \"timeout\" or \"grace_timeout\". */\n  reason?: string;\n  /** Sandbox filesystem state observed while the command ran. */\n  disk?: DiskUsage;\n}\n\nexport function stdoutText(result: ExecResult): string {\n  return new TextDecoder().decode(result.stdout).trim();\n}\n\nexport function stderrText(result: ExecResult): string {\n  return new TextDecoder().decode(result.stderr).trim();\n}\n\nexport function isSuccess(status: CommandStatus): boolean {\n  return status === \"SUCCEEDED\";\n}\n","/** Sandbox filesystem state observed while a command ran. */\nexport interface DiskUsage {\n  totalBytes: number;\n  /**\n   * Counts the filesystem reserve that `availableBytes` excludes.\n   * `freeBytes - availableBytes` is the reserve itself, which is why a\n   * root-owned write can still land on a filesystem the workload sees as full.\n   * Zero from a guest too old to report it.\n   */\n  freeBytes: number;\n  /**\n   * Free space when the command exited, excluding the reserve: what the\n   * workload itself can still write.\n   */\n  availableBytes: number;\n  /**\n   * Least free space seen while the command ran. This is the field that\n   * identifies a run defeated by a full disk: pip, npm and containerd all\n   * delete their partial downloads after hitting ENOSPC, so `availableBytes`\n   * recovers before the command exits and only this stays low.\n   * `session.diskUsage()` takes a single sample, so there it equals\n   * `availableBytes`.\n   */\n  minAvailableBytes: number;\n}\n\n/**\n * Free-space floor under which a run is treated as having exhausted the disk.\n * Not zero: allocators fail short of the last byte, and ext4 keeps a root\n * reserve the workload cannot touch, so a workload-visible \"full\" disk still\n * reports a small non-zero available figure.\n */\nconst DISK_EXHAUSTION_AVAILABLE_BYTES = 16 * 1024 * 1024;\n\n/**\n * Whether the sandbox filesystem ran out of usable space at any point during\n * the command. Deliberately independent of exit status: npm hits ENOSPC while\n * unpacking, prints it as a warning and still exits 0, leaving a broken install\n * behind, so a caller that only checks this on failure misses the case that is\n * hardest to diagnose.\n */\nexport function isDiskExhausted(disk: DiskUsage | undefined): boolean {\n  if (!disk || disk.totalBytes <= 0) return false;\n  return disk.minAvailableBytes < DISK_EXHAUSTION_AVAILABLE_BYTES;\n}\n\n/**\n * Space consumed, counted as df does: total minus free, so the reserve is\n * neither used nor available. A guest too old to report `freeBytes` falls back\n * to treating the reserve as used, which overstates usage rather than inventing\n * headroom.\n */\nexport function diskUsedBytes(disk: DiskUsage | undefined): number {\n  if (!disk || disk.totalBytes <= 0) return 0;\n  const free = disk.freeBytes > 0 ? disk.freeBytes : disk.availableBytes;\n  return disk.totalBytes - free;\n}\n\n/** Usage as df reports it, against usable capacity rather than raw total. */\nexport function diskUsedPercent(disk: DiskUsage | undefined): number {\n  const used = diskUsedBytes(disk);\n  const usable = used + (disk?.availableBytes ?? 0);\n  if (usable <= 0) return 0;\n  return (used / usable) * 100;\n}\n","import { createClient, type Transport } from \"@connectrpc/connect\";\nimport { createGrpcTransport } from \"@connectrpc/connect-node\";\n\nimport { createAuthInterceptor, resolveAuthToken } from \"./auth.js\";\nimport { CLOUD_API_URL_ENVS, DEFAULT_BASE_URL } from \"./constants.js\";\nimport { readEnv } from \"./env.js\";\nimport { DrainingHttp2SessionManager } from \"./http2-drain.js\";\nimport * as pb from \"./internal/proto/tenki/cloud/workspace/v1beta1/secrets_pb.js\";\nimport { Secrets } from \"./workspace-secrets.js\";\n\nexport interface WorkspaceOptions {\n  workspaceId?: string;\n  authToken?: string;\n  /** Alias for authToken. Pass one or the other, not both. */\n  apiKey?: string;\n  /** Cloud API endpoint, independent of sandbox endpoint configuration. */\n  baseUrl?: string;\n  transport?: Transport;\n  timeoutMs?: number;\n  rootCertificates?: string | Buffer | Array<string | Buffer>;\n}\n/** Owns workspace scope, authentication, and connection lifetime. */\nexport class WorkspaceClient implements AsyncDisposable {\n  readonly secrets: Secrets;\n  private readonly sessionManager?: DrainingHttp2SessionManager;\n  constructor(options: WorkspaceOptions = {}) {\n    const token = resolveAuthToken(options.authToken, options.apiKey);\n    const baseUrl = options.baseUrl || readEnv(CLOUD_API_URL_ENVS) || DEFAULT_BASE_URL;\n    this.sessionManager = options.transport\n      ? undefined\n      : new DrainingHttp2SessionManager(\n          baseUrl,\n          undefined,\n          options.rootCertificates !== undefined ? { ca: options.rootCertificates } : undefined,\n        );\n    this.secrets = new Secrets(\n      options.workspaceId ?? \"\",\n      createClient(\n        pb.WorkspaceSecretsService,\n        options.transport ??\n          createGrpcTransport({\n            baseUrl,\n            defaultTimeoutMs: options.timeoutMs ?? 30_000,\n            sessionManager: this.sessionManager,\n            interceptors: [createAuthInterceptor(token)],\n          }),\n      ),\n    );\n  }\n  async close(): Promise<void> {\n    await this.sessionManager?.abort();\n  }\n  async [Symbol.asyncDispose](): Promise<void> {\n    await this.close();\n  }\n}\n","// @generated by protoc-gen-es v2.11.0 with parameter \"target=ts\"\n// @generated from file tenki/cloud/workspace/v1beta1/secrets.proto (package tenki.cloud.workspace.v1beta1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tenki/cloud/workspace/v1beta1/secrets.proto.\n */\nexport const file_tenki_cloud_workspace_v1beta1_secrets: GenFile = /*@__PURE__*/\n  fileDesc(\"Cit0ZW5raS9jbG91ZC93b3Jrc3BhY2UvdjFiZXRhMS9zZWNyZXRzLnByb3RvEh10ZW5raS5jbG91ZC53b3Jrc3BhY2UudjFiZXRhMSKGAwoGU2VjcmV0EgoKAmlkGAEgASgJEhQKDHdvcmtzcGFjZV9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhYKDmFjdGl2ZV92ZXJzaW9uGAQgASgNEhAKCHJldmlzaW9uGAUgASgNEi4KCmNyZWF0ZWRfYXQYByABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnVwZGF0ZWRfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnJldm9rZWRfYXQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCmRlbGV0ZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCnJlcG9zaXRvcnkYCyABKAkSOQoFc2NvcGUYDCABKA4yKi50ZW5raS5jbG91ZC53b3Jrc3BhY2UudjFiZXRhMS5TZWNyZXRTY29wZRITCgtkZXNjcmlwdGlvbhgNIAEoCSKAAQoNU2VjcmV0VmVyc2lvbhIPCgd2ZXJzaW9uGAEgASgNEi4KCmNyZWF0ZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi4KCnJldm9rZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIs8BChNDcmVhdGVTZWNyZXRSZXF1ZXN0EhQKDHdvcmtzcGFjZV9pZBgBIAEoCRIMCgRuYW1lGAIgASgJEhIKBXZhbHVlGAMgASgMSACIAQESEgoKcmVxdWVzdF9pZBgFIAEoCRISCgpyZXBvc2l0b3J5GAYgASgJEjk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UmVzcG9uc2USdwoMRGVsZXRlU2VjcmV0EjIudGVua2kuY2xvdWQud29ya3NwYWNlLnYxYmV0YTEuRGVsZXRlU2VjcmV0UmVxdWVzdBozLnRlbmtpLmNsb3VkLndvcmtzcGFjZS52MWJldGExLkRlbGV0ZVNlY3JldFJlc3BvbnNlQpsCCiFjb20udGVua2kuY2xvdWQud29ya3NwYWNlLnYxYmV0YTFCDFNlY3JldHNQcm90b1ABWlFnby5sdXhvci5haS9zYW5kYm94L2ludGVybmFsL3Byb3RvL3RlbmtpL2Nsb3VkL3dvcmtzcGFjZS92MWJldGExO3dvcmtzcGFjZXYxYmV0YTGiAgNUQ1eqAh1UZW5raS5DbG91ZC5Xb3Jrc3BhY2UuVjFiZXRhMcoCHVRlbmtpXENsb3VkXFdvcmtzcGFjZVxWMWJldGEx4gIpVGVua2lcQ2xvdWRcV29ya3NwYWNlXFYxYmV0YTFcR1BCTWV0YWRhdGHqAiBUZW5raTo6Q2xvdWQ6OldvcmtzcGFjZTo6VjFiZXRhMWIGcHJvdG8z\", [file_google_protobuf_timestamp]);\n\n/**\n * Metadata only. Values and encrypted values are never returned publicly.\n *\n * @generated from message tenki.cloud.workspace.v1beta1.Secret\n */\nexport type Secret = Message<\"tenki.cloud.workspace.v1beta1.Secret\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 3;\n   */\n  name: string;\n\n  /**\n   * @generated from field: uint32 active_version = 4;\n   */\n  activeVersion: number;\n\n  /**\n   * @generated from field: uint32 revision = 5;\n   */\n  revision: number;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 7;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 8;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp revoked_at = 9;\n   */\n  revokedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp deleted_at = 10;\n   */\n  deletedAt?: Timestamp;\n\n  /**\n   * Full name (owner/name) of the repository whose CI jobs get this secret; empty for a workspace secret.\n   *\n   * @generated from field: string repository = 11;\n   */\n  repository: string;\n\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretScope scope = 12;\n   */\n  scope: SecretScope;\n\n  /**\n   * One-line note for the people who manage the secret.\n   *\n   * @generated from field: string description = 13;\n   */\n  description: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.Secret.\n * Use `create(SecretSchema)` to create a new message.\n */\nexport const SecretSchema: GenMessage<Secret> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 0);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.SecretVersion\n */\nexport type SecretVersion = Message<\"tenki.cloud.workspace.v1beta1.SecretVersion\"> & {\n  /**\n   * @generated from field: uint32 version = 1;\n   */\n  version: number;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 2;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp revoked_at = 3;\n   */\n  revokedAt?: Timestamp;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.SecretVersion.\n * Use `create(SecretVersionSchema)` to create a new message.\n */\nexport const SecretVersionSchema: GenMessage<SecretVersion> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 1);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretRequest\n */\nexport type CreateSecretRequest = Message<\"tenki.cloud.workspace.v1beta1.CreateSecretRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 2;\n   */\n  name: string;\n\n  /**\n   * @generated from field: optional bytes value = 3;\n   */\n  value?: Uint8Array;\n\n  /**\n   * @generated from field: string request_id = 5;\n   */\n  requestId: string;\n\n  /**\n   * Creates a repository secret; must be one of ListSecretRepositories. Empty creates a workspace secret.\n   *\n   * @generated from field: string repository = 6;\n   */\n  repository: string;\n\n  /**\n   * S3_STORAGE requires an empty repository.\n   *\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretScope scope = 7;\n   */\n  scope: SecretScope;\n\n  /**\n   * One line, at most 256 characters; surrounding spaces are trimmed.\n   *\n   * @generated from field: string description = 8;\n   */\n  description: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretRequest.\n * Use `create(CreateSecretRequestSchema)` to create a new message.\n */\nexport const CreateSecretRequestSchema: GenMessage<CreateSecretRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 2);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretResponse\n */\nexport type CreateSecretResponse = Message<\"tenki.cloud.workspace.v1beta1.CreateSecretResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;\n   */\n  secret?: Secret;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretResponse.\n * Use `create(CreateSecretResponseSchema)` to create a new message.\n */\nexport const CreateSecretResponseSchema: GenMessage<CreateSecretResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 3);\n\n/**\n * Changes only the fields that are set, at least one. A value or active_version makes that version\n * active and restores a revoked secret; description and availability changes don't.\n *\n * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretRequest\n */\nexport type UpdateSecretRequest = Message<\"tenki.cloud.workspace.v1beta1.UpdateSecretRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string secret_id = 2;\n   */\n  secretId: string;\n\n  /**\n   * A new version; present empty bytes creates an empty value. Cannot be combined with active_version.\n   *\n   * @generated from field: optional bytes value = 3;\n   */\n  value?: Uint8Array;\n\n  /**\n   * @generated from field: uint32 expected_revision = 5;\n   */\n  expectedRevision: number;\n\n  /**\n   * @generated from field: string request_id = 6;\n   */\n  requestId: string;\n\n  /**\n   * @generated from field: optional uint32 active_version = 7;\n   */\n  activeVersion?: number;\n\n  /**\n   * Empty clears the description.\n   *\n   * @generated from field: optional string description = 8;\n   */\n  description?: string;\n\n  /**\n   * Unspecified keeps the availability. REPOSITORY moves the secret to repository.\n   *\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretAvailability availability = 9;\n   */\n  availability: SecretAvailability;\n\n  /**\n   * Required with REPOSITORY; must be one of ListSecretRepositories.\n   *\n   * @generated from field: string repository = 10;\n   */\n  repository: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretRequest.\n * Use `create(UpdateSecretRequestSchema)` to create a new message.\n */\nexport const UpdateSecretRequestSchema: GenMessage<UpdateSecretRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 4);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretResponse\n */\nexport type UpdateSecretResponse = Message<\"tenki.cloud.workspace.v1beta1.UpdateSecretResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;\n   */\n  secret?: Secret;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretResponse.\n * Use `create(UpdateSecretResponseSchema)` to create a new message.\n */\nexport const UpdateSecretResponseSchema: GenMessage<UpdateSecretResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 5);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.GetSecretRequest\n */\nexport type GetSecretRequest = Message<\"tenki.cloud.workspace.v1beta1.GetSecretRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string secret_id = 2;\n   */\n  secretId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.GetSecretRequest.\n * Use `create(GetSecretRequestSchema)` to create a new message.\n */\nexport const GetSecretRequestSchema: GenMessage<GetSecretRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 6);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.GetSecretResponse\n */\nexport type GetSecretResponse = Message<\"tenki.cloud.workspace.v1beta1.GetSecretResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;\n   */\n  secret?: Secret;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.GetSecretResponse.\n * Use `create(GetSecretResponseSchema)` to create a new message.\n */\nexport const GetSecretResponseSchema: GenMessage<GetSecretResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 7);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretsRequest\n */\nexport type ListSecretsRequest = Message<\"tenki.cloud.workspace.v1beta1.ListSecretsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: uint32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * Continues from next_cursor with the same filters; cannot be combined with search, sort_by or offset.\n   *\n   * @generated from field: string cursor = 3;\n   */\n  cursor: string;\n\n  /**\n   * Case-insensitive substring match on the secret name.\n   *\n   * @generated from field: string search = 4;\n   */\n  search: string;\n\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretSortField sort_by = 5;\n   */\n  sortBy: SecretSortField;\n\n  /**\n   * Ignored when sort_by is unspecified.\n   *\n   * @generated from field: bool sort_desc = 6;\n   */\n  sortDesc: boolean;\n\n  /**\n   * Matching secrets to skip, for numbered pages.\n   *\n   * @generated from field: uint32 offset = 7;\n   */\n  offset: number;\n\n  /**\n   * Unset lists every scope.\n   *\n   * @generated from field: optional tenki.cloud.workspace.v1beta1.SecretScope scope = 8;\n   */\n  scope?: SecretScope;\n\n  /**\n   * Unspecified lists workspace and repository secrets.\n   * WORKSPACE lists what every CI job and sandbox receives, so it leaves out S3 storage secrets and refuses scope S3_STORAGE.\n   *\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretAvailability availability = 9;\n   */\n  availability: SecretAvailability;\n\n  /**\n   * With REPOSITORY, only secrets of this repository, compared without case; empty lists all of them.\n   *\n   * @generated from field: string repository = 10;\n   */\n  repository: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretsRequest.\n * Use `create(ListSecretsRequestSchema)` to create a new message.\n */\nexport const ListSecretsRequestSchema: GenMessage<ListSecretsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 8);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretsResponse\n */\nexport type ListSecretsResponse = Message<\"tenki.cloud.workspace.v1beta1.ListSecretsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.Secret secrets = 1;\n   */\n  secrets: Secret[];\n\n  /**\n   * Set only when more secrets follow in the default order without a search.\n   *\n   * @generated from field: string next_cursor = 2;\n   */\n  nextCursor: string;\n\n  /**\n   * Secrets matching the search across all pages.\n   *\n   * @generated from field: uint32 total_count = 3;\n   */\n  totalCount: number;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretsResponse.\n * Use `create(ListSecretsResponseSchema)` to create a new message.\n */\nexport const ListSecretsResponseSchema: GenMessage<ListSecretsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 9);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesRequest\n */\nexport type ListSecretRepositoriesRequest = Message<\"tenki.cloud.workspace.v1beta1.ListSecretRepositoriesRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: uint32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * Continues from next_cursor with the same search.\n   *\n   * @generated from field: string cursor = 3;\n   */\n  cursor: string;\n\n  /**\n   * Case-insensitive substring match on the full name.\n   *\n   * @generated from field: string search = 4;\n   */\n  search: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesRequest.\n * Use `create(ListSecretRepositoriesRequestSchema)` to create a new message.\n */\nexport const ListSecretRepositoriesRequestSchema: GenMessage<ListSecretRepositoriesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 10);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesResponse\n */\nexport type ListSecretRepositoriesResponse = Message<\"tenki.cloud.workspace.v1beta1.ListSecretRepositoriesResponse\"> & {\n  /**\n   * Repositories connected to the workspace through its GitHub App installations, ordered by full name.\n   *\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRepository repositories = 1;\n   */\n  repositories: SecretRepository[];\n\n  /**\n   * Set only when more repositories follow.\n   *\n   * @generated from field: string next_cursor = 2;\n   */\n  nextCursor: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretRepositoriesResponse.\n * Use `create(ListSecretRepositoriesResponseSchema)` to create a new message.\n */\nexport const ListSecretRepositoriesResponseSchema: GenMessage<ListSecretRepositoriesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 11);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.SecretRepository\n */\nexport type SecretRepository = Message<\"tenki.cloud.workspace.v1beta1.SecretRepository\"> & {\n  /**\n   * @generated from field: string full_name = 1;\n   */\n  fullName: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.SecretRepository.\n * Use `create(SecretRepositorySchema)` to create a new message.\n */\nexport const SecretRepositorySchema: GenMessage<SecretRepository> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 12);\n\n/**\n * Copies the Actions secrets a GitHub repository's workflows can read into repository secrets of that repository.\n *\n * @generated from message tenki.cloud.workspace.v1beta1.SecretImport\n */\nexport type SecretImport = Message<\"tenki.cloud.workspace.v1beta1.SecretImport\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string repository = 3;\n   */\n  repository: string;\n\n  /**\n   * Temporary branch that holds the import workflow.\n   *\n   * @generated from field: string branch = 4;\n   */\n  branch: string;\n\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretImportState state = 5;\n   */\n  state: SecretImportState;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 6;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp expires_at = 7;\n   */\n  expiresAt?: Timestamp;\n\n  /**\n   * @generated from field: repeated string imported = 8;\n   */\n  imported: string[];\n\n  /**\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.SkippedSecret skipped = 9;\n   */\n  skipped: SkippedSecret[];\n\n  /**\n   * The repository's environments; their secrets are not imported.\n   *\n   * @generated from field: repeated string environments = 10;\n   */\n  environments: string[];\n\n  /**\n   * Why a failed import failed.\n   *\n   * @generated from field: string error = 11;\n   */\n  error: string;\n\n  /**\n   * Existing repository secrets given GitHub's value as a new version; revoked ones are restored.\n   *\n   * @generated from field: repeated string overwritten = 12;\n   */\n  overwritten: string[];\n\n  /**\n   * The import workflow's run on GitHub, once the run exists.\n   *\n   * @generated from field: string run_url = 13;\n   */\n  runUrl: string;\n\n  /**\n   * GitHub holds the run until someone with write access approves it in the browser.\n   *\n   * @generated from field: bool awaiting_approval = 14;\n   */\n  awaitingApproval: boolean;\n\n  /**\n   * GitHub's status of the run, such as queued, in_progress, or completed.\n   *\n   * @generated from field: string run_status = 15;\n   */\n  runStatus: string;\n\n  /**\n   * GitHub's conclusion of a completed run, such as success or failure.\n   *\n   * @generated from field: string run_conclusion = 16;\n   */\n  runConclusion: string;\n\n  /**\n   * GitHub could not list the repository's environments, so environments is empty even if it has some.\n   *\n   * @generated from field: bool environments_unknown = 17;\n   */\n  environmentsUnknown: boolean;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.SecretImport.\n * Use `create(SecretImportSchema)` to create a new message.\n */\nexport const SecretImportSchema: GenMessage<SecretImport> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 13);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.SkippedSecret\n */\nexport type SkippedSecret = Message<\"tenki.cloud.workspace.v1beta1.SkippedSecret\"> & {\n  /**\n   * @generated from field: string name = 1;\n   */\n  name: string;\n\n  /**\n   * For people to read; clients act on code.\n   *\n   * @generated from field: string reason = 2;\n   */\n  reason: string;\n\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SkippedSecretCode code = 3;\n   */\n  code: SkippedSecretCode;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.SkippedSecret.\n * Use `create(SkippedSecretSchema)` to create a new message.\n */\nexport const SkippedSecretSchema: GenMessage<SkippedSecret> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 14);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.StartSecretImportRequest\n */\nexport type StartSecretImportRequest = Message<\"tenki.cloud.workspace.v1beta1.StartSecretImportRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * Full name (owner/name) of a GitHub repository the Tenki App is installed on.\n   *\n   * @generated from field: string repository = 2;\n   */\n  repository: string;\n\n  /**\n   * Overwrites repository secrets that already exist, restoring revoked ones, instead of skipping them.\n   *\n   * @generated from field: bool overwrite = 3;\n   */\n  overwrite: boolean;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.StartSecretImportRequest.\n * Use `create(StartSecretImportRequestSchema)` to create a new message.\n */\nexport const StartSecretImportRequestSchema: GenMessage<StartSecretImportRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 15);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.StartSecretImportResponse\n */\nexport type StartSecretImportResponse = Message<\"tenki.cloud.workspace.v1beta1.StartSecretImportResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretImport secret_import = 1;\n   */\n  secretImport?: SecretImport;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.StartSecretImportResponse.\n * Use `create(StartSecretImportResponseSchema)` to create a new message.\n */\nexport const StartSecretImportResponseSchema: GenMessage<StartSecretImportResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 16);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.GetSecretImportRequest\n */\nexport type GetSecretImportRequest = Message<\"tenki.cloud.workspace.v1beta1.GetSecretImportRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string import_id = 2;\n   */\n  importId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.GetSecretImportRequest.\n * Use `create(GetSecretImportRequestSchema)` to create a new message.\n */\nexport const GetSecretImportRequestSchema: GenMessage<GetSecretImportRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 17);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.GetSecretImportResponse\n */\nexport type GetSecretImportResponse = Message<\"tenki.cloud.workspace.v1beta1.GetSecretImportResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretImport secret_import = 1;\n   */\n  secretImport?: SecretImport;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.GetSecretImportResponse.\n * Use `create(GetSecretImportResponseSchema)` to create a new message.\n */\nexport const GetSecretImportResponseSchema: GenMessage<GetSecretImportResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 18);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretVersionsRequest\n */\nexport type ListSecretVersionsRequest = Message<\"tenki.cloud.workspace.v1beta1.ListSecretVersionsRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string secret_id = 2;\n   */\n  secretId: string;\n\n  /**\n   * @generated from field: uint32 page_size = 3;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string cursor = 4;\n   */\n  cursor: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretVersionsRequest.\n * Use `create(ListSecretVersionsRequestSchema)` to create a new message.\n */\nexport const ListSecretVersionsRequestSchema: GenMessage<ListSecretVersionsRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 19);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretVersionsResponse\n */\nexport type ListSecretVersionsResponse = Message<\"tenki.cloud.workspace.v1beta1.ListSecretVersionsResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretVersion versions = 1;\n   */\n  versions: SecretVersion[];\n\n  /**\n   * @generated from field: string next_cursor = 2;\n   */\n  nextCursor: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretVersionsResponse.\n * Use `create(ListSecretVersionsResponseSchema)` to create a new message.\n */\nexport const ListSecretVersionsResponseSchema: GenMessage<ListSecretVersionsResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 20);\n\n/**\n * Omitted version revokes every version. Revoking the active version marks the secret revoked\n * until a new value or an unrevoked version is made active. Revoked versions stay revoked.\n *\n * @generated from message tenki.cloud.workspace.v1beta1.RevokeSecretRequest\n */\nexport type RevokeSecretRequest = Message<\"tenki.cloud.workspace.v1beta1.RevokeSecretRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string secret_id = 2;\n   */\n  secretId: string;\n\n  /**\n   * @generated from field: optional uint32 version = 3;\n   */\n  version?: number;\n\n  /**\n   * @generated from field: uint32 expected_revision = 4;\n   */\n  expectedRevision: number;\n\n  /**\n   * @generated from field: string request_id = 5;\n   */\n  requestId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.RevokeSecretRequest.\n * Use `create(RevokeSecretRequestSchema)` to create a new message.\n */\nexport const RevokeSecretRequestSchema: GenMessage<RevokeSecretRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 21);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.RevokeSecretResponse\n */\nexport type RevokeSecretResponse = Message<\"tenki.cloud.workspace.v1beta1.RevokeSecretResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;\n   */\n  secret?: Secret;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.RevokeSecretResponse.\n * Use `create(RevokeSecretResponseSchema)` to create a new message.\n */\nexport const RevokeSecretResponseSchema: GenMessage<RevokeSecretResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 22);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretRequest\n */\nexport type DeleteSecretRequest = Message<\"tenki.cloud.workspace.v1beta1.DeleteSecretRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string secret_id = 2;\n   */\n  secretId: string;\n\n  /**\n   * @generated from field: uint32 expected_revision = 3;\n   */\n  expectedRevision: number;\n\n  /**\n   * @generated from field: string request_id = 4;\n   */\n  requestId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretRequest.\n * Use `create(DeleteSecretRequestSchema)` to create a new message.\n */\nexport const DeleteSecretRequestSchema: GenMessage<DeleteSecretRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 23);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretResponse\n */\nexport type DeleteSecretResponse = Message<\"tenki.cloud.workspace.v1beta1.DeleteSecretResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.Secret secret = 1;\n   */\n  secret?: Secret;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretResponse.\n * Use `create(DeleteSecretResponseSchema)` to create a new message.\n */\nexport const DeleteSecretResponseSchema: GenMessage<DeleteSecretResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 24);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.SecretAccessPolicy\n */\nexport type SecretAccessPolicy = Message<\"tenki.cloud.workspace.v1beta1.SecretAccessPolicy\"> & {\n  /**\n   * @generated from field: string id = 1;\n   */\n  id: string;\n\n  /**\n   * @generated from field: string workspace_id = 2;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 3;\n   */\n  name: string;\n\n  /**\n   * @generated from field: uint32 revision = 4;\n   */\n  revision: number;\n\n  /**\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRequestRule rules = 5;\n   */\n  rules: SecretRequestRule[];\n\n  /**\n   * @generated from field: google.protobuf.Timestamp created_at = 6;\n   */\n  createdAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp updated_at = 7;\n   */\n  updatedAt?: Timestamp;\n\n  /**\n   * @generated from field: google.protobuf.Timestamp deleted_at = 8;\n   */\n  deletedAt?: Timestamp;\n\n  /**\n   * @generated from field: uint32 attached_session_count = 9;\n   */\n  attachedSessionCount: number;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.SecretAccessPolicy.\n * Use `create(SecretAccessPolicySchema)` to create a new message.\n */\nexport const SecretAccessPolicySchema: GenMessage<SecretAccessPolicy> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 25);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretPolicyRequest\n */\nexport type CreateSecretPolicyRequest = Message<\"tenki.cloud.workspace.v1beta1.CreateSecretPolicyRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string name = 2;\n   */\n  name: string;\n\n  /**\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRequestRule rules = 3;\n   */\n  rules: SecretRequestRule[];\n\n  /**\n   * @generated from field: string request_id = 4;\n   */\n  requestId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretPolicyRequest.\n * Use `create(CreateSecretPolicyRequestSchema)` to create a new message.\n */\nexport const CreateSecretPolicyRequestSchema: GenMessage<CreateSecretPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 26);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.CreateSecretPolicyResponse\n */\nexport type CreateSecretPolicyResponse = Message<\"tenki.cloud.workspace.v1beta1.CreateSecretPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;\n   */\n  policy?: SecretAccessPolicy;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.CreateSecretPolicyResponse.\n * Use `create(CreateSecretPolicyResponseSchema)` to create a new message.\n */\nexport const CreateSecretPolicyResponseSchema: GenMessage<CreateSecretPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 27);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyRequest\n */\nexport type UpdateSecretPolicyRequest = Message<\"tenki.cloud.workspace.v1beta1.UpdateSecretPolicyRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string policy_id = 2;\n   */\n  policyId: string;\n\n  /**\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretRequestRule rules = 3;\n   */\n  rules: SecretRequestRule[];\n\n  /**\n   * @generated from field: uint32 expected_revision = 4;\n   */\n  expectedRevision: number;\n\n  /**\n   * @generated from field: string request_id = 5;\n   */\n  requestId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyRequest.\n * Use `create(UpdateSecretPolicyRequestSchema)` to create a new message.\n */\nexport const UpdateSecretPolicyRequestSchema: GenMessage<UpdateSecretPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 28);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyResponse\n */\nexport type UpdateSecretPolicyResponse = Message<\"tenki.cloud.workspace.v1beta1.UpdateSecretPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;\n   */\n  policy?: SecretAccessPolicy;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.UpdateSecretPolicyResponse.\n * Use `create(UpdateSecretPolicyResponseSchema)` to create a new message.\n */\nexport const UpdateSecretPolicyResponseSchema: GenMessage<UpdateSecretPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 29);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyRequest\n */\nexport type DeleteSecretPolicyRequest = Message<\"tenki.cloud.workspace.v1beta1.DeleteSecretPolicyRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string policy_id = 2;\n   */\n  policyId: string;\n\n  /**\n   * @generated from field: uint32 expected_revision = 3;\n   */\n  expectedRevision: number;\n\n  /**\n   * @generated from field: string request_id = 4;\n   */\n  requestId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyRequest.\n * Use `create(DeleteSecretPolicyRequestSchema)` to create a new message.\n */\nexport const DeleteSecretPolicyRequestSchema: GenMessage<DeleteSecretPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 30);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyResponse\n */\nexport type DeleteSecretPolicyResponse = Message<\"tenki.cloud.workspace.v1beta1.DeleteSecretPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;\n   */\n  policy?: SecretAccessPolicy;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.DeleteSecretPolicyResponse.\n * Use `create(DeleteSecretPolicyResponseSchema)` to create a new message.\n */\nexport const DeleteSecretPolicyResponseSchema: GenMessage<DeleteSecretPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 31);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.GetSecretPolicyRequest\n */\nexport type GetSecretPolicyRequest = Message<\"tenki.cloud.workspace.v1beta1.GetSecretPolicyRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: string policy_id = 2;\n   */\n  policyId: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.GetSecretPolicyRequest.\n * Use `create(GetSecretPolicyRequestSchema)` to create a new message.\n */\nexport const GetSecretPolicyRequestSchema: GenMessage<GetSecretPolicyRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 32);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.GetSecretPolicyResponse\n */\nexport type GetSecretPolicyResponse = Message<\"tenki.cloud.workspace.v1beta1.GetSecretPolicyResponse\"> & {\n  /**\n   * @generated from field: tenki.cloud.workspace.v1beta1.SecretAccessPolicy policy = 1;\n   */\n  policy?: SecretAccessPolicy;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.GetSecretPolicyResponse.\n * Use `create(GetSecretPolicyResponseSchema)` to create a new message.\n */\nexport const GetSecretPolicyResponseSchema: GenMessage<GetSecretPolicyResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 33);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretPoliciesRequest\n */\nexport type ListSecretPoliciesRequest = Message<\"tenki.cloud.workspace.v1beta1.ListSecretPoliciesRequest\"> & {\n  /**\n   * @generated from field: string workspace_id = 1;\n   */\n  workspaceId: string;\n\n  /**\n   * @generated from field: uint32 page_size = 2;\n   */\n  pageSize: number;\n\n  /**\n   * @generated from field: string cursor = 3;\n   */\n  cursor: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretPoliciesRequest.\n * Use `create(ListSecretPoliciesRequestSchema)` to create a new message.\n */\nexport const ListSecretPoliciesRequestSchema: GenMessage<ListSecretPoliciesRequest> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 34);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.ListSecretPoliciesResponse\n */\nexport type ListSecretPoliciesResponse = Message<\"tenki.cloud.workspace.v1beta1.ListSecretPoliciesResponse\"> & {\n  /**\n   * @generated from field: repeated tenki.cloud.workspace.v1beta1.SecretAccessPolicy policies = 1;\n   */\n  policies: SecretAccessPolicy[];\n\n  /**\n   * @generated from field: string next_cursor = 2;\n   */\n  nextCursor: string;\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.ListSecretPoliciesResponse.\n * Use `create(ListSecretPoliciesResponseSchema)` to create a new message.\n */\nexport const ListSecretPoliciesResponseSchema: GenMessage<ListSecretPoliciesResponse> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 35);\n\n/**\n * @generated from message tenki.cloud.workspace.v1beta1.SecretRequestRule\n */\nexport type SecretRequestRule = Message<\"tenki.cloud.workspace.v1beta1.SecretRequestRule\"> & {\n  /**\n   * @generated from field: string origin = 1;\n   */\n  origin: string;\n\n  /**\n   * @generated from field: repeated string methods = 2;\n   */\n  methods: string[];\n\n  /**\n   * @generated from field: string path_prefix = 3;\n   */\n  pathPrefix: string;\n\n  /**\n   * @generated from field: string header = 4;\n   */\n  header: string;\n\n  /**\n   * @generated from field: string query_parameter = 5;\n   */\n  queryParameter: string;\n\n  /**\n   * @generated from field: string json_pointer = 6;\n   */\n  jsonPointer: string;\n\n  /**\n   * @generated from field: repeated string secrets = 7;\n   */\n  secrets: string[];\n};\n\n/**\n * Describes the message tenki.cloud.workspace.v1beta1.SecretRequestRule.\n * Use `create(SecretRequestRuleSchema)` to create a new message.\n */\nexport const SecretRequestRuleSchema: GenMessage<SecretRequestRule> = /*@__PURE__*/\n  messageDesc(file_tenki_cloud_workspace_v1beta1_secrets, 36);\n\n/**\n * @generated from enum tenki.cloud.workspace.v1beta1.SecretScope\n */\nexport enum SecretScope {\n  /**\n   * A workspace or repository secret that CI jobs and sandbox runtimes can receive.\n   *\n   * @generated from enum value: SECRET_SCOPE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * Read only by sandbox storage connections on the host; never sent to CI jobs or sandbox guests.\n   *\n   * @generated from enum value: SECRET_SCOPE_S3_STORAGE = 1;\n   */\n  S3_STORAGE = 1,\n}\n\n/**\n * Describes the enum tenki.cloud.workspace.v1beta1.SecretScope.\n */\nexport const SecretScopeSchema: GenEnum<SecretScope> = /*@__PURE__*/\n  enumDesc(file_tenki_cloud_workspace_v1beta1_secrets, 0);\n\n/**\n * Where a secret applies.\n *\n * @generated from enum tenki.cloud.workspace.v1beta1.SecretAvailability\n */\nexport enum SecretAvailability {\n  /**\n   * @generated from enum value: SECRET_AVAILABILITY_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * Every Tenki CI job in the workspace, and sandboxes.\n   *\n   * @generated from enum value: SECRET_AVAILABILITY_WORKSPACE = 1;\n   */\n  WORKSPACE = 1,\n\n  /**\n   * Only Tenki CI jobs in one repository.\n   *\n   * @generated from enum value: SECRET_AVAILABILITY_REPOSITORY = 2;\n   */\n  REPOSITORY = 2,\n}\n\n/**\n * Describes the enum tenki.cloud.workspace.v1beta1.SecretAvailability.\n */\nexport const SecretAvailabilitySchema: GenEnum<SecretAvailability> = /*@__PURE__*/\n  enumDesc(file_tenki_cloud_workspace_v1beta1_secrets, 1);\n\n/**\n * @generated from enum tenki.cloud.workspace.v1beta1.SecretSortField\n */\nexport enum SecretSortField {\n  /**\n   * Orders by secret ID, the only order cursor pagination supports.\n   *\n   * @generated from enum value: SECRET_SORT_FIELD_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * @generated from enum value: SECRET_SORT_FIELD_NAME = 1;\n   */\n  NAME = 1,\n\n  /**\n   * Active before revoked.\n   *\n   * @generated from enum value: SECRET_SORT_FIELD_STATUS = 2;\n   */\n  STATUS = 2,\n\n  /**\n   * @generated from enum value: SECRET_SORT_FIELD_UPDATED_AT = 4;\n   */\n  UPDATED_AT = 4,\n}\n\n/**\n * Describes the enum tenki.cloud.workspace.v1beta1.SecretSortField.\n */\nexport const SecretSortFieldSchema: GenEnum<SecretSortField> = /*@__PURE__*/\n  enumDesc(file_tenki_cloud_workspace_v1beta1_secrets, 2);\n\n/**\n * @generated from enum tenki.cloud.workspace.v1beta1.SecretImportState\n */\nexport enum SecretImportState {\n  /**\n   * @generated from enum value: SECRET_IMPORT_STATE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * Waiting for the import workflow to report.\n   *\n   * @generated from enum value: SECRET_IMPORT_STATE_PENDING = 1;\n   */\n  PENDING = 1,\n\n  /**\n   * @generated from enum value: SECRET_IMPORT_STATE_SUCCEEDED = 2;\n   */\n  SUCCEEDED = 2,\n\n  /**\n   * The workflow reported, but writing its secrets failed.\n   *\n   * @generated from enum value: SECRET_IMPORT_STATE_FAILED = 3;\n   */\n  FAILED = 3,\n\n  /**\n   * The workflow did not report before the import expired.\n   *\n   * @generated from enum value: SECRET_IMPORT_STATE_EXPIRED = 4;\n   */\n  EXPIRED = 4,\n}\n\n/**\n * Describes the enum tenki.cloud.workspace.v1beta1.SecretImportState.\n */\nexport const SecretImportStateSchema: GenEnum<SecretImportState> = /*@__PURE__*/\n  enumDesc(file_tenki_cloud_workspace_v1beta1_secrets, 3);\n\n/**\n * @generated from enum tenki.cloud.workspace.v1beta1.SkippedSecretCode\n */\nexport enum SkippedSecretCode {\n  /**\n   * @generated from enum value: SKIPPED_SECRET_CODE_UNSPECIFIED = 0;\n   */\n  UNSPECIFIED = 0,\n\n  /**\n   * The repository already has a secret of this name in Tenki.\n   *\n   * @generated from enum value: SKIPPED_SECRET_CODE_ALREADY_EXISTS = 1;\n   */\n  ALREADY_EXISTS = 1,\n\n  /**\n   * @generated from enum value: SKIPPED_SECRET_CODE_INVALID_NAME = 2;\n   */\n  INVALID_NAME = 2,\n\n  /**\n   * @generated from enum value: SKIPPED_SECRET_CODE_VALUE_TOO_LARGE = 3;\n   */\n  VALUE_TOO_LARGE = 3,\n}\n\n/**\n * Describes the enum tenki.cloud.workspace.v1beta1.SkippedSecretCode.\n */\nexport const SkippedSecretCodeSchema: GenEnum<SkippedSecretCode> = /*@__PURE__*/\n  enumDesc(file_tenki_cloud_workspace_v1beta1_secrets, 4);\n\n/**\n * @generated from service tenki.cloud.workspace.v1beta1.WorkspaceSecretsService\n */\nexport const WorkspaceSecretsService: GenService<{\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.CreateSecretPolicy\n   */\n  createSecretPolicy: {\n    methodKind: \"unary\";\n    input: typeof CreateSecretPolicyRequestSchema;\n    output: typeof CreateSecretPolicyResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.UpdateSecretPolicy\n   */\n  updateSecretPolicy: {\n    methodKind: \"unary\";\n    input: typeof UpdateSecretPolicyRequestSchema;\n    output: typeof UpdateSecretPolicyResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.GetSecretPolicy\n   */\n  getSecretPolicy: {\n    methodKind: \"unary\";\n    input: typeof GetSecretPolicyRequestSchema;\n    output: typeof GetSecretPolicyResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecretPolicies\n   */\n  listSecretPolicies: {\n    methodKind: \"unary\";\n    input: typeof ListSecretPoliciesRequestSchema;\n    output: typeof ListSecretPoliciesResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.DeleteSecretPolicy\n   */\n  deleteSecretPolicy: {\n    methodKind: \"unary\";\n    input: typeof DeleteSecretPolicyRequestSchema;\n    output: typeof DeleteSecretPolicyResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.CreateSecret\n   */\n  createSecret: {\n    methodKind: \"unary\";\n    input: typeof CreateSecretRequestSchema;\n    output: typeof CreateSecretResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.UpdateSecret\n   */\n  updateSecret: {\n    methodKind: \"unary\";\n    input: typeof UpdateSecretRequestSchema;\n    output: typeof UpdateSecretResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.GetSecret\n   */\n  getSecret: {\n    methodKind: \"unary\";\n    input: typeof GetSecretRequestSchema;\n    output: typeof GetSecretResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecrets\n   */\n  listSecrets: {\n    methodKind: \"unary\";\n    input: typeof ListSecretsRequestSchema;\n    output: typeof ListSecretsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecretRepositories\n   */\n  listSecretRepositories: {\n    methodKind: \"unary\";\n    input: typeof ListSecretRepositoriesRequestSchema;\n    output: typeof ListSecretRepositoriesResponseSchema;\n  },\n  /**\n   * Pushes a temporary branch whose workflow sends the repository's secrets back to Tenki.\n   *\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.StartSecretImport\n   */\n  startSecretImport: {\n    methodKind: \"unary\";\n    input: typeof StartSecretImportRequestSchema;\n    output: typeof StartSecretImportResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.GetSecretImport\n   */\n  getSecretImport: {\n    methodKind: \"unary\";\n    input: typeof GetSecretImportRequestSchema;\n    output: typeof GetSecretImportResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.ListSecretVersions\n   */\n  listSecretVersions: {\n    methodKind: \"unary\";\n    input: typeof ListSecretVersionsRequestSchema;\n    output: typeof ListSecretVersionsResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.RevokeSecret\n   */\n  revokeSecret: {\n    methodKind: \"unary\";\n    input: typeof RevokeSecretRequestSchema;\n    output: typeof RevokeSecretResponseSchema;\n  },\n  /**\n   * @generated from rpc tenki.cloud.workspace.v1beta1.WorkspaceSecretsService.DeleteSecret\n   */\n  deleteSecret: {\n    methodKind: \"unary\";\n    input: typeof DeleteSecretRequestSchema;\n    output: typeof DeleteSecretResponseSchema;\n  },\n}> = /*@__PURE__*/\n  serviceDesc(file_tenki_cloud_workspace_v1beta1_secrets, 0);\n\n","import { randomUUID } from \"node:crypto\";\nimport { create } from \"@bufbuild/protobuf\";\nimport { timestampDate } from \"@bufbuild/protobuf/wkt\";\nimport { Code, ConnectError, type Client } from \"@connectrpc/connect\";\n\nimport * as pb from \"./internal/proto/tenki/cloud/workspace/v1beta1/secrets_pb.js\";\nimport { SecretPolicies } from \"./secret-policies.js\";\n\nexport class WorkspaceSecretError extends Error {\n  constructor(\n    message: string,\n    readonly code: Code,\n    options?: ErrorOptions,\n  ) {\n    super(message, options);\n    this.name = \"WorkspaceSecretError\";\n  }\n}\nexport function workspaceSecretError(error: unknown): Error {\n  if (!(error instanceof ConnectError)) return error instanceof Error ? error : new Error(String(error));\n  return new WorkspaceSecretError(error.rawMessage, error.code, { cause: error });\n}\n\n/** Where a secret applies: every CI job and sandbox in the workspace, or CI jobs in one repository. */\nexport type SecretAvailability = \"workspace\" | \"repository\";\n\nexport interface WorkspaceSecret {\n  id: string;\n  workspaceId: string;\n  name: string;\n  /** Repository (owner/name) whose CI jobs get the secret; undefined for a workspace secret. */\n  repository?: string;\n  /** One-line note for the people who manage the secret; undefined when there is none. */\n  description?: string;\n  activeVersion: number;\n  revision: number;\n  createdAt?: Date;\n  updatedAt?: Date;\n  revokedAt?: Date;\n  deletedAt?: Date;\n}\nexport interface WorkspaceSecretVersion {\n  version: number;\n  createdAt?: Date;\n  revokedAt?: Date;\n}\nexport interface SecretMutationOptions {\n  expectedRevision: number;\n  requestId?: string;\n}\nexport interface CreateSecretOptions {\n  requestId?: string;\n  /** Gives the secret only to CI jobs in this connected repository (owner/name); omit for a workspace secret. */\n  repository?: string;\n  description?: string;\n}\n/**\n * Changes only what is set. A value or activeVersion makes that version active and restores a revoked\n * secret; description and availability changes don't.\n */\nexport interface UpdateSecretOptions extends SecretMutationOptions {\n  /** Omitted retains the value; an empty array creates an empty value. */\n  value?: Uint8Array;\n  activeVersion?: number;\n  /** An empty string clears the description. */\n  description?: string;\n  /** Omitted keeps the availability unless `repository` is set; \"repository\", or `repository` alone, moves the secret there. */\n  availability?: SecretAvailability;\n  repository?: string;\n}\nexport interface SecretPageOptions {\n  pageSize?: number;\n  cursor?: string;\n}\nexport interface ListSecretsOptions extends SecretPageOptions {\n  /** Omitted lists workspace and repository secrets; `repository`, with or without \"repository\", narrows to one repository. */\n  availability?: SecretAvailability;\n  repository?: string;\n}\nexport interface SecretRepositoryPageOptions extends SecretPageOptions {\n  /** Case-insensitive substring match on the full name. */\n  search?: string;\n}\n\nfunction metadata(secret: pb.Secret | undefined): WorkspaceSecret {\n  if (!secret) throw new Error(\"Missing secret metadata\");\n  return {\n    id: secret.id,\n    workspaceId: secret.workspaceId,\n    name: secret.name,\n    repository: secret.repository || undefined,\n    description: secret.description || undefined,\n    activeVersion: secret.activeVersion,\n    revision: secret.revision,\n    createdAt: secret.createdAt && timestampDate(secret.createdAt),\n    updatedAt: secret.updatedAt && timestampDate(secret.updatedAt),\n    revokedAt: secret.revokedAt && timestampDate(secret.revokedAt),\n    deletedAt: secret.deletedAt && timestampDate(secret.deletedAt),\n  };\n}\n\nfunction checkRepository(repository: string): void {\n  if (!/^[^/]+\\/[^/]+$/.test(repository)) {\n    throw new Error(`repository must be owner/name, got ${JSON.stringify(repository)}`);\n  }\n}\n\n/** A repository without an availability means repository availability, and workspace refuses one, as in the CLI. */\nfunction secretAvailability(availability: SecretAvailability | undefined, repository?: string): pb.SecretAvailability {\n  if (repository) {\n    if (availability === \"workspace\") throw new Error(\"availability workspace cannot be combined with a repository\");\n    checkRepository(repository);\n  }\n  switch (availability) {\n    case undefined:\n      return repository ? pb.SecretAvailability.REPOSITORY : pb.SecretAvailability.UNSPECIFIED;\n    case \"workspace\":\n      return pb.SecretAvailability.WORKSPACE;\n    case \"repository\":\n      return pb.SecretAvailability.REPOSITORY;\n  }\n  throw new Error(`unknown secret availability ${JSON.stringify(availability)}`);\n}\n\n/** Access through WorkspaceClient.secrets. Reads return metadata only. */\nexport class Secrets {\n  readonly policies: SecretPolicies;\n  constructor(\n    private readonly workspaceId: string,\n    private readonly rpc: Client<typeof pb.WorkspaceSecretsService>,\n  ) {\n    this.policies = new SecretPolicies(workspaceId, rpc);\n  }\n  /**\n   * Creates a secret. With `repository`, only CI jobs in that connected repository get it, in place of a\n   * workspace secret with the same name. A string `options` is the request ID, as in 1.4.\n   */\n  async create(name: string, value: Uint8Array, options: string | CreateSecretOptions = {}): Promise<WorkspaceSecret> {\n    const {\n      requestId = randomUUID(),\n      repository = \"\",\n      description = \"\",\n    } = typeof options === \"string\" ? { requestId: options } : options;\n    if (repository) checkRepository(repository);\n    try {\n      return metadata(\n        (\n          await this.rpc.createSecret(\n            create(pb.CreateSecretRequestSchema, {\n              workspaceId: this.workspaceId,\n              name,\n              value,\n              requestId,\n              repository,\n              description,\n            }),\n          )\n        ).secret,\n      );\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async update(secretId: string, options: UpdateSecretOptions): Promise<WorkspaceSecret> {\n    const availability = secretAvailability(options.availability, options.repository);\n    if (availability === pb.SecretAvailability.REPOSITORY) checkRepository(options.repository ?? \"\");\n    const request = create(pb.UpdateSecretRequestSchema, {\n      workspaceId: this.workspaceId,\n      secretId,\n      value: options.value,\n      activeVersion: options.activeVersion,\n      description: options.description,\n      availability,\n      repository: options.repository,\n      expectedRevision: options.expectedRevision,\n      requestId: options.requestId ?? randomUUID(),\n    });\n    try {\n      return metadata((await this.rpc.updateSecret(request)).secret);\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async get(secretId: string): Promise<WorkspaceSecret> {\n    try {\n      return metadata((await this.rpc.getSecret({ workspaceId: this.workspaceId, secretId })).secret);\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async list(options: ListSecretsOptions = {}): Promise<{ secrets: WorkspaceSecret[]; nextCursor: string }> {\n    const availability = secretAvailability(options.availability, options.repository);\n    try {\n      const response = await this.rpc.listSecrets({ ...options, workspaceId: this.workspaceId, availability });\n      return { secrets: response.secrets.map(metadata), nextCursor: response.nextCursor };\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  /** Lists the connected repositories (owner/name) a secret can be limited to, ordered by name. */\n  async listRepositories(\n    options: SecretRepositoryPageOptions = {},\n  ): Promise<{ repositories: string[]; nextCursor: string }> {\n    try {\n      const response = await this.rpc.listSecretRepositories({ ...options, workspaceId: this.workspaceId });\n      return {\n        repositories: response.repositories.map((repository) => repository.fullName),\n        nextCursor: response.nextCursor,\n      };\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async listVersions(\n    secretId: string,\n    options: SecretPageOptions = {},\n  ): Promise<{ versions: WorkspaceSecretVersion[]; nextCursor: string }> {\n    try {\n      const response = await this.rpc.listSecretVersions({ ...options, workspaceId: this.workspaceId, secretId });\n      return {\n        versions: response.versions.map((version) => ({\n          version: version.version,\n          createdAt: version.createdAt && timestampDate(version.createdAt),\n          revokedAt: version.revokedAt && timestampDate(version.revokedAt),\n        })),\n        nextCursor: response.nextCursor,\n      };\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async revoke(secretId: string, options: SecretMutationOptions & { version?: number }): Promise<WorkspaceSecret> {\n    try {\n      return metadata(\n        (\n          await this.rpc.revokeSecret({\n            ...options,\n            workspaceId: this.workspaceId,\n            secretId,\n            requestId: options.requestId ?? randomUUID(),\n          })\n        ).secret,\n      );\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async delete(secretId: string, options: SecretMutationOptions): Promise<WorkspaceSecret> {\n    try {\n      return metadata(\n        (\n          await this.rpc.deleteSecret({\n            ...options,\n            workspaceId: this.workspaceId,\n            secretId,\n            requestId: options.requestId ?? randomUUID(),\n          })\n        ).secret,\n      );\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n}\n","import { randomUUID } from \"node:crypto\";\nimport { timestampDate } from \"@bufbuild/protobuf/wkt\";\nimport type { Client } from \"@connectrpc/connect\";\n\nimport * as pb from \"./internal/proto/tenki/cloud/workspace/v1beta1/secrets_pb.js\";\nimport { workspaceSecretError, type SecretMutationOptions, type SecretPageOptions } from \"./workspace-secrets.js\";\n\nexport interface SecretRequestRule {\n  origin: string;\n  methods: string[];\n  pathPrefix: string;\n  header?: string;\n  queryParameter?: string;\n  jsonPointer?: string;\n  secrets: string[];\n}\nexport interface WorkspaceSecretPolicy {\n  id: string;\n  workspaceId: string;\n  name: string;\n  revision: number;\n  attachedSessionCount: number;\n  rules: SecretRequestRule[];\n  createdAt?: Date;\n  updatedAt?: Date;\n  deletedAt?: Date;\n}\nfunction metadata(policy: pb.SecretAccessPolicy | undefined): WorkspaceSecretPolicy {\n  if (!policy) throw new Error(\"Missing secret policy metadata\");\n  return {\n    id: policy.id,\n    workspaceId: policy.workspaceId,\n    name: policy.name,\n    revision: policy.revision,\n    attachedSessionCount: policy.attachedSessionCount,\n    rules: policy.rules.map((rule) => ({\n      origin: rule.origin,\n      methods: [...rule.methods],\n      pathPrefix: rule.pathPrefix,\n      header: rule.header || undefined,\n      queryParameter: rule.queryParameter || undefined,\n      jsonPointer: rule.jsonPointer || undefined,\n      secrets: [...rule.secrets],\n    })),\n    createdAt: policy.createdAt && timestampDate(policy.createdAt),\n    updatedAt: policy.updatedAt && timestampDate(policy.updatedAt),\n    deletedAt: policy.deletedAt && timestampDate(policy.deletedAt),\n  };\n}\n/** Saved policies affect subsequent requests from sessions that select them. */\nexport class SecretPolicies {\n  constructor(\n    private readonly workspaceId: string,\n    private readonly rpc: Client<typeof pb.WorkspaceSecretsService>,\n  ) {}\n  async create(name: string, rules: SecretRequestRule[], requestId = randomUUID()): Promise<WorkspaceSecretPolicy> {\n    try {\n      return metadata(\n        (await this.rpc.createSecretPolicy({ workspaceId: this.workspaceId, name, rules, requestId })).policy,\n      );\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async update(\n    policyId: string,\n    rules: SecretRequestRule[],\n    options: SecretMutationOptions,\n  ): Promise<WorkspaceSecretPolicy> {\n    try {\n      return metadata(\n        (\n          await this.rpc.updateSecretPolicy({\n            ...options,\n            workspaceId: this.workspaceId,\n            policyId,\n            rules,\n            requestId: options.requestId ?? randomUUID(),\n          })\n        ).policy,\n      );\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async delete(policyId: string, options: SecretMutationOptions): Promise<WorkspaceSecretPolicy> {\n    try {\n      return metadata(\n        (\n          await this.rpc.deleteSecretPolicy({\n            ...options,\n            workspaceId: this.workspaceId,\n            policyId,\n            requestId: options.requestId ?? randomUUID(),\n          })\n        ).policy,\n      );\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async get(nameOrId: string): Promise<WorkspaceSecretPolicy> {\n    try {\n      return metadata((await this.rpc.getSecretPolicy({ workspaceId: this.workspaceId, policyId: nameOrId })).policy);\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n  async list(options: SecretPageOptions = {}): Promise<{ policies: WorkspaceSecretPolicy[]; nextCursor: string }> {\n    try {\n      const page = await this.rpc.listSecretPolicies({ ...options, workspaceId: this.workspaceId });\n      return { policies: page.policies.map(metadata), nextCursor: page.nextCursor };\n    } catch (err) {\n      throw workspaceSecretError(err);\n    }\n  }\n}\n"],"mappings":";AAAA,SAAS,UAAAA,gBAAc;AACvB,SAAS,kBAAAC,iBAAgB,iBAAAC,iBAAe,qBAAAC,0BAAyB;AACjE,SAAS,gBAAAC,eAAc,gBAAAC,qBAAiC;AACxD,SAAS,uBAAAC,4BAAqD;;;ACD9D,IAAM,oBAAoB;AAE1B,SAAS,UAAkB;AACzB,QAAM,OAAQ,WAA0D,MAAM,SAAS;AACvF,MAAI,KAAM,QAAO,QAAQ,IAAI;AAC7B,MAAI,OAAO,YAAY,YAAa,QAAO;AAC3C,MAAI,QAAQ,UAAU,IAAK,QAAO,OAAO,QAAQ,SAAS,GAAG;AAC7D,SAAO,QAAQ,QAAQ,UAAU,QAAQ,SAAS;AACpD;AAEA,IAAM,iBAA2D;AAAA,EAC/D,CAAC,yBAAyB,YAAY;AAAA,EACtC,CAAC,0BAA0B,OAAqB;AAAA,EAChD,CAAC,6BAA6B,iBAAiB;AAAA,EAC/C,CAAC,0BAA0B,QAAQ,CAAC;AACtC;AAEO,SAAS,yBAAyB,SAAwB;AAC/D,aAAW,CAAC,MAAM,KAAK,KAAK,eAAgB,SAAQ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;AAAA,EACA,MAAM,OAAO,UAAkB,SAA0D;AACvF,QAAI;AACF,aAAOF;AAAA,SAEH,MAAM,KAAK,IAAI,aAAa;AAAA,UAC1B,GAAG;AAAA,UACH,aAAa,KAAK;AAAA,UAClB;AAAA,UACA,WAAW,QAAQ,aAAaE,YAAW;AAAA,QAC7C,CAAC,GACD;AAAA,MACJ;AAAA,IACF,SAAS,KAAK;AACZ,YAAM,qBAAqB,GAAG;AAAA,IAChC;AAAA,EACF;AACF;;;AFjPO,IAAM,kBAAN,MAAiD;AAAA,EAC7C;AAAA,EACQ;AAAA,EACjB,YAAY,UAA4B,CAAC,GAAG;AAC1C,UAAM,QAAQ,iBAAiB,QAAQ,WAAW,QAAQ,MAAM;AAChE,UAAM,UAAU,QAAQ,WAAW,QAAQ,kBAAkB,KAAK;AAClE,SAAK,iBAAiB,QAAQ,YAC1B,SACA,IAAI;AAAA,MACF;AAAA,MACA;AAAA,MACA,QAAQ,qBAAqB,SAAY,EAAE,IAAI,QAAQ,iBAAiB,IAAI;AAAA,IAC9E;AACJ,SAAK,UAAU,IAAI;AAAA,MACjB,QAAQ,eAAe;AAAA,MACvBE;AAAA,QACK;AAAA,QACH,QAAQ,aACNC,qBAAoB;AAAA,UAClB;AAAA,UACA,kBAAkB,QAAQ,aAAa;AAAA,UACvC,gBAAgB,KAAK;AAAA,UACrB,cAAc,CAAC,sBAAsB,KAAK,CAAC;AAAA,QAC7C,CAAC;AAAA,MACL;AAAA,IACF;AAAA,EACF;AAAA,EACA,MAAM,QAAuB;AAC3B,UAAM,KAAK,gBAAgB,MAAM;AAAA,EACnC;AAAA,EACA,OAAO,OAAO,YAAY,IAAmB;AAC3C,UAAM,KAAK,MAAM;AAAA,EACnB;AACF;","names":["create","durationFromMs","timestampDate","timestampFromDate","ConnectError","createClient","createGrpcTransport","create","timestampDate","enumDesc","fileDesc","messageDesc","file_google_protobuf_duration","file_google_protobuf_timestamp","enumDesc","fileDesc","messageDesc","file_google_protobuf_timestamp","fileDesc","messageDesc","messageDesc","fileDesc","file_google_protobuf_timestamp","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","enumDesc","fileDesc","messageDesc","fileDesc","enumDesc","fileDesc","messageDesc","file_google_protobuf_timestamp","fileDesc","file_google_protobuf_timestamp","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","TemplateWarningCode","fileDesc","file_google_protobuf_duration","file_google_protobuf_timestamp","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","DialClosed_Reason","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","HostPortTunnelTerminated_Reason","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","messageDesc","StorageProvider","StorageAuthMethod","StorageAccess","StorageTestReason","SandboxWarningCode","create","timestampDate","Code","ConnectError","Code","ConnectError","Code","ConnectError","ConnectError","Code","create","create","AsyncQueue","timestampDate","create","Code","ConnectError","ConnectError","Code","create","AsyncQueue","timestampDate","timestampDate","create","timestampDate","create","timestampDate","create","create","create","AsyncQueue","create","terminated","sleep","jitter","create","timestampDate","ConnectError","Code","concatUint8Arrays","sleep","create","timestampDate","fileDesc","messageDesc","serviceDesc","file_google_protobuf_duration","file_google_protobuf_timestamp","fileDesc","messageDesc","serviceDesc","create","timestampDate","timestampFromDate","timestampDate","create","timestampFromDate","timestampDate","timestampDate","create","durationFromMs","timestampDate","create","durationFromMs","timestampDate","timestampDate","create","fromJson","toJson","create","fromJson","toJson","runtime","timestampDate","createGrpcTransport","createClient","create","normalizeTags","durationFromMs","ConnectError","session","timestampFromDate","timestampDate","sleep","createClient","createGrpcTransport","enumDesc","fileDesc","messageDesc","serviceDesc","file_google_protobuf_timestamp","messageDesc","messageDesc","serviceDesc","randomUUID","create","timestampDate","ConnectError","timestampDate","timestampDate","ConnectError","metadata","timestampDate","randomUUID","create","createClient","createGrpcTransport"]}