/** * The errors the shared subscription core raises for Codex, under the class * names and codes M3 shipped (callers match them with `instanceof`). The * Codex binding supplies them to the core (`SubscriptionCoreProvider.errors`). */ import type { SubscriptionCoreSourceRefusal } from "./subscription-core/errors.js"; /** Raised when the turn no longer holds its core lease; dispatch must stop. */ export declare class SubscriptionCoreCodexLeaseLostError extends Error { readonly code = "codex_credential_lease_lost"; constructor(); } /** * The turn lost access to its leased connection mid-turn (the connection, or * the turn's authority over it, is no longer visible, enabled or usable). * Distinct from a revoked sign-in, which is `CodexReloginRequired`. */ export declare class SubscriptionCoreCodexAccessLostError extends Error { readonly code = "subscription_core_access_lost"; constructor(); } export declare class SubscriptionCoreCodexSourceDisconnectedError extends Error { readonly code = "subscription_core_source_disconnected"; constructor(); } /** A crashed/replaced attempt has no durable response or definitive refusal. * This is not a retryable transport error or a new placement request. */ export declare class SubscriptionCoreCodexRequestOutcomeUnknownError extends Error { readonly code = "subscription_core_request_outcome_unknown"; constructor(); } /** The operation lost its lease, its scope or the enabled cutover. */ export declare class SubscriptionCoreCodexOperationUnavailableError extends Error { readonly code = "subscription_core_operation_unavailable"; constructor(); } /** A workspace source change was refused (personal workspace or no permission). */ export declare class SubscriptionCoreCodexSourceRefusedError extends Error { readonly reason: SubscriptionCoreSourceRefusal; /** * `reason` is optional so the M3 one-argument constructor keeps working; * without it the reason follows the M3 message (personal workspaces or * not). The shared core always passes it. A default (not `?`) keeps the * constructor's `length` at 1, as in M3. */ constructor(message: string, reason?: SubscriptionCoreSourceRefusal); } /** A workspace route named an organization-managed Codex account (legacy 409). */ export declare class SubscriptionCoreCodexOrganizationManagedError extends Error { constructor(); }