UNPKG

@unkey/api

Version:

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

37 lines (31 loc) 1.05 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type V2IdentitiesDeleteIdentityRequestBody = { /** * The ID of the identity to delete. 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 V2IdentitiesDeleteIdentityRequestBody$Outbound = { identity: string; }; /** @internal */ export const V2IdentitiesDeleteIdentityRequestBody$outboundSchema: z.ZodType< V2IdentitiesDeleteIdentityRequestBody$Outbound, z.ZodTypeDef, V2IdentitiesDeleteIdentityRequestBody > = z.object({ identity: z.string(), }); export function v2IdentitiesDeleteIdentityRequestBodyToJSON( v2IdentitiesDeleteIdentityRequestBody: V2IdentitiesDeleteIdentityRequestBody, ): string { return JSON.stringify( V2IdentitiesDeleteIdentityRequestBody$outboundSchema.parse( v2IdentitiesDeleteIdentityRequestBody, ), ); }