import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { DubError } from "./duberror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * A short code indicating the error code returned. */ export declare const ForbiddenCode: { readonly Forbidden: "forbidden"; }; /** * A short code indicating the error code returned. */ export type ForbiddenCode = ClosedEnum; export type ForbiddenError = { /** * A short code indicating the error code returned. */ code: ForbiddenCode; /** * A human readable explanation of what went wrong. */ message: string; /** * A link to our documentation with more details about this error code */ docUrl?: string | undefined; }; /** * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server. */ export type ForbiddenData = { error: ForbiddenError; }; /** * The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server. */ export declare class Forbidden extends DubError { error: ForbiddenError; /** The original data that was passed to this error instance. */ data$: ForbiddenData; constructor(err: ForbiddenData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const ForbiddenCode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ForbiddenError$inboundSchema: z.ZodType; export declare function forbiddenErrorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Forbidden$inboundSchema: z.ZodType; //# sourceMappingURL=forbidden.d.ts.map