mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
12 lines
1.1 KiB
TypeScript
12 lines
1.1 KiB
TypeScript
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
|
|
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
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" | "serverOverloaded" | "cyberPolicy" | { "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";
|