/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 0b1bd11abd5d */ 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 CancelManagerSetupGlobals = { /** * 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 CancelManagerSetupRequest = { /** * Unique identifier for a manager. */ id: string; }; /** * Manager setup canceled successfully. */ export type CancelManagerSetupResponse = { message: string; }; /** @internal */ export type CancelManagerSetupRequest$Outbound = { id: string; }; /** @internal */ export const CancelManagerSetupRequest$outboundSchema: z.ZodType< CancelManagerSetupRequest$Outbound, CancelManagerSetupRequest > = z.object({ id: z.string(), }); export function cancelManagerSetupRequestToJSON( cancelManagerSetupRequest: CancelManagerSetupRequest, ): string { return JSON.stringify( CancelManagerSetupRequest$outboundSchema.parse(cancelManagerSetupRequest), ); } /** @internal */ export const CancelManagerSetupResponse$inboundSchema: z.ZodType< CancelManagerSetupResponse, unknown > = z.object({ message: z.string(), }); export function cancelManagerSetupResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => CancelManagerSetupResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CancelManagerSetupResponse' from JSON`, ); }