/** * User Service API * Solomon AI User Service API - Manages user profiles and authentication * * The version of the OpenAPI document: 1.0 * Contact: yoanyomba@solomon-ai.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /// import http from 'http'; import { CreateAccountingProfileRequest } from '../model/createAccountingProfileRequest'; import { CreateAccountingProfileResponse } from '../model/createAccountingProfileResponse'; import { DeleteAccountingProfileResponse } from '../model/deleteAccountingProfileResponse'; import { ExchangePublicLinkTokenForAccountTokenRequest } from '../model/exchangePublicLinkTokenForAccountTokenRequest'; import { ExchangePublicLinkTokenForAccountTokenResponse } from '../model/exchangePublicLinkTokenForAccountTokenResponse'; import { GetMergeLinkTokenRequest } from '../model/getMergeLinkTokenRequest'; import { GetMergeLinkTokenResponse } from '../model/getMergeLinkTokenResponse'; import { GetWorkflowExecutionStatusResponse } from '../model/getWorkflowExecutionStatusResponse'; import { HealthCheckResponse2 } from '../model/healthCheckResponse2'; import { ReadAccountingProfileResponse } from '../model/readAccountingProfileResponse'; import { ReadBalanceSheetsRequest } from '../model/readBalanceSheetsRequest'; import { ReadBalanceSheetsResponse } from '../model/readBalanceSheetsResponse'; import { ReadBusinessChartOfAccountsRequest } from '../model/readBusinessChartOfAccountsRequest'; import { ReadBusinessChartOfAccountsResponse } from '../model/readBusinessChartOfAccountsResponse'; import { ReadBusinessTransactionsRequest } from '../model/readBusinessTransactionsRequest'; import { ReadBusinessTransactionsResponse } from '../model/readBusinessTransactionsResponse'; import { ReadCashFlowStatementsRequest } from '../model/readCashFlowStatementsRequest'; import { ReadCashFlowStatementsResponse } from '../model/readCashFlowStatementsResponse'; import { ReadIncomeStatementsRequest } from '../model/readIncomeStatementsRequest'; import { ReadIncomeStatementsResponse } from '../model/readIncomeStatementsResponse'; import { ReadynessCheckResponse3 } from '../model/readynessCheckResponse3'; import { UpdateAccountingProfileRequest } from '../model/updateAccountingProfileRequest'; import { UpdateAccountingProfileResponse } from '../model/updateAccountingProfileResponse'; import { Authentication, Interceptor } from '../model/models'; import { ApiKeyAuth } from '../model/models'; export declare enum AccountingServiceApiApiKeys { ApiKeyAuth = 0, Bearer = 1 } export declare class AccountingServiceApi { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected authentications: { default: Authentication; ApiKeyAuth: ApiKeyAuth; Bearer: ApiKeyAuth; }; protected interceptors: Interceptor[]; constructor(basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); set defaultHeaders(defaultHeaders: any); get defaultHeaders(): any; get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(key: AccountingServiceApiApiKeys, value: string): void; addInterceptor(interceptor: Interceptor): void; /** * Creates a payroll profile. * @summary Create Payroll Profile * @param createAccountingProfileRequest Defines a message named CreateAccountingProfileRequest. */ createPayrollProfile(createAccountingProfileRequest: CreateAccountingProfileRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: CreateAccountingProfileResponse; }>; /** * Deletes a business payroll profile. * @summary Delete Payroll Profile * @param authZeroUserId * @param orgId * @param tenantId */ deleteProfile(authZeroUserId: string, orgId: string, tenantId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: DeleteAccountingProfileResponse; }>; /** * Exchanges a public link token for an account token. * @summary Exchange Link Token * @param exchangePublicLinkTokenForAccountTokenRequest */ exchangePublicLinkTokenForAccountTokenResponse(exchangePublicLinkTokenForAccountTokenRequest: ExchangePublicLinkTokenForAccountTokenRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ExchangePublicLinkTokenForAccountTokenResponse; }>; /** * Provides a link token to initialize a Link session for the user. * @summary Get Link Token * @param getMergeLinkTokenRequest Defines a message named GetMergeLinkTokenRequest. */ getLinkToken(getMergeLinkTokenRequest: GetMergeLinkTokenRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetMergeLinkTokenResponse; }>; /** * This endpoint polls the status of an async task * @summary polls the status of an async task * @param workflowId The task id Validations: - workflow id cannot be empty * @param workflowRunId The run id Validations: - run id cannot be empty * @param orgId * @param tenantId */ getWorkflowExecutionStatus(workflowId: string, workflowRunId: string, orgId: string, tenantId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: GetWorkflowExecutionStatusResponse; }>; /** * Performs a health check on the service. * @summary Health Check */ healthCheck3(options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: HealthCheckResponse2; }>; /** * Retrieves a business account profile. * @summary Get Business Account Profile * @param authZeroUserId * @param linkedAccountingAccountId * @param orgId * @param tenantId */ readAccountingProfileResponse(authZeroUserId: string, linkedAccountingAccountId: string, orgId: string, tenantId: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ReadAccountingProfileResponse; }>; /** * Queries balance sheets for a business. * @summary Gets Balance Sheets * @param readBalanceSheetsRequest */ readBalanceSheets(readBalanceSheetsRequest: ReadBalanceSheetsRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ReadBalanceSheetsResponse; }>; /** * Queries chart of accounts for a business. * @summary Gets Chart of Accounts * @param readBusinessChartOfAccountsRequest */ readBusinessChartOfAccounts(readBusinessChartOfAccountsRequest: ReadBusinessChartOfAccountsRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ReadBusinessChartOfAccountsResponse; }>; /** * Queries transactions for a business. * @summary Gets Business Transactions * @param readBusinessTransactionsRequest Request for reading business transactions with pagination and time filtering. */ readBusinessTransactions(readBusinessTransactionsRequest: ReadBusinessTransactionsRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ReadBusinessTransactionsResponse; }>; /** * Queries cashflow sheets for a business. * @summary Gets Cashfloe Sheets * @param readCashFlowStatementsRequest */ readCashFlowStatements(readCashFlowStatementsRequest: ReadCashFlowStatementsRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ReadCashFlowStatementsResponse; }>; /** * Queries income sheets for a business. * @summary Gets Cashfloe Sheets * @param readIncomeStatementsRequest */ readIncomeStatements(readIncomeStatementsRequest: ReadIncomeStatementsRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ReadIncomeStatementsResponse; }>; /** * Performs a readiness check on the service. * @summary Readiness Check */ readinessCheck(options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: ReadynessCheckResponse3; }>; /** * Updates a payroll profile. * @summary Update Payroll Profile * @param updateAccountingProfileRequest Defines a message named UpdateAccountingProfileRequest. */ updatePayrollProfile(updateAccountingProfileRequest: UpdateAccountingProfileRequest, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: UpdateAccountingProfileResponse; }>; }