Updated API

Removed unused component
This commit is contained in:
Isaac Abadi
2021-09-30 19:37:21 -06:00
parent 3937700eff
commit 94006ef794
80 changed files with 300 additions and 588 deletions

View File

@@ -8,4 +8,4 @@ import { YesNo } from './YesNo';
export interface BaseChangePermissionsRequest {
permission: UserPermission;
new_value: YesNo;
}
}

View File

@@ -1,29 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export interface BaseDownloadRequest {
url: string;
/**
* Video format code. Overrides other quality options.
*/
customQualityConfiguration?: string;
/**
* Custom command-line arguments for youtubedl. Overrides all other options, except url.
*/
customArgs?: string;
/**
* Custom output filename template.
*/
customOutput?: string;
/**
* Login with this account ID
*/
youtubeUsername?: string;
/**
* Account password
*/
youtubePassword?: string;
ui_uid?: string | null;
}

View File

@@ -1,9 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export interface BaseDownloadResponse {
uid: string;
file_names?: Array<string> | null;
}

View File

@@ -6,4 +6,4 @@ import { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
export interface ChangeRolePermissionsRequest extends BaseChangePermissionsRequest {
role: string;
}
}

View File

@@ -6,4 +6,4 @@ import { BaseChangePermissionsRequest } from './BaseChangePermissionsRequest';
export interface ChangeUserPermissionsRequest extends BaseChangePermissionsRequest {
user_uid: string;
}
}

View File

@@ -5,4 +5,4 @@
export interface Config {
YoutubeDLMaterial: any;
}
}

View File

@@ -7,4 +7,4 @@ import { Config } from './Config';
export interface ConfigResponse {
config_file: Config;
success: boolean;
}
}

View File

@@ -6,8 +6,7 @@ import { FileType } from './FileType';
export interface CreatePlaylistRequest {
playlistName: string;
fileNames: Array<string>;
uids: Array<string>;
type: FileType;
thumbnailURL: string;
duration: number;
}
}

View File

@@ -7,4 +7,4 @@ import { Playlist } from './Playlist';
export interface CreatePlaylistResponse {
new_playlist: Playlist;
success: boolean;
}
}

View File

@@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export interface CropFileSettings {
cropFileStart: number;
cropFileEnd: number;
}

View File

@@ -19,4 +19,4 @@ export interface DatabaseFile {
upload_date: string;
uid: string;
sharingEnabled?: boolean;
}
}

View File

@@ -1,10 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
export interface DeleteFileRequest {
fileName: string;
type: FileType;
}

View File

@@ -6,4 +6,4 @@
export interface DeleteMp3Mp4Request {
uid: string;
blacklistMode?: boolean;
}
}

View File

@@ -5,6 +5,6 @@
import { FileType } from './FileType';
export interface DeletePlaylistRequest {
playlistID: string;
playlist_id: string;
type: FileType;
}
}

View File

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

@@ -5,4 +5,4 @@
export interface DeleteUserRequest {
uid: string;
}
}

View File

@@ -5,19 +5,22 @@
export interface Download {
uid: string;
ui_uid: string;
downloading: boolean;
complete: boolean;
ui_uid?: string;
running: boolean;
finished: boolean;
paused: boolean;
finished_step: boolean;
url: string;
type: string;
title: string;
step_index: number;
percent_complete: number;
is_playlist: boolean;
timestamp_start: number;
timestamp_end?: number;
filesize?: number | null;
/**
* Error text, set if download fails.
*/
error?: string;
fileNames?: Array<string>;
}
error?: string | null;
user_uid?: string;
sub_id?: string;
sub_name?: string;
}

View File

@@ -5,6 +5,6 @@
export interface DownloadArchiveRequest {
sub: {
archive_dir: string,
};
}
archive_dir: string,
};
}

View File

@@ -2,23 +2,13 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
export interface DownloadFileRequest {
fileNames: ;
zip_mode?: boolean;
type: FileType;
outputName?: string;
fullPathProvided?: boolean;
uid: string;
uuid?: string;
uid?: string;
id?: string;
sub_id?: string;
/**
* Only used for subscriptions
*/
subscriptionName?: string;
/**
* Only used for subscriptions
*/
subPlaylist?: boolean;
}
is_playlist?: boolean;
}

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

View File

@@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { Download } from './Download';
export interface DownloadResponse {
download?: Download | null;
}

View File

@@ -5,4 +5,4 @@
export interface DownloadVideosForSubscriptionRequest {
subID: string;
}
}

View File

@@ -5,4 +5,4 @@
export interface File {
id?: string;
}
}

View File

@@ -5,4 +5,4 @@
export interface GenerateNewApiKeyResponse {
new_api_key: string;
}
}

View File

@@ -2,12 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { Dictionary } from './Dictionary';
import { Download } from './Download';
export interface GetAllDownloadsResponse {
/**
* Map of Session ID to inner map
*/
downloads?: Dictionary<Dictionary<Download>>;
}
downloads?: Array<Download>;
}

View File

@@ -11,4 +11,4 @@ export interface GetAllFilesResponse {
* All video playlists
*/
playlists: Array<Playlist>;
}
}

View File

@@ -6,4 +6,4 @@ import { Subscription } from './Subscription';
export interface GetAllSubscriptionsResponse {
subscriptions: Array<Subscription>;
}
}

View File

@@ -4,6 +4,5 @@
export interface GetDownloadRequest {
session_id: string;
download_id: string;
}
download_uid: string;
}

View File

@@ -6,4 +6,4 @@ import { Download } from './Download';
export interface GetDownloadResponse {
download?: Download | null;
}
}

View File

@@ -14,4 +14,4 @@ export interface GetFileRequest {
* User UID
*/
uuid?: string;
}
}

View File

@@ -7,4 +7,4 @@ import { DatabaseFile } from './DatabaseFile';
export interface GetFileResponse {
success: boolean;
file?: DatabaseFile;
}
}

View File

@@ -11,4 +11,4 @@ export interface GetMp3sResponse {
* All audio playlists
*/
playlists: Array<Playlist>;
}
}

View File

@@ -11,4 +11,4 @@ export interface GetMp4sResponse {
* All video playlists
*/
playlists: Array<Playlist>;
}
}

View File

@@ -5,7 +5,8 @@
import { FileType } from './FileType';
export interface GetPlaylistRequest {
playlistID: string;
playlist_id: string;
type?: FileType;
uuid?: string;
}
include_file_metadata?: boolean;
}

View File

@@ -9,4 +9,4 @@ export interface GetPlaylistResponse {
playlist: Playlist;
type: FileType;
success: boolean;
}
}

View File

@@ -0,0 +1,8 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export interface GetPlaylistsRequest {
include_categories?: boolean;
}

View File

@@ -0,0 +1,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { Playlist } from './Playlist';
export interface GetPlaylistsResponse {
playlists: Array<Playlist>;
}

View File

@@ -6,11 +6,11 @@ import { UserPermission } from './UserPermission';
export interface GetRolesResponse {
roles: {
admin?: {
permissions?: Array<UserPermission>,
},
user?: {
permissions?: Array<UserPermission>,
},
};
}
admin?: {
permissions?: Array<UserPermission>,
},
user?: {
permissions?: Array<UserPermission>,
},
};
}

View File

@@ -8,4 +8,8 @@ export interface GetSubscriptionRequest {
* Subscription ID
*/
id: string;
}
/**
* Subscription name
*/
name?: string;
}

View File

@@ -7,4 +7,4 @@ import { Subscription } from './Subscription';
export interface GetSubscriptionResponse {
subscription: Subscription;
files: Array<any>;
}
}

View File

@@ -6,4 +6,4 @@ import { User } from './User';
export interface GetUsersResponse {
users: Array<User>;
}
}

View File

@@ -6,4 +6,4 @@
export interface LoginRequest {
username: string;
password: string;
}
}

View File

@@ -10,4 +10,4 @@ export interface LoginResponse {
token?: string;
permissions?: Array<UserPermission>;
available_permissions?: Array<UserPermission>;
}
}

View File

@@ -1,12 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { BaseDownloadRequest } from './BaseDownloadRequest';
export interface Mp3DownloadRequest extends BaseDownloadRequest {
/**
* Specify ffmpeg/avconv audio quality
*/
maxBitrate?: string;
}

View File

@@ -1,9 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { BaseDownloadResponse } from './BaseDownloadResponse';
export interface Mp3DownloadResponse extends BaseDownloadResponse {
audiopathEncoded: string;
}

View File

@@ -1,12 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { BaseDownloadRequest } from './BaseDownloadRequest';
export interface Mp4DownloadRequest extends BaseDownloadRequest {
/**
* Height of the video, if known
*/
selectedHeight?: string;
}

View File

@@ -1,9 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { BaseDownloadResponse } from './BaseDownloadResponse';
export interface Mp4DownloadResponse extends BaseDownloadResponse {
videopathEncoded: string;
}

View File

@@ -6,10 +6,11 @@ import { FileType } from './FileType';
export interface Playlist {
name: string;
fileNames: Array<string>;
uids: Array<string>;
id: string;
thumbnailURL: string;
type: FileType;
registered: number;
duration: number;
}
user_uid?: string;
}

View File

@@ -7,4 +7,4 @@ export interface RegisterRequest {
userid: string;
username: string;
password: string;
}
}

View File

@@ -6,4 +6,4 @@ import { User } from './User';
export interface RegisterResponse {
user?: User;
}
}

View File

@@ -6,4 +6,4 @@ import { Config } from './Config';
export interface SetConfigRequest {
new_config_file: Config;
}
}

View File

@@ -2,10 +2,8 @@
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
export interface SharingToggle {
uid: string;
type: FileType;
is_playlist?: boolean;
}
}

View File

@@ -7,8 +7,8 @@ export interface SubscribeRequest {
name: string;
url: string;
timerange?: string;
streamingOnly: boolean;
audioOnly?: boolean;
customArgs?: string;
customFileOutput?: string;
}
maxQuality?: string;
}

View File

@@ -7,4 +7,4 @@ import { Subscription } from './Subscription';
export interface SubscribeResponse {
new_sub: Subscription;
error?: string;
}
}

View File

@@ -17,4 +17,4 @@ export interface Subscription {
custom_args?: string;
custom_output?: string;
videos: Array<any>;
}
}

View File

@@ -10,4 +10,4 @@ export interface SubscriptionRequestData {
type?: FileType;
isPlaylist?: boolean;
archive?: string;
}
}

View File

@@ -5,4 +5,4 @@
export interface SuccessObject {
success: boolean;
}
}

View File

@@ -10,4 +10,4 @@ export interface UnsubscribeRequest {
* Defaults to false
*/
deleteMode?: boolean;
}
}

View File

@@ -6,4 +6,4 @@
export interface UnsubscribeResponse {
success: boolean;
error?: string;
}
}

View File

@@ -1,11 +0,0 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { FileType } from './FileType';
export interface UpdatePlaylistFilesRequest {
playlistID: string;
fileNames: Array<string>;
type: FileType;
}

View File

@@ -6,4 +6,4 @@ import { Playlist } from './Playlist';
export interface UpdatePlaylistRequest {
playlist: Playlist;
}
}

View File

@@ -5,4 +5,4 @@
export interface UpdateServerRequest {
tag: string;
}
}

View File

@@ -5,8 +5,8 @@
export interface UpdateUserRequest {
change_object: {
uid: string,
name?: string,
role?: string,
};
}
uid: string,
name?: string,
role?: string,
};
}

View File

@@ -7,4 +7,4 @@ export interface UpdaterStatus {
updating: boolean;
details: string;
error?: boolean;
}
}

View File

@@ -10,16 +10,16 @@ export interface User {
name?: string;
passhash?: string;
files?: {
audio?: Array<File>,
video?: Array<File>,
};
audio?: Array<File>,
video?: Array<File>,
};
playlists?: {
audio?: Array<File>,
video?: Array<File>,
};
audio?: Array<File>,
video?: Array<File>,
};
subscriptions?: Array<Subscription>;
created?: number;
role?: string;
permissions?: Array<UserPermission>;
permission_overrides?: Array<UserPermission>;
}
}

View File

@@ -5,4 +5,4 @@
export interface body_19 {
input_pin: string;
}
}

View File

@@ -5,4 +5,4 @@
export interface body_20 {
unhashed_pin: string;
}
}

View File

@@ -5,4 +5,4 @@
export interface inline_response_200_15 {
is_set: boolean;
}
}