import * as z from "zod/v4-mini"; import * as models from "../index.js"; import { ModerationAPIError } from "./moderation-api-error.js"; /** * Something went wrong on our side. Retry with backoff. */ export type InternalServerErrorData = { /** * Broad error category. Stable; safe to switch on. */ type: "api_error"; /** * Exactly what went wrong. Stable; safe to branch on. New codes may be added. * * @remarks * * - `internal_error`: Something went wrong on our side. Retry with backoff. */ code: models.InternalServerErrorCode; /** * Human-readable explanation. */ message: string; /** * Validation problems, when the request body is invalid. */ issues?: Array | undefined; /** * Identifies this request. Include it when you contact support. */ requestId: string; /** * Documentation for this `code`. */ docUrl: string; }; /** * Something went wrong on our side. Retry with backoff. */ export declare class InternalServerError extends ModerationAPIError { /** * Broad error category. Stable; safe to switch on. */ type: "api_error"; /** * Exactly what went wrong. Stable; safe to branch on. New codes may be added. * * @remarks * * - `internal_error`: Something went wrong on our side. Retry with backoff. */ code: models.InternalServerErrorCode; /** * Validation problems, when the request body is invalid. */ issues?: Array | undefined; /** * Identifies this request. Include it when you contact support. */ requestId: string; /** * Documentation for this `code`. */ docUrl: string; /** The original data that was passed to this error instance. */ data$: InternalServerErrorData; constructor(err: InternalServerErrorData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const InternalServerError$inboundSchema: z.ZodMiniType; //# sourceMappingURL=internal-server-error.d.ts.map