/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import * as openEnums from "../types/enums.js"; import { OpenEnum } from "../types/enums.js"; /** * Exactly what went wrong. Stable; safe to branch on. New codes may be added. * * @remarks * * - `unauthorized`: Authentication failed. * - `missing_api_key`: No API key in the `Authorization` header. * - `malformed_api_key`: The `Authorization` header does not contain a valid key format. * - `invalid_api_key`: The API key does not exist or was revoked. */ export const AuthenticationErrorCode = { Unauthorized: "unauthorized", MissingApiKey: "missing_api_key", MalformedApiKey: "malformed_api_key", InvalidApiKey: "invalid_api_key", } as const; /** * Exactly what went wrong. Stable; safe to branch on. New codes may be added. * * @remarks * * - `unauthorized`: Authentication failed. * - `missing_api_key`: No API key in the `Authorization` header. * - `malformed_api_key`: The `Authorization` header does not contain a valid key format. * - `invalid_api_key`: The API key does not exist or was revoked. */ export type AuthenticationErrorCode = OpenEnum; /** @internal */ export const AuthenticationErrorCode$inboundSchema: z.ZodMiniType< AuthenticationErrorCode, unknown > = openEnums.inboundSchema(AuthenticationErrorCode);