From 17be646493ed7ef84d15cff6d27a9f7ea516e2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 16 Jul 2022 20:51:16 +0200 Subject: [PATCH] add openapi. --- src/component/api/.gitignore | 4 + src/component/api/.npmignore | 1 + src/component/api/.openapi-generator-ignore | 23 + src/component/api/.openapi-generator/FILES | 30 + src/component/api/.openapi-generator/VERSION | 1 + src/component/api/api.ts | 21 + src/component/api/api/default-api.ts | 118 + src/component/api/api/members-api.ts | 633 ++++++ src/component/api/api/room-api.ts | 1973 +++++++++++++++++ src/component/api/api/session-api.ts | 271 +++ src/component/api/base.ts | 71 + src/component/api/common.ts | 138 ++ src/component/api/configuration.ts | 101 + src/component/api/index.ts | 18 + src/component/api/models/broadcast-status.ts | 36 + src/component/api/models/clipboard-text.ts | 36 + src/component/api/models/control-status.ts | 36 + src/component/api/models/error-message.ts | 30 + src/component/api/models/index.ts | 16 + src/component/api/models/keyboard-map.ts | 36 + .../api/models/keyboard-modifiers.ts | 36 + .../api/models/member-bulk-update.ts | 37 + src/component/api/models/member-create.ts | 43 + src/component/api/models/member-data.ts | 37 + src/component/api/models/member-password.ts | 30 + src/component/api/models/member-profile.ts | 90 + .../api/models/screen-configuration.ts | 42 + src/component/api/models/session-data.ts | 50 + src/component/api/models/session-login.ts | 36 + src/component/api/models/session-state.ts | 36 + src/component/api/models/settings.ts | 48 + 31 files changed, 4078 insertions(+) create mode 100644 src/component/api/.gitignore create mode 100644 src/component/api/.npmignore create mode 100644 src/component/api/.openapi-generator-ignore create mode 100644 src/component/api/.openapi-generator/FILES create mode 100644 src/component/api/.openapi-generator/VERSION create mode 100644 src/component/api/api.ts create mode 100644 src/component/api/api/default-api.ts create mode 100644 src/component/api/api/members-api.ts create mode 100644 src/component/api/api/room-api.ts create mode 100644 src/component/api/api/session-api.ts create mode 100644 src/component/api/base.ts create mode 100644 src/component/api/common.ts create mode 100644 src/component/api/configuration.ts create mode 100644 src/component/api/index.ts create mode 100644 src/component/api/models/broadcast-status.ts create mode 100644 src/component/api/models/clipboard-text.ts create mode 100644 src/component/api/models/control-status.ts create mode 100644 src/component/api/models/error-message.ts create mode 100644 src/component/api/models/index.ts create mode 100644 src/component/api/models/keyboard-map.ts create mode 100644 src/component/api/models/keyboard-modifiers.ts create mode 100644 src/component/api/models/member-bulk-update.ts create mode 100644 src/component/api/models/member-create.ts create mode 100644 src/component/api/models/member-data.ts create mode 100644 src/component/api/models/member-password.ts create mode 100644 src/component/api/models/member-profile.ts create mode 100644 src/component/api/models/screen-configuration.ts create mode 100644 src/component/api/models/session-data.ts create mode 100644 src/component/api/models/session-login.ts create mode 100644 src/component/api/models/session-state.ts create mode 100644 src/component/api/models/settings.ts diff --git a/src/component/api/.gitignore b/src/component/api/.gitignore new file mode 100644 index 00000000..149b5765 --- /dev/null +++ b/src/component/api/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/src/component/api/.npmignore b/src/component/api/.npmignore new file mode 100644 index 00000000..999d88df --- /dev/null +++ b/src/component/api/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/src/component/api/.openapi-generator-ignore b/src/component/api/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/src/component/api/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/src/component/api/.openapi-generator/FILES b/src/component/api/.openapi-generator/FILES new file mode 100644 index 00000000..76293770 --- /dev/null +++ b/src/component/api/.openapi-generator/FILES @@ -0,0 +1,30 @@ +.gitignore +.npmignore +.openapi-generator-ignore +api.ts +api/default-api.ts +api/members-api.ts +api/room-api.ts +api/session-api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts +models/broadcast-status.ts +models/clipboard-text.ts +models/control-status.ts +models/error-message.ts +models/index.ts +models/keyboard-map.ts +models/keyboard-modifiers.ts +models/member-bulk-update.ts +models/member-create.ts +models/member-data.ts +models/member-password.ts +models/member-profile.ts +models/screen-configuration.ts +models/session-data.ts +models/session-login.ts +models/session-state.ts +models/settings.ts diff --git a/src/component/api/.openapi-generator/VERSION b/src/component/api/.openapi-generator/VERSION new file mode 100644 index 00000000..5f68295f --- /dev/null +++ b/src/component/api/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.0.0-SNAPSHOT \ No newline at end of file diff --git a/src/component/api/api.ts b/src/component/api/api.ts new file mode 100644 index 00000000..ba9561d3 --- /dev/null +++ b/src/component/api/api.ts @@ -0,0 +1,21 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export * from './api/default-api'; +export * from './api/members-api'; +export * from './api/room-api'; +export * from './api/session-api'; + diff --git a/src/component/api/api/default-api.ts b/src/component/api/api/default-api.ts new file mode 100644 index 00000000..9781bdab --- /dev/null +++ b/src/component/api/api/default-api.ts @@ -0,0 +1,118 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +/** + * DefaultApi - axios parameter creator + * @export + */ +export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary healthcheck + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthcheck: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/health`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DefaultApi - functional programming interface + * @export + */ +export const DefaultApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) + return { + /** + * + * @summary healthcheck + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async healthcheck(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.healthcheck(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * DefaultApi - factory interface + * @export + */ +export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DefaultApiFp(configuration) + return { + /** + * + * @summary healthcheck + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + healthcheck(options?: any): AxiosPromise { + return localVarFp.healthcheck(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * DefaultApi - object-oriented interface + * @export + * @class DefaultApi + * @extends {BaseAPI} + */ +export class DefaultApi extends BaseAPI { + /** + * + * @summary healthcheck + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public healthcheck(options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).healthcheck(options).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/component/api/api/members-api.ts b/src/component/api/api/members-api.ts new file mode 100644 index 00000000..6bf418f9 --- /dev/null +++ b/src/component/api/api/members-api.ts @@ -0,0 +1,633 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { ErrorMessage } from '../models'; +// @ts-ignore +import { MemberBulkUpdate } from '../models'; +// @ts-ignore +import { MemberCreate } from '../models'; +// @ts-ignore +import { MemberData } from '../models'; +// @ts-ignore +import { MemberPassword } from '../models'; +// @ts-ignore +import { MemberProfile } from '../models'; +/** + * MembersApi - axios parameter creator + * @export + */ +export const MembersApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary bulk update members + * @param {MemberBulkUpdate} memberBulkUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersBulkUpdate: async (memberBulkUpdate: MemberBulkUpdate, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'memberBulkUpdate' is not null or undefined + assertParamExists('membersBulkUpdate', 'memberBulkUpdate', memberBulkUpdate) + const localVarPath = `/api/members_bulk/update`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(memberBulkUpdate, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary create new member + * @param {MemberCreate} memberCreate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersCreate: async (memberCreate: MemberCreate, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'memberCreate' is not null or undefined + assertParamExists('membersCreate', 'memberCreate', memberCreate) + const localVarPath = `/api/members`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(memberCreate, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get member\'s profile + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersGetProfile: async (memberId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'memberId' is not null or undefined + assertParamExists('membersGetProfile', 'memberId', memberId) + const localVarPath = `/api/members/{memberId}` + .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary list of members + * @param {number} [limit] + * @param {number} [offset] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersList: async (limit?: number, offset?: number, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/members`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary remove member + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersRemove: async (memberId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'memberId' is not null or undefined + assertParamExists('membersRemove', 'memberId', memberId) + const localVarPath = `/api/members/{memberId}` + .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary update member\'s password + * @param {string} memberId member identifier + * @param {MemberPassword} memberPassword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersUpdatePassword: async (memberId: string, memberPassword: MemberPassword, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'memberId' is not null or undefined + assertParamExists('membersUpdatePassword', 'memberId', memberId) + // verify required parameter 'memberPassword' is not null or undefined + assertParamExists('membersUpdatePassword', 'memberPassword', memberPassword) + const localVarPath = `/api/members/{memberId}/password` + .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(memberPassword, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary update member\'s profile + * @param {string} memberId member identifier + * @param {MemberProfile} memberProfile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersUpdateProfile: async (memberId: string, memberProfile: MemberProfile, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'memberId' is not null or undefined + assertParamExists('membersUpdateProfile', 'memberId', memberId) + // verify required parameter 'memberProfile' is not null or undefined + assertParamExists('membersUpdateProfile', 'memberProfile', memberProfile) + const localVarPath = `/api/members/{memberId}` + .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(memberProfile, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * MembersApi - functional programming interface + * @export + */ +export const MembersApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MembersApiAxiosParamCreator(configuration) + return { + /** + * + * @summary bulk update members + * @param {MemberBulkUpdate} memberBulkUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async membersBulkUpdate(memberBulkUpdate: MemberBulkUpdate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.membersBulkUpdate(memberBulkUpdate, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary create new member + * @param {MemberCreate} memberCreate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async membersCreate(memberCreate: MemberCreate, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.membersCreate(memberCreate, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get member\'s profile + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async membersGetProfile(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.membersGetProfile(memberId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary list of members + * @param {number} [limit] + * @param {number} [offset] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async membersList(limit?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.membersList(limit, offset, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary remove member + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async membersRemove(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.membersRemove(memberId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary update member\'s password + * @param {string} memberId member identifier + * @param {MemberPassword} memberPassword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async membersUpdatePassword(memberId: string, memberPassword: MemberPassword, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.membersUpdatePassword(memberId, memberPassword, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary update member\'s profile + * @param {string} memberId member identifier + * @param {MemberProfile} memberProfile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async membersUpdateProfile(memberId: string, memberProfile: MemberProfile, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.membersUpdateProfile(memberId, memberProfile, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * MembersApi - factory interface + * @export + */ +export const MembersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MembersApiFp(configuration) + return { + /** + * + * @summary bulk update members + * @param {MemberBulkUpdate} memberBulkUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersBulkUpdate(memberBulkUpdate: MemberBulkUpdate, options?: any): AxiosPromise { + return localVarFp.membersBulkUpdate(memberBulkUpdate, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary create new member + * @param {MemberCreate} memberCreate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersCreate(memberCreate: MemberCreate, options?: any): AxiosPromise { + return localVarFp.membersCreate(memberCreate, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get member\'s profile + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersGetProfile(memberId: string, options?: any): AxiosPromise { + return localVarFp.membersGetProfile(memberId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary list of members + * @param {number} [limit] + * @param {number} [offset] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersList(limit?: number, offset?: number, options?: any): AxiosPromise> { + return localVarFp.membersList(limit, offset, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary remove member + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersRemove(memberId: string, options?: any): AxiosPromise { + return localVarFp.membersRemove(memberId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary update member\'s password + * @param {string} memberId member identifier + * @param {MemberPassword} memberPassword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersUpdatePassword(memberId: string, memberPassword: MemberPassword, options?: any): AxiosPromise { + return localVarFp.membersUpdatePassword(memberId, memberPassword, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary update member\'s profile + * @param {string} memberId member identifier + * @param {MemberProfile} memberProfile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + membersUpdateProfile(memberId: string, memberProfile: MemberProfile, options?: any): AxiosPromise { + return localVarFp.membersUpdateProfile(memberId, memberProfile, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * MembersApi - object-oriented interface + * @export + * @class MembersApi + * @extends {BaseAPI} + */ +export class MembersApi extends BaseAPI { + /** + * + * @summary bulk update members + * @param {MemberBulkUpdate} memberBulkUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MembersApi + */ + public membersBulkUpdate(memberBulkUpdate: MemberBulkUpdate, options?: AxiosRequestConfig) { + return MembersApiFp(this.configuration).membersBulkUpdate(memberBulkUpdate, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary create new member + * @param {MemberCreate} memberCreate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MembersApi + */ + public membersCreate(memberCreate: MemberCreate, options?: AxiosRequestConfig) { + return MembersApiFp(this.configuration).membersCreate(memberCreate, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get member\'s profile + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MembersApi + */ + public membersGetProfile(memberId: string, options?: AxiosRequestConfig) { + return MembersApiFp(this.configuration).membersGetProfile(memberId, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary list of members + * @param {number} [limit] + * @param {number} [offset] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MembersApi + */ + public membersList(limit?: number, offset?: number, options?: AxiosRequestConfig) { + return MembersApiFp(this.configuration).membersList(limit, offset, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary remove member + * @param {string} memberId member identifier + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MembersApi + */ + public membersRemove(memberId: string, options?: AxiosRequestConfig) { + return MembersApiFp(this.configuration).membersRemove(memberId, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary update member\'s password + * @param {string} memberId member identifier + * @param {MemberPassword} memberPassword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MembersApi + */ + public membersUpdatePassword(memberId: string, memberPassword: MemberPassword, options?: AxiosRequestConfig) { + return MembersApiFp(this.configuration).membersUpdatePassword(memberId, memberPassword, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary update member\'s profile + * @param {string} memberId member identifier + * @param {MemberProfile} memberProfile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MembersApi + */ + public membersUpdateProfile(memberId: string, memberProfile: MemberProfile, options?: AxiosRequestConfig) { + return MembersApiFp(this.configuration).membersUpdateProfile(memberId, memberProfile, options).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/component/api/api/room-api.ts b/src/component/api/api/room-api.ts new file mode 100644 index 00000000..b2c2a054 --- /dev/null +++ b/src/component/api/api/room-api.ts @@ -0,0 +1,1973 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { BroadcastStatus } from '../models'; +// @ts-ignore +import { ClipboardText } from '../models'; +// @ts-ignore +import { ControlStatus } from '../models'; +// @ts-ignore +import { ErrorMessage } from '../models'; +// @ts-ignore +import { KeyboardMap } from '../models'; +// @ts-ignore +import { KeyboardModifiers } from '../models'; +// @ts-ignore +import { ScreenConfiguration } from '../models'; +// @ts-ignore +import { Settings } from '../models'; +/** + * RoomApi - axios parameter creator + * @export + */ +export const RoomApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary start broadcast + * @param {BroadcastStatus} broadcastStatus + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + boradcastStart: async (broadcastStatus: BroadcastStatus, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'broadcastStatus' is not null or undefined + assertParamExists('boradcastStart', 'broadcastStatus', broadcastStatus) + const localVarPath = `/api/room/broadcast/start`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(broadcastStatus, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary stop broadcast + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + boradcastStop: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/broadcast/stop`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get broadcast status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + broadcastStatus: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/broadcast`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get clipboard image content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clipboardGetImage: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/clipboard/image.png`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get clipboard rich-text or plain-text content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clipboardGetText: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/clipboard`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary set clipboard rich-text or plain-text content + * @param {ClipboardText} clipboardText + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clipboardSetText: async (clipboardText: ClipboardText, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'clipboardText' is not null or undefined + assertParamExists('clipboardSetText', 'clipboardText', clipboardText) + const localVarPath = `/api/room/clipboard`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(clipboardText, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary give control + * @param {string} sessionId session ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlGive: async (sessionId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'sessionId' is not null or undefined + assertParamExists('controlGive', 'sessionId', sessionId) + const localVarPath = `/api/room/control/give/{sessionId}` + .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary release control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlRelease: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/control/release`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary request control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlRequest: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/control/request`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary reset control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlReset: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/control/reset`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get control status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlStatus: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/control`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary take control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlTake: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/control/take`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get keyboard map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardMapGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/keyboard/map`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary set keyboard map + * @param {KeyboardMap} keyboardMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardMapSet: async (keyboardMap: KeyboardMap, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'keyboardMap' is not null or undefined + assertParamExists('keyboardMapSet', 'keyboardMap', keyboardMap) + const localVarPath = `/api/room/keyboard/map`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(keyboardMap, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get keyboard modifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardModifiersGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/keyboard/modifiers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary set keyboard modifiers + * @param {KeyboardModifiers} keyboardModifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardModifiersSet: async (keyboardModifiers: KeyboardModifiers, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'keyboardModifiers' is not null or undefined + assertParamExists('keyboardModifiersSet', 'keyboardModifiers', keyboardModifiers) + const localVarPath = `/api/room/keyboard/modifiers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(keyboardModifiers, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get screencast image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenCastImage: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/screen/cast.jpg`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get current screen configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenConfiguration: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/screen`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary change screen configuration + * @param {ScreenConfiguration} screenConfiguration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenConfigurationChange: async (screenConfiguration: ScreenConfiguration, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'screenConfiguration' is not null or undefined + assertParamExists('screenConfigurationChange', 'screenConfiguration', screenConfiguration) + const localVarPath = `/api/room/screen`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(screenConfiguration, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get list of all available screen configurations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenConfigurationsList: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/screen/configurations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get screenshot image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenShotImage: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/screen/shot.jpg`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary get settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsGet: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary set settings + * @param {Settings} settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsSet: async (settings: Settings, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'settings' is not null or undefined + assertParamExists('settingsSet', 'settings', settings) + const localVarPath = `/api/room/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(settings, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary upload file to a dialog + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadDialog: async (files?: Array, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/upload/dialog`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + if (files) { + files.forEach((element) => { + localVarFormParams.append('files', element as any); + }) + } + + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary close file chooser dialog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadDialogClose: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/upload/dialog`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary upload and drop file + * @param {number} [x] X coordinate of drop + * @param {number} [y] Y coordinate of drop + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadDrop: async (x?: number, y?: number, files?: Array, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/room/upload/drop`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + if (x !== undefined) { + localVarFormParams.append('x', x as any); + } + + if (y !== undefined) { + localVarFormParams.append('y', y as any); + } + if (files) { + files.forEach((element) => { + localVarFormParams.append('files', element as any); + }) + } + + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * RoomApi - functional programming interface + * @export + */ +export const RoomApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = RoomApiAxiosParamCreator(configuration) + return { + /** + * + * @summary start broadcast + * @param {BroadcastStatus} broadcastStatus + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async boradcastStart(broadcastStatus: BroadcastStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.boradcastStart(broadcastStatus, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary stop broadcast + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async boradcastStop(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.boradcastStop(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get broadcast status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async broadcastStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.broadcastStatus(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get clipboard image content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async clipboardGetImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.clipboardGetImage(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get clipboard rich-text or plain-text content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async clipboardGetText(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.clipboardGetText(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary set clipboard rich-text or plain-text content + * @param {ClipboardText} clipboardText + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async clipboardSetText(clipboardText: ClipboardText, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.clipboardSetText(clipboardText, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary give control + * @param {string} sessionId session ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async controlGive(sessionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.controlGive(sessionId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary release control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async controlRelease(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.controlRelease(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary request control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async controlRequest(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.controlRequest(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary reset control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async controlReset(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.controlReset(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get control status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async controlStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.controlStatus(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary take control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async controlTake(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.controlTake(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get keyboard map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async keyboardMapGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.keyboardMapGet(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary set keyboard map + * @param {KeyboardMap} keyboardMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async keyboardMapSet(keyboardMap: KeyboardMap, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.keyboardMapSet(keyboardMap, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get keyboard modifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async keyboardModifiersGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.keyboardModifiersGet(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary set keyboard modifiers + * @param {KeyboardModifiers} keyboardModifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async keyboardModifiersSet(keyboardModifiers: KeyboardModifiers, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.keyboardModifiersSet(keyboardModifiers, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get screencast image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async screenCastImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.screenCastImage(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get current screen configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async screenConfiguration(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.screenConfiguration(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary change screen configuration + * @param {ScreenConfiguration} screenConfiguration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async screenConfigurationChange(screenConfiguration: ScreenConfiguration, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.screenConfigurationChange(screenConfiguration, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get list of all available screen configurations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async screenConfigurationsList(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.screenConfigurationsList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get screenshot image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async screenShotImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.screenShotImage(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary get settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async settingsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.settingsGet(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary set settings + * @param {Settings} settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async settingsSet(settings: Settings, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.settingsSet(settings, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary upload file to a dialog + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async uploadDialog(files?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDialog(files, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary close file chooser dialog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async uploadDialogClose(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDialogClose(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary upload and drop file + * @param {number} [x] X coordinate of drop + * @param {number} [y] Y coordinate of drop + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async uploadDrop(x?: number, y?: number, files?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDrop(x, y, files, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * RoomApi - factory interface + * @export + */ +export const RoomApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = RoomApiFp(configuration) + return { + /** + * + * @summary start broadcast + * @param {BroadcastStatus} broadcastStatus + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + boradcastStart(broadcastStatus: BroadcastStatus, options?: any): AxiosPromise { + return localVarFp.boradcastStart(broadcastStatus, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary stop broadcast + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + boradcastStop(options?: any): AxiosPromise { + return localVarFp.boradcastStop(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get broadcast status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + broadcastStatus(options?: any): AxiosPromise { + return localVarFp.broadcastStatus(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get clipboard image content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clipboardGetImage(options?: any): AxiosPromise { + return localVarFp.clipboardGetImage(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get clipboard rich-text or plain-text content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clipboardGetText(options?: any): AxiosPromise { + return localVarFp.clipboardGetText(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary set clipboard rich-text or plain-text content + * @param {ClipboardText} clipboardText + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + clipboardSetText(clipboardText: ClipboardText, options?: any): AxiosPromise { + return localVarFp.clipboardSetText(clipboardText, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary give control + * @param {string} sessionId session ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlGive(sessionId: string, options?: any): AxiosPromise { + return localVarFp.controlGive(sessionId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary release control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlRelease(options?: any): AxiosPromise { + return localVarFp.controlRelease(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary request control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlRequest(options?: any): AxiosPromise { + return localVarFp.controlRequest(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary reset control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlReset(options?: any): AxiosPromise { + return localVarFp.controlReset(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get control status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlStatus(options?: any): AxiosPromise { + return localVarFp.controlStatus(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary take control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + controlTake(options?: any): AxiosPromise { + return localVarFp.controlTake(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get keyboard map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardMapGet(options?: any): AxiosPromise { + return localVarFp.keyboardMapGet(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary set keyboard map + * @param {KeyboardMap} keyboardMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardMapSet(keyboardMap: KeyboardMap, options?: any): AxiosPromise { + return localVarFp.keyboardMapSet(keyboardMap, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get keyboard modifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardModifiersGet(options?: any): AxiosPromise { + return localVarFp.keyboardModifiersGet(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary set keyboard modifiers + * @param {KeyboardModifiers} keyboardModifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + keyboardModifiersSet(keyboardModifiers: KeyboardModifiers, options?: any): AxiosPromise { + return localVarFp.keyboardModifiersSet(keyboardModifiers, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get screencast image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenCastImage(options?: any): AxiosPromise { + return localVarFp.screenCastImage(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get current screen configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenConfiguration(options?: any): AxiosPromise { + return localVarFp.screenConfiguration(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary change screen configuration + * @param {ScreenConfiguration} screenConfiguration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenConfigurationChange(screenConfiguration: ScreenConfiguration, options?: any): AxiosPromise { + return localVarFp.screenConfigurationChange(screenConfiguration, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get list of all available screen configurations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenConfigurationsList(options?: any): AxiosPromise> { + return localVarFp.screenConfigurationsList(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get screenshot image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + screenShotImage(options?: any): AxiosPromise { + return localVarFp.screenShotImage(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary get settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsGet(options?: any): AxiosPromise { + return localVarFp.settingsGet(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary set settings + * @param {Settings} settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsSet(settings: Settings, options?: any): AxiosPromise { + return localVarFp.settingsSet(settings, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary upload file to a dialog + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadDialog(files?: Array, options?: any): AxiosPromise { + return localVarFp.uploadDialog(files, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary close file chooser dialog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadDialogClose(options?: any): AxiosPromise { + return localVarFp.uploadDialogClose(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary upload and drop file + * @param {number} [x] X coordinate of drop + * @param {number} [y] Y coordinate of drop + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + uploadDrop(x?: number, y?: number, files?: Array, options?: any): AxiosPromise { + return localVarFp.uploadDrop(x, y, files, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * RoomApi - object-oriented interface + * @export + * @class RoomApi + * @extends {BaseAPI} + */ +export class RoomApi extends BaseAPI { + /** + * + * @summary start broadcast + * @param {BroadcastStatus} broadcastStatus + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public boradcastStart(broadcastStatus: BroadcastStatus, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).boradcastStart(broadcastStatus, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary stop broadcast + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public boradcastStop(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).boradcastStop(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get broadcast status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public broadcastStatus(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).broadcastStatus(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get clipboard image content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public clipboardGetImage(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).clipboardGetImage(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get clipboard rich-text or plain-text content + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public clipboardGetText(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).clipboardGetText(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary set clipboard rich-text or plain-text content + * @param {ClipboardText} clipboardText + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public clipboardSetText(clipboardText: ClipboardText, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).clipboardSetText(clipboardText, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary give control + * @param {string} sessionId session ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public controlGive(sessionId: string, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).controlGive(sessionId, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary release control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public controlRelease(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).controlRelease(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary request control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public controlRequest(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).controlRequest(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary reset control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public controlReset(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).controlReset(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get control status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public controlStatus(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).controlStatus(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary take control + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public controlTake(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).controlTake(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get keyboard map + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public keyboardMapGet(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).keyboardMapGet(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary set keyboard map + * @param {KeyboardMap} keyboardMap + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public keyboardMapSet(keyboardMap: KeyboardMap, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).keyboardMapSet(keyboardMap, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get keyboard modifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public keyboardModifiersGet(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).keyboardModifiersGet(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary set keyboard modifiers + * @param {KeyboardModifiers} keyboardModifiers + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public keyboardModifiersSet(keyboardModifiers: KeyboardModifiers, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).keyboardModifiersSet(keyboardModifiers, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get screencast image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public screenCastImage(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).screenCastImage(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get current screen configuration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public screenConfiguration(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).screenConfiguration(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary change screen configuration + * @param {ScreenConfiguration} screenConfiguration + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public screenConfigurationChange(screenConfiguration: ScreenConfiguration, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).screenConfigurationChange(screenConfiguration, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get list of all available screen configurations + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public screenConfigurationsList(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).screenConfigurationsList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get screenshot image + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public screenShotImage(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).screenShotImage(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary get settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public settingsGet(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).settingsGet(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary set settings + * @param {Settings} settings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public settingsSet(settings: Settings, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).settingsSet(settings, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary upload file to a dialog + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public uploadDialog(files?: Array, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).uploadDialog(files, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary close file chooser dialog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public uploadDialogClose(options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).uploadDialogClose(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary upload and drop file + * @param {number} [x] X coordinate of drop + * @param {number} [y] Y coordinate of drop + * @param {Array} [files] files to be uploaded + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoomApi + */ + public uploadDrop(x?: number, y?: number, files?: Array, options?: AxiosRequestConfig) { + return RoomApiFp(this.configuration).uploadDrop(x, y, files, options).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/component/api/api/session-api.ts b/src/component/api/api/session-api.ts new file mode 100644 index 00000000..87d821ec --- /dev/null +++ b/src/component/api/api/session-api.ts @@ -0,0 +1,271 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import { Configuration } from '../configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { ErrorMessage } from '../models'; +// @ts-ignore +import { SessionData } from '../models'; +// @ts-ignore +import { SessionLogin } from '../models'; +/** + * SessionApi - axios parameter creator + * @export + */ +export const SessionApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary login + * @param {SessionLogin} sessionLogin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + login: async (sessionLogin: SessionLogin, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'sessionLogin' is not null or undefined + assertParamExists('login', 'sessionLogin', sessionLogin) + const localVarPath = `/api/login`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(sessionLogin, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary logout + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + logout: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/logout`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary whoami + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + whoami: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/api/whoami`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + // authentication CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * SessionApi - functional programming interface + * @export + */ +export const SessionApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = SessionApiAxiosParamCreator(configuration) + return { + /** + * + * @summary login + * @param {SessionLogin} sessionLogin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async login(sessionLogin: SessionLogin, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.login(sessionLogin, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary logout + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @summary whoami + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async whoami(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.whoami(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * SessionApi - factory interface + * @export + */ +export const SessionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = SessionApiFp(configuration) + return { + /** + * + * @summary login + * @param {SessionLogin} sessionLogin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + login(sessionLogin: SessionLogin, options?: any): AxiosPromise { + return localVarFp.login(sessionLogin, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary logout + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + logout(options?: any): AxiosPromise { + return localVarFp.logout(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary whoami + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + whoami(options?: any): AxiosPromise { + return localVarFp.whoami(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SessionApi - object-oriented interface + * @export + * @class SessionApi + * @extends {BaseAPI} + */ +export class SessionApi extends BaseAPI { + /** + * + * @summary login + * @param {SessionLogin} sessionLogin + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SessionApi + */ + public login(sessionLogin: SessionLogin, options?: AxiosRequestConfig) { + return SessionApiFp(this.configuration).login(sessionLogin, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary logout + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SessionApi + */ + public logout(options?: AxiosRequestConfig) { + return SessionApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary whoami + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SessionApi + */ + public whoami(options?: AxiosRequestConfig) { + return SessionApiFp(this.configuration).whoami(options).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/component/api/base.ts b/src/component/api/base.ts new file mode 100644 index 00000000..325446c1 --- /dev/null +++ b/src/component/api/base.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { Configuration } from "./configuration"; +// Some imports not used depending on template conditions +// @ts-ignore +import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; + +export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: AxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} diff --git a/src/component/api/common.ts b/src/component/api/common.ts new file mode 100644 index 00000000..562a3ced --- /dev/null +++ b/src/component/api/common.ts @@ -0,0 +1,138 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { Configuration } from "./configuration"; +import { RequiredError, RequestArgs } from "./base"; +import { AxiosInstance, AxiosResponse } from 'axios'; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + for (const object of objects) { + for (const key in object) { + if (Array.isArray(object[key])) { + searchParams.delete(key); + for (const item of object[key]) { + searchParams.append(key, item); + } + } else { + searchParams.set(key, object[key]); + } + } + } + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/src/component/api/configuration.ts b/src/component/api/configuration.ts new file mode 100644 index 00000000..788bde30 --- /dev/null +++ b/src/component/api/configuration.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} diff --git a/src/component/api/index.ts b/src/component/api/index.ts new file mode 100644 index 00000000..077cfecf --- /dev/null +++ b/src/component/api/index.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; +export * from "./models"; diff --git a/src/component/api/models/broadcast-status.ts b/src/component/api/models/broadcast-status.ts new file mode 100644 index 00000000..946bf17a --- /dev/null +++ b/src/component/api/models/broadcast-status.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BroadcastStatus + */ +export interface BroadcastStatus { + /** + * + * @type {string} + * @memberof BroadcastStatus + */ + 'url'?: string; + /** + * + * @type {boolean} + * @memberof BroadcastStatus + */ + 'is_active'?: boolean; +} + diff --git a/src/component/api/models/clipboard-text.ts b/src/component/api/models/clipboard-text.ts new file mode 100644 index 00000000..d60f0346 --- /dev/null +++ b/src/component/api/models/clipboard-text.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ClipboardText + */ +export interface ClipboardText { + /** + * + * @type {string} + * @memberof ClipboardText + */ + 'text'?: string; + /** + * + * @type {string} + * @memberof ClipboardText + */ + 'html'?: string; +} + diff --git a/src/component/api/models/control-status.ts b/src/component/api/models/control-status.ts new file mode 100644 index 00000000..d381754c --- /dev/null +++ b/src/component/api/models/control-status.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ControlStatus + */ +export interface ControlStatus { + /** + * + * @type {boolean} + * @memberof ControlStatus + */ + 'has_host'?: boolean; + /** + * + * @type {string} + * @memberof ControlStatus + */ + 'host_id'?: string; +} + diff --git a/src/component/api/models/error-message.ts b/src/component/api/models/error-message.ts new file mode 100644 index 00000000..abeb3de6 --- /dev/null +++ b/src/component/api/models/error-message.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ErrorMessage + */ +export interface ErrorMessage { + /** + * + * @type {string} + * @memberof ErrorMessage + */ + 'message'?: string; +} + diff --git a/src/component/api/models/index.ts b/src/component/api/models/index.ts new file mode 100644 index 00000000..06224169 --- /dev/null +++ b/src/component/api/models/index.ts @@ -0,0 +1,16 @@ +export * from './broadcast-status' +export * from './clipboard-text' +export * from './control-status' +export * from './error-message' +export * from './keyboard-map' +export * from './keyboard-modifiers' +export * from './member-bulk-update' +export * from './member-create' +export * from './member-data' +export * from './member-password' +export * from './member-profile' +export * from './screen-configuration' +export * from './session-data' +export * from './session-login' +export * from './session-state' +export * from './settings' diff --git a/src/component/api/models/keyboard-map.ts b/src/component/api/models/keyboard-map.ts new file mode 100644 index 00000000..6cb5a0e4 --- /dev/null +++ b/src/component/api/models/keyboard-map.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface KeyboardMap + */ +export interface KeyboardMap { + /** + * + * @type {string} + * @memberof KeyboardMap + */ + 'layout'?: string; + /** + * + * @type {string} + * @memberof KeyboardMap + */ + 'variant'?: string; +} + diff --git a/src/component/api/models/keyboard-modifiers.ts b/src/component/api/models/keyboard-modifiers.ts new file mode 100644 index 00000000..c12dc194 --- /dev/null +++ b/src/component/api/models/keyboard-modifiers.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface KeyboardModifiers + */ +export interface KeyboardModifiers { + /** + * + * @type {boolean} + * @memberof KeyboardModifiers + */ + 'numlock'?: boolean; + /** + * + * @type {boolean} + * @memberof KeyboardModifiers + */ + 'capslock'?: boolean; +} + diff --git a/src/component/api/models/member-bulk-update.ts b/src/component/api/models/member-bulk-update.ts new file mode 100644 index 00000000..17ffbcc7 --- /dev/null +++ b/src/component/api/models/member-bulk-update.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { MemberProfile } from './member-profile'; + +/** + * + * @export + * @interface MemberBulkUpdate + */ +export interface MemberBulkUpdate { + /** + * + * @type {Array} + * @memberof MemberBulkUpdate + */ + 'ids'?: Array; + /** + * + * @type {MemberProfile} + * @memberof MemberBulkUpdate + */ + 'profile'?: MemberProfile; +} + diff --git a/src/component/api/models/member-create.ts b/src/component/api/models/member-create.ts new file mode 100644 index 00000000..3e71df5d --- /dev/null +++ b/src/component/api/models/member-create.ts @@ -0,0 +1,43 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { MemberProfile } from './member-profile'; + +/** + * + * @export + * @interface MemberCreate + */ +export interface MemberCreate { + /** + * + * @type {string} + * @memberof MemberCreate + */ + 'username'?: string; + /** + * + * @type {string} + * @memberof MemberCreate + */ + 'password'?: string; + /** + * + * @type {MemberProfile} + * @memberof MemberCreate + */ + 'profile'?: MemberProfile; +} + diff --git a/src/component/api/models/member-data.ts b/src/component/api/models/member-data.ts new file mode 100644 index 00000000..5cf2ea38 --- /dev/null +++ b/src/component/api/models/member-data.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { MemberProfile } from './member-profile'; + +/** + * + * @export + * @interface MemberData + */ +export interface MemberData { + /** + * + * @type {string} + * @memberof MemberData + */ + 'id'?: string; + /** + * + * @type {MemberProfile} + * @memberof MemberData + */ + 'profile'?: MemberProfile; +} + diff --git a/src/component/api/models/member-password.ts b/src/component/api/models/member-password.ts new file mode 100644 index 00000000..53f3efca --- /dev/null +++ b/src/component/api/models/member-password.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MemberPassword + */ +export interface MemberPassword { + /** + * + * @type {string} + * @memberof MemberPassword + */ + 'password'?: string; +} + diff --git a/src/component/api/models/member-profile.ts b/src/component/api/models/member-profile.ts new file mode 100644 index 00000000..04866a8f --- /dev/null +++ b/src/component/api/models/member-profile.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface MemberProfile + */ +export interface MemberProfile { + /** + * + * @type {string} + * @memberof MemberProfile + */ + 'name'?: string; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'is_admin'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'can_login'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'can_connect'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'can_watch'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'can_host'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'can_share_media'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'can_access_clipboard'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'sends_inactive_cursor'?: boolean; + /** + * + * @type {boolean} + * @memberof MemberProfile + */ + 'can_see_inactive_cursors'?: boolean; + /** + * + * @type {{ [key: string]: any; }} + * @memberof MemberProfile + */ + 'plugins'?: { [key: string]: any; }; +} + diff --git a/src/component/api/models/screen-configuration.ts b/src/component/api/models/screen-configuration.ts new file mode 100644 index 00000000..1bc6204b --- /dev/null +++ b/src/component/api/models/screen-configuration.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface ScreenConfiguration + */ +export interface ScreenConfiguration { + /** + * + * @type {number} + * @memberof ScreenConfiguration + */ + 'width'?: number; + /** + * + * @type {number} + * @memberof ScreenConfiguration + */ + 'height'?: number; + /** + * + * @type {number} + * @memberof ScreenConfiguration + */ + 'rate'?: number; +} + diff --git a/src/component/api/models/session-data.ts b/src/component/api/models/session-data.ts new file mode 100644 index 00000000..3f70d4fb --- /dev/null +++ b/src/component/api/models/session-data.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { MemberProfile } from './member-profile'; +import { SessionState } from './session-state'; + +/** + * + * @export + * @interface SessionData + */ +export interface SessionData { + /** + * + * @type {string} + * @memberof SessionData + */ + 'id'?: string; + /** + * Only if cookie authentication is disabled. + * @type {string} + * @memberof SessionData + */ + 'token'?: string; + /** + * + * @type {MemberProfile} + * @memberof SessionData + */ + 'profile'?: MemberProfile; + /** + * + * @type {SessionState} + * @memberof SessionData + */ + 'state'?: SessionState; +} + diff --git a/src/component/api/models/session-login.ts b/src/component/api/models/session-login.ts new file mode 100644 index 00000000..accd29fa --- /dev/null +++ b/src/component/api/models/session-login.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SessionLogin + */ +export interface SessionLogin { + /** + * + * @type {string} + * @memberof SessionLogin + */ + 'username'?: string; + /** + * + * @type {string} + * @memberof SessionLogin + */ + 'password'?: string; +} + diff --git a/src/component/api/models/session-state.ts b/src/component/api/models/session-state.ts new file mode 100644 index 00000000..e9c0bf3e --- /dev/null +++ b/src/component/api/models/session-state.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SessionState + */ +export interface SessionState { + /** + * + * @type {boolean} + * @memberof SessionState + */ + 'is_connected'?: boolean; + /** + * + * @type {boolean} + * @memberof SessionState + */ + 'is_watching'?: boolean; +} + diff --git a/src/component/api/models/settings.ts b/src/component/api/models/settings.ts new file mode 100644 index 00000000..6d5d6fac --- /dev/null +++ b/src/component/api/models/settings.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface Settings + */ +export interface Settings { + /** + * + * @type {boolean} + * @memberof Settings + */ + 'private_mode'?: boolean; + /** + * + * @type {boolean} + * @memberof Settings + */ + 'implicit_hosting'?: boolean; + /** + * + * @type {boolean} + * @memberof Settings + */ + 'inactive_cursors'?: boolean; + /** + * + * @type {boolean} + * @memberof Settings + */ + 'merciful_reconnect'?: boolean; +} +