import type { NonSteerableTurnKind } from "./NonSteerableTurnKind"; /** * This translation layer make sure that we expose codex error code in camel case. * * When an upstream HTTP status is available (for example, from the Responses API or a provider), * it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant. */ export type CodexErrorInfo = "contextWindowExceeded" | "sessionBudgetExceeded" | "usageLimitExceeded" | "rateLimitExceeded" | "flexUnavailable" | "serverOverloaded" | "cyberPolicy" | "misalignmentPolicyViolation" | "tooManyDenials" | { "httpConnectionFailed": { httpStatusCode: number | null; }; } | { "responseStreamConnectionFailed": { httpStatusCode: number | null; }; } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null; }; } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null; }; } | { "activeTurnNotSteerable": { turnKind: NonSteerableTurnKind; }; } | "other"; //# sourceMappingURL=CodexErrorInfo.d.ts.map