/* * 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"; /** * Result of generate credentials */ export type BankAccountCredentials = { /** * Username used by the bank feeds platform to retrieve transactions */ username?: string | undefined; /** * Password to enable the bank feeds platform to securely retrieve transactions. */ password?: string | undefined; }; /** @internal */ export const BankAccountCredentials$inboundSchema: z.ZodType< BankAccountCredentials, z.ZodTypeDef, unknown > = z.object({ username: z.string().optional(), password: z.string().optional(), }); export function bankAccountCredentialsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => BankAccountCredentials$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BankAccountCredentials' from JSON`, ); }