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 UnauthorizedCode: { readonly Unauthorized: "unauthorized"; }; /** * A short code indicating the error code returned. */ export type UnauthorizedCode = ClosedEnum; export type UnauthorizedError = { /** * A short code indicating the error code returned. */ code: UnauthorizedCode; /** * 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; }; /** * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response. */ export type UnauthorizedData = { error: UnauthorizedError; }; /** * Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response. */ export declare class Unauthorized extends DubError { error: UnauthorizedError; /** The original data that was passed to this error instance. */ data$: UnauthorizedData; constructor(err: UnauthorizedData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const UnauthorizedCode$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UnauthorizedError$inboundSchema: z.ZodType; export declare function unauthorizedErrorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Unauthorized$inboundSchema: z.ZodType; //# sourceMappingURL=unauthorized.d.ts.map