/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { SourceAccountBatchCreateResult, SourceAccountBatchCreateResult$inboundSchema, } from "./sourceaccountbatchcreateresult.js"; /** * Account ID and resulting object of the batch `Create source account` request. */ export type SourceAccountBatchCreateResponse = { /** * Unique ID for the source account. */ sourceAccountId?: string | undefined; /** * Status details and corresponding object of the `Create account` operation. */ result?: SourceAccountBatchCreateResult | undefined; }; /** @internal */ export const SourceAccountBatchCreateResponse$inboundSchema: z.ZodType< SourceAccountBatchCreateResponse, z.ZodTypeDef, unknown > = z.object({ sourceAccountId: z.string().optional(), result: SourceAccountBatchCreateResult$inboundSchema.optional(), }); export function sourceAccountBatchCreateResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SourceAccountBatchCreateResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SourceAccountBatchCreateResponse' from JSON`, ); }