UNPKG

@luxorai/sandbox

Version:

TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud

237 lines (236 loc) • 8.29 kB
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file tenki/sandbox/v1/ssh_gateway_client.proto. */ export declare const file_tenki_sandbox_v1_ssh_gateway_client: GenFile; /** * @generated from message tenki.sandbox.v1.IssueSandboxSSHCertRequest */ export type IssueSandboxSSHCertRequest = Message<"tenki.sandbox.v1.IssueSandboxSSHCertRequest"> & { /** * The session the user wants to SSH to. Cert principal will be "session:<id>". * * @generated from field: string session_id = 1; */ sessionId: string; /** * OpenSSH-format public key bytes (e.g. "ssh-ed25519 AAAA..."). Generated * ephemerally by the CLI; private key never leaves the laptop. * * @generated from field: string public_key = 2; */ publicKey: string; /** * Optional. If unset or > policy max, server caps to policy max. * * @generated from field: google.protobuf.Duration requested_ttl = 3; */ requestedTtl?: Duration; /** * Optional CIDR(s) to bind into critical-options "source-address". When set, * SSH refuses cert presentation from any other source IP. * * @generated from field: repeated string source_addresses = 4; */ sourceAddresses: string[]; }; /** * Describes the message tenki.sandbox.v1.IssueSandboxSSHCertRequest. * Use `create(IssueSandboxSSHCertRequestSchema)` to create a new message. */ export declare const IssueSandboxSSHCertRequestSchema: GenMessage<IssueSandboxSSHCertRequest>; /** * @generated from message tenki.sandbox.v1.IssueSandboxSSHCertResponse */ export type IssueSandboxSSHCertResponse = Message<"tenki.sandbox.v1.IssueSandboxSSHCertResponse"> & { /** * OpenSSH-format certificate (begins with "ssh-ed25519-cert-v01@openssh.com ..."). * * @generated from field: string ssh_cert = 1; */ sshCert: string; /** * Active intermediate CA pubkey for known_hosts pinning. * * @generated from field: string ca_pub = 2; */ caPub: string; /** * @generated from field: google.protobuf.Timestamp expires_at = 3; */ expiresAt?: Timestamp; /** * Hex-encoded uint64. Used for audit and revocation lock-list. * * @generated from field: string cert_serial = 4; */ certSerial: string; /** * Hint to client: re-fetch a fresh cert if connection is older than this. * * @generated from field: google.protobuf.Duration renewal_after = 5; */ renewalAfter?: Duration; /** * Resolved permissions for this cert (echo of policy at time of issuance). * * @generated from field: tenki.sandbox.v1.SSHCertPermissions permissions = 6; */ permissions?: SSHCertPermissions; /** * Whether the client should verify the gateway's host certificate against * ca_pub. False while the rollout flag is off, and absent (so false) on * engines that predate it, which keeps a backend rollback safe: the client * simply falls back to its previous behaviour. * * @generated from field: bool pin_host_key = 7; */ pinHostKey: boolean; }; /** * Describes the message tenki.sandbox.v1.IssueSandboxSSHCertResponse. * Use `create(IssueSandboxSSHCertResponseSchema)` to create a new message. */ export declare const IssueSandboxSSHCertResponseSchema: GenMessage<IssueSandboxSSHCertResponse>; /** * @generated from message tenki.sandbox.v1.SSHCertPermissions */ export type SSHCertPermissions = Message<"tenki.sandbox.v1.SSHCertPermissions"> & { /** * @generated from field: bool allow_pty = 1; */ allowPty: boolean; /** * @generated from field: bool allow_agent_forwarding = 2; */ allowAgentForwarding: boolean; /** * @generated from field: bool allow_port_forwarding_local = 3; */ allowPortForwardingLocal: boolean; /** * @generated from field: bool allow_port_forwarding_remote = 4; */ allowPortForwardingRemote: boolean; /** * @generated from field: bool allow_x11_forwarding = 5; */ allowX11Forwarding: boolean; }; /** * Describes the message tenki.sandbox.v1.SSHCertPermissions. * Use `create(SSHCertPermissionsSchema)` to create a new message. */ export declare const SSHCertPermissionsSchema: GenMessage<SSHCertPermissions>; /** * @generated from message tenki.sandbox.v1.ListActiveSSHGatewaysRequest */ export type ListActiveSSHGatewaysRequest = Message<"tenki.sandbox.v1.ListActiveSSHGatewaysRequest"> & { /** * Optional region filter. Empty = all regions. * * @generated from field: string region = 1; */ region: string; /** * Optional session used to resolve the owning host's region. When set, the * engine returns only gateways that can reach that session's host. * * @generated from field: string session_id = 2; */ sessionId: string; }; /** * Describes the message tenki.sandbox.v1.ListActiveSSHGatewaysRequest. * Use `create(ListActiveSSHGatewaysRequestSchema)` to create a new message. */ export declare const ListActiveSSHGatewaysRequestSchema: GenMessage<ListActiveSSHGatewaysRequest>; /** * @generated from message tenki.sandbox.v1.ListActiveSSHGatewaysResponse */ export type ListActiveSSHGatewaysResponse = Message<"tenki.sandbox.v1.ListActiveSSHGatewaysResponse"> & { /** * @generated from field: repeated tenki.sandbox.v1.ActiveSSHGateway gateways = 1; */ gateways: ActiveSSHGateway[]; }; /** * Describes the message tenki.sandbox.v1.ListActiveSSHGatewaysResponse. * Use `create(ListActiveSSHGatewaysResponseSchema)` to create a new message. */ export declare const ListActiveSSHGatewaysResponseSchema: GenMessage<ListActiveSSHGatewaysResponse>; /** * @generated from message tenki.sandbox.v1.ActiveSSHGateway */ export type ActiveSSHGateway = Message<"tenki.sandbox.v1.ActiveSSHGateway"> & { /** * @generated from field: string gateway_id = 1; */ gatewayId: string; /** * @generated from field: string region = 2; */ region: string; /** * e.g. "ssh.us-east-1.tenki.cloud:22" * * @generated from field: string public_endpoint = 3; */ publicEndpoint: string; /** * e.g. "<host>:<port>" (reverse-tunnel listener) * * @generated from field: string mesh_endpoint = 4; */ meshEndpoint: string; /** * @generated from field: google.protobuf.Timestamp last_heartbeat_at = 5; */ lastHeartbeatAt?: Timestamp; /** * @generated from field: bool healthy = 6; */ healthy: boolean; /** * Tenki Edge-fronted WebSocket bridge URL for `tenki sandbox ssh`. Empty when * the gateway has no Tenki Edge bridge. The SDK constructs the per-session URL * by appending "/v1/ssh/<session_id>". * * @generated from field: string ws_bridge_endpoint = 7; */ wsBridgeEndpoint: string; }; /** * Describes the message tenki.sandbox.v1.ActiveSSHGateway. * Use `create(ActiveSSHGatewaySchema)` to create a new message. */ export declare const ActiveSSHGatewaySchema: GenMessage<ActiveSSHGateway>; /** * @generated from service tenki.sandbox.v1.SSHGatewayClientService */ export declare const SSHGatewayClientService: GenService<{ /** * Cert issuance — called by tenki CLI / SDK on every `tenki sandbox ssh` * invocation. Returns a short-lived OpenSSH user cert signed by the active * intermediate CA. * * @generated from rpc tenki.sandbox.v1.SSHGatewayClientService.IssueSandboxSSHCert */ issueSandboxSSHCert: { methodKind: "unary"; input: typeof IssueSandboxSSHCertRequestSchema; output: typeof IssueSandboxSSHCertResponseSchema; }; /** * Active gateway endpoints — called by tenki CLI / SDK to learn DNS targets. * * @generated from rpc tenki.sandbox.v1.SSHGatewayClientService.ListActiveSSHGateways */ listActiveSSHGateways: { methodKind: "unary"; input: typeof ListActiveSSHGatewaysRequestSchema; output: typeof ListActiveSSHGatewaysResponseSchema; }; }>;