diff --git a/packages/web-api/src/methods.ts b/packages/web-api/src/methods.ts index 0626f1b2a..5c7a62c26 100644 --- a/packages/web-api/src/methods.ts +++ b/packages/web-api/src/methods.ts @@ -365,17 +365,14 @@ export interface FilesCommentsDeleteArguments extends WebAPICallOptions, TokenOv } // either file or external_id is required export interface FilesRemoteInfoArguments extends WebAPICallOptions, TokenOverridable { - channel?: string; - // either one of the file or external_id arguments are required - file: string; - external_id: string; + file?: string; + external_id?: string; } export interface FilesRemoteListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled { ts_from?: string; ts_to?: string; channel?: string; - types?: string; } cursorPaginationEnabledMethods.add('files.remote.list'); export interface FilesRemoteAddArguments extends WebAPICallOptions, TokenOverridable { @@ -384,32 +381,30 @@ export interface FilesRemoteAddArguments extends WebAPICallOptions, TokenOverrid external_id: string; // a unique identifier for the file in your system filetype: string; // possible values (except for 'auto'): https://api.slack.com/types/file#file_types preview_image?: Buffer | Stream; - preview_file?: Buffer | Stream; indexable_file_contents?: Buffer | Stream; } export interface FilesRemoteUpdateArguments extends WebAPICallOptions, TokenOverridable { - title: string; - external_url: string; - filetype: string; // possible values (except for 'auto'): https://api.slack.com/types/file#file_types + title?: string; + external_url?: string; + filetype?: string; // possible values (except for 'auto'): https://api.slack.com/types/file#file_types preview_image?: Buffer | Stream; - preview_file?: Buffer | Stream; indexable_file_contents?: Buffer | Stream; // either one of the file or external_id arguments are required - file: string; - external_id: string; + file?: string; + external_id?: string; } export interface FilesRemoteRemoveArguments extends WebAPICallOptions, TokenOverridable { // either one of the file or external_id arguments are required - file: string; - external_id: string; + file?: string; + external_id?: string; } export interface FilesRemoteShareArguments extends WebAPICallOptions, TokenOverridable { channels: string; // comma-separated list of channel ids // either one of the file or external_id arguments are required - file: string; - external_id: string; + file?: string; + external_id?: string; } /*