@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
28 lines • 819 B
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { RatelimitResponse } from "./ratelimitresponse.js";
export type Identity = {
/**
* Identity ID
*/
id: string;
/**
* External identity ID
*/
externalId: string;
/**
* Identity metadata
*/
meta?: {
[k: string]: any;
} | undefined;
/**
* Identity ratelimits
*/
ratelimits?: Array<RatelimitResponse> | undefined;
};
/** @internal */
export declare const Identity$inboundSchema: z.ZodType<Identity, z.ZodTypeDef, unknown>;
export declare function identityFromJSON(jsonString: string): SafeParseResult<Identity, SDKValidationError>;
//# sourceMappingURL=identity.d.ts.map