@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
35 lines • 1.8 kB
TypeScript
import * as z from "zod";
import * as components from "../components/index.js";
export type PreconditionFailedErrorResponseData = {
meta: components.Meta;
error: components.BaseError;
};
export declare class PreconditionFailedErrorResponse extends Error {
meta: components.Meta;
error: components.BaseError;
/** The original data that was passed to this error instance. */
data$: PreconditionFailedErrorResponseData;
constructor(err: PreconditionFailedErrorResponseData);
}
/** @internal */
export declare const PreconditionFailedErrorResponse$inboundSchema: z.ZodType<PreconditionFailedErrorResponse, z.ZodTypeDef, unknown>;
/** @internal */
export type PreconditionFailedErrorResponse$Outbound = {
meta: components.Meta$Outbound;
error: components.BaseError$Outbound;
};
/** @internal */
export declare const PreconditionFailedErrorResponse$outboundSchema: z.ZodType<PreconditionFailedErrorResponse$Outbound, z.ZodTypeDef, PreconditionFailedErrorResponse>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace PreconditionFailedErrorResponse$ {
/** @deprecated use `PreconditionFailedErrorResponse$inboundSchema` instead. */
const inboundSchema: z.ZodType<PreconditionFailedErrorResponse, z.ZodTypeDef, unknown>;
/** @deprecated use `PreconditionFailedErrorResponse$outboundSchema` instead. */
const outboundSchema: z.ZodType<PreconditionFailedErrorResponse$Outbound, z.ZodTypeDef, PreconditionFailedErrorResponse>;
/** @deprecated use `PreconditionFailedErrorResponse$Outbound` instead. */
type Outbound = PreconditionFailedErrorResponse$Outbound;
}
//# sourceMappingURL=preconditionfailederrorresponse.d.ts.map