export declare const proxyErrorCodes: { readonly TOKEN_INVALID: { readonly code: "TOKEN_INVALID"; readonly status: 401; readonly message: "Invalid access token"; }; readonly TOKEN_REVOKED: { readonly code: "TOKEN_REVOKED"; readonly status: 401; readonly message: "Access token has been revoked"; }; readonly TOKEN_SUSPENDED: { readonly code: "TOKEN_SUSPENDED"; readonly status: 403; readonly message: "Access has been suspended by the user"; }; readonly TOKEN_EXPIRED: { readonly code: "TOKEN_EXPIRED"; readonly status: 401; readonly message: "Access token has expired"; }; readonly BUDGET_EXCEEDED: { readonly code: "BUDGET_EXCEEDED"; readonly status: 402; readonly message: "Budget limit exceeded"; }; readonly POOL_EXHAUSTED: { readonly code: "POOL_EXHAUSTED"; readonly status: 402; readonly message: "Account pool budget exhausted"; }; readonly MEMBER_CAP_EXCEEDED: { readonly code: "MEMBER_CAP_EXCEEDED"; readonly status: 402; readonly message: "Your monthly spending cap for this team has been reached"; }; readonly PROVIDER_KEY_MISSING: { readonly code: "PROVIDER_KEY_MISSING"; readonly status: 402; readonly message: "No API key or credits available for required provider"; }; readonly MODEL_NOT_FOUND: { readonly code: "MODEL_NOT_FOUND"; readonly status: 404; readonly message: "Requested model is not in the Tokenite catalog"; }; readonly CREDITS_DEPLETED: { readonly code: "CREDITS_DEPLETED"; readonly status: 402; readonly message: "Insufficient credits"; }; readonly APP_NOT_FOUND: { readonly code: "APP_NOT_FOUND"; readonly status: 404; readonly message: "Application not found"; }; readonly MODEL_NOT_ALLOWED: { readonly code: "MODEL_NOT_ALLOWED"; readonly status: 403; readonly message: "Model not in allowed models list"; }; readonly AGENT_SCOPE_MISSING: { readonly code: "AGENT_SCOPE_MISSING"; readonly status: 403; readonly message: "App does not have the managed-agents scope"; }; readonly PROXY_NOT_ALLOWED: { readonly code: "PROXY_NOT_ALLOWED"; readonly status: 403; readonly message: "App does not allow direct provider calls; use the managed-agents endpoints instead"; }; readonly CONSENT_OUTDATED: { readonly code: "CONSENT_OUTDATED"; readonly status: 401; readonly message: "App requirements have changed since you authorized"; }; readonly SPONSORED_POOL_EXHAUSTED: { readonly code: "SPONSORED_POOL_EXHAUSTED"; readonly status: 402; readonly message: "Sponsored credits pool is exhausted"; }; readonly SPONSORED_KEY_UNAVAILABLE: { readonly code: "SPONSORED_KEY_UNAVAILABLE"; readonly status: 402; readonly message: "Sponsored key is no longer active"; }; readonly SPONSORED_PROVIDER_MISMATCH: { readonly code: "SPONSORED_PROVIDER_MISMATCH"; readonly status: 402; readonly message: "Sponsored key does not cover requested provider"; }; readonly BUILDER_KEY_UNAVAILABLE: { readonly code: "BUILDER_KEY_UNAVAILABLE"; readonly status: 402; readonly message: "Builder key is no longer active"; }; readonly BUILDER_PROVIDER_MISMATCH: { readonly code: "BUILDER_PROVIDER_MISMATCH"; readonly status: 402; readonly message: "Builder key does not cover requested provider"; }; readonly BUILDER_CAP_EXCEEDED: { readonly code: "BUILDER_CAP_EXCEEDED"; readonly status: 402; readonly message: "Builder key monthly budget exceeded"; }; readonly STREAMING_NOT_SUPPORTED: { readonly code: "STREAMING_NOT_SUPPORTED"; readonly status: 501; readonly message: "Streaming is not yet metered on this route"; }; }; export declare const providerErrorCodes: { readonly RATE_LIMITED: { readonly code: "RATE_LIMITED"; readonly status: 429; readonly message: "Rate limited by the LLM provider"; }; readonly CONTEXT_LENGTH_EXCEEDED: { readonly code: "CONTEXT_LENGTH_EXCEEDED"; readonly status: 400; readonly message: "Request exceeds model context length"; }; readonly INVALID_REQUEST: { readonly code: "INVALID_REQUEST"; readonly status: 400; readonly message: "Invalid request rejected by the LLM provider"; }; readonly AUTHENTICATION_FAILED: { readonly code: "AUTHENTICATION_FAILED"; readonly status: 401; readonly message: "LLM provider rejected the API key"; }; readonly PROVIDER_OVERLOADED: { readonly code: "PROVIDER_OVERLOADED"; readonly status: 503; readonly message: "LLM provider is temporarily overloaded"; }; readonly CONTENT_FILTERED: { readonly code: "CONTENT_FILTERED"; readonly status: 400; readonly message: "Content blocked by the LLM provider safety filter"; }; readonly PROVIDER_TIMEOUT: { readonly code: "PROVIDER_TIMEOUT"; readonly status: 504; readonly message: "LLM provider did not respond"; }; readonly PROVIDER_ERROR: { readonly code: "PROVIDER_ERROR"; readonly status: 502; readonly message: "LLM provider returned an error"; }; }; export declare const apiErrorCodes: { readonly VALIDATION: "VALIDATION"; readonly FORBIDDEN: "FORBIDDEN"; readonly UNAUTHORIZED: "UNAUTHORIZED"; readonly NOT_FOUND: "NOT_FOUND"; readonly INTERNAL: "INTERNAL"; readonly UNKNOWN: "UNKNOWN"; readonly INSUFFICIENT_ROLE: "INSUFFICIENT_ROLE"; readonly EMAIL_TAKEN: "EMAIL_TAKEN"; readonly WRONG_EMAIL: "WRONG_EMAIL"; readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS"; readonly INVALID_CLIENT: "INVALID_CLIENT"; readonly INVALID_CODE: "INVALID_CODE"; readonly INVALID_INVITATION: "INVALID_INVITATION"; readonly INVITATION_EXPIRED: "INVITATION_EXPIRED"; readonly INVITE_PENDING: "INVITE_PENDING"; readonly ALREADY_CLAIMED: "ALREADY_CLAIMED"; readonly ALREADY_MEMBER: "ALREADY_MEMBER"; readonly PAT_NOT_FOUND: "PAT_NOT_FOUND"; readonly UNKNOWN_PROVIDER: "UNKNOWN_PROVIDER"; readonly CANNOT_DELETE_PERSONAL: "CANNOT_DELETE_PERSONAL"; readonly CANNOT_INVITE_TO_PERSONAL: "CANNOT_INVITE_TO_PERSONAL"; readonly EMAIL_REQUIRED: "EMAIL_REQUIRED"; readonly APP_NOT_APPROVED: "APP_NOT_APPROVED"; readonly TEAM_CANNOT_BUILD: "TEAM_CANNOT_BUILD"; readonly CANNOT_REMOVE_SELF: "CANNOT_REMOVE_SELF"; readonly SOLE_OWNER: "SOLE_OWNER"; readonly NO_KEY: "NO_KEY"; readonly NOT_ACTIVE: "NOT_ACTIVE"; readonly SPONSORED_INELIGIBLE: "SPONSORED_INELIGIBLE"; readonly BUDGET_UPDATE_FAILED: "BUDGET_UPDATE_FAILED"; readonly SPONSORED_POOL_UPDATE_FAILED: "SPONSORED_POOL_UPDATE_FAILED"; readonly ENCRYPTION_FAILED: "ENCRYPTION_FAILED"; readonly DECRYPTION_FAILED: "DECRYPTION_FAILED"; readonly DB_INSERT_FAILED: "DB_INSERT_FAILED"; readonly FETCH_FAILED: "FETCH_FAILED"; readonly PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE"; readonly INVALID_REDIRECT_URI: "INVALID_REDIRECT_URI"; readonly ACCOUNT_DELETED: "ACCOUNT_DELETED"; readonly RATE_LIMITED_PROXY: "RATE_LIMITED_PROXY"; }; export type ProxyErrorCode = keyof typeof proxyErrorCodes; export type ProviderErrorCode = keyof typeof providerErrorCodes; export type ApiErrorCode = keyof typeof apiErrorCodes; export type ErrorCode = ProxyErrorCode | ProviderErrorCode | ApiErrorCode; //# sourceMappingURL=error-codes.d.ts.map