UNPKG

@unkey/api

Version:

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

39 lines (33 loc) 976 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type V2KeysWhoamiRequestBody = { /** * The complete API key string provided by you, including any prefix. * * @remarks * Never log, cache, or store API keys in your system as they provide full access to user resources. * Include the full key exactly as provided - even minor modifications will cause a not found error. */ key: string; }; /** @internal */ export type V2KeysWhoamiRequestBody$Outbound = { key: string; }; /** @internal */ export const V2KeysWhoamiRequestBody$outboundSchema: z.ZodType< V2KeysWhoamiRequestBody$Outbound, z.ZodTypeDef, V2KeysWhoamiRequestBody > = z.object({ key: z.string(), }); export function v2KeysWhoamiRequestBodyToJSON( v2KeysWhoamiRequestBody: V2KeysWhoamiRequestBody, ): string { return JSON.stringify( V2KeysWhoamiRequestBody$outboundSchema.parse(v2KeysWhoamiRequestBody), ); }