@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
37 lines (31 loc) • 1.02 kB
text/typescript
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import * as z from "zod/v3";
export type V2IdentitiesGetIdentityRequestBody = {
/**
* The ID of the identity to retrieve. This can be either the externalId (from your own system that was used during identity creation) or the identityId (the internal ID returned by the identity service).
*/
identity: string;
};
/** @internal */
export type V2IdentitiesGetIdentityRequestBody$Outbound = {
identity: string;
};
/** @internal */
export const V2IdentitiesGetIdentityRequestBody$outboundSchema: z.ZodType<
V2IdentitiesGetIdentityRequestBody$Outbound,
z.ZodTypeDef,
V2IdentitiesGetIdentityRequestBody
> = z.object({
identity: z.string(),
});
export function v2IdentitiesGetIdentityRequestBodyToJSON(
v2IdentitiesGetIdentityRequestBody: V2IdentitiesGetIdentityRequestBody,
): string {
return JSON.stringify(
V2IdentitiesGetIdentityRequestBody$outboundSchema.parse(
v2IdentitiesGetIdentityRequestBody,
),
);
}