import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { ApideckError } from "./apideckerror.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type Error2 = { reason?: string | undefined; error?: string | undefined; }; /** * Why the operation is unsupported. Absent when there is no reason to give (the connector does not implement the operation). A string when the connector states a reason. An object `{ reason, error }` when a batch request is refused: `reason` is a stable code, `error` a human-readable explanation. */ export type ErrorT = string | Error2; /** * Which operation the connector does not support, and why. */ export type MethodNotAllowedResponseDetail = { /** * The unsupported unified operation and connector. */ context?: string | undefined; /** * Why the operation is unsupported. Absent when there is no reason to give (the connector does not implement the operation). A string when the connector states a reason. An object `{ reason, error }` when a batch request is refused: `reason` is a stable code, `error` a human-readable explanation. */ error?: string | Error2 | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; /** * The connector cannot serve this operation. No request was sent to the connector, and retrying will not help. The `Allow` header lists the methods the connector does serve on the same URL. */ export type MethodNotAllowedResponseData = { /** * 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; /** * Which operation the connector does not support, and why. */ detail?: MethodNotAllowedResponseDetail | undefined; /** * Link to documentation of error type */ ref?: string | undefined; }; /** * The connector cannot serve this operation. No request was sent to the connector, and retrying will not help. The `Allow` header lists the methods the connector does serve on the same URL. */ export declare class MethodNotAllowedResponse extends ApideckError { /** * 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; /** * Which operation the connector does not support, and why. */ detail?: MethodNotAllowedResponseDetail | undefined; /** * Link to documentation of error type */ ref?: string | undefined; /** The original data that was passed to this error instance. */ data$: MethodNotAllowedResponseData; constructor(err: MethodNotAllowedResponseData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const Error2$inboundSchema: z.ZodType; export declare function error2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ErrorT$inboundSchema: z.ZodType; export declare function errorFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const MethodNotAllowedResponseDetail$inboundSchema: z.ZodType; export declare function methodNotAllowedResponseDetailFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const MethodNotAllowedResponse$inboundSchema: z.ZodType; //# sourceMappingURL=methodnotallowedresponse.d.ts.map