import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The error code. */ export declare const Code: { readonly BadRequest: "bad_request"; readonly Unauthorized: "unauthorized"; readonly Forbidden: "forbidden"; readonly ExceededLimit: "exceeded_limit"; readonly NotFound: "not_found"; readonly Conflict: "conflict"; readonly InvitePending: "invite_pending"; readonly InviteExpired: "invite_expired"; readonly UnprocessableEntity: "unprocessable_entity"; readonly RateLimitExceeded: "rate_limit_exceeded"; readonly InternalServerError: "internal_server_error"; }; /** * The error code. */ export type Code = ClosedEnum; export type LinkErrorSchema = { /** * The link that caused the error. */ link?: any | undefined; /** * The error message. */ error: string; /** * The error code. */ code: Code; }; /** @internal */ export declare const Code$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const LinkErrorSchema$inboundSchema: z.ZodType; export declare function linkErrorSchemaFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=linkerrorschema.d.ts.map