import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CompanyReference, CompanyReference$Outbound } from "./companyreference.js"; import { SourceAccount, SourceAccount$Outbound } from "./sourceaccount.js"; import { SourceAccountV2, SourceAccountV2$Outbound } from "./sourceaccountv2.js"; export type SourceAccountWebhookPayloadSourceAccount = SourceAccountV2 | SourceAccount; export type SourceAccountWebhookPayload = { referenceCompany?: CompanyReference | undefined; /** * Unique identifier for your SMB in Codat. */ companyId?: string | undefined; /** * Unique identifier for a company's data connection. */ connectionId?: string | undefined; sourceAccount?: SourceAccountV2 | SourceAccount | undefined; }; /** @internal */ export declare const SourceAccountWebhookPayloadSourceAccount$inboundSchema: z.ZodType; /** @internal */ export type SourceAccountWebhookPayloadSourceAccount$Outbound = SourceAccountV2$Outbound | SourceAccount$Outbound; /** @internal */ export declare const SourceAccountWebhookPayloadSourceAccount$outboundSchema: z.ZodType; export declare function sourceAccountWebhookPayloadSourceAccountToJSON(sourceAccountWebhookPayloadSourceAccount: SourceAccountWebhookPayloadSourceAccount): string; export declare function sourceAccountWebhookPayloadSourceAccountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SourceAccountWebhookPayload$inboundSchema: z.ZodType; /** @internal */ export type SourceAccountWebhookPayload$Outbound = { referenceCompany?: CompanyReference$Outbound | undefined; companyId?: string | undefined; connectionId?: string | undefined; sourceAccount?: SourceAccountV2$Outbound | SourceAccount$Outbound | undefined; }; /** @internal */ export declare const SourceAccountWebhookPayload$outboundSchema: z.ZodType; export declare function sourceAccountWebhookPayloadToJSON(sourceAccountWebhookPayload: SourceAccountWebhookPayload): string; export declare function sourceAccountWebhookPayloadFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=sourceaccountwebhookpayload.d.ts.map