UNPKG

@docusign/iam-sdk

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@docusign/iam-sdk* API.

66 lines 2.06 kB
import * as z from "zod"; import { IamClientError } from "./iamclienterror.js"; /** * Bad Request - The request could not be understood or was missing required parameters. */ export type ErrorTData = { /** * A message describing the error. */ error?: string | undefined; /** * HTTP status code for the error. */ code?: number | undefined; /** * The timestamp when the error occurred. */ timestamp?: Date | undefined; }; /** * Bad Request - The request could not be understood or was missing required parameters. */ export declare class ErrorT extends IamClientError { /** * A message describing the error. */ error?: string | undefined; /** * HTTP status code for the error. */ code?: number | undefined; /** * The timestamp when the error occurred. */ timestamp?: Date | undefined; /** The original data that was passed to this error instance. */ data$: ErrorTData; constructor(err: ErrorTData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown>; /** @internal */ export type ErrorT$Outbound = { error?: string | undefined; code?: number | undefined; timestamp?: string | undefined; }; /** @internal */ export declare const ErrorT$outboundSchema: z.ZodType<ErrorT$Outbound, z.ZodTypeDef, ErrorT>; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ErrorT$ { /** @deprecated use `ErrorT$inboundSchema` instead. */ const inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown>; /** @deprecated use `ErrorT$outboundSchema` instead. */ const outboundSchema: z.ZodType<ErrorT$Outbound, z.ZodTypeDef, ErrorT>; /** @deprecated use `ErrorT$Outbound` instead. */ type Outbound = ErrorT$Outbound; } //# sourceMappingURL=error.d.ts.map