From 245dff434bbb49f8d00d61f3377a1e9c0428a523 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Fri, 28 Oct 2022 12:36:05 -0400 Subject: [PATCH] ChatUnfurlArguments require either `channel` and `ts` or `unfurl_id` and `source` properties to be specified in pairs. Fixes #1530. --- packages/web-api/src/methods.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/web-api/src/methods.ts b/packages/web-api/src/methods.ts index 3d16183e3..721aebc13 100644 --- a/packages/web-api/src/methods.ts +++ b/packages/web-api/src/methods.ts @@ -1481,8 +1481,10 @@ export interface ChatScheduledMessagesListArguments extends WebAPICallOptions, T } cursorPaginationEnabledMethods.add('chat.scheduledMessages.list'); export interface ChatUnfurlArguments extends WebAPICallOptions, TokenOverridable { - channel: string; - ts: string; + channel?: string; // if specified, `ts` must be specified too. otherwise, `unfurl_id` and `source` must be specified. + ts?: string; + unfurl_id?: string; // if specified, `source` must be specified too. otherwise, `channel` and `ts` must be specified. + source?: 'composer' | 'conversations_history'; unfurls: LinkUnfurls; user_auth_message?: string; user_auth_required?: boolean;