import * as z from "zod/v4-mini"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; import * as models from "../index.js"; export type GetApiSandboxByIdRequest = { id: string; }; /** * Why the sandbox stopped being live; absent while it is live. torndown: deleted on request (DELETE /api/sandbox/{id}). reconciled-gone: the sandbox provider reported the sandbox gone. idle: stopped by the idle policy after a final checkpoint (or with nothing to capture); a restore resumes from that checkpoint. idle-uncaptured: stopped by the idle policy but the final checkpoint failed, so a restore uses the last checkpoint that did land, which may be older than the stop. */ export declare enum TerminatedReason { Torndown = "torndown", ReconciledGone = "reconciled-gone", Idle = "idle", IdleUncaptured = "idle-uncaptured" } /** * Why the sandbox stopped being live; absent while it is live. torndown: deleted on request (DELETE /api/sandbox/{id}). reconciled-gone: the sandbox provider reported the sandbox gone. idle: stopped by the idle policy after a final checkpoint (or with nothing to capture); a restore resumes from that checkpoint. idle-uncaptured: stopped by the idle policy but the final checkpoint failed, so a restore uses the last checkpoint that did land, which may be older than the stop. */ export type TerminatedReasonOpen = OpenEnum; /** * Response for status 200 */ export type GetApiSandboxByIdResponse = { status: models.Schemadefaul5Open; /** * ISO timestamp at which the sandbox stopped being live; absent while it is live */ terminatedAt?: string | undefined; /** * Why the sandbox stopped being live; absent while it is live. torndown: deleted on request (DELETE /api/sandbox/{id}). reconciled-gone: the sandbox provider reported the sandbox gone. idle: stopped by the idle policy after a final checkpoint (or with nothing to capture); a restore resumes from that checkpoint. idle-uncaptured: stopped by the idle policy but the final checkpoint failed, so a restore uses the last checkpoint that did land, which may be older than the stop. */ terminatedReason?: TerminatedReasonOpen | undefined; }; /** @internal */ export type GetApiSandboxByIdRequest$Outbound = { id: string; }; /** @internal */ export declare const GetApiSandboxByIdRequest$outboundSchema: z.ZodMiniType; export declare function getApiSandboxByIdRequestToJSON(getApiSandboxByIdRequest: GetApiSandboxByIdRequest): string; /** @internal */ export declare const TerminatedReason$inboundSchema: z.ZodMiniType; /** @internal */ export declare const GetApiSandboxByIdResponse$inboundSchema: z.ZodMiniType; export declare function getApiSandboxByIdResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=get-api-sandbox-by-id.d.ts.map