/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Response body for the V3 Deactivate Identity API. */ export type V3DeactivateIdentityResponse = { /** * If true, the deactivate operation was successful. */ success: boolean; }; /** @internal */ export const V3DeactivateIdentityResponse$inboundSchema: z.ZodType< V3DeactivateIdentityResponse, z.ZodTypeDef, unknown > = z.object({ success: z.boolean(), }); /** @internal */ export type V3DeactivateIdentityResponse$Outbound = { success: boolean; }; /** @internal */ export const V3DeactivateIdentityResponse$outboundSchema: z.ZodType< V3DeactivateIdentityResponse$Outbound, z.ZodTypeDef, V3DeactivateIdentityResponse > = z.object({ success: z.boolean(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace V3DeactivateIdentityResponse$ { /** @deprecated use `V3DeactivateIdentityResponse$inboundSchema` instead. */ export const inboundSchema = V3DeactivateIdentityResponse$inboundSchema; /** @deprecated use `V3DeactivateIdentityResponse$outboundSchema` instead. */ export const outboundSchema = V3DeactivateIdentityResponse$outboundSchema; /** @deprecated use `V3DeactivateIdentityResponse$Outbound` instead. */ export type Outbound = V3DeactivateIdentityResponse$Outbound; } export function v3DeactivateIdentityResponseToJSON( v3DeactivateIdentityResponse: V3DeactivateIdentityResponse, ): string { return JSON.stringify( V3DeactivateIdentityResponse$outboundSchema.parse( v3DeactivateIdentityResponse, ), ); } export function v3DeactivateIdentityResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => V3DeactivateIdentityResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V3DeactivateIdentityResponse' from JSON`, ); }