/** * Section API * Get edgey with the Section API * * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { AccountUser } from '../models'; import { AccountUserActionResult } from '../models'; import { AccountUserInviteRequest } from '../models'; import { AccountUserUpdateParams } from '../models'; import { AccountUserUpdateResult } from '../models'; import { Totp } from '../models'; import { User } from '../models'; import { UserResendVerificationResult } from '../models'; /** * UserApi - axios parameter creator * @export */ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserGet: (accountId: number, userId: number, options?: any) => Promise; /** * Invite user to account * @param {AccountUserInviteRequest} body Invite user to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserInvitePost: (body: AccountUserInviteRequest, accountId: number, options?: any) => Promise; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserList: (accountId: number, options?: any) => Promise; /** * Invite user to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserRemove: (accountId: number, userId: number, options?: any) => Promise; /** * Update Account User for permissions changes * @param {AccountUserUpdateParams} body Updates the accountCapability for a specific user within a specific account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserUpdate: (body: AccountUserUpdateParams, accountId: number, userId: number, options?: any) => Promise; /** * Get current user details * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserGet: (options?: any) => Promise; /** * Update current user details * @param {User} body User details * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserPost: (body: User, options?: any) => Promise; /** * Generate and return a new 2FA (TOTP) token * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserTotpPost: (options?: any) => Promise; /** * Resend email verification * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserVerificationPost: (options?: any) => Promise; }; /** * UserApi - functional programming interface * @export */ export declare const UserApiFp: (configuration?: Configuration) => { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserGet(accountId: number, userId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Invite user to account * @param {AccountUserInviteRequest} body Invite user to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserInvitePost(body: AccountUserInviteRequest, accountId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserList(accountId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * Invite user to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserRemove(accountId: number, userId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Update Account User for permissions changes * @param {AccountUserUpdateParams} body Updates the accountCapability for a specific user within a specific account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserUpdate(body: AccountUserUpdateParams, accountId: number, userId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Get current user details * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserGet(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Update current user details * @param {User} body User details * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserPost(body: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Generate and return a new 2FA (TOTP) token * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserTotpPost(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Resend email verification * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserVerificationPost(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * UserApi - factory interface * @export */ export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserGet(accountId: number, userId: number, options?: any): AxiosPromise; /** * Invite user to account * @param {AccountUserInviteRequest} body Invite user to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserInvitePost(body: AccountUserInviteRequest, accountId: number, options?: any): AxiosPromise; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserList(accountId: number, options?: any): AxiosPromise>; /** * Invite user to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserRemove(accountId: number, userId: number, options?: any): AxiosPromise; /** * Update Account User for permissions changes * @param {AccountUserUpdateParams} body Updates the accountCapability for a specific user within a specific account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} */ accountUserUpdate(body: AccountUserUpdateParams, accountId: number, userId: number, options?: any): AxiosPromise; /** * Get current user details * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserGet(options?: any): AxiosPromise; /** * Update current user details * @param {User} body User details * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserPost(body: User, options?: any): AxiosPromise; /** * Generate and return a new 2FA (TOTP) token * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserTotpPost(options?: any): AxiosPromise; /** * Resend email verification * @param {*} [options] Override http request option. * @throws {RequiredError} */ currentUserVerificationPost(options?: any): AxiosPromise; }; /** * UserApi - object-oriented interface * @export * @class UserApi * @extends {BaseAPI} */ export declare class UserApi extends BaseAPI { /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ accountUserGet(accountId: number, userId: number, options?: any): Promise>; /** * Invite user to account * @param {AccountUserInviteRequest} body Invite user to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ accountUserInvitePost(body: AccountUserInviteRequest, accountId: number, options?: any): Promise>; /** * Gets list of users with permissions to account * @param {number} accountId The account identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ accountUserList(accountId: number, options?: any): Promise>; /** * Invite user to account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ accountUserRemove(accountId: number, userId: number, options?: any): Promise>; /** * Update Account User for permissions changes * @param {AccountUserUpdateParams} body Updates the accountCapability for a specific user within a specific account * @param {number} accountId The account identifier number * @param {number} userId The user identifier number * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ accountUserUpdate(body: AccountUserUpdateParams, accountId: number, userId: number, options?: any): Promise>; /** * Get current user details * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ currentUserGet(options?: any): Promise>; /** * Update current user details * @param {User} body User details * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ currentUserPost(body: User, options?: any): Promise>; /** * Generate and return a new 2FA (TOTP) token * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ currentUserTotpPost(options?: any): Promise>; /** * Resend email verification * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ currentUserVerificationPost(options?: any): Promise>; }