/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { validateWebhook } from "../funcs/validateWebhook.js"; import { ClientSDK } from "../lib/sdks.js"; import { AccountMapping } from "./accountmapping.js"; import { BankAccounts } from "./bankaccounts.js"; import { Companies } from "./companies.js"; import { CompanyInformation } from "./companyinformation.js"; import { Connections } from "./connections.js"; import { ManagedBankFeeds } from "./managedbankfeeds.js"; import * as shared from "./models/shared/index.js"; import { SourceAccounts } from "./sourceaccounts.js"; import { Transactions } from "./transactions.js"; import { unwrapAsync } from "./types/fp.js"; export class CodatBankFeeds extends ClientSDK { private _companies?: Companies; get companies(): Companies { return (this._companies ??= new Companies(this._options)); } private _connections?: Connections; get connections(): Connections { return (this._connections ??= new Connections(this._options)); } private _bankAccounts?: BankAccounts; get bankAccounts(): BankAccounts { return (this._bankAccounts ??= new BankAccounts(this._options)); } private _sourceAccounts?: SourceAccounts; get sourceAccounts(): SourceAccounts { return (this._sourceAccounts ??= new SourceAccounts(this._options)); } private _accountMapping?: AccountMapping; get accountMapping(): AccountMapping { return (this._accountMapping ??= new AccountMapping(this._options)); } private _companyInformation?: CompanyInformation; get companyInformation(): CompanyInformation { return (this._companyInformation ??= new CompanyInformation(this._options)); } private _transactions?: Transactions; get transactions(): Transactions { return (this._transactions ??= new Transactions(this._options)); } private _managedBankFeeds?: ManagedBankFeeds; get managedBankFeeds(): ManagedBankFeeds { return (this._managedBankFeeds ??= new ManagedBankFeeds(this._options)); } async validateWebhook({ request, }: { request: { body: string; headers: Record | Headers; url: string; method: string; } | Request; }): Promise< shared.ClientRateLimitWebhook | undefined | shared.SourceAccountWebhook > { return unwrapAsync(validateWebhook( this, { request }, )); } }