mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-24 13:40:57 +03:00
Merge pull request #218 from NotWoods/api-generator
Generate types from OpenAPI
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -66,4 +66,4 @@ backend/appdata/users.json
|
||||
backend/users/*
|
||||
backend/appdata/cookies.txt
|
||||
backend/public
|
||||
src/assets/i18n/*.json
|
||||
src/assets/i18n/*.json
|
||||
|
||||
1900
Public API v1.yaml
1900
Public API v1.yaml
File diff suppressed because it is too large
Load Diff
@@ -950,7 +950,7 @@ app.post('/api/restartServer', optionalJwt, (req, res) => {
|
||||
res.send({success: true});
|
||||
});
|
||||
|
||||
app.post('/api/getDBInfo', optionalJwt, async (req, res) => {
|
||||
app.get('/api/getDBInfo', optionalJwt, async (req, res) => {
|
||||
const db_info = await db_api.getDBStats();
|
||||
res.send({db_info: db_info});
|
||||
});
|
||||
@@ -1348,7 +1348,6 @@ app.post('/api/subscribe', optionalJwt, async (req, res) => {
|
||||
let url = req.body.url;
|
||||
let maxQuality = req.body.maxQuality;
|
||||
let timerange = req.body.timerange;
|
||||
let streamingOnly = req.body.streamingOnly;
|
||||
let audioOnly = req.body.audioOnly;
|
||||
let customArgs = req.body.customArgs;
|
||||
let customOutput = req.body.customFileOutput;
|
||||
@@ -1358,7 +1357,6 @@ app.post('/api/subscribe', optionalJwt, async (req, res) => {
|
||||
url: url,
|
||||
maxQuality: maxQuality,
|
||||
id: uuid(),
|
||||
streamingOnly: streamingOnly,
|
||||
user_uid: user_uid,
|
||||
type: audioOnly ? 'audio' : 'video'
|
||||
};
|
||||
@@ -1554,7 +1552,7 @@ app.post('/api/getPlaylists', optionalJwt, async (req, res) => {
|
||||
const uuid = req.isAuthenticated() ? req.user.uid : null;
|
||||
const include_categories = req.body.include_categories;
|
||||
|
||||
const playlists = await db_api.getRecords('playlists', {user_uid: uuid});
|
||||
let playlists = await db_api.getRecords('playlists', {user_uid: uuid});
|
||||
if (include_categories) {
|
||||
const categories = await categories_api.getCategoriesAsPlaylists(files);
|
||||
if (categories) {
|
||||
|
||||
104
package-lock.json
generated
104
package-lock.json
generated
@@ -9380,6 +9380,76 @@
|
||||
"is-wsl": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"openapi-typescript-codegen": {
|
||||
"version": "0.4.11",
|
||||
"resolved": "https://registry.npmjs.org/openapi-typescript-codegen/-/openapi-typescript-codegen-0.4.11.tgz",
|
||||
"integrity": "sha512-KWhJE4xlFXDd7sNyEiJeUx7+H1hqQ+WETzwrcXCE+CNR+pmfKkOH87fjPRUPu1TY3hSgDgZ6ex7F3lWLbirvMQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"camelcase": "6.0.0",
|
||||
"commander": "6.1.0",
|
||||
"handlebars": "4.7.6",
|
||||
"js-yaml": "3.14.0",
|
||||
"mkdirp": "1.0.4",
|
||||
"path": "0.12.7",
|
||||
"rimraf": "3.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"camelcase": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.0.0.tgz",
|
||||
"integrity": "sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==",
|
||||
"dev": true
|
||||
},
|
||||
"commander": {
|
||||
"version": "6.1.0",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-6.1.0.tgz",
|
||||
"integrity": "sha512-wl7PNrYWd2y5mp1OK/LhTlv8Ff4kQJQRXXAvF+uU/TPNiVJUxZLRYGj/B0y/lPGAVcSbJqH2Za/cvHmrPMC8mA==",
|
||||
"dev": true
|
||||
},
|
||||
"handlebars": {
|
||||
"version": "4.7.6",
|
||||
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.6.tgz",
|
||||
"integrity": "sha512-1f2BACcBfiwAfStCKZNrUCgqNZkGsAT7UM3kkYtXuLo0KnaVfjKOyf7PRzB6++aK9STyT1Pd2ZCPe3EGOXleXA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minimist": "^1.2.5",
|
||||
"neo-async": "^2.6.0",
|
||||
"source-map": "^0.6.1",
|
||||
"uglify-js": "^3.1.4",
|
||||
"wordwrap": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"js-yaml": {
|
||||
"version": "3.14.0",
|
||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz",
|
||||
"integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"argparse": "^1.0.7",
|
||||
"esprima": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
|
||||
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
||||
"dev": true
|
||||
},
|
||||
"source-map": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||
"dev": true
|
||||
},
|
||||
"wordwrap": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
||||
"integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"opn": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz",
|
||||
@@ -9885,6 +9955,33 @@
|
||||
"integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=",
|
||||
"dev": true
|
||||
},
|
||||
"path": {
|
||||
"version": "0.12.7",
|
||||
"resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz",
|
||||
"integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"process": "^0.11.1",
|
||||
"util": "^0.10.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"inherits": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
|
||||
"integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
|
||||
"dev": true
|
||||
},
|
||||
"util": {
|
||||
"version": "0.10.4",
|
||||
"resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz",
|
||||
"integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"inherits": "2.0.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"path-browserify": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz",
|
||||
@@ -13670,6 +13767,13 @@
|
||||
"integrity": "sha512-+O8/qh/Qj8CgC6eYBVBykMrNtp5Gebn4dlGD/kKXVkJNDwyrAwSIqwz8CDf+tsAIWVycKcku6gIXJ0qwx/ZXaQ==",
|
||||
"dev": true
|
||||
},
|
||||
"uglify-js": {
|
||||
"version": "3.14.2",
|
||||
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.2.tgz",
|
||||
"integrity": "sha512-rtPMlmcO4agTUfz10CbgJ1k6UAoXM2gWb3GoMPPZB/+/Ackf8lNWk11K4rYi2D0apgoFRLtQOZhb+/iGNJq26A==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"unicode-canonical-property-names-ecmascript": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz",
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e",
|
||||
"electron": "ng build --base-href ./ && electron ."
|
||||
"electron": "ng build --base-href ./ && electron .",
|
||||
"generate": "openapi --input ./\"Public API v1.yaml\" --output ./src/api-types --exportCore false --exportServices false --exportModels true",
|
||||
"prepare": "npm run generate"
|
||||
},
|
||||
"engines": {
|
||||
"node": "12.3.1",
|
||||
@@ -74,6 +76,7 @@
|
||||
"karma-coverage-istanbul-reporter": "~3.0.2",
|
||||
"karma-jasmine": "~4.0.0",
|
||||
"karma-jasmine-html-reporter": "^1.5.0",
|
||||
"openapi-typescript-codegen": "^0.4.11",
|
||||
"protractor": "~7.0.0",
|
||||
"ts-node": "~3.0.4",
|
||||
"tslint": "~6.1.0"
|
||||
|
||||
101
src/api-types/index.ts
Normal file
101
src/api-types/index.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type { AddFileToPlaylistRequest } from './models/AddFileToPlaylistRequest';
|
||||
export type { BaseChangePermissionsRequest } from './models/BaseChangePermissionsRequest';
|
||||
export type { body_19 } from './models/body_19';
|
||||
export type { body_20 } from './models/body_20';
|
||||
export type { Category } from './models/Category';
|
||||
export { CategoryRule } from './models/CategoryRule';
|
||||
export type { ChangeRolePermissionsRequest } from './models/ChangeRolePermissionsRequest';
|
||||
export type { ChangeUserPermissionsRequest } from './models/ChangeUserPermissionsRequest';
|
||||
export type { CheckConcurrentStreamRequest } from './models/CheckConcurrentStreamRequest';
|
||||
export type { CheckConcurrentStreamResponse } from './models/CheckConcurrentStreamResponse';
|
||||
export type { ConcurrentStream } from './models/ConcurrentStream';
|
||||
export type { Config } from './models/Config';
|
||||
export type { ConfigResponse } from './models/ConfigResponse';
|
||||
export type { CreateCategoryRequest } from './models/CreateCategoryRequest';
|
||||
export type { CreateCategoryResponse } from './models/CreateCategoryResponse';
|
||||
export type { CreatePlaylistRequest } from './models/CreatePlaylistRequest';
|
||||
export type { CreatePlaylistResponse } from './models/CreatePlaylistResponse';
|
||||
export type { CropFileSettings } from './models/CropFileSettings';
|
||||
export type { DatabaseFile } from './models/DatabaseFile';
|
||||
export type { DBInfoResponse } from './models/DBInfoResponse';
|
||||
export type { DeleteCategoryRequest } from './models/DeleteCategoryRequest';
|
||||
export type { DeleteMp3Mp4Request } from './models/DeleteMp3Mp4Request';
|
||||
export type { DeletePlaylistRequest } from './models/DeletePlaylistRequest';
|
||||
export type { DeleteSubscriptionFileRequest } from './models/DeleteSubscriptionFileRequest';
|
||||
export type { DeleteUserRequest } from './models/DeleteUserRequest';
|
||||
export type { Download } from './models/Download';
|
||||
export type { DownloadArchiveRequest } from './models/DownloadArchiveRequest';
|
||||
export type { DownloadFileRequest } from './models/DownloadFileRequest';
|
||||
export type { DownloadRequest } from './models/DownloadRequest';
|
||||
export type { DownloadResponse } from './models/DownloadResponse';
|
||||
export type { DownloadTwitchChatByVODIDRequest } from './models/DownloadTwitchChatByVODIDRequest';
|
||||
export type { DownloadTwitchChatByVODIDResponse } from './models/DownloadTwitchChatByVODIDResponse';
|
||||
export type { DownloadVideosForSubscriptionRequest } from './models/DownloadVideosForSubscriptionRequest';
|
||||
export type { File } from './models/File';
|
||||
export { FileType } from './models/FileType';
|
||||
export type { GenerateArgsResponse } from './models/GenerateArgsResponse';
|
||||
export type { GenerateNewApiKeyResponse } from './models/GenerateNewApiKeyResponse';
|
||||
export type { GetAllCategoriesResponse } from './models/GetAllCategoriesResponse';
|
||||
export type { GetAllDownloadsRequest } from './models/GetAllDownloadsRequest';
|
||||
export type { GetAllDownloadsResponse } from './models/GetAllDownloadsResponse';
|
||||
export type { GetAllFilesResponse } from './models/GetAllFilesResponse';
|
||||
export type { GetAllSubscriptionsResponse } from './models/GetAllSubscriptionsResponse';
|
||||
export type { GetDownloadRequest } from './models/GetDownloadRequest';
|
||||
export type { GetDownloadResponse } from './models/GetDownloadResponse';
|
||||
export type { GetFileFormatsRequest } from './models/GetFileFormatsRequest';
|
||||
export type { GetFileFormatsResponse } from './models/GetFileFormatsResponse';
|
||||
export type { GetFileRequest } from './models/GetFileRequest';
|
||||
export type { GetFileResponse } from './models/GetFileResponse';
|
||||
export type { GetFullTwitchChatRequest } from './models/GetFullTwitchChatRequest';
|
||||
export type { GetFullTwitchChatResponse } from './models/GetFullTwitchChatResponse';
|
||||
export type { GetLogsRequest } from './models/GetLogsRequest';
|
||||
export type { GetLogsResponse } from './models/GetLogsResponse';
|
||||
export type { GetMp3sResponse } from './models/GetMp3sResponse';
|
||||
export type { GetMp4sResponse } from './models/GetMp4sResponse';
|
||||
export type { GetPlaylistRequest } from './models/GetPlaylistRequest';
|
||||
export type { GetPlaylistResponse } from './models/GetPlaylistResponse';
|
||||
export type { GetPlaylistsRequest } from './models/GetPlaylistsRequest';
|
||||
export type { GetPlaylistsResponse } from './models/GetPlaylistsResponse';
|
||||
export type { GetRolesResponse } from './models/GetRolesResponse';
|
||||
export type { GetSubscriptionRequest } from './models/GetSubscriptionRequest';
|
||||
export type { GetSubscriptionResponse } from './models/GetSubscriptionResponse';
|
||||
export type { GetUsersResponse } from './models/GetUsersResponse';
|
||||
export type { IncrementViewCountRequest } from './models/IncrementViewCountRequest';
|
||||
export type { inline_response_200_15 } from './models/inline_response_200_15';
|
||||
export type { LoginRequest } from './models/LoginRequest';
|
||||
export type { LoginResponse } from './models/LoginResponse';
|
||||
export type { Playlist } from './models/Playlist';
|
||||
export type { RegisterRequest } from './models/RegisterRequest';
|
||||
export type { RegisterResponse } from './models/RegisterResponse';
|
||||
export type { SetConfigRequest } from './models/SetConfigRequest';
|
||||
export type { SharingToggle } from './models/SharingToggle';
|
||||
export type { SubscribeRequest } from './models/SubscribeRequest';
|
||||
export type { SubscribeResponse } from './models/SubscribeResponse';
|
||||
export type { Subscription } from './models/Subscription';
|
||||
export type { SubscriptionRequestData } from './models/SubscriptionRequestData';
|
||||
export type { SuccessObject } from './models/SuccessObject';
|
||||
export type { TableInfo } from './models/TableInfo';
|
||||
export type { TestConnectionStringRequest } from './models/TestConnectionStringRequest';
|
||||
export type { TestConnectionStringResponse } from './models/TestConnectionStringResponse';
|
||||
export type { TransferDBRequest } from './models/TransferDBRequest';
|
||||
export type { TransferDBResponse } from './models/TransferDBResponse';
|
||||
export type { TwitchChatMessage } from './models/TwitchChatMessage';
|
||||
export type { UnsubscribeRequest } from './models/UnsubscribeRequest';
|
||||
export type { UnsubscribeResponse } from './models/UnsubscribeResponse';
|
||||
export type { UpdateCategoriesRequest } from './models/UpdateCategoriesRequest';
|
||||
export type { UpdateCategoryRequest } from './models/UpdateCategoryRequest';
|
||||
export type { UpdateConcurrentStreamRequest } from './models/UpdateConcurrentStreamRequest';
|
||||
export type { UpdateConcurrentStreamResponse } from './models/UpdateConcurrentStreamResponse';
|
||||
export type { UpdatePlaylistRequest } from './models/UpdatePlaylistRequest';
|
||||
export type { UpdaterStatus } from './models/UpdaterStatus';
|
||||
export type { UpdateServerRequest } from './models/UpdateServerRequest';
|
||||
export type { UpdateUserRequest } from './models/UpdateUserRequest';
|
||||
export type { User } from './models/User';
|
||||
export { UserPermission } from './models/UserPermission';
|
||||
export type { Version } from './models/Version';
|
||||
export type { VersionInfoResponse } from './models/VersionInfoResponse';
|
||||
export { YesNo } from './models/YesNo';
|
||||
9
src/api-types/models/AddFileToPlaylistRequest.ts
Normal file
9
src/api-types/models/AddFileToPlaylistRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface AddFileToPlaylistRequest {
|
||||
file_uid: string;
|
||||
playlist_id: string;
|
||||
}
|
||||
11
src/api-types/models/BaseChangePermissionsRequest.ts
Normal file
11
src/api-types/models/BaseChangePermissionsRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { UserPermission } from './UserPermission';
|
||||
import { YesNo } from './YesNo';
|
||||
|
||||
export interface BaseChangePermissionsRequest {
|
||||
permission: UserPermission;
|
||||
new_value: YesNo;
|
||||
}
|
||||
15
src/api-types/models/Category.ts
Normal file
15
src/api-types/models/Category.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { CategoryRule } from './CategoryRule';
|
||||
|
||||
export interface Category {
|
||||
name?: string;
|
||||
uid?: string;
|
||||
rules?: Array<CategoryRule>;
|
||||
/**
|
||||
* Overrides file output for downloaded files in category
|
||||
*/
|
||||
custom_output?: string;
|
||||
}
|
||||
26
src/api-types/models/CategoryRule.ts
Normal file
26
src/api-types/models/CategoryRule.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface CategoryRule {
|
||||
preceding_operator?: CategoryRule.preceding_operator;
|
||||
comparator?: CategoryRule.comparator;
|
||||
}
|
||||
|
||||
export namespace CategoryRule {
|
||||
|
||||
export enum preceding_operator {
|
||||
OR = 'or',
|
||||
AND = 'and',
|
||||
}
|
||||
|
||||
export enum comparator {
|
||||
INCLUDES = 'includes',
|
||||
NOT_INCLUDES = 'not_includes',
|
||||
EQUALS = 'equals',
|
||||
NOT_EQUALS = 'not_equals',
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
9
src/api-types/models/ChangeRolePermissionsRequest.ts
Normal file
9
src/api-types/models/ChangeRolePermissionsRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
|
||||
|
||||
export interface ChangeRolePermissionsRequest extends BaseChangePermissionsRequest {
|
||||
role: string;
|
||||
}
|
||||
9
src/api-types/models/ChangeUserPermissionsRequest.ts
Normal file
9
src/api-types/models/ChangeUserPermissionsRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
|
||||
|
||||
export interface ChangeUserPermissionsRequest extends BaseChangePermissionsRequest {
|
||||
user_uid: string;
|
||||
}
|
||||
11
src/api-types/models/CheckConcurrentStreamRequest.ts
Normal file
11
src/api-types/models/CheckConcurrentStreamRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface CheckConcurrentStreamRequest {
|
||||
/**
|
||||
* UID of the concurrent stream
|
||||
*/
|
||||
uid: string;
|
||||
}
|
||||
9
src/api-types/models/CheckConcurrentStreamResponse.ts
Normal file
9
src/api-types/models/CheckConcurrentStreamResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { ConcurrentStream } from './ConcurrentStream';
|
||||
|
||||
export interface CheckConcurrentStreamResponse {
|
||||
stream: ConcurrentStream;
|
||||
}
|
||||
10
src/api-types/models/ConcurrentStream.ts
Normal file
10
src/api-types/models/ConcurrentStream.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface ConcurrentStream {
|
||||
playback_timestamp?: number;
|
||||
unix_timestamp?: number;
|
||||
playing?: boolean;
|
||||
}
|
||||
8
src/api-types/models/Config.ts
Normal file
8
src/api-types/models/Config.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface Config {
|
||||
YoutubeDLMaterial: any;
|
||||
}
|
||||
10
src/api-types/models/ConfigResponse.ts
Normal file
10
src/api-types/models/ConfigResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Config } from './Config';
|
||||
|
||||
export interface ConfigResponse {
|
||||
config_file: Config;
|
||||
success: boolean;
|
||||
}
|
||||
8
src/api-types/models/CreateCategoryRequest.ts
Normal file
8
src/api-types/models/CreateCategoryRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface CreateCategoryRequest {
|
||||
name: string;
|
||||
}
|
||||
10
src/api-types/models/CreateCategoryResponse.ts
Normal file
10
src/api-types/models/CreateCategoryResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface CreateCategoryResponse {
|
||||
new_category?: Category;
|
||||
success?: boolean;
|
||||
}
|
||||
12
src/api-types/models/CreatePlaylistRequest.ts
Normal file
12
src/api-types/models/CreatePlaylistRequest.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface CreatePlaylistRequest {
|
||||
playlistName: string;
|
||||
uids: Array<string>;
|
||||
type: FileType;
|
||||
thumbnailURL: string;
|
||||
}
|
||||
10
src/api-types/models/CreatePlaylistResponse.ts
Normal file
10
src/api-types/models/CreatePlaylistResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Playlist } from './Playlist';
|
||||
|
||||
export interface CreatePlaylistResponse {
|
||||
new_playlist: Playlist;
|
||||
success: boolean;
|
||||
}
|
||||
9
src/api-types/models/CropFileSettings.ts
Normal file
9
src/api-types/models/CropFileSettings.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface CropFileSettings {
|
||||
cropFileStart: number;
|
||||
cropFileEnd: number;
|
||||
}
|
||||
18
src/api-types/models/DBInfoResponse.ts
Normal file
18
src/api-types/models/DBInfoResponse.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { TableInfo } from './TableInfo';
|
||||
|
||||
export interface DBInfoResponse {
|
||||
using_local_db?: boolean;
|
||||
stats_by_table?: {
|
||||
files?: TableInfo,
|
||||
playlists?: TableInfo,
|
||||
categories?: TableInfo,
|
||||
subscriptions?: TableInfo,
|
||||
users?: TableInfo,
|
||||
roles?: TableInfo,
|
||||
download_queue?: TableInfo,
|
||||
};
|
||||
}
|
||||
22
src/api-types/models/DatabaseFile.ts
Normal file
22
src/api-types/models/DatabaseFile.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DatabaseFile {
|
||||
id: string;
|
||||
title: string;
|
||||
thumbnailURL: string;
|
||||
isAudio: boolean;
|
||||
/**
|
||||
* In seconds
|
||||
*/
|
||||
duration: number;
|
||||
url: string;
|
||||
uploader: string;
|
||||
size: number;
|
||||
path: string;
|
||||
upload_date: string;
|
||||
uid: string;
|
||||
sharingEnabled?: boolean;
|
||||
}
|
||||
8
src/api-types/models/DeleteCategoryRequest.ts
Normal file
8
src/api-types/models/DeleteCategoryRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DeleteCategoryRequest {
|
||||
category_uid: string;
|
||||
}
|
||||
9
src/api-types/models/DeleteMp3Mp4Request.ts
Normal file
9
src/api-types/models/DeleteMp3Mp4Request.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DeleteMp3Mp4Request {
|
||||
uid: string;
|
||||
blacklistMode?: boolean;
|
||||
}
|
||||
10
src/api-types/models/DeletePlaylistRequest.ts
Normal file
10
src/api-types/models/DeletePlaylistRequest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface DeletePlaylistRequest {
|
||||
playlist_id: string;
|
||||
type: FileType;
|
||||
}
|
||||
15
src/api-types/models/DeleteSubscriptionFileRequest.ts
Normal file
15
src/api-types/models/DeleteSubscriptionFileRequest.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { SubscriptionRequestData } from './SubscriptionRequestData';
|
||||
|
||||
export interface DeleteSubscriptionFileRequest {
|
||||
file: string;
|
||||
file_uid?: string;
|
||||
sub: SubscriptionRequestData;
|
||||
/**
|
||||
* If true, does not remove id from archive. Only valid if youtube-dl archive is enabled in settings.
|
||||
*/
|
||||
deleteForever?: boolean;
|
||||
}
|
||||
8
src/api-types/models/DeleteUserRequest.ts
Normal file
8
src/api-types/models/DeleteUserRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DeleteUserRequest {
|
||||
uid: string;
|
||||
}
|
||||
7
src/api-types/models/Dictionary.ts
Normal file
7
src/api-types/models/Dictionary.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
export type Dictionary<T> = {
|
||||
[key: string]: T;
|
||||
}
|
||||
26
src/api-types/models/Download.ts
Normal file
26
src/api-types/models/Download.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface Download {
|
||||
uid: string;
|
||||
ui_uid?: string;
|
||||
running: boolean;
|
||||
finished: boolean;
|
||||
paused: boolean;
|
||||
finished_step: boolean;
|
||||
url: string;
|
||||
type: string;
|
||||
title: string;
|
||||
step_index: number;
|
||||
percent_complete: number;
|
||||
timestamp_start: number;
|
||||
/**
|
||||
* Error text, set if download fails.
|
||||
*/
|
||||
error?: string | null;
|
||||
user_uid?: string;
|
||||
sub_id?: string;
|
||||
sub_name?: string;
|
||||
}
|
||||
10
src/api-types/models/DownloadArchiveRequest.ts
Normal file
10
src/api-types/models/DownloadArchiveRequest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DownloadArchiveRequest {
|
||||
sub: {
|
||||
archive_dir: string,
|
||||
};
|
||||
}
|
||||
11
src/api-types/models/DownloadFileRequest.ts
Normal file
11
src/api-types/models/DownloadFileRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DownloadFileRequest {
|
||||
uid?: string;
|
||||
uuid?: string;
|
||||
sub_id?: string;
|
||||
playlist_id?: string;
|
||||
}
|
||||
44
src/api-types/models/DownloadRequest.ts
Normal file
44
src/api-types/models/DownloadRequest.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { CropFileSettings } from './CropFileSettings';
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface DownloadRequest {
|
||||
url: string;
|
||||
/**
|
||||
* Video format code. Overrides other quality options.
|
||||
*/
|
||||
customQualityConfiguration?: string;
|
||||
/**
|
||||
* Custom command-line arguments for youtube-dl. Overrides all other options, except url.
|
||||
*/
|
||||
customArgs?: string;
|
||||
/**
|
||||
* Additional command-line arguments for youtube-dl. Added to whatever args would normally be used.
|
||||
*/
|
||||
additionalArgs?: string;
|
||||
/**
|
||||
* Custom output filename template.
|
||||
*/
|
||||
customOutput?: string;
|
||||
/**
|
||||
* Login with this account ID
|
||||
*/
|
||||
youtubeUsername?: string;
|
||||
/**
|
||||
* Account password
|
||||
*/
|
||||
youtubePassword?: string;
|
||||
/**
|
||||
* Height of the video, if known
|
||||
*/
|
||||
selectedHeight?: string;
|
||||
/**
|
||||
* Specify ffmpeg/avconv audio quality
|
||||
*/
|
||||
maxBitrate?: string;
|
||||
type?: FileType;
|
||||
cropFileSettings?: CropFileSettings;
|
||||
}
|
||||
9
src/api-types/models/DownloadResponse.ts
Normal file
9
src/api-types/models/DownloadResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Download } from './Download';
|
||||
|
||||
export interface DownloadResponse {
|
||||
download?: Download | null;
|
||||
}
|
||||
26
src/api-types/models/DownloadTwitchChatByVODIDRequest.ts
Normal file
26
src/api-types/models/DownloadTwitchChatByVODIDRequest.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
import { Subscription } from './Subscription';
|
||||
|
||||
export interface DownloadTwitchChatByVODIDRequest {
|
||||
/**
|
||||
* File ID
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* ID of the VOD
|
||||
*/
|
||||
vodId: string;
|
||||
type: FileType;
|
||||
/**
|
||||
* User UID
|
||||
*/
|
||||
uuid?: string;
|
||||
/**
|
||||
* Subscription
|
||||
*/
|
||||
sub?: Subscription;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { TwitchChatMessage } from './TwitchChatMessage';
|
||||
|
||||
export interface DownloadTwitchChatByVODIDResponse {
|
||||
chat: Array<TwitchChatMessage>;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface DownloadVideosForSubscriptionRequest {
|
||||
subID: string;
|
||||
}
|
||||
8
src/api-types/models/File.ts
Normal file
8
src/api-types/models/File.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface File {
|
||||
id?: string;
|
||||
}
|
||||
9
src/api-types/models/FileType.ts
Normal file
9
src/api-types/models/FileType.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export enum FileType {
|
||||
AUDIO = 'audio',
|
||||
VIDEO = 'video',
|
||||
}
|
||||
8
src/api-types/models/GenerateArgsResponse.ts
Normal file
8
src/api-types/models/GenerateArgsResponse.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GenerateArgsResponse {
|
||||
args?: Array<string>;
|
||||
}
|
||||
8
src/api-types/models/GenerateNewApiKeyResponse.ts
Normal file
8
src/api-types/models/GenerateNewApiKeyResponse.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GenerateNewApiKeyResponse {
|
||||
new_api_key: string;
|
||||
}
|
||||
9
src/api-types/models/GetAllCategoriesResponse.ts
Normal file
9
src/api-types/models/GetAllCategoriesResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface GetAllCategoriesResponse {
|
||||
categories: Array<Category>;
|
||||
}
|
||||
11
src/api-types/models/GetAllDownloadsRequest.ts
Normal file
11
src/api-types/models/GetAllDownloadsRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetAllDownloadsRequest {
|
||||
/**
|
||||
* Filters downloads with the array
|
||||
*/
|
||||
uids?: Array<string> | null;
|
||||
}
|
||||
9
src/api-types/models/GetAllDownloadsResponse.ts
Normal file
9
src/api-types/models/GetAllDownloadsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Download } from './Download';
|
||||
|
||||
export interface GetAllDownloadsResponse {
|
||||
downloads?: Array<Download>;
|
||||
}
|
||||
14
src/api-types/models/GetAllFilesResponse.ts
Normal file
14
src/api-types/models/GetAllFilesResponse.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { DatabaseFile } from './DatabaseFile';
|
||||
import { Playlist } from './Playlist';
|
||||
|
||||
export interface GetAllFilesResponse {
|
||||
files: Array<DatabaseFile>;
|
||||
/**
|
||||
* All video playlists
|
||||
*/
|
||||
playlists: Array<Playlist>;
|
||||
}
|
||||
9
src/api-types/models/GetAllSubscriptionsResponse.ts
Normal file
9
src/api-types/models/GetAllSubscriptionsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Subscription } from './Subscription';
|
||||
|
||||
export interface GetAllSubscriptionsResponse {
|
||||
subscriptions: Array<Subscription>;
|
||||
}
|
||||
8
src/api-types/models/GetDownloadRequest.ts
Normal file
8
src/api-types/models/GetDownloadRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetDownloadRequest {
|
||||
download_uid: string;
|
||||
}
|
||||
9
src/api-types/models/GetDownloadResponse.ts
Normal file
9
src/api-types/models/GetDownloadResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Download } from './Download';
|
||||
|
||||
export interface GetDownloadResponse {
|
||||
download?: Download | null;
|
||||
}
|
||||
8
src/api-types/models/GetFileFormatsRequest.ts
Normal file
8
src/api-types/models/GetFileFormatsRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetFileFormatsRequest {
|
||||
url?: string;
|
||||
}
|
||||
12
src/api-types/models/GetFileFormatsResponse.ts
Normal file
12
src/api-types/models/GetFileFormatsResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { File } from './File';
|
||||
|
||||
export interface GetFileFormatsResponse {
|
||||
success: boolean;
|
||||
result: {
|
||||
formats?: Array<any>,
|
||||
};
|
||||
}
|
||||
17
src/api-types/models/GetFileRequest.ts
Normal file
17
src/api-types/models/GetFileRequest.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface GetFileRequest {
|
||||
/**
|
||||
* Video UID
|
||||
*/
|
||||
uid: string;
|
||||
type?: FileType;
|
||||
/**
|
||||
* User UID
|
||||
*/
|
||||
uuid?: string;
|
||||
}
|
||||
10
src/api-types/models/GetFileResponse.ts
Normal file
10
src/api-types/models/GetFileResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { DatabaseFile } from './DatabaseFile';
|
||||
|
||||
export interface GetFileResponse {
|
||||
success: boolean;
|
||||
file?: DatabaseFile;
|
||||
}
|
||||
22
src/api-types/models/GetFullTwitchChatRequest.ts
Normal file
22
src/api-types/models/GetFullTwitchChatRequest.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
import { Subscription } from './Subscription';
|
||||
|
||||
export interface GetFullTwitchChatRequest {
|
||||
/**
|
||||
* File ID
|
||||
*/
|
||||
id: string;
|
||||
type: FileType;
|
||||
/**
|
||||
* User UID
|
||||
*/
|
||||
uuid?: string;
|
||||
/**
|
||||
* Subscription
|
||||
*/
|
||||
sub?: Subscription;
|
||||
}
|
||||
9
src/api-types/models/GetFullTwitchChatResponse.ts
Normal file
9
src/api-types/models/GetFullTwitchChatResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetFullTwitchChatResponse {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
8
src/api-types/models/GetLogsRequest.ts
Normal file
8
src/api-types/models/GetLogsRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetLogsRequest {
|
||||
lines?: number;
|
||||
}
|
||||
12
src/api-types/models/GetLogsResponse.ts
Normal file
12
src/api-types/models/GetLogsResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetLogsResponse {
|
||||
/**
|
||||
* Number of lines to retrieve from the bottom
|
||||
*/
|
||||
logs?: string;
|
||||
success?: boolean;
|
||||
}
|
||||
14
src/api-types/models/GetMp3sResponse.ts
Normal file
14
src/api-types/models/GetMp3sResponse.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { DatabaseFile } from './DatabaseFile';
|
||||
import { Playlist } from './Playlist';
|
||||
|
||||
export interface GetMp3sResponse {
|
||||
mp3s: Array<DatabaseFile>;
|
||||
/**
|
||||
* All audio playlists
|
||||
*/
|
||||
playlists: Array<Playlist>;
|
||||
}
|
||||
14
src/api-types/models/GetMp4sResponse.ts
Normal file
14
src/api-types/models/GetMp4sResponse.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { DatabaseFile } from './DatabaseFile';
|
||||
import { Playlist } from './Playlist';
|
||||
|
||||
export interface GetMp4sResponse {
|
||||
mp4s: Array<DatabaseFile>;
|
||||
/**
|
||||
* All video playlists
|
||||
*/
|
||||
playlists: Array<Playlist>;
|
||||
}
|
||||
12
src/api-types/models/GetPlaylistRequest.ts
Normal file
12
src/api-types/models/GetPlaylistRequest.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface GetPlaylistRequest {
|
||||
playlist_id: string;
|
||||
type?: FileType;
|
||||
uuid?: string;
|
||||
include_file_metadata?: boolean;
|
||||
}
|
||||
12
src/api-types/models/GetPlaylistResponse.ts
Normal file
12
src/api-types/models/GetPlaylistResponse.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
import { Playlist } from './Playlist';
|
||||
|
||||
export interface GetPlaylistResponse {
|
||||
playlist: Playlist;
|
||||
type: FileType;
|
||||
success: boolean;
|
||||
}
|
||||
8
src/api-types/models/GetPlaylistsRequest.ts
Normal file
8
src/api-types/models/GetPlaylistsRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetPlaylistsRequest {
|
||||
include_categories?: boolean;
|
||||
}
|
||||
9
src/api-types/models/GetPlaylistsResponse.ts
Normal file
9
src/api-types/models/GetPlaylistsResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Playlist } from './Playlist';
|
||||
|
||||
export interface GetPlaylistsResponse {
|
||||
playlists: Array<Playlist>;
|
||||
}
|
||||
16
src/api-types/models/GetRolesResponse.ts
Normal file
16
src/api-types/models/GetRolesResponse.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { UserPermission } from './UserPermission';
|
||||
|
||||
export interface GetRolesResponse {
|
||||
roles: {
|
||||
admin?: {
|
||||
permissions?: Array<UserPermission>,
|
||||
},
|
||||
user?: {
|
||||
permissions?: Array<UserPermission>,
|
||||
},
|
||||
};
|
||||
}
|
||||
15
src/api-types/models/GetSubscriptionRequest.ts
Normal file
15
src/api-types/models/GetSubscriptionRequest.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface GetSubscriptionRequest {
|
||||
/**
|
||||
* Subscription ID
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* Subscription name
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
10
src/api-types/models/GetSubscriptionResponse.ts
Normal file
10
src/api-types/models/GetSubscriptionResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Subscription } from './Subscription';
|
||||
|
||||
export interface GetSubscriptionResponse {
|
||||
subscription: Subscription;
|
||||
files: Array<any>;
|
||||
}
|
||||
9
src/api-types/models/GetUsersResponse.ts
Normal file
9
src/api-types/models/GetUsersResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { User } from './User';
|
||||
|
||||
export interface GetUsersResponse {
|
||||
users: Array<User>;
|
||||
}
|
||||
13
src/api-types/models/IncrementViewCountRequest.ts
Normal file
13
src/api-types/models/IncrementViewCountRequest.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface IncrementViewCountRequest {
|
||||
file_uid: string;
|
||||
sub_id?: string;
|
||||
/**
|
||||
* User UID
|
||||
*/
|
||||
uuid?: string;
|
||||
}
|
||||
9
src/api-types/models/LoginRequest.ts
Normal file
9
src/api-types/models/LoginRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface LoginRequest {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
13
src/api-types/models/LoginResponse.ts
Normal file
13
src/api-types/models/LoginResponse.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { User } from './User';
|
||||
import { UserPermission } from './UserPermission';
|
||||
|
||||
export interface LoginResponse {
|
||||
user?: User;
|
||||
token?: string;
|
||||
permissions?: Array<UserPermission>;
|
||||
available_permissions?: Array<UserPermission>;
|
||||
}
|
||||
16
src/api-types/models/Playlist.ts
Normal file
16
src/api-types/models/Playlist.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface Playlist {
|
||||
name: string;
|
||||
uids: Array<string>;
|
||||
id: string;
|
||||
thumbnailURL: string;
|
||||
type: FileType;
|
||||
registered: number;
|
||||
duration: number;
|
||||
user_uid?: string;
|
||||
}
|
||||
10
src/api-types/models/RegisterRequest.ts
Normal file
10
src/api-types/models/RegisterRequest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface RegisterRequest {
|
||||
userid: string;
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
9
src/api-types/models/RegisterResponse.ts
Normal file
9
src/api-types/models/RegisterResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { User } from './User';
|
||||
|
||||
export interface RegisterResponse {
|
||||
user?: User;
|
||||
}
|
||||
9
src/api-types/models/SetConfigRequest.ts
Normal file
9
src/api-types/models/SetConfigRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Config } from './Config';
|
||||
|
||||
export interface SetConfigRequest {
|
||||
new_config_file: Config;
|
||||
}
|
||||
9
src/api-types/models/SharingToggle.ts
Normal file
9
src/api-types/models/SharingToggle.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface SharingToggle {
|
||||
uid: string;
|
||||
is_playlist?: boolean;
|
||||
}
|
||||
14
src/api-types/models/SubscribeRequest.ts
Normal file
14
src/api-types/models/SubscribeRequest.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface SubscribeRequest {
|
||||
name: string;
|
||||
url: string;
|
||||
timerange?: string;
|
||||
audioOnly?: boolean;
|
||||
customArgs?: string;
|
||||
customFileOutput?: string;
|
||||
maxQuality?: string;
|
||||
}
|
||||
10
src/api-types/models/SubscribeResponse.ts
Normal file
10
src/api-types/models/SubscribeResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Subscription } from './Subscription';
|
||||
|
||||
export interface SubscribeResponse {
|
||||
new_sub: Subscription;
|
||||
error?: string;
|
||||
}
|
||||
20
src/api-types/models/Subscription.ts
Normal file
20
src/api-types/models/Subscription.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface Subscription {
|
||||
name: string;
|
||||
url: string;
|
||||
id: string;
|
||||
type: FileType;
|
||||
user_uid: string | null;
|
||||
streamingOnly: boolean;
|
||||
isPlaylist: boolean;
|
||||
archive?: string;
|
||||
timerange?: string;
|
||||
custom_args?: string;
|
||||
custom_output?: string;
|
||||
videos: Array<any>;
|
||||
}
|
||||
13
src/api-types/models/SubscriptionRequestData.ts
Normal file
13
src/api-types/models/SubscriptionRequestData.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { FileType } from './FileType';
|
||||
|
||||
export interface SubscriptionRequestData {
|
||||
name: string;
|
||||
id: string;
|
||||
type?: FileType;
|
||||
isPlaylist?: boolean;
|
||||
archive?: string;
|
||||
}
|
||||
8
src/api-types/models/SuccessObject.ts
Normal file
8
src/api-types/models/SuccessObject.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface SuccessObject {
|
||||
success: boolean;
|
||||
}
|
||||
8
src/api-types/models/TableInfo.ts
Normal file
8
src/api-types/models/TableInfo.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TableInfo {
|
||||
records_count?: number;
|
||||
}
|
||||
11
src/api-types/models/TestConnectionStringRequest.ts
Normal file
11
src/api-types/models/TestConnectionStringRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TestConnectionStringRequest {
|
||||
/**
|
||||
* MongoDB connection string
|
||||
*/
|
||||
connection_string: string;
|
||||
}
|
||||
9
src/api-types/models/TestConnectionStringResponse.ts
Normal file
9
src/api-types/models/TestConnectionStringResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TestConnectionStringResponse {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
11
src/api-types/models/TransferDBRequest.ts
Normal file
11
src/api-types/models/TransferDBRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TransferDBRequest {
|
||||
/**
|
||||
* True if transfering DB from Local to MongoDB, false if transferring DB from MongoDB to Local
|
||||
*/
|
||||
local_to_remote: boolean;
|
||||
}
|
||||
9
src/api-types/models/TransferDBResponse.ts
Normal file
9
src/api-types/models/TransferDBResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TransferDBResponse {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
18
src/api-types/models/TwitchChatMessage.ts
Normal file
18
src/api-types/models/TwitchChatMessage.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface TwitchChatMessage {
|
||||
created_at?: string;
|
||||
content_offset_seconds?: number;
|
||||
commenter?: {
|
||||
name?: string,
|
||||
_id?: string,
|
||||
created_at?: string,
|
||||
};
|
||||
message?: {
|
||||
body?: string,
|
||||
user_color?: string,
|
||||
};
|
||||
}
|
||||
13
src/api-types/models/UnsubscribeRequest.ts
Normal file
13
src/api-types/models/UnsubscribeRequest.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { SubscriptionRequestData } from './SubscriptionRequestData';
|
||||
|
||||
export interface UnsubscribeRequest {
|
||||
sub: SubscriptionRequestData;
|
||||
/**
|
||||
* Defaults to false
|
||||
*/
|
||||
deleteMode?: boolean;
|
||||
}
|
||||
9
src/api-types/models/UnsubscribeResponse.ts
Normal file
9
src/api-types/models/UnsubscribeResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface UnsubscribeResponse {
|
||||
success: boolean;
|
||||
error?: string;
|
||||
}
|
||||
9
src/api-types/models/UpdateCategoriesRequest.ts
Normal file
9
src/api-types/models/UpdateCategoriesRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface UpdateCategoriesRequest {
|
||||
categories: Array<Category>;
|
||||
}
|
||||
9
src/api-types/models/UpdateCategoryRequest.ts
Normal file
9
src/api-types/models/UpdateCategoryRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Category } from './Category';
|
||||
|
||||
export interface UpdateCategoryRequest {
|
||||
category: Category;
|
||||
}
|
||||
12
src/api-types/models/UpdateConcurrentStreamRequest.ts
Normal file
12
src/api-types/models/UpdateConcurrentStreamRequest.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { ConcurrentStream } from './ConcurrentStream';
|
||||
|
||||
export interface UpdateConcurrentStreamRequest extends ConcurrentStream {
|
||||
/**
|
||||
* Concurrent stream UID
|
||||
*/
|
||||
uid: string;
|
||||
}
|
||||
9
src/api-types/models/UpdateConcurrentStreamResponse.ts
Normal file
9
src/api-types/models/UpdateConcurrentStreamResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { ConcurrentStream } from './ConcurrentStream';
|
||||
|
||||
export interface UpdateConcurrentStreamResponse {
|
||||
stream: ConcurrentStream;
|
||||
}
|
||||
9
src/api-types/models/UpdatePlaylistRequest.ts
Normal file
9
src/api-types/models/UpdatePlaylistRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Playlist } from './Playlist';
|
||||
|
||||
export interface UpdatePlaylistRequest {
|
||||
playlist: Playlist;
|
||||
}
|
||||
8
src/api-types/models/UpdateServerRequest.ts
Normal file
8
src/api-types/models/UpdateServerRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface UpdateServerRequest {
|
||||
tag: string;
|
||||
}
|
||||
12
src/api-types/models/UpdateUserRequest.ts
Normal file
12
src/api-types/models/UpdateUserRequest.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface UpdateUserRequest {
|
||||
change_object: {
|
||||
uid: string,
|
||||
name?: string,
|
||||
role?: string,
|
||||
};
|
||||
}
|
||||
10
src/api-types/models/UpdaterStatus.ts
Normal file
10
src/api-types/models/UpdaterStatus.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface UpdaterStatus {
|
||||
updating: boolean;
|
||||
details: string;
|
||||
error?: boolean;
|
||||
}
|
||||
25
src/api-types/models/User.ts
Normal file
25
src/api-types/models/User.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Subscription } from './Subscription';
|
||||
import { UserPermission } from './UserPermission';
|
||||
|
||||
export interface User {
|
||||
uid?: string;
|
||||
name?: string;
|
||||
passhash?: string;
|
||||
files?: {
|
||||
audio?: Array<File>,
|
||||
video?: Array<File>,
|
||||
};
|
||||
playlists?: {
|
||||
audio?: Array<File>,
|
||||
video?: Array<File>,
|
||||
};
|
||||
subscriptions?: Array<Subscription>;
|
||||
created?: number;
|
||||
role?: string;
|
||||
permissions?: Array<UserPermission>;
|
||||
permission_overrides?: Array<UserPermission>;
|
||||
}
|
||||
13
src/api-types/models/UserPermission.ts
Normal file
13
src/api-types/models/UserPermission.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export enum UserPermission {
|
||||
FILEMANAGER = 'filemanager',
|
||||
SETTINGS = 'settings',
|
||||
SUBSCRIPTIONS = 'subscriptions',
|
||||
SHARING = 'sharing',
|
||||
ADVANCED_DOWNLOAD = 'advanced_download',
|
||||
DOWNLOADS_MANAGER = 'downloads_manager',
|
||||
}
|
||||
11
src/api-types/models/Version.ts
Normal file
11
src/api-types/models/Version.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
|
||||
export interface Version {
|
||||
type?: string;
|
||||
tag?: string;
|
||||
commit?: string;
|
||||
date?: string;
|
||||
}
|
||||
9
src/api-types/models/VersionInfoResponse.ts
Normal file
9
src/api-types/models/VersionInfoResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
import { Version } from './Version';
|
||||
|
||||
export interface VersionInfoResponse {
|
||||
version_info: Version;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user