@sandbox/api-client. Its package and exported class names retain Sandbox for compatibility.
baseUrl must use HTTPS except for localhost and cannot contain credentials. The client rejects non-local paths outside /v1 and /health, omits browser credentials, rejects redirects, and never inserts bearer credentials into thrown errors.
Result metadata
Generic request with runtime validation
Convenience methods provide stable compile-time types for account/workspace, encrypted sync, runners/pools, approvals/publication, marketplace, commerce, tokens, and service accounts. For another operation, supply a parser:SandboxApiCompatibilityError with the correlation ID.
Cancellation
Pass anAbortSignal to a convenience method that accepts it or to request. Backoff sleep and the in-flight fetch honor cancellation.