/** * Webitel API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 24.04.0 * Contact: support@webitel.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { ApiLoginResponse } from '../api'; import { ApiUserinfo } from '../api'; /** * AuthApi - axios parameter creator * @export */ export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Signup new domain with superior access token * @param {string} [domain] domain name * @param {string} [username] username * @param {string} [password] user password * @param {Array} [scope] scope request control * @param {string} [certificate] license/certificate * @param {boolean} [mobile] OPTIONAL. Mobile device /login request ? * @param {*} [options] Override http request option. * @throws {RequiredError} */ signup: (domain?: string, username?: string, password?: string, scope?: Array, certificate?: string, mobile?: boolean, options?: any) => Promise; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} */ userInfo: (accessToken?: string, options?: any) => Promise; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} */ userInfo2: (accessToken?: string, options?: any) => Promise; }; /** * AuthApi - functional programming interface * @export */ export declare const AuthApiFp: (configuration?: Configuration) => { /** * * @summary Signup new domain with superior access token * @param {string} [domain] domain name * @param {string} [username] username * @param {string} [password] user password * @param {Array} [scope] scope request control * @param {string} [certificate] license/certificate * @param {boolean} [mobile] OPTIONAL. Mobile device /login request ? * @param {*} [options] Override http request option. * @throws {RequiredError} */ signup(domain?: string, username?: string, password?: string, scope?: Array, certificate?: string, mobile?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} */ userInfo(accessToken?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} */ userInfo2(accessToken?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AuthApi - factory interface * @export */ export declare const AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Signup new domain with superior access token * @param {string} [domain] domain name * @param {string} [username] username * @param {string} [password] user password * @param {Array} [scope] scope request control * @param {string} [certificate] license/certificate * @param {boolean} [mobile] OPTIONAL. Mobile device /login request ? * @param {*} [options] Override http request option. * @throws {RequiredError} */ signup(domain?: string, username?: string, password?: string, scope?: Array, certificate?: string, mobile?: boolean, options?: any): AxiosPromise; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} */ userInfo(accessToken?: string, options?: any): AxiosPromise; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} */ userInfo2(accessToken?: string, options?: any): AxiosPromise; }; /** * AuthApi - object-oriented interface * @export * @class AuthApi * @extends {BaseAPI} */ export declare class AuthApi extends BaseAPI { /** * * @summary Signup new domain with superior access token * @param {string} [domain] domain name * @param {string} [username] username * @param {string} [password] user password * @param {Array} [scope] scope request control * @param {string} [certificate] license/certificate * @param {boolean} [mobile] OPTIONAL. Mobile device /login request ? * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthApi */ signup(domain?: string, username?: string, password?: string, scope?: Array, certificate?: string, mobile?: boolean, options?: any): Promise>; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthApi */ userInfo(accessToken?: string, options?: any): Promise>; /** * * @summary The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User. * @param {string} [accessToken] string id_token = 2; * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthApi */ userInfo2(accessToken?: string, options?: any): Promise>; } //# sourceMappingURL=auth-api.d.ts.map