UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

53 lines 2.57 kB
import * as z from "zod/v3"; import * as components from "../components/index.js"; import { UnkeyError } from "./unkeyerror.js"; /** * Error response when the request conflicts with the current state of the resource. This occurs when: * * @remarks * - Attempting to create a resource that already exists * - Modifying a resource that has been changed by another operation * - Violating unique constraints or business rules * * To resolve this error, check the current state of the resource and adjust your request accordingly. */ export type ConflictErrorResponseData = { /** * Metadata object included in every API response. This provides context about the request and is essential for debugging, audit trails, and support inquiries. The `requestId` is particularly important when troubleshooting issues with the Unkey support team. */ meta: components.Meta; /** * Base error structure following Problem Details for HTTP APIs (RFC 7807). This provides a standardized way to carry machine-readable details of errors in HTTP response content. */ error: components.BaseError; }; /** * Error response when the request conflicts with the current state of the resource. This occurs when: * * @remarks * - Attempting to create a resource that already exists * - Modifying a resource that has been changed by another operation * - Violating unique constraints or business rules * * To resolve this error, check the current state of the resource and adjust your request accordingly. */ export declare class ConflictErrorResponse extends UnkeyError { /** * Metadata object included in every API response. This provides context about the request and is essential for debugging, audit trails, and support inquiries. The `requestId` is particularly important when troubleshooting issues with the Unkey support team. */ meta: components.Meta; /** * Base error structure following Problem Details for HTTP APIs (RFC 7807). This provides a standardized way to carry machine-readable details of errors in HTTP response content. */ error: components.BaseError; /** The original data that was passed to this error instance. */ data$: ConflictErrorResponseData; constructor(err: ConflictErrorResponseData, httpMeta: { response: Response; request: Request; body: string; }); } /** @internal */ export declare const ConflictErrorResponse$inboundSchema: z.ZodType<ConflictErrorResponse, z.ZodTypeDef, unknown>; //# sourceMappingURL=conflicterrorresponse.d.ts.map