/** * EMIL AuthService * The EMIL AuthService API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * 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, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { ListWorkspacesResponseClass } from '../models'; import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models'; import { SwitchWorkspaceResponseClass } from '../models'; /** * WorkspacesApi - axios parameter creator * @export */ export declare const WorkspacesApiAxiosParamCreator: (configuration?: Configuration) => { /** * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination. * @summary List workspaces * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listWorkspaces: (authorization?: string, options?: AxiosRequestConfig) => Promise; /** * Switch to a different workspace and get new access and refresh tokens. * @summary Switch workspace * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {string} [cookie] HTTP only cookie that was sent during login * @param {*} [options] Override http request option. * @throws {RequiredError} */ switchWorkspace: (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig) => Promise; }; /** * WorkspacesApi - functional programming interface * @export */ export declare const WorkspacesApiFp: (configuration?: Configuration) => { /** * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination. * @summary List workspaces * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listWorkspaces(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Switch to a different workspace and get new access and refresh tokens. * @summary Switch workspace * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {string} [cookie] HTTP only cookie that was sent during login * @param {*} [options] Override http request option. * @throws {RequiredError} */ switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * WorkspacesApi - factory interface * @export */ export declare const WorkspacesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination. * @summary List workspaces * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listWorkspaces(authorization?: string, options?: any): AxiosPromise; /** * Switch to a different workspace and get new access and refresh tokens. * @summary Switch workspace * @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {string} [cookie] HTTP only cookie that was sent during login * @param {*} [options] Override http request option. * @throws {RequiredError} */ switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: any): AxiosPromise; }; /** * Request parameters for listWorkspaces operation in WorkspacesApi. * @export * @interface WorkspacesApiListWorkspacesRequest */ export interface WorkspacesApiListWorkspacesRequest { /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof WorkspacesApiListWorkspaces */ readonly authorization?: string; } /** * Request parameters for switchWorkspace operation in WorkspacesApi. * @export * @interface WorkspacesApiSwitchWorkspaceRequest */ export interface WorkspacesApiSwitchWorkspaceRequest { /** * * @type {SwitchWorkspaceRequestWithoutRefreshTokenDto} * @memberof WorkspacesApiSwitchWorkspace */ readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto; /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof WorkspacesApiSwitchWorkspace */ readonly authorization?: string; /** * HTTP only cookie that was sent during login * @type {string} * @memberof WorkspacesApiSwitchWorkspace */ readonly cookie?: string; } /** * WorkspacesApi - object-oriented interface * @export * @class WorkspacesApi * @extends {BaseAPI} */ export declare class WorkspacesApi extends BaseAPI { /** * Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination. * @summary List workspaces * @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WorkspacesApi */ listWorkspaces(requestParameters?: WorkspacesApiListWorkspacesRequest, options?: AxiosRequestConfig): Promise>; /** * Switch to a different workspace and get new access and refresh tokens. * @summary Switch workspace * @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WorkspacesApi */ switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig): Promise>; }