UNPKG

@unkey/api

Version:

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

43 lines (37 loc) 1.24 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type V2IdentitiesListIdentitiesRequestBody = { /** * The maximum number of identities to return in a single request. Use this to control response size and loading performance. */ limit?: number | undefined; /** * Pagination cursor from a previous response. Use this to fetch subsequent pages of results when the response contains a cursor value. */ cursor?: string | undefined; }; /** @internal */ export type V2IdentitiesListIdentitiesRequestBody$Outbound = { limit: number; cursor?: string | undefined; }; /** @internal */ export const V2IdentitiesListIdentitiesRequestBody$outboundSchema: z.ZodType< V2IdentitiesListIdentitiesRequestBody$Outbound, z.ZodTypeDef, V2IdentitiesListIdentitiesRequestBody > = z.object({ limit: z.number().int().default(100), cursor: z.string().optional(), }); export function v2IdentitiesListIdentitiesRequestBodyToJSON( v2IdentitiesListIdentitiesRequestBody: V2IdentitiesListIdentitiesRequestBody, ): string { return JSON.stringify( V2IdentitiesListIdentitiesRequestBody$outboundSchema.parse( v2IdentitiesListIdentitiesRequestBody, ), ); }