Added tasks_manager to possible user/role permission in openapi

This commit is contained in:
Tzahi12345
2023-05-11 02:47:06 -04:00
parent 427eecf214
commit d4fa640f0f
128 changed files with 141 additions and 139 deletions

View File

@@ -2877,6 +2877,7 @@ components:
- sharing
- advanced_download
- downloads_manager
- tasks_manager
YesNo:
type: string
enum:

View File

@@ -3,5 +3,5 @@
/* eslint-disable */
export type Config = {
YoutubeDLMaterial: any;
YoutubeDLMaterial: Record<string, any>;
};

View File

@@ -26,5 +26,5 @@ export type Download = {
user_uid?: string;
sub_id?: string;
sub_name?: string;
prefetched_info?: any;
prefetched_info?: Record<string, any>;
};

View File

@@ -5,6 +5,6 @@
export type GetFileFormatsResponse = {
success: boolean;
result: {
formats?: Array<any>;
formats?: Array<Record<string, any>>;
};
};

View File

@@ -6,5 +6,5 @@ import type { Subscription } from './Subscription';
export type GetSubscriptionResponse = {
subscription: Subscription;
files: Array<any>;
files: Array<Record<string, any>>;
};

View File

@@ -11,6 +11,6 @@ export type Notification = {
user_uid?: string;
action?: Array<NotificationAction>;
read: boolean;
data?: any;
data?: Record<string, any>;
timestamp: number;
};

View File

@@ -15,5 +15,5 @@ export type Subscription = {
timerange?: string;
custom_args?: string;
custom_output?: string;
videos: Array<any>;
videos: Array<Record<string, any>>;
};

View File

@@ -9,8 +9,8 @@ export type Task = {
last_confirmed: number;
running: boolean;
confirming: boolean;
data: any;
data: Record<string, any>;
error: string;
schedule: any;
options?: any;
schedule: Record<string, any>;
options?: Record<string, any>;
};

View File

@@ -10,5 +10,5 @@ export type UpdateFileRequest = {
/**
* Object with fields to update as keys and their new values
*/
change_obj: any;
change_obj: Record<string, any>;
};

View File

@@ -4,5 +4,5 @@
export type UpdateTaskDataRequest = {
task_key: string;
new_data: any;
new_data: Record<string, any>;
};

View File

@@ -4,5 +4,5 @@
export type UpdateTaskOptionsRequest = {
task_key: string;
new_options: any;
new_options: Record<string, any>;
};

View File

@@ -9,4 +9,5 @@ export enum UserPermission {
SHARING = 'sharing',
ADVANCED_DOWNLOAD = 'advanced_download',
DOWNLOADS_MANAGER = 'downloads_manager',
TASKS_MANAGER = 'tasks_manager',
}