/* * 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 * * - `invalid_request`: A parameter is invalid. `message` says which one. * - `project_id_required`: An organization key called a project endpoint without naming the project in `Project-Id`, and the organization has more than one project. * - `validation_failed`: The request body does not match the schema. `issues` lists each problem with its `path`. */ export const BadRequestErrorCode = { InvalidRequest: "invalid_request", ProjectIdRequired: "project_id_required", ValidationFailed: "validation_failed", } as const; /** * Exactly what went wrong. Stable; safe to branch on. New codes may be added. * * @remarks * * - `invalid_request`: A parameter is invalid. `message` says which one. * - `project_id_required`: An organization key called a project endpoint without naming the project in `Project-Id`, and the organization has more than one project. * - `validation_failed`: The request body does not match the schema. `issues` lists each problem with its `path`. */ export type BadRequestErrorCode = OpenEnum; /** @internal */ export const BadRequestErrorCode$inboundSchema: z.ZodMiniType< BadRequestErrorCode, unknown > = openEnums.inboundSchema(BadRequestErrorCode);