/** * Faraday REST API * The [Faraday](https://faraday.ai) API makes it easy to predict customer behavior programmatically. See our [API change policy](https://faraday.ai/legal). * * The version of the OpenAPI document: 1.0.0 * Contact: support@faraday.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { Account, AccountMergePatch, AccountPost, AccountUsageSummary } from '../models'; export interface CreateAccountRequest { accountFields: AccountPost; } export interface DeleteAccountRequest { accountId: string; } export interface GetAccountRequest { accountId: string; } export interface GetAccountUsageRequest { accountId: string; } export interface GetAccountsRequest { ids?: Array; } export interface UpdateAccountRequest { accountId: string; accountMergePatch: AccountMergePatch; } /** * */ export declare class AccountsApi extends runtime.BaseAPI { /** * Create a subaccount. * Create account */ createAccountRaw(requestParameters: CreateAccountRequest): Promise>; /** * Create a subaccount. * Create account */ createAccount(accountFields: AccountPost): Promise; /** * Request an account deletion. In 24 hours, the account and all resources associated with it will be deleted. Contact support within the 24 hour window if you wish to reverse this. * Delete an account */ deleteAccountRaw(requestParameters: DeleteAccountRequest): Promise>; /** * Request an account deletion. In 24 hours, the account and all resources associated with it will be deleted. Contact support within the 24 hour window if you wish to reverse this. * Delete an account */ deleteAccount(accountId: string): Promise; /** * Get details on a specific account. This must be an account controlled by your API key. * Retrieve an account */ getAccountRaw(requestParameters: GetAccountRequest): Promise>; /** * Get details on a specific account. This must be an account controlled by your API key. * Retrieve an account */ getAccount(accountId: string): Promise; /** * Get historical usage metrics for the current account from the most recent metrics dashboard event. * Get usage metrics for current account */ getAccountCurrentUsageRaw(): Promise>; /** * Get historical usage metrics for the current account from the most recent metrics dashboard event. * Get usage metrics for current account */ getAccountCurrentUsage(): Promise; /** * Get aggregated historical usage metrics for the current account and all of its sub-accounts. * Get usage metrics for current and sub accounts */ getAccountCurrentUsageAllRaw(): Promise>; /** * Get aggregated historical usage metrics for the current account and all of its sub-accounts. * Get usage metrics for current and sub accounts */ getAccountCurrentUsageAll(): Promise; /** * Get usage metrics for a specific account */ getAccountUsageRaw(requestParameters: GetAccountUsageRequest): Promise>; /** * Get usage metrics for a specific account */ getAccountUsage(accountId: string): Promise; /** * Get a list of accounts defined on the account * List accounts */ getAccountsRaw(requestParameters: GetAccountsRequest): Promise>>; /** * Get a list of accounts defined on the account * List accounts */ getAccounts(ids?: Array): Promise>; /** * Get details on the current account, as identified by the API key * Retrieve current account */ getCurrentAccountRaw(): Promise>; /** * Get details on the current account, as identified by the API key * Retrieve current account */ getCurrentAccount(): Promise; /** * Update the configuration of an account. * Update an account */ updateAccountRaw(requestParameters: UpdateAccountRequest): Promise>; /** * Update the configuration of an account. * Update an account */ updateAccount(accountId: string, accountMergePatch: AccountMergePatch): Promise; }