add openapi.

This commit is contained in:
Miroslav Šedivý 2022-07-16 20:51:16 +02:00
parent b5f16a24eb
commit 17be646493
31 changed files with 4078 additions and 0 deletions

4
src/component/api/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
wwwroot/*.js
node_modules
typings
dist

View File

@ -0,0 +1 @@
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm

View File

@ -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

View File

@ -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

View File

@ -0,0 +1 @@
6.0.0-SNAPSHOT

21
src/component/api/api.ts Normal file
View File

@ -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';

View File

@ -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<RequestArgs> => {
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<void>> {
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<void> {
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));
}
}

View File

@ -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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<void>> {
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<MemberData>> {
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<MemberProfile>> {
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<Array<MemberData>>> {
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<void>> {
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<void>> {
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<void>> {
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<void> {
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<MemberData> {
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<MemberProfile> {
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<Array<MemberData>> {
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<void> {
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<void> {
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<void> {
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));
}
}

File diff suppressed because it is too large Load Diff

View File

@ -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<RequestArgs> => {
// 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<RequestArgs> => {
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<RequestArgs> => {
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<SessionData>> {
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<void>> {
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<SessionData>> {
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<SessionData> {
return localVarFp.login(sessionLogin, options).then((request) => request(axios, basePath));
},
/**
*
* @summary logout
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
logout(options?: any): AxiosPromise<void> {
return localVarFp.logout(options).then((request) => request(axios, basePath));
},
/**
*
* @summary whoami
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
whoami(options?: any): AxiosPromise<SessionData> {
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));
}
}

71
src/component/api/base.ts Normal file
View File

@ -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);
}
}

138
src/component/api/common.ts Normal file
View File

@ -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 <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
return axios.request<T, R>(axiosRequestArgs);
};
}

View File

@ -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<string> | ((name: string) => string) | ((name: string) => Promise<string>);
username?: string;
password?: string;
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
basePath?: string;
baseOptions?: any;
formDataCtor?: new () => any;
}
export class Configuration {
/**
* parameter for apiKey security
* @param name security name
* @memberof Configuration
*/
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
/**
* 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<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
/**
* 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');
}
}

View File

@ -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";

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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'

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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<string>}
* @memberof MemberBulkUpdate
*/
'ids'?: Array<string>;
/**
*
* @type {MemberProfile}
* @memberof MemberBulkUpdate
*/
'profile'?: MemberProfile;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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; };
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}