import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * Contains parameter or domain specific information related to the error and why it occurred. */ export type UnauthorizedResponseDetail = string | { [k: string]: any; }; /** * Unauthorized */ export type UnauthorizedResponseData = { /** * HTTP status code */ statusCode?: number | undefined; /** * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) */ error?: string | undefined; /** * The type of error returned */ typeName?: string | undefined; /** * A human-readable message providing more details about the error. */ message?: string | undefined; /** * Contains parameter or domain specific information related to the error and why it occurred. */ detail?: string | { [k: string]: any; } | undefined; /** * Link to documentation of error type */ ref?: string | undefined; }; /** * Unauthorized */ export declare class UnauthorizedResponse extends Error { /** * HTTP status code */ statusCode?: number | undefined; /** * Contains an explanation of the status_code as defined in HTTP/1.1 standard (RFC 7231) */ error?: string | undefined; /** * The type of error returned */ typeName?: string | undefined; /** * Contains parameter or domain specific information related to the error and why it occurred. */ detail?: string | { [k: string]: any; } | undefined; /** * Link to documentation of error type */ ref?: string | undefined; /** The original data that was passed to this error instance. */ data$: UnauthorizedResponseData; constructor(err: UnauthorizedResponseData); } /** @internal */ export declare const UnauthorizedResponseDetail$inboundSchema: z.ZodType; /** @internal */ export type UnauthorizedResponseDetail$Outbound = string | { [k: string]: any; }; /** @internal */ export declare const UnauthorizedResponseDetail$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace UnauthorizedResponseDetail$ { /** @deprecated use `UnauthorizedResponseDetail$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `UnauthorizedResponseDetail$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `UnauthorizedResponseDetail$Outbound` instead. */ type Outbound = UnauthorizedResponseDetail$Outbound; } export declare function unauthorizedResponseDetailToJSON(unauthorizedResponseDetail: UnauthorizedResponseDetail): string; export declare function unauthorizedResponseDetailFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UnauthorizedResponse$inboundSchema: z.ZodType; /** @internal */ export type UnauthorizedResponse$Outbound = { status_code?: number | undefined; error?: string | undefined; type_name?: string | undefined; message?: string | undefined; detail?: string | { [k: string]: any; } | undefined; ref?: string | undefined; }; /** @internal */ export declare const UnauthorizedResponse$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace UnauthorizedResponse$ { /** @deprecated use `UnauthorizedResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `UnauthorizedResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `UnauthorizedResponse$Outbound` instead. */ type Outbound = UnauthorizedResponse$Outbound; } //# sourceMappingURL=unauthorizedresponse.d.ts.map