import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; export type PostApiSandboxTokenSecurity = { apiKey?: string | undefined; cookieAuth?: string | undefined; }; /** * Exchange a platform API key for a short-lived sandbox operator token. The platform key itself is never a sandbox credential. */ export type PostApiSandboxTokenRequest = { /** * The workspace to mint an operator token for. The caller must be able to create resources in it. */ workspaceId: string; }; /** * A minted operator token, scoped to one workspace. */ export type PostApiSandboxTokenResponse = { /** * A sandbox operator token. Send as `Authorization: Bearer `. */ token: string; /** * Seconds until the token expires. Re-exchange after this; do not persist it beyond the lifetime. */ expiresIn: number; }; /** @internal */ export type PostApiSandboxTokenSecurity$Outbound = { apiKey?: string | undefined; cookieAuth?: string | undefined; }; /** @internal */ export declare const PostApiSandboxTokenSecurity$outboundSchema: z.ZodMiniType; export declare function postApiSandboxTokenSecurityToJSON(postApiSandboxTokenSecurity: PostApiSandboxTokenSecurity): string; /** @internal */ export type PostApiSandboxTokenRequest$Outbound = { workspaceId: string; }; /** @internal */ export declare const PostApiSandboxTokenRequest$outboundSchema: z.ZodMiniType; export declare function postApiSandboxTokenRequestToJSON(postApiSandboxTokenRequest: PostApiSandboxTokenRequest): string; /** @internal */ export declare const PostApiSandboxTokenResponse$inboundSchema: z.ZodMiniType; export declare function postApiSandboxTokenResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=post-api-sandbox-token.d.ts.map