Cleaned up dependencies, routes, and API models

This commit is contained in:
Isaac Abadi
2022-05-11 22:58:46 -04:00
parent 8dac9d1806
commit 1514952fd1
113 changed files with 360 additions and 437 deletions

View File

@@ -4,6 +4,7 @@
export type { AddFileToPlaylistRequest } from './models/AddFileToPlaylistRequest';
export type { BaseChangePermissionsRequest } from './models/BaseChangePermissionsRequest';
export type { binary } from './models/binary';
export type { body_19 } from './models/body_19';
export type { body_20 } from './models/body_20';
export type { Category } from './models/Category';
@@ -12,6 +13,7 @@ export type { ChangeRolePermissionsRequest } from './models/ChangeRolePermission
export type { ChangeUserPermissionsRequest } from './models/ChangeUserPermissionsRequest';
export type { CheckConcurrentStreamRequest } from './models/CheckConcurrentStreamRequest';
export type { CheckConcurrentStreamResponse } from './models/CheckConcurrentStreamResponse';
export type { ClearDownloadsRequest } from './models/ClearDownloadsRequest';
export type { ConcurrentStream } from './models/ConcurrentStream';
export type { Config } from './models/Config';
export type { ConfigResponse } from './models/ConfigResponse';
@@ -23,6 +25,7 @@ export type { CropFileSettings } from './models/CropFileSettings';
export type { DatabaseFile } from './models/DatabaseFile';
export { DBBackup } from './models/DBBackup';
export type { DBInfoResponse } from './models/DBInfoResponse';
export type { DeleteAllFilesResponse } from './models/DeleteAllFilesResponse';
export type { DeleteCategoryRequest } from './models/DeleteCategoryRequest';
export type { DeleteMp3Mp4Request } from './models/DeleteMp3Mp4Request';
export type { DeletePlaylistRequest } from './models/DeletePlaylistRequest';
@@ -36,7 +39,6 @@ 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';

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface AddFileToPlaylistRequest {
export type AddFileToPlaylistRequest = {
file_uid: string;
playlist_id: string;
}
};

View File

@@ -2,10 +2,10 @@
/* tslint:disable */
/* eslint-disable */
import { UserPermission } from './UserPermission';
import { YesNo } from './YesNo';
import type { UserPermission } from './UserPermission';
import type { YesNo } from './YesNo';
export interface BaseChangePermissionsRequest {
export type BaseChangePermissionsRequest = {
permission: UserPermission;
new_value: YesNo;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { CategoryRule } from './CategoryRule';
import type { CategoryRule } from './CategoryRule';
export interface Category {
export type Category = {
name?: string;
uid?: string;
rules?: Array<CategoryRule>;
@@ -12,4 +12,4 @@ export interface Category {
* Overrides file output for downloaded files in category
*/
custom_output?: string;
}
};

View File

@@ -2,11 +2,10 @@
/* tslint:disable */
/* eslint-disable */
export interface CategoryRule {
export type CategoryRule = {
preceding_operator?: CategoryRule.preceding_operator;
comparator?: CategoryRule.comparator;
}
};
export namespace CategoryRule {

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
import type { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
export interface ChangeRolePermissionsRequest extends BaseChangePermissionsRequest {
role: string;
}
export type ChangeRolePermissionsRequest = (BaseChangePermissionsRequest & {
role: string;
});

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
import type { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
export interface ChangeUserPermissionsRequest extends BaseChangePermissionsRequest {
user_uid: string;
}
export type ChangeUserPermissionsRequest = (BaseChangePermissionsRequest & {
user_uid: string;
});

View File

@@ -2,10 +2,9 @@
/* tslint:disable */
/* eslint-disable */
export interface CheckConcurrentStreamRequest {
export type CheckConcurrentStreamRequest = {
/**
* UID of the concurrent stream
*/
uid: string;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { ConcurrentStream } from './ConcurrentStream';
import type { ConcurrentStream } from './ConcurrentStream';
export interface CheckConcurrentStreamResponse {
export type CheckConcurrentStreamResponse = {
stream: ConcurrentStream;
}
};

View File

@@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ClearDownloadsRequest = {
clear_finished?: boolean;
clear_paused?: boolean;
clear_errors?: boolean;
};

View File

@@ -2,9 +2,8 @@
/* tslint:disable */
/* eslint-disable */
export interface ConcurrentStream {
export type ConcurrentStream = {
playback_timestamp?: number;
unix_timestamp?: number;
playing?: boolean;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface Config {
export type Config = {
YoutubeDLMaterial: any;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { Config } from './Config';
import type { Config } from './Config';
export interface ConfigResponse {
export type ConfigResponse = {
config_file: Config;
success: boolean;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface CreateCategoryRequest {
export type CreateCategoryRequest = {
name: string;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { Category } from './Category';
import type { Category } from './Category';
export interface CreateCategoryResponse {
export type CreateCategoryResponse = {
new_category?: Category;
success?: boolean;
}
};

View File

@@ -2,11 +2,11 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface CreatePlaylistRequest {
export type CreatePlaylistRequest = {
playlistName: string;
uids: Array<string>;
type: FileType;
thumbnailURL: string;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { Playlist } from './Playlist';
import type { Playlist } from './Playlist';
export interface CreatePlaylistResponse {
export type CreatePlaylistResponse = {
new_playlist: Playlist;
success: boolean;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface CropFileSettings {
export type CropFileSettings = {
cropFileStart: number;
cropFileEnd: number;
}
};

View File

@@ -2,13 +2,12 @@
/* tslint:disable */
/* eslint-disable */
export interface DBBackup {
export type DBBackup = {
name: string;
timestamp: number;
size: number;
source: DBBackup.source;
}
};
export namespace DBBackup {

View File

@@ -2,17 +2,17 @@
/* tslint:disable */
/* eslint-disable */
import { TableInfo } from './TableInfo';
import type { TableInfo } from './TableInfo';
export interface DBInfoResponse {
export type DBInfoResponse = {
using_local_db?: boolean;
stats_by_table?: {
files?: TableInfo,
playlists?: TableInfo,
categories?: TableInfo,
subscriptions?: TableInfo,
users?: TableInfo,
roles?: TableInfo,
download_queue?: TableInfo,
files?: TableInfo;
playlists?: TableInfo;
categories?: TableInfo;
subscriptions?: TableInfo;
users?: TableInfo;
roles?: TableInfo;
download_queue?: TableInfo;
};
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface DatabaseFile {
export type DatabaseFile = {
id: string;
title: string;
thumbnailURL: string;
@@ -19,4 +18,4 @@ export interface DatabaseFile {
upload_date: string;
uid: string;
sharingEnabled?: boolean;
}
};

View File

@@ -0,0 +1,14 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type DeleteAllFilesResponse = {
/**
* Number of files found matching search parameters
*/
file_count?: number;
/**
* Number of files removed
*/
delete_count?: number;
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface DeleteCategoryRequest {
export type DeleteCategoryRequest = {
category_uid: string;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface DeleteMp3Mp4Request {
export type DeleteMp3Mp4Request = {
uid: string;
blacklistMode?: boolean;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface DeletePlaylistRequest {
export type DeletePlaylistRequest = {
playlist_id: string;
type: FileType;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { SubscriptionRequestData } from './SubscriptionRequestData';
import type { SubscriptionRequestData } from './SubscriptionRequestData';
export interface DeleteSubscriptionFileRequest {
export type DeleteSubscriptionFileRequest = {
file: string;
file_uid?: string;
sub: SubscriptionRequestData;
@@ -12,4 +12,4 @@ export interface DeleteSubscriptionFileRequest {
* If true, does not remove id from archive. Only valid if youtube-dl archive is enabled in settings.
*/
deleteForever?: boolean;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface DeleteUserRequest {
export type DeleteUserRequest = {
uid: string;
}
};

View File

@@ -1,7 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Dictionary<T> = {
[key: string]: T;
}

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface Download {
export type Download = {
uid: string;
ui_uid?: string;
running: boolean;
@@ -23,4 +22,4 @@ export interface Download {
user_uid?: string;
sub_id?: string;
sub_name?: string;
}
};

View File

@@ -2,9 +2,8 @@
/* tslint:disable */
/* eslint-disable */
export interface DownloadArchiveRequest {
export type DownloadArchiveRequest = {
sub: {
archive_dir: string,
archive_dir: string;
};
}
};

View File

@@ -2,13 +2,13 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface DownloadFileRequest {
export type DownloadFileRequest = {
uid?: string;
uuid?: string;
sub_id?: string;
playlist_id?: string;
url?: string;
type?: FileType;
}
};

View File

@@ -2,10 +2,10 @@
/* tslint:disable */
/* eslint-disable */
import { CropFileSettings } from './CropFileSettings';
import { FileType } from './FileType';
import type { CropFileSettings } from './CropFileSettings';
import type { FileType } from './FileType';
export interface DownloadRequest {
export type DownloadRequest = {
url: string;
/**
* Video format code. Overrides other quality options.
@@ -41,4 +41,4 @@ export interface DownloadRequest {
maxBitrate?: string;
type?: FileType;
cropFileSettings?: CropFileSettings;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Download } from './Download';
import type { Download } from './Download';
export interface DownloadResponse {
export type DownloadResponse = {
download?: Download;
}
};

View File

@@ -2,10 +2,10 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import { Subscription } from './Subscription';
import type { FileType } from './FileType';
import type { Subscription } from './Subscription';
export interface DownloadTwitchChatByVODIDRequest {
export type DownloadTwitchChatByVODIDRequest = {
/**
* File ID
*/
@@ -20,4 +20,4 @@ export interface DownloadTwitchChatByVODIDRequest {
*/
uuid?: string;
sub?: Subscription;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { TwitchChatMessage } from './TwitchChatMessage';
import type { TwitchChatMessage } from './TwitchChatMessage';
export interface DownloadTwitchChatByVODIDResponse {
export type DownloadTwitchChatByVODIDResponse = {
chat: Array<TwitchChatMessage>;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface DownloadVideosForSubscriptionRequest {
export type DownloadVideosForSubscriptionRequest = {
subID: string;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export enum FileType {
AUDIO = 'audio',
VIDEO = 'video',

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface GenerateArgsResponse {
export type GenerateArgsResponse = {
args?: Array<string>;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface GenerateNewApiKeyResponse {
export type GenerateNewApiKeyResponse = {
new_api_key: string;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Category } from './Category';
import type { Category } from './Category';
export interface GetAllCategoriesResponse {
export type GetAllCategoriesResponse = {
categories: Array<Category>;
}
};

View File

@@ -2,10 +2,9 @@
/* tslint:disable */
/* eslint-disable */
export interface GetAllDownloadsRequest {
export type GetAllDownloadsRequest = {
/**
* Filters downloads with the array
*/
uids?: Array<string> | null;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Download } from './Download';
import type { Download } from './Download';
export interface GetAllDownloadsResponse {
export type GetAllDownloadsResponse = {
downloads?: Array<Download>;
}
};

View File

@@ -2,13 +2,13 @@
/* tslint:disable */
/* eslint-disable */
import { DatabaseFile } from './DatabaseFile';
import { Playlist } from './Playlist';
import type { DatabaseFile } from './DatabaseFile';
import type { Playlist } from './Playlist';
export interface GetAllFilesResponse {
export type GetAllFilesResponse = {
files: Array<DatabaseFile>;
/**
* All video playlists
*/
playlists: Array<Playlist>;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Subscription } from './Subscription';
import type { Subscription } from './Subscription';
export interface GetAllSubscriptionsResponse {
export type GetAllSubscriptionsResponse = {
subscriptions: Array<Subscription>;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Task } from './Task';
import type { Task } from './Task';
export interface GetAllTasksResponse {
export type GetAllTasksResponse = {
tasks?: Array<Task>;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { DBBackup } from './DBBackup';
import type { DBBackup } from './DBBackup';
export interface GetDBBackupsResponse {
export type GetDBBackupsResponse = {
tasks?: Array<DBBackup>;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface GetDownloadRequest {
export type GetDownloadRequest = {
download_uid: string;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Download } from './Download';
import type { Download } from './Download';
export interface GetDownloadResponse {
export type GetDownloadResponse = {
download?: Download;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface GetFileFormatsRequest {
export type GetFileFormatsRequest = {
url?: string;
}
};

View File

@@ -2,11 +2,11 @@
/* tslint:disable */
/* eslint-disable */
import { File } from './File';
import type { file } from './file';
export interface GetFileFormatsResponse {
export type GetFileFormatsResponse = {
success: boolean;
result: {
formats?: Array<any>,
};
}
result: (file & {
formats?: Array<any>;
});
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface GetFileRequest {
export type GetFileRequest = {
/**
* Video UID
*/
@@ -14,4 +14,4 @@ export interface GetFileRequest {
* User UID
*/
uuid?: string;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { DatabaseFile } from './DatabaseFile';
import type { DatabaseFile } from './DatabaseFile';
export interface GetFileResponse {
export type GetFileResponse = {
success: boolean;
file?: DatabaseFile;
}
};

View File

@@ -2,10 +2,10 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import { Subscription } from './Subscription';
import type { FileType } from './FileType';
import type { Subscription } from './Subscription';
export interface GetFullTwitchChatRequest {
export type GetFullTwitchChatRequest = {
/**
* File ID
*/
@@ -16,4 +16,4 @@ export interface GetFullTwitchChatRequest {
*/
uuid?: string;
sub?: Subscription;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface GetFullTwitchChatResponse {
export type GetFullTwitchChatResponse = {
success: boolean;
error?: string;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface GetLogsRequest {
export type GetLogsRequest = {
lines?: number;
}
};

View File

@@ -2,11 +2,10 @@
/* tslint:disable */
/* eslint-disable */
export interface GetLogsResponse {
export type GetLogsResponse = {
/**
* Number of lines to retrieve from the bottom
*/
logs?: string;
success?: boolean;
}
};

View File

@@ -2,13 +2,13 @@
/* tslint:disable */
/* eslint-disable */
import { DatabaseFile } from './DatabaseFile';
import { Playlist } from './Playlist';
import type { DatabaseFile } from './DatabaseFile';
import type { Playlist } from './Playlist';
export interface GetMp3sResponse {
export type GetMp3sResponse = {
mp3s: Array<DatabaseFile>;
/**
* All audio playlists
*/
playlists: Array<Playlist>;
}
};

View File

@@ -2,13 +2,13 @@
/* tslint:disable */
/* eslint-disable */
import { DatabaseFile } from './DatabaseFile';
import { Playlist } from './Playlist';
import type { DatabaseFile } from './DatabaseFile';
import type { Playlist } from './Playlist';
export interface GetMp4sResponse {
export type GetMp4sResponse = {
mp4s: Array<DatabaseFile>;
/**
* All video playlists
*/
playlists: Array<Playlist>;
}
};

View File

@@ -2,11 +2,11 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface GetPlaylistRequest {
export type GetPlaylistRequest = {
playlist_id: string;
type?: FileType;
uuid?: string;
include_file_metadata?: boolean;
}
};

View File

@@ -2,11 +2,11 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import { Playlist } from './Playlist';
import type { FileType } from './FileType';
import type { Playlist } from './Playlist';
export interface GetPlaylistResponse {
export type GetPlaylistResponse = {
playlist: Playlist;
type: FileType;
success: boolean;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface GetPlaylistsRequest {
export type GetPlaylistsRequest = {
include_categories?: boolean;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Playlist } from './Playlist';
import type { Playlist } from './Playlist';
export interface GetPlaylistsResponse {
export type GetPlaylistsResponse = {
playlists: Array<Playlist>;
}
};

View File

@@ -2,15 +2,15 @@
/* tslint:disable */
/* eslint-disable */
import { UserPermission } from './UserPermission';
import type { UserPermission } from './UserPermission';
export interface GetRolesResponse {
export type GetRolesResponse = {
roles: {
admin?: {
permissions?: Array<UserPermission>,
},
user?: {
permissions?: Array<UserPermission>,
},
permissions?: Array<UserPermission>;
};
}
user?: {
permissions?: Array<UserPermission>;
};
};
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface GetSubscriptionRequest {
export type GetSubscriptionRequest = {
/**
* Subscription ID
*/
@@ -12,4 +11,4 @@ export interface GetSubscriptionRequest {
* Subscription name
*/
name?: string;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { Subscription } from './Subscription';
import type { Subscription } from './Subscription';
export interface GetSubscriptionResponse {
export type GetSubscriptionResponse = {
subscription: Subscription;
files: Array<any>;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface GetTaskRequest {
export type GetTaskRequest = {
task_key: string;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Task } from './Task';
import type { Task } from './Task';
export interface GetTaskResponse {
export type GetTaskResponse = {
task?: Task;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { User } from './User';
import type { User } from './User';
export interface GetUsersResponse {
export type GetUsersResponse = {
users: Array<User>;
}
};

View File

@@ -2,12 +2,11 @@
/* tslint:disable */
/* eslint-disable */
export interface IncrementViewCountRequest {
export type IncrementViewCountRequest = {
file_uid: string;
sub_id?: string;
/**
* User UID
*/
uuid?: string;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface LoginRequest {
export type LoginRequest = {
username: string;
password: string;
}
};

View File

@@ -2,12 +2,12 @@
/* tslint:disable */
/* eslint-disable */
import { User } from './User';
import { UserPermission } from './UserPermission';
import type { User } from './User';
import type { UserPermission } from './UserPermission';
export interface LoginResponse {
export type LoginResponse = {
user?: User;
token?: string;
permissions?: Array<UserPermission>;
available_permissions?: Array<UserPermission>;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface Playlist {
export type Playlist = {
name: string;
uids: Array<string>;
id: string;
@@ -13,4 +13,4 @@ export interface Playlist {
registered: number;
duration: number;
user_uid?: string;
}
};

View File

@@ -2,9 +2,8 @@
/* tslint:disable */
/* eslint-disable */
export interface RegisterRequest {
export type RegisterRequest = {
userid: string;
username: string;
password: string;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { User } from './User';
import type { User } from './User';
export interface RegisterResponse {
export type RegisterResponse = {
user?: User;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface RestoreDBBackupRequest {
export type RestoreDBBackupRequest = {
file_name: string;
}
};

View File

@@ -2,16 +2,15 @@
/* tslint:disable */
/* eslint-disable */
export interface Schedule {
export type Schedule = {
type: Schedule.type;
data: {
dayOfWeek?: Array<number>,
hour?: number,
minute?: number,
timestamp?: number,
dayOfWeek?: Array<number>;
hour?: number;
minute?: number;
timestamp?: number;
};
};
}
export namespace Schedule {

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Config } from './Config';
import type { Config } from './Config';
export interface SetConfigRequest {
export type SetConfigRequest = {
new_config_file: Config;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface SharingToggle {
export type SharingToggle = {
uid: string;
is_playlist?: boolean;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface SubscribeRequest {
export type SubscribeRequest = {
name: string;
url: string;
timerange?: string;
@@ -11,4 +10,4 @@ export interface SubscribeRequest {
customArgs?: string;
customFileOutput?: string;
maxQuality?: string;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { Subscription } from './Subscription';
import type { Subscription } from './Subscription';
export interface SubscribeResponse {
export type SubscribeResponse = {
new_sub: Subscription;
error?: string;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface Subscription {
export type Subscription = {
name: string;
url: string;
id: string;
@@ -17,4 +17,4 @@ export interface Subscription {
custom_args?: string;
custom_output?: string;
videos: Array<any>;
}
};

View File

@@ -2,12 +2,12 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
import type { FileType } from './FileType';
export interface SubscriptionRequestData {
export type SubscriptionRequestData = {
name: string;
id: string;
type?: FileType;
isPlaylist?: boolean;
archive?: string;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface SuccessObject {
export type SuccessObject = {
success: boolean;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface TableInfo {
export type TableInfo = {
records_count?: number;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface Task {
export type Task = {
key: string;
last_ran: number;
last_confirmed: number;
@@ -12,4 +11,4 @@ export interface Task {
data: any;
error: string;
schedule: any;
}
};

View File

@@ -2,10 +2,9 @@
/* tslint:disable */
/* eslint-disable */
export interface TestConnectionStringRequest {
export type TestConnectionStringRequest = {
/**
* MongoDB connection string
*/
connection_string: string;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface TestConnectionStringResponse {
export type TestConnectionStringResponse = {
success: boolean;
error?: string;
}
};

View File

@@ -2,10 +2,9 @@
/* tslint:disable */
/* eslint-disable */
export interface TransferDBRequest {
export type TransferDBRequest = {
/**
* True if transfering DB from Local to MongoDB, false if transferring DB from MongoDB to Local
*/
local_to_remote: boolean;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface TransferDBResponse {
export type TransferDBResponse = {
success: boolean;
error?: string;
}
};

View File

@@ -2,17 +2,16 @@
/* tslint:disable */
/* eslint-disable */
export interface TwitchChatMessage {
export type TwitchChatMessage = {
created_at?: string;
content_offset_seconds?: number;
commenter?: {
name?: string,
_id?: string,
created_at?: string,
name?: string;
_id?: string;
created_at?: string;
};
message?: {
body?: string,
user_color?: string,
body?: string;
user_color?: string;
};
}
};

View File

@@ -2,12 +2,12 @@
/* tslint:disable */
/* eslint-disable */
import { SubscriptionRequestData } from './SubscriptionRequestData';
import type { SubscriptionRequestData } from './SubscriptionRequestData';
export interface UnsubscribeRequest {
export type UnsubscribeRequest = {
sub: SubscriptionRequestData;
/**
* Defaults to false
*/
deleteMode?: boolean;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface UnsubscribeResponse {
export type UnsubscribeResponse = {
success: boolean;
error?: string;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Category } from './Category';
import type { Category } from './Category';
export interface UpdateCategoriesRequest {
export type UpdateCategoriesRequest = {
categories: Array<Category>;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Category } from './Category';
import type { Category } from './Category';
export interface UpdateCategoryRequest {
export type UpdateCategoryRequest = {
category: Category;
}
};

View File

@@ -2,11 +2,11 @@
/* tslint:disable */
/* eslint-disable */
import { ConcurrentStream } from './ConcurrentStream';
import type { ConcurrentStream } from './ConcurrentStream';
export interface UpdateConcurrentStreamRequest extends ConcurrentStream {
/**
* Concurrent stream UID
*/
uid: string;
}
export type UpdateConcurrentStreamRequest = (ConcurrentStream & {
/**
* Concurrent stream UID
*/
uid: string;
});

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { ConcurrentStream } from './ConcurrentStream';
import type { ConcurrentStream } from './ConcurrentStream';
export interface UpdateConcurrentStreamResponse {
export type UpdateConcurrentStreamResponse = {
stream: ConcurrentStream;
}
};

View File

@@ -2,8 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Playlist } from './Playlist';
import type { Playlist } from './Playlist';
export interface UpdatePlaylistRequest {
export type UpdatePlaylistRequest = {
playlist: Playlist;
}
};

View File

@@ -2,7 +2,6 @@
/* tslint:disable */
/* eslint-disable */
export interface UpdateServerRequest {
export type UpdateServerRequest = {
tag: string;
}
};

View File

@@ -2,8 +2,7 @@
/* tslint:disable */
/* eslint-disable */
export interface UpdateTaskDataRequest {
export type UpdateTaskDataRequest = {
task_key: string;
new_data: any;
}
};

View File

@@ -2,9 +2,9 @@
/* tslint:disable */
/* eslint-disable */
import { Schedule } from './Schedule';
import type { Schedule } from './Schedule';
export interface UpdateTaskScheduleRequest {
export type UpdateTaskScheduleRequest = {
task_key: string;
new_schedule: Schedule;
}
};

Some files were not shown because too many files have changed in this diff Show More