/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: c79565a3eb5b */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import * as models from "../index.js"; export type UpdateAPIKeyGlobals = { /** * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client. */ workspace?: string | undefined; }; export type UpdateAPIKeyRequest = { /** * Unique identifier for the api key. */ id: string; updateAPIKeyRequest?: models.UpdateAPIKeyRequest | undefined; }; /** @internal */ export type UpdateAPIKeyRequest$Outbound = { id: string; UpdateAPIKeyRequest?: models.UpdateAPIKeyRequest$Outbound | undefined; }; /** @internal */ export const UpdateAPIKeyRequest$outboundSchema: z.ZodType< UpdateAPIKeyRequest$Outbound, UpdateAPIKeyRequest > = z.object({ id: z.string(), updateAPIKeyRequest: models.UpdateAPIKeyRequest$outboundSchema.optional(), }).transform((v) => { return remap$(v, { updateAPIKeyRequest: "UpdateAPIKeyRequest", }); }); export function updateAPIKeyRequestToJSON( updateAPIKeyRequest: UpdateAPIKeyRequest, ): string { return JSON.stringify( UpdateAPIKeyRequest$outboundSchema.parse(updateAPIKeyRequest), ); }