UNPKG

@unkey/api

Version:

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

40 lines (34 loc) 1.15 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type V2ApisDeleteApiRequestBody = { /** * Specifies which API namespace to permanently delete from your workspace. * * @remarks * Must be a valid API ID that begins with 'api_' and exists within your workspace. * * Before proceeding, ensure you have the correct API ID and understand that this action cannot be undone. If you need to migrate functionality, create replacement keys in a new API namespace and update client applications before deletion. */ apiId: string; }; /** @internal */ export type V2ApisDeleteApiRequestBody$Outbound = { apiId: string; }; /** @internal */ export const V2ApisDeleteApiRequestBody$outboundSchema: z.ZodType< V2ApisDeleteApiRequestBody$Outbound, z.ZodTypeDef, V2ApisDeleteApiRequestBody > = z.object({ apiId: z.string(), }); export function v2ApisDeleteApiRequestBodyToJSON( v2ApisDeleteApiRequestBody: V2ApisDeleteApiRequestBody, ): string { return JSON.stringify( V2ApisDeleteApiRequestBody$outboundSchema.parse(v2ApisDeleteApiRequestBody), ); }