update API.

This commit is contained in:
Miroslav Šedivý
2021-07-27 20:20:59 +02:00
parent 06e3c52e05
commit 5f02c51b3d
2 changed files with 67 additions and 20 deletions
+17 -5
View File
@@ -330,8 +330,8 @@ components:
type: array
items:
$ref: '#/components/schemas/RoomMount'
policies:
$ref: '#/components/schemas/Policies'
browser_policy:
$ref: '#/components/schemas/BrowserPolicy'
RoomStats:
type: object
@@ -363,13 +363,25 @@ components:
type: boolean
example: false
Policies:
BrowserPolicy:
type: object
properties:
type:
type: string
enum: [ firefox, chromium ]
path:
type: string
example: /home/neko/.mozilla/firefox/profile.default
content:
$ref: '#/components/schemas/BrowserPolicyContent'
BrowserPolicyContent:
type: object
properties:
extensions:
type: array
items:
$ref: '#/components/schemas/Extension'
$ref: '#/components/schemas/BrowserPolicyExtension'
developer_tools:
type: boolean
example: true
@@ -377,7 +389,7 @@ components:
type: boolean
example: false
Extension:
BrowserPolicyExtension:
type: object
properties:
id:
+50 -15
View File
@@ -24,47 +24,82 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
/**
*
* @export
* @interface Extension
* @interface BrowserPolicy
*/
export interface Extension {
export interface BrowserPolicy {
/**
*
* @type {string}
* @memberof Extension
* @memberof BrowserPolicy
*/
id?: string;
type?: BrowserPolicyTypeEnum;
/**
*
* @type {string}
* @memberof Extension
* @memberof BrowserPolicy
*/
url?: string;
path?: string;
/**
*
* @type {BrowserPolicyContent}
* @memberof BrowserPolicy
*/
content?: BrowserPolicyContent;
}
/**
* @export
* @enum {string}
*/
export enum BrowserPolicyTypeEnum {
firefox = 'firefox',
chromium = 'chromium'
}
/**
*
* @export
* @interface Policies
* @interface BrowserPolicyContent
*/
export interface Policies {
export interface BrowserPolicyContent {
/**
*
* @type {Array<Extension>}
* @memberof Policies
* @type {Array<BrowserPolicyExtension>}
* @memberof BrowserPolicyContent
*/
extensions?: Array<Extension>;
extensions?: Array<BrowserPolicyExtension>;
/**
*
* @type {boolean}
* @memberof Policies
* @memberof BrowserPolicyContent
*/
developer_tools?: boolean;
/**
*
* @type {boolean}
* @memberof Policies
* @memberof BrowserPolicyContent
*/
persistent_data?: boolean;
}
/**
*
* @export
* @interface BrowserPolicyExtension
*/
export interface BrowserPolicyExtension {
/**
*
* @type {string}
* @memberof BrowserPolicyExtension
*/
id?: string;
/**
*
* @type {string}
* @memberof BrowserPolicyExtension
*/
url?: string;
}
/**
*
* @export
@@ -291,10 +326,10 @@ export interface RoomSettings {
mounts?: Array<RoomMount>;
/**
*
* @type {Policies}
* @type {BrowserPolicy}
* @memberof RoomSettings
*/
policies?: Policies;
browser_policy?: BrowserPolicy;
}
/**
*