mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-03 07:01:35 -06:00
update API.
This commit is contained in:
+17
-5
@@ -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
@@ -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;
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user