/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: df72df6f4149 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type DeleteManagerGlobals = { /** * 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 DeleteManagerRequest = { /** * Unique identifier for a manager. */ id: string; }; /** * Manager deletion enqueued successfully. */ export type DeleteManagerResponse = { message: string; }; /** @internal */ export type DeleteManagerRequest$Outbound = { id: string; }; /** @internal */ export const DeleteManagerRequest$outboundSchema: z.ZodType< DeleteManagerRequest$Outbound, DeleteManagerRequest > = z.object({ id: z.string(), }); export function deleteManagerRequestToJSON( deleteManagerRequest: DeleteManagerRequest, ): string { return JSON.stringify( DeleteManagerRequest$outboundSchema.parse(deleteManagerRequest), ); } /** @internal */ export const DeleteManagerResponse$inboundSchema: z.ZodType< DeleteManagerResponse, unknown > = z.object({ message: z.string(), }); export function deleteManagerResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeleteManagerResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteManagerResponse' from JSON`, ); }