import * as z from "zod/v4-mini"; import * as models from "../index.js"; import { ModerationAPIError } from "./moderation-api-error.js"; /** * The resource does not exist or the key cannot see it. */ export type NotFoundErrorData = { /** * Broad error category. Stable; safe to switch on. */ type: "not_found_error"; /** * Exactly what went wrong. Stable; safe to branch on. New codes may be added. * * @remarks * * - `resource_not_found`: The resource does not exist. * - `action_not_found`: The action does not exist. * - `author_not_found`: The author does not exist. * - `queue_not_found`: The review queue does not exist. * - `wordlist_not_found`: The wordlist does not exist. * - `webhook_not_found`: The webhook does not exist. * - `project_not_found`: The project does not exist. * - `channel_not_found`: The channel does not exist. */ code: models.NotFoundErrorCode; /** * 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; }; /** * The resource does not exist or the key cannot see it. */ export declare class NotFoundError extends ModerationAPIError { /** * Broad error category. Stable; safe to switch on. */ type: "not_found_error"; /** * Exactly what went wrong. Stable; safe to branch on. New codes may be added. * * @remarks * * - `resource_not_found`: The resource does not exist. * - `action_not_found`: The action does not exist. * - `author_not_found`: The author does not exist. * - `queue_not_found`: The review queue does not exist. * - `wordlist_not_found`: The wordlist does not exist. * - `webhook_not_found`: The webhook does not exist. * - `project_not_found`: The project does not exist. * - `channel_not_found`: The channel does not exist. */ code: models.NotFoundErrorCode; /** * 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$: NotFoundErrorData; constructor(err: NotFoundErrorData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const NotFoundError$inboundSchema: z.ZodMiniType; //# sourceMappingURL=not-found-error.d.ts.map